
header {
    transition: all 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
    height: 80px;
    overflow: visible;
}

header.expanded {
    height: 400px; /* Augmente la hauteur vers le bas */
}

.nav-dropdown {
    position: relative;
}

.nav-link-dropdown {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dropdown-arrow {
    transition: transform 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 20px; /* Juste en dessous du header */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: none;
    border-radius: 0;
    padding: 2rem 3rem;
    min-width: 300px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.28, 0.11, 0.32, 1),
                visibility 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
    z-index: 999;
    list-style: none;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    margin-bottom: 1rem;
}

.dropdown-link {
    display: block;
    padding: 0.5rem 0;
    color: #1F2937;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-link:hover {
    color: #2B44A7;
    padding-left: 1rem;
}
/* ========================================
   SEARCH BAR
   ======================================== */
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.search-toggle:hover {
    background: #F3F4F6;
}

.search-bar {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.search-bar.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: 2px solid #2B44A7;
    border-radius: 50px;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    box-shadow: 0 0 0 4px rgba(43, 68, 167, 0.1);
}

.search-close {
    background: #2B44A7;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-close:hover {
    background: #1E3A8A;
    transform: rotate(90deg);
}

/* Mobile - Dropdown en accordéon */
@media screen and (max-width: 968px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: transparent;
        padding-left: 1rem;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .nav-dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 0.5rem 0 0.5rem 1rem;
    }
    
    .dropdown-link {
        padding: 0.5rem 1rem;
        font-size: 13px;
    }
    
    .dropdown-link:hover {
        padding-left: 1rem;
    }
}

@media screen and (min-width: 1024px) {
    /* ========================================
       HERO SECTION - DESKTOP
       ======================================== */
.nav-menu.mobile {
    display: none;
}
.nav-logo-text {
    display: none;
}
.header {
    height: 80px;
    display: flex;
    align-items: flex-start; /* Centre tout le nav verticalement */
}

.nav.container {
    width: 100%;
    display: flex;
    justify-content: space-between; /* Garde logo à gauche et actions à droite */
    align-items: center; /* Centre verticalement le contenu interne */
            margin-top: 10px;
            margin-bottom: 20px;
    
}
    .hero {
        margin-top: 50px;
    }
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
        padding: 4rem 0;
        height: 100vh;
    }

    .hero-image {
        max-width: 700px;
         
    }

    .search-toggle {
    display: block !important;
}


    .bracelet-showcase {
        max-width: 600px;
        padding: 3rem;
        order: 1; /* Image à gauche */
    }

    .hero-contains {
         order: 2;
    }
.product-image {
    width: 40vh;
    top: -100px;
    content: url("../images/bracelet-noir-pc.png");
    position: relative;
    cursor: pointer;
    animation: none !important; /* Retire l'animation de float */
}

/* Effet de lumière puissant */
.product-image::after {
    content: '';
    position: absolute;
    top: -150%;
    left: -25%;
    width: 150%;
    height: 80%;
    
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

/* Au survol */
.product-image:hover::after {
    animation: powerfulLightSweep 2s ease-in-out;
}

/* Animation automatique */
.product-image.auto-glow::after {
    animation: powerfulLightSweep 2s ease-in-out;
}

@keyframes powerfulLightSweep {
    0% {
        top: -150%;
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    50% {
        top: 50%;
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        top: 150%;
        opacity: 0;
    }
}
    .packaging-background {
        width: 80vh;
        display: none;
    /* top: -80px; */
    }

    .hero-title-bottom {
        font-size: 42px;
        margin-top: 3rem;
        margin-bottom: 2rem;
    }

    .hero-description-bottom {
        font-size: 18px;
        max-width: 600px;
        margin: 30px auto;
        line-height: 1.8;
    }

    .btn-precommande {
        width: 280px;
        height: 65px;
        font-size: 20px;
        margin-top: 2rem;

    }

    /* ========================================
       INTRO SECTION - DESKTOP
       ======================================== */
    .intro-content-center {
        max-width: 900px;
    }

    .intro-title {
        font-size: 36px;
        margin-bottom: 2rem;
    }

    .intro-text-center {
        font-size: 18px;
        line-height: 1.8;
        margin-bottom: 2rem;
    }

    .intro-divider {
        width: 180px;
        height: 5px;
    }

    /* ========================================
       BRACELET IMAGE - DESKTOP
       ======================================== */
    .bracelet-image-center {
        width: 100%;
        max-width: 1200px;
    }

    /* ========================================
       HOW IT WORKS - DESKTOP
       ======================================== */
    .how-it-works-header {
        max-width: 900px;
    }

    .how-it-works-title {
        font-size: 36px;
        margin-bottom: 2rem;
    }

    .how-it-works-subtitle {
        font-size: 18px;
        line-height: 1.8;
        margin-bottom: 2rem;
    }

    .how-it-works-divider {
        width: 180px;
        height: 5px;
    }

    .steps-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 2rem;
        margin-top: 4rem;
    }

    .step-item {
        max-width: 320px;
        flex: 1;
    }

    .step-number {
        font-size: 90px;
        margin-bottom: 1.5rem;
    }

    .step-title {
        font-size: 22px;
        margin-bottom: 1rem;
    }

    .step-description {
        font-size: 16px;
        line-height: 1.6;
    }

    .step-arrow {
        margin: 0;
        align-self: center;
    }

    .arrow-icon {
        width: 40px;
        height: 40px;
        transform: rotate(-90deg);
    }

    /* ========================================
       ADVANTAGES - DESKTOP
       ======================================== */
    .advantages-header {
        max-width: 900px;
    }

    .advantages-title {
        font-size: 36px;
        margin-bottom: 2rem;
    }

    .advantages-subtitle {
        font-size: 18px;
        line-height: 1.8;
        margin-bottom: 2rem;
    }

    .advantages-divider {
        width: 180px;
        height: 5px;
    }

    .advantages-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 4rem; /* gap vertical et horizontal */
        margin-top: 4rem;
        padding-left: 2rem;
    }

    .advantage-item {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .advantage-svg {
        width: 60px;
        height: 60px;
    }

    .advantage-title {
        font-size: 22px;
    }

    .advantage-description {
        font-size: 16px;
        line-height: 1.8;
        padding-left: 76px;
    }

    /* ========================================
       FEATURES - DESKTOP
       ======================================== */
    .features-header {
        max-width: 900px;
    }

    .features-title {
        font-size: 36px;
        margin-bottom: 2rem;
    }

    .features-subtitle {
        font-size: 18px;
        line-height: 1.8;
        margin-bottom: 2rem;
    }

    .features-divider {
        width: 180px;
        height: 5px;
    }

    .features-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 4rem; /* gap vertical et horizontal */
        margin-top: 4rem;
        padding-left: 2rem;
    }

    .features-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}
    .feature-svg {
        width: 60px;
        height: 60px;
    }

    .feature-title {
        font-size: 22px;
    }

    .feature-description {
        font-size: 16px;
        line-height: 1.8;
        padding-left: 76px;
    }

    /* ========================================
       COLLECTION - DESKTOP
       ======================================== */
    .collection-header {
        max-width: 900px;
    }

    .collection-title {
        font-size: 36px;
        margin-bottom: 2rem;
    }

    .collection-subtitle {
        font-size: 18px;
        line-height: 1.8;
        margin-bottom: 2rem;
    }

    .collection-divider {
        width: 180px;
        height: 5px;
    }

   .collection-bracelets {
        position: relative;
        left: 0; /* Retire le décalage négatif */
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
        margin-top: 4rem;
        padding: 0 4rem; /* Padding équilibré */
        overflow: visible;
        max-width: 1200px; /* Limite la largeur */
        margin-left: auto; /* Centre le conteneur */
        margin-right: auto;
        justify-items: center; /* Centre les items dans leurs cellules */
    }

      .bracelet-item {
        padding: 2rem;
        max-width: 280px; /* Limite la largeur maximale */
    }

    .bracelet-collection-img {
        max-width: 220px;
        height: auto;
        aspect-ratio: 3/4;
    }

    .bracelet-color-name {
        font-size: 24px;
        margin-top: 1rem;
    }

    /* ========================================
       SECURITY ALLY - DESKTOP
       ======================================== */
    .security-header {
        max-width: 900px;
    }

    .security-title {
        font-size: 36px;
        margin-bottom: 2rem;
        line-height: 1.3;
    }

    .security-subtitle {
        font-size: 18px;
        line-height: 1.8;
        margin-bottom: 2rem;
    }

    .security-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 3rem;
        margin-top: 4rem;
        padding-left: 2rem;
    }

    .security-item {
        display: flex;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    .check-icon {
        width: 48px;
        height: 48px;
    }

    .security-text {
        font-size: 16px;
        line-height: 1.8;
    }

    /* ========================================
       SECTORS - DESKTOP
       ======================================== */
    .sectors-header {
        max-width: 900px;
    }

    .sectors-title {
        font-size: 36px;
        margin-bottom: 2rem;
    }

    .sectors-subtitle {
        font-size: 18px;
        line-height: 1.8;
        margin-bottom: 2rem;
    }

    .sectors-divider {
        width: 180px;
        height: 5px;
    }

    .sectors-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 4rem; /* gap vertical et horizontal */
        margin-top: 4rem;
        padding-left: 2rem;
    }


    .sectors-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}
    .sector-svg {
        width: 60px;
        height: 60px;
    }

    .sector-title {
        font-size: 22px;
    }

    .sector-description {
        font-size: 16px;
        line-height: 1.8;
        padding-left: 76px;
    }

    /* ========================================
       FAQ - DESKTOP
       ======================================== */
    .faq-header {
        max-width: 900px;
    }

    .faq-title {
        font-size: 36px;
        margin-bottom: 2rem;
    }

    .faq-divider {
        width: 180px;
        height: 5px;
    }

    .faq-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 4rem;
        margin-top: 4rem;
        max-width: 100%;
    }

    .faq-item {
        display: flex;
        flex-direction: column;
        /* gap: var(--spacing-sm); */
    }

    .section {
        padding: 2.5rem 0 !important;
    }

    /* FAQ FOOTER reste en pleine largeur en dessous */
    .faq-footer {
        grid-column: 1 / -1; /* Prend toute la largeur */
        font-size: 16px;
        padding: 2rem;
        max-width: 600px;
        margin: 3rem auto 0;
        text-align: center;
    }
    .faq-question {
        font-size: 20px;
        /* margin-bottom: 1rem; */
    }

    .faq-answer {
        font-size: 16px;
        line-height: 1.8;
    }

    .faq-contact-link {
        font-size: 16px;
    }

    /* ========================================
       DISTRIBUTION - DESKTOP
       ======================================== */
    .distribution-header {
        max-width: 900px;
    }

    .distribution-title {
        font-size: 36px;
        margin-bottom: 2rem;
    }

    .distribution-subtitle {
        font-size: 18px;
        line-height: 1.8;
        margin-bottom: 2rem;
    }

    .distribution-divider {
        width: 180px;
        height: 5px;
    }

    .distribution-content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 4rem;
    }

    .distribution-image-div {
        max-width: 100%;
        height: 50vh;
        width: 80vw;

    }

    .distribution-image {
        max-width: 100%;
        height: 60vh;
        width: 80%;
        object-position: center -90px;
        object-fit: cover;
    }

    .distribution-section-title {
        font-size: 24px;
        margin-bottom: 1.5rem;
    }

    .distribution-text {
        font-size: 16px;
        line-height: 1.8;
        margin-bottom: 2rem;
    }

    .distribution-box {
        padding: 2rem;
        margin-top: 2rem;
    }

    .distribution-box p {
        font-size: 16px;
        line-height: 1.8;
    }

    /* ========================================
       PREORDER - DESKTOP
       ======================================== */
    .preorder-header {
        max-width: 900px;
    }

    .preorder-title {
        font-size: 36px;
        margin-bottom: 2rem;
    }

    .preorder-subtitle {
        font-size: 18px;
        line-height: 1.8;
        margin-bottom: 2rem;
    }

    .preorder-divider {
        width: 180px;
        height: 5px;
    }

    .preorder-content {
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        gap: 4rem;
        margin-top: 4rem;
    }

    .preorder-image {
        max-width: 500px;
    }

    .btn-precommande-large {
        width: 280px;
        height: 65px;
        font-size: 20px;
    }

    /* ========================================
       NEWSLETTER - DESKTOP
       ======================================== */
    .newsletter-header {
        max-width: 900px;
    }

    .newsletter-title {
        font-size: 36px;
        margin-bottom: 2rem;
    }

    .newsletter-subtitle {
        font-size: 18px;
        line-height: 1.8;
        margin-bottom: 2rem;
    }

    .newsletter-divider {
        width: 180px;
        height: 5px;
    }

    .newsletter-form {
        max-width: 100%;
        gap: 1.5rem;
    }

    .newsletter-input {
        padding: 1rem 1.5rem;
        font-size: 16px;
    }

    .btn-newsletter {
        width: 280px;
        height: 65px;
        font-size: 20px;
    }

    /* ========================================
       FOOTER - DESKTOP
       ======================================== */
    .footer-box {
        padding: 3rem 4rem;
    }

    .footer-top {
        gap: 4rem;
    }

    .footer-logo {
        gap: 12px;
    }

    .logo-icon {
        width: 45px;
    }

    .logo-text {
        font-size: 20px;
    }

    .footer-signature {
        max-width: 180px;
    }

    .social-icon img {
        width: 32px;
        height: 32px;
    }

    .footer-company {
        font-size: 14px;
    }

    .footer-address,
    .footer-email,
    .footer-phone {
        font-size: 13px;
    }

    .footer-copyright {
        font-size: 13px;
    }

    .footer-links a {
        font-size: 13px;
    }

    /* ========================================
       SCROLL TO TOP - DESKTOP
       ======================================== */
    .scroll-top {
        width: 50px;
        height: 50px;
        bottom: 40px;
        right: 40px;
    }

    .scroll-icon {
        width: 24px;
        height: 24px;
    }
}

/* ========================================
   EXTRA LARGE DESKTOP (1440px+)
   ======================================== */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    .hero-title-bottom {
        font-size: 48px;
    }

    .hero-description-bottom {
        font-size: 20px;
        max-width: 700px;
    }

    .intro-title,
    .how-it-works-title,
    .advantages-title,
    .features-title,
    .collection-title,
    .security-title,
    .sectors-title,
    .faq-title,
    .distribution-title,
    .preorder-title,
    .newsletter-title {
        font-size: 42px;
    }

    .intro-text-center,
    .how-it-works-subtitle,
    .advantages-subtitle,
    .features-subtitle,
    .collection-subtitle,
    .security-subtitle,
    .distribution-subtitle,
    .preorder-subtitle,
    .newsletter-subtitle {
        font-size: 20px;
    }

    .collection-bracelets {
        gap: 4rem;
    }

    .bracelet-collection-img {
        max-width: 320px;
        height: 400px;
    }
}