/* Accueil */
/* Header */
.logo {
    padding-top: 2rem;
}

.sticky .logo {
    padding-top: 1rem;
}

.logo-image {
    height: 100px;
}

/* Hero Section - Structure de base */
.hero-section {
    background-color: var(--primary-fonce);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

.hero-section + section {
    background-color: var(--text-color);
    position: relative;
    z-index: 1;
}

/* Important: Augmenter la spécificité pour s'assurer que nos styles sont appliqués */
.site-main .hero-section .hero-container {
    width: 100% !important;
    max-width: min(calc(100% - 2rem), 1200px) !important;
    margin: 0 auto !important;
    padding: 6rem 1rem 3rem !important;
    display: grid !important;
    align-items: center !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4rem !important;
    box-sizing: border-box !important;
}

/* Contenu Hero */
.hero-content {
    width: 100%;
    padding-right: 1rem;
}

.hero-content h1 {
    color: var(--text-color);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    color: var(--text-color);
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Structure de l'image Hero */
.hero-section .hero-image {
    position: relative !important;
    width: 100% !important;
    max-width: 500px !important;
    justify-self: end !important;
    margin-top: 1.75rem !important;
}
@media screen and (max-width: 1199px) {
    .hero-section .hero-image {
        margin-top: 0 !important;
    }
}

.hero-image-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Styles du Slider */
.hero-slider {
    position: relative;
    margin: 0 25px;
    width: calc(100% - 50px);
}

.hero-slider .slick-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Flèches de navigation */
.hero-slider .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    padding: 0;
    border: 2px solid #000 !important;
    outline: none;
    border-radius: 50%;
    background: #000 !important;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
    display: block !important; /* Force l'affichage */
    visibility: visible !important; /* Assure la visibilité */
    opacity: 1;
}

/* Contredire le thème Slick */
.hero-slider .slick-prev:before,
.hero-slider .slick-next:before {
    font-family: none !important;
    content: '' !important;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--text-color);
    border-right: 2px solid var(--text-color);
    opacity: 0.75;
    transition: var(--transition);
}

.hero-slider .slick-prev:before {
    transform: translate(-25%, -50%) rotate(-135deg);
}

.hero-slider .slick-next:before {
    transform: translate(-75%, -50%) rotate(45deg);
}

.hero-slider .slick-disabled {
    opacity: 0.5;
    cursor: default;
}

/* Contenu additionnel */
.home .contenu:not(.bg-pale) h2 .highlight {
    display: block;
    width: max-content;
    margin: 0 auto;
    text-align: center;
}

/* Comment convo fonctionne */
.how-it-works {
    padding: 4rem 2rem 5rem;
}

.how-it-works .container {
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
}

.how-it-works-container {
    gap: 4rem;
    align-items: center;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.step-item {
    position: relative;
    padding-left: 4rem;
    line-height: 1.5;
    margin: 0;
}

.step-number {
    font-size: clamp(3rem, 6vw, 4rem);
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: -1.25rem;
}

.step-number:hover {
    transform: scale(1.1);
    transition: var(--transition);
}

.step-item h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin: 0 0 0.5rem;
}

.home ul.negatif, .home ul.positif {
    margin: 0 auto;
}

/* Responsive */
@media screen and (max-width: 1100px) {
    .hero-content {
        display: flex;
        flex-direction: column;
        padding-right: 0;
        width: 100%;
        max-width: 100vw;
        margin-right: auto;
        margin-left: auto;
        align-items: center;
    }

    .hero-content .cta-button {
        width: 100%;
        order: 2; /* Déplace le bouton "Acheter maintenant" en deuxième position */
    }

    .hero-content .cta-button.off {
        order: 1; /* Place le bouton "Détails" en première position */
        margin-left: 0;
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 768px) {
    /* Header */
    .logo-image {
        height: 60px;
    }

    /* Hero Section */
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }

    /* Important: Maintenir la spécificité en mobile */
    .site-main .hero-section .hero-container {
        display: block !important;
        width: 100% !important;
        max-width: 100vw !important;
        padding: 6rem 1rem 2rem !important;
        grid-template-columns: auto !important;
        text-align: center !important;
        gap: 2rem !important;
    }

    .hero-content p {
        margin: 0 auto 2rem;
    }

    .hero-section .hero-image {
        margin: 3rem auto 0 !important;
        max-width: min(100%, 400px) !important;
        width: 100% !important;
    }

    /* How it works section */
    .how-it-works {
        padding: 3rem 1.5rem;
    }

    .how-it-works-container {
        gap: 2rem;
    }

    .step-item {
        padding-left: 3rem;
    }

    .step-number {
        top: -0.75rem;
    }
}



/* Reset et surcharge des styles Slick par défaut */
.hero-section .slick-slider .slick-prev,
.hero-section .slick-slider .slick-next {
    font-size: 0;
    line-height: 0;
    position: absolute !important;
    top: 50% !important;
    display: block !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    border: 2px solid #000 !important;
    border-radius: 50% !important;
    background: #000 !important;
    z-index: 10 !important;
}

/* Positions spécifiques */
.hero-section .slick-slider .slick-prev {
    left: -22px !important;
}

.hero-section .slick-slider .slick-next {
    right: -22px !important;
}

/* Redéfinition des flèches */
.hero-section .slick-slider .slick-prev:before,
.hero-section .slick-slider .slick-next:before {
    font-family: none !important;
    font-size: 0 !important;
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 12px !important;
    height: 12px !important;
    border-top: 2px solid #fff !important;
    border-right: 2px solid #fff !important;
    opacity: 1 !important;
}

.hero-section .slick-slider .slick-prev:before {
    transform: translate(-25%, -50%) rotate(-135deg) !important;
}

.hero-section .slick-slider .slick-next:before {
    transform: translate(-75%, -50%) rotate(45deg) !important;
}

.hero-section .slick-slider .slick-arrow:hover {
    background: #000 !important;
    border: 2px solid var(--accent-color) !important;
}

.hero-section .slick-slider .slick-arrow:hover:before {
    opacity: 1;
    border-top: 2px solid var(--accent-color) !important;
    border-right: 2px solid var(--accent-color) !important;
}