/* ====================================
   CORRECTIONS MOBILE - BAR'OOF
   Version épurée et optimisée < 768px
   ==================================== */

/* Bouton contact fixe - masqué sur desktop */
.fixed-contact-btn {
    display: none !important;
}

/* Nav mobile caché sur desktop */
.nav-mobile {
    display: none !important;
}

@media (max-width: 768px) {

    /* ========== NAV DESKTOP/MOBILE TOGGLE ========== */
    /* Cache nav desktop sur mobile */
    .nav-desktop {
        display: none !important;
    }

    /* ========== 1. SECTIONS PADDING ========== */
    /* Réduction générale pour épurer */
    :root {
        --section-padding: 40px !important; /* Au lieu de 60px */
    }

    section {
        padding: 40px 0 !important;
    }

    /* ========== 2. HERO SECTION ========== */
    /* Moins d'espace mort en haut */
    .hero {
        padding: 80px 0 40px !important; /* Réduit de 100px à 80px */
        min-height: auto !important;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.8rem) !important;
        line-height: 1.15 !important; /* Au lieu de 0.95 ou 1.1 */
        margin-bottom: 20px !important;
    }

    .hero-description {
        font-size: 16px !important; /* Au lieu de 18px */
        line-height: 1.6 !important;
        margin-bottom: 28px !important;
    }

    .hero-video-container {
        aspect-ratio: 4 / 5 !important; /* Au lieu de 9/13 */
        max-height: 50vh !important; /* Au lieu de 60vh */
    }

    /* ========== 3. FORMULAIRE CONTACT ========== */
    /* Touch targets et padding */
    .contact-grid {
        gap: 24px !important; /* Réduit l'espace entre info et form */
    }

    .contact-note {
        margin-bottom: 16px !important; /* Réduit l'espace sous "Réponse 24h" */
    }

    .contact-form-wrapper,
    .formule-form-wrapper {
        padding: 20px 16px !important; /* Au lieu de 32px/24px */
        margin: 0 !important; /* Pas de débordement horizontal */
    }

    .form-row {
        grid-template-columns: 1fr !important; /* Force 1 colonne */
        gap: 16px !important;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 16px !important; /* Touch target 48px+ */
        font-size: 16px !important; /* Évite zoom iOS */
    }

    .form-textarea {
        min-height: 120px !important; /* Au lieu de 150px */
    }

    .form-button {
        padding: 16px 32px !important;
        font-size: 16px !important;
        width: 100% !important; /* Pleine largeur sur mobile */
    }

    /* ========== 4. FORMULES CARDS ========== */
    /* Plus d'espace, moins chargé */
    .formules-grid {
        grid-template-columns: 1fr !important; /* Force 1 colonne */
        gap: 20px !important;
    }

    .formule-card {
        padding: 28px 24px !important; /* Au lieu de 20px */
    }

    .formule-price {
        font-size: 28px !important; /* Au lieu de 32px */
    }

    .formule-pricing-compact {
        padding: 16px !important;
        font-size: 14px !important;
    }

    /* ========== 5. ATELIER SECTION ========== */
    .atelier-bento {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .atelier-photo {
        min-height: 300px !important; /* Au lieu de 550px */
        max-height: 400px !important;
    }

    .atelier-glass-card {
        padding: 24px 20px !important; /* Au lieu de 30px/24px */
    }

    .atelier-price {
        font-size: 32px !important; /* Au lieu de 42px */
    }

    /* ========== 6. NAVIGATION MOBILE ========== */
    .nav-menu {
        padding: 24px !important; /* Au lieu de 32px */
    }

    .nav-menu-links {
        gap: 16px !important; /* Au lieu de 24px */
    }

    .nav-link {
        padding: 12px 0 !important;
        font-size: 1.25rem !important;
    }

    /* ========== 7. GALLERY / TÉMOIGNAGES ========== */
    .gallery-grid,
    .temoignages-gallery {
        grid-template-columns: 1fr !important; /* 1 colonne au lieu de 2 */
        gap: 12px !important;
    }

    .temoignage-card {
        padding: 20px !important; /* Au lieu de 24px */
    }

    /* ========== 8. POURQUOI SECTION ========== */
    .pourquoi-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .pourquoi-card {
        padding: 24px !important;
    }

    /* ========== 9. CLIENTS SECTION ========== */
    .clients-grid {
        grid-template-columns: repeat(3, 1fr) !important; /* 3 colonnes au lieu de 2 */
        gap: 24px 16px !important;
    }

    .client-logo {
        max-width: 80px !important; /* Au lieu de 100px */
        max-height: 50px !important; /* Au lieu de 60px */
    }

    /* ========== 10. QUOTE SECTION ========== */
    .quote-section {
        padding: 60px 0 !important; /* Au lieu de 120px */
    }

    .quote-text {
        font-size: 24px !important; /* Au lieu de 28-32px */
        line-height: 1.4 !important;
    }

    /* ========== 11. SECTION ADAPTÉE ========== */
    .adapte-section {
        padding: 80px 0 !important; /* Au lieu de 200px */
    }

    .adapte-title {
        font-size: 32px !important; /* Au lieu de 48px */
        margin-bottom: 24px !important;
    }

    /* ========== 12. TYPOGRAPHY GLOBAL ========== */
    .section-title {
        font-size: 1.875rem !important; /* 30px */
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
    }

    .section-subtitle {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

    h1 {
        font-size: clamp(2rem, 8vw, 3rem) !important;
        line-height: 1.15 !important;
    }

    h2 {
        font-size: clamp(1.75rem, 6vw, 2.5rem) !important;
        line-height: 1.2 !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    /* ========== 13. BUTTONS ========== */
    .btn,
    .cta-button {
        padding: 14px 28px !important; /* Au lieu de 16px/32px */
        font-size: 15px !important;
    }

    .btn-sm {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }

    /* ========== 14. LOGO ANIMATION ========== */
    .logo-animation-section {
        padding: 2rem 0 1rem !important; /* Au lieu de 3rem/1.5rem */
    }

    .logo-animation-container {
        max-width: 280px !important; /* Au lieu de 300px */
    }

    /* ========== 15. CONTAINER PADDING ========== */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* ========== 16. HEADER ========== */
    .header {
        padding: 16px 0 !important;
    }

    .logo {
        width: 70px !important; /* Au lieu de 60px - meilleur touch target */
    }

    /* ========== 17. FOOTER ========== */
    .footer {
        padding: 40px 0 20px !important;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    /* ========== 18. ESPACES ENTRE ÉLÉMENTS ========== */
    /* Réduction générale pour épurer */
    .hero-content > * + * {
        margin-top: 16px !important;
    }

    .formule-content > * + * {
        margin-top: 12px !important;
    }

    /* ========== 19. IMAGES RESPONSIVE ========== */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* ========== 20. ANIMATIONS - DÉSACTIVER SUR MOBILE ========== */
    /* Performances + moins de distraction */
    /* DÉSACTIVÉ - On garde l'animation du logo header */
    /*
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    */

    /* Hover states importants */
    button,
    a,
    .btn {
        transition-duration: 0.2s !important;
    }

    /* ========== 21. HERO BADGE - Espace réduit avec header ========== */
    .hero {
        padding-top: 60px !important; /* Espace minimal */
    }

    .hero-badge {
        margin-top: 0 !important;
    }

    /* ========== 22. VIDÉO OVERLAY TEXT - Texte lisible ========== */
    .video-overlay-text {
        bottom: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90% !important;
        max-width: 320px !important;
        text-align: center !important;
    }

    .video-overlay-text h3 {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 0 !important;
    }

    .video-tag {
        font-size: 11px !important;
        padding: 6px 12px !important;
        margin-bottom: 12px !important;
    }

    /* ========== 23. BADGE 100% - MASQUÉ SUR MOBILE ========== */
    /* Le badge cache la photo, on le retire */
    .badge-100,
    .badge-100::before,
    .badge-100::after {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

    /* ========== 24. SLIDESHOW FACON - 3 photos en fade ========== */
    .facon-slideshow {
        position: relative !important;
        min-height: 400px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .facon-slideshow .slide {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 400px !important;
        opacity: 0 !important;
        transition: opacity 1.5s ease-in-out !important;
        background-size: cover !important;
        background-position: center !important;
        border: none !important; /* Retire tous les contours */
        outline: none !important;
        box-shadow: none !important;
    }

    .facon-slideshow .slide.active {
        opacity: 1 !important;
        z-index: 1 !important;
    }

    /* Container parent et tous les enfants - AUCUN CONTOUR JAMAIS */
    .facon-section,
    .facon-section *,
    .facon-image,
    .facon-image *,
    .facon-grid,
    .facon-grid *,
    .facon-text-overlay,
    .facon-text-overlay *,
    .facon-content,
    .facon-content * {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
    }

    /* Retire TOUS les effets de flou et filtres qui créent les contours */
    .facon-text-overlay {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        filter: none !important;
        -webkit-filter: none !important;
        background: rgba(0, 0, 0, 0.75) !important; /* Assombri pour meilleure lisibilité */
    }

    .facon-slideshow,
    .facon-slideshow .slide,
    .facon-image {
        filter: none !important;
        -webkit-filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* FORCE toutes les transitions/animations à 0 pour éliminer les pops retardés */
    .facon-section,
    .facon-section *,
    .facon-image,
    .facon-image *,
    .facon-grid,
    .facon-grid *,
    .facon-slideshow,
    .facon-slideshow *,
    .facon-text-overlay,
    .facon-text-overlay * {
        animation: none !important;
        animation-delay: 0s !important;
        animation-duration: 0s !important;
        transition-delay: 0s !important;
    }

    /* Sauf le fade des slides lui-même */
    .facon-slideshow .slide {
        transition: opacity 1.5s ease-in-out !important;
        transition-delay: 0s !important;
        animation: none !important;
    }

    /* Forcer sur les pseudo-éléments aussi */
    .facon-slideshow::before,
    .facon-slideshow::after,
    .facon-slideshow .slide::before,
    .facon-slideshow .slide::after,
    .facon-image::before,
    .facon-image::after,
    .facon-text-overlay::before,
    .facon-text-overlay::after {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
        content: none !important; /* Retire le contenu des pseudo-éléments */
    }

    /* ========== 25. SECTION SUPPRIMÉE - Conflit avec carousel ========== */
    /* La section 25 a été fusionnée avec la section 31 */

    /* ========== 26. REMOVE WEIRD BORDERS ========== */
    .facon-image img,
    .gallery-item img,
    .formule-image img {
        border: none !important;
        outline: none !important;
    }

    /* ========== 27. MENU TOGGLE - DISCRET MAIS VISIBLE ========== */
    .menu-toggle {
        display: flex !important;
        z-index: 99999 !important;
        position: relative !important;
        min-width: 44px !important;
        min-height: 44px !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 10px !important;
        background: rgba(230, 230, 230, 0.5) !important; /* Discret mais présent */
        border-radius: 8px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important; /* Ombre très légère */
    }

    .menu-toggle span {
        background: rgba(80, 80, 80, 0.75) !important; /* Gris visible */
        transition: all 0.3s ease !important;
    }

    /* Quand menu ouvert, hamburger visible */
    .menu-toggle.active {
        background: rgba(255, 255, 255, 0.6) !important;
        z-index: 100000 !important;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px) !important;
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0 !important;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px) !important;
    }

    /* Menu mobile - Header normal, nav sort du header via CSS */
    .header {
        position: sticky !important;
        top: 0 !important;
        z-index: 100001 !important;
        background: white !important;
        overflow: visible !important; /* Important pour que le nav puisse déborder */
    }

    /* Nav mobile - Sort visuellement du header mais reste dans le DOM */
    .nav-mobile {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 99998 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        transform: translateX(100%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s !important;
        background: rgba(0, 0, 0, 0.7) !important; /* Transparent assombri au lieu de noir opaque */
        backdrop-filter: blur(10px) !important;
        padding: 120px 24px 40px 24px !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 24px !important;
    }

    /* Liens du menu en blanc pour contraste */
    .nav-mobile .nav-link {
        display: block !important;
        width: 100% !important;
        max-width: 300px !important;
        text-align: center !important;
        color: white !important;
        font-size: 1.25rem !important;
        padding: 12px 24px !important;
        white-space: normal !important;
        overflow: visible !important;
    }

    .nav-mobile.active {
        transform: translateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0s !important;
    }

    /* Menu doit être au-dessus même du header */
    .header.menu-open {
        z-index: 100000 !important;
    }

    .menu-toggle.active {
        z-index: 100001 !important; /* Toggle au-dessus du menu */
    }

    /* ========== 28. BOUTON CTA HEADER - Caché sur mobile, menu toggle visible ========== */
    .header .btn-primary {
        display: none !important;
    }

    /* ========== 29. BOUTON CONTACT FIXE - Toujours visible en bas ========== */
    .fixed-contact-btn {
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        z-index: 999 !important;
        background: #FF6B35 !important;
        color: white !important;
        padding: 16px 24px !important;
        border-radius: 50px !important;
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4) !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        font-size: 15px !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    }

    .fixed-contact-btn:active {
        transform: scale(0.95) !important;
    }

    .fixed-contact-btn svg {
        width: 20px !important;
        height: 20px !important;
    }

    /* ========== 30. STATS HERO - 1 ligne au lieu de 3 ========== */
    .hero-stats {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }

    .hero-stats .stat {
        flex: 1 !important;
        min-width: 0 !important;
        text-align: center !important;
    }

    .stat-number {
        font-size: 20px !important; /* Au lieu de 32px */
        margin-bottom: 4px !important;
    }

    .stat-unit {
        font-size: 12px !important; /* Unités (%, h) plus petites */
        font-weight: 500 !important;
    }

    .stat-label {
        font-size: 11px !important; /* Au lieu de 14px */
        line-height: 1.2 !important;
    }

    /* ========== 31. GALLERY TÉMOIGNAGES - Carousel 3 photos ========== */
    .temoignages-gallery {
        position: relative !important;
        min-height: 250px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }

    .temoignages-gallery .gallery-item {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 250px !important;
        background-size: cover !important;
        background-position: center !important;
        opacity: 0 !important;
        transition: opacity 1.5s ease-in-out !important;
    }

    /* Recadrage spécifique par photo */
    .temoignages-gallery .gallery-item:nth-child(2) {
        /* temoignage5.jpg - shaker - descendre */
        background-position: center 60% !important;
    }

    .temoignages-gallery .gallery-item:nth-child(3) {
        /* temoignage4.jpg - cocktail main - monter */
        background-position: center 40% !important;
    }

    .temoignages-gallery .gallery-item.active {
        opacity: 1 !important;
        z-index: 1 !important;
    }
}

/* ========== TRÈS PETITS ÉCRANS (< 380px) ========== */
@media (max-width: 380px) {
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .hero-title {
        font-size: 1.75rem !important;
    }

    .section-title {
        font-size: 1.5rem !important;
    }

    .form-button,
    .btn {
        padding: 14px 24px !important;
        font-size: 14px !important;
    }
}
