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

@media (max-width: 768px) {

    /* ========== 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: 100px 0 40px !important; /* Au lieu de 120px/60px */
        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-form-wrapper,
    .formule-form-wrapper {
        padding: 20px 16px !important; /* Au lieu de 32px/24px */
        margin: 0 -8px !important; /* Utilise toute la largeur */
    }

    .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 - Éviter chevauchement avec header ========== */
    .hero {
        padding-top: 120px !important; /* Plus d'espace pour le badge */
    }

    .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 {
        display: none !important;
    }

    /* ========== 24. SLIDESHOW FACON - 3 photos en fade ========== */
    .facon-slideshow {
        position: relative !important;
    }

    .facon-slideshow .slide {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        opacity: 0 !important;
        transition: opacity 1.5s ease-in-out !important;
        background-size: cover !important;
        background-position: center !important;
    }

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

    /* ========== 25. GALLERY TÉMOIGNAGES - Une photo par slide ========== */
    .temoignages-gallery {
        position: relative !important;
        min-height: 250px !important;
    }

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

    .temoignages-gallery .gallery-item:first-child {
        position: relative !important;
        opacity: 1 !important;
    }

    .temoignages-gallery .gallery-item:not(:first-child) {
        display: none !important;
    }

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

    /* ========== 27. MENU TOGGLE - HAUTE VISIBILITÉ ========== */
    .menu-toggle {
        display: flex !important;
        z-index: 1001 !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(255, 255, 255, 0.95) !important; /* Fond blanc semi-transparent */
        border-radius: 8px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    }

    .menu-toggle span {
        background: #333 !important; /* Barres noires */
        transition: all 0.3s ease !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;
    }

    .nav {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        max-height: calc(100vh - 70px) !important;
        overflow-y: auto !important;
    }

    .nav.active {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }

    /* ========== 28. BOUTON CTA HEADER - Caché sur mobile, menu toggle visible ========== */
    .header .btn-primary {
        display: none !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;
    }
}
