/* ========================================
   MENU HAMBURGER & NAVIGATION RESPONSIVE
   ======================================== */

/* Burger menu - caché par défaut sur desktop */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #000;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Animation du burger en X */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    z-index: 1001;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #ff006e;
}

.nav-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-login {
    padding: 8px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-login:hover {
    color: #ff006e;
}

.btn-primary {
    padding: 10px 24px;
    background: linear-gradient(90deg, #ff006e, #8338ec);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 0, 110, 0.3);
}

/* ========================================
   HERO SECTION RESPONSIVE
   ======================================== */

.container-hero {
   position: relative;
    overflow: hidden;
	background-color: #000000;
    padding-top: 130px;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero .main-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    max-width: 900px;
}

.hero-button {
    display: inline-block;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.hero-mention {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.wrapper-hero {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}



/* ========================================
   RESPONSIVE - TABLETTE
   ======================================== */

@media (max-width: 1024px) {
    .nav-links {
        gap: 20px;
    }
    
    .hero .main-title {
        font-size: 42px;
    }
    
    .left-image img,
    .right-image img {
        max-width: 150px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 768px) {
    /* Afficher le hamburger */
    .hamburger {
        display: flex;
    }
    
    /* Menu mobile */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: #fff;
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 25px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links li a {
        display: block;
        padding: 12px 0;
        font-size: 18px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    /* Boutons intégrés dans le menu mobile */
    .nav-buttons {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: transparent;
        padding: 0 30px 30px;
        flex-direction: column;
        gap: 12px;
        z-index: 999;
        justify-content: flex-end;
        padding-bottom: 40px;
        transition: right 0.3s ease;
        box-shadow: none;
    }
    
    .nav-links.active ~ .nav-buttons,
    .nav-buttons.active {
        right: 0;
    }
    
    .btn-login,
    .btn-primary {
        width: 100%;
        text-align: center;
        display: block;
        padding: 12px 20px;
    }
    
    /* Overlay sombre quand menu ouvert */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s ease;
        z-index: 998;
    }
    
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    /* Hero mobile */
    .container-hero {
        padding-top: 70px;
        min-height: auto;
    }
    
    .hero {
        padding: 30px 15px;
    }
    
    .hero .main-title {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero h2,
    .hero p {
        font-size: 14px;
    }
    
    .hero-button {
        padding: 14px 30px;
        font-size: 16px;
        margin-top: 20px;
    }
    
    .hero-mention {
        font-size: 13px;
        padding-bottom: 30px;
    }
    
    /* Masquer les images latérales sur mobile */
    .left-image,
    .right-image {
        display: none;
    }
    
    .container-hero .container-video {
        max-width: 100%;
        border-radius: 15px;
    }
    
    .title-all-in-one {
        font-size: 24px !important;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }
    
    .hero .main-title {
        font-size: 26px;
    }
    
    .hero-button {
        padding: 12px 24px;
        font-size: 15px;
        width: 90%;
        max-width: 320px;
    }
    
    .nav-links {
        width: 250px;
        padding: 70px 20px 20px;
    }
}

/* ========================================
   UTILITAIRES
   ======================================== */

.z-5 {
    z-index: 5;
}

.position-relative {
    position: relative;
}

.d-flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

.text-center {
    text-align: center;
}

.text-white {
    color: #fff;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-5 {
    margin-top: 1.25rem;
}

.mt-10 {
    margin-top: 2.5rem;
}

.pb-20 {
    padding-bottom: 5rem;
}

.fs-11 {
    font-size: 11px;
}

.fs-14 {
    font-size: 14px;
}

.gradient-button {
    background: linear-gradient(90deg, #ff006e, #8338ec);
    color: #fff;
}

.glow-on-hover:hover {
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.6);
}

/* ========================================
   DROPDOWN TEXTILES
   ======================================== */

.has-dropdown { position: relative; }

.nav-dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.dropdown-chevron {
    font-size: 11px;
    transition: transform 0.25s ease;
    display: inline-block;
    margin-left: 2px;
}

.has-dropdown.dropdown-open .dropdown-chevron {
    transform: rotate(180deg);
}

/* ── DESKTOP : panneau flottant ── */
.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 290px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    list-style: none;
    padding: 10px 8px;
    z-index: 2000;
    border: 1px solid rgba(0,0,0,0.06);
    margin: 0;
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid rgba(0,0,0,0.06);
    border-top: 1px solid rgba(0,0,0,0.06);
    transform: translateX(-50%) rotate(45deg);
}

.has-dropdown.dropdown-open .nav-dropdown {
    display: block;
    animation: dropdownFadeIn 0.2s ease forwards;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Items */
.nav-dropdown li { list-style: none; }

.nav-dropdown li a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    color: #333 !important;
    transition: background 0.15s ease !important;
    border-bottom: none !important;
}

.nav-dropdown li a:hover { background: #f7f7f9 !important; }

.dropdown-icon {
    font-size: 22px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,0,110,0.08), rgba(131,56,236,0.08));
    border-radius: 8px;
    flex-shrink: 0;
}

.nav-dropdown li a strong { font-size: 14px; font-weight: 600; color: #000; display: block; }
.nav-dropdown li a small  { font-size: 12px; color: #999; display: block; }

.dropdown-footer { margin-top: 6px; padding-top: 6px; border-top: 1px solid #f0f0f0; }

.dropdown-cta {
    display: block !important;
    text-align: center !important;
    background: linear-gradient(90deg, #ff006e, #8338ec) !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
}
.dropdown-cta:hover { opacity: 0.88 !important; }

/* ── MOBILE : le sous-menu est géré entièrement par JS (classe dropdown-open) ── */
@media (max-width: 768px) {

    /* Style du bouton toggle Textiles identique aux liens */
    .nav-dropdown-toggle {
        display: block !important;
        padding: 12px 0 !important;
        font-size: 18px !important;
        border-bottom: 1px solid #f0f0f0 !important;
        color: #333 !important;
        width: 100% !important;
        text-align: left !important;
    }

    /* Par défaut : caché proprement */
    .nav-dropdown {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        border-left: 2px solid #f0f0f0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        min-width: unset !important;
        padding: 0 !important;
        margin: 0 0 0 14px !important;
        animation: none !important;
        transition: none !important;
    }

    .nav-dropdown::before { display: none !important; }

    /* Ouvert : JS ajoute dropdown-open sur le <li> parent */
    .has-dropdown.dropdown-open .nav-dropdown {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
        position: static !important;
        transform: none !important;
        animation: none !important;
    }

    /* Items mobile */
    .nav-dropdown li a {
        padding: 9px 8px !important;
        font-size: 15px !important;
    }

    .dropdown-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 15px !important;
    }

    .nav-dropdown li a strong { font-size: 13px !important; }
    .nav-dropdown li a small  { font-size: 11px !important; }

    .dropdown-footer {
        margin-top: 4px !important;
        padding-bottom: 4px !important;
    }
}
/* ── Button toggle Textiles (natif, cliquable sur tous navigateurs) ── */
button.nav-dropdown-toggle {
    background: none;
    border: none;
    font-family: inherit;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    padding: 0;
    font-size: inherit;
    display: flex;
    align-items: center;
    gap: 5px;
    touch-action: manipulation;
}

button.nav-dropdown-toggle:hover {
    color: #ff006e;
}

@media (max-width: 768px) {
    button.nav-dropdown-toggle {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        padding: 12px 0 !important;
        font-size: 18px !important;
        border-bottom: 1px solid #f0f0f0 !important;
        border-radius: 0 !important;
    }
}