/**
 * CSS MOBILE OPTIMISÉ - GRAPETRACK ASTRO
 * Consolidation et optimisation complète pour mobile
 * Focus sur les petits écrans (320px-375px)
 * Spécificité maximale avec !important
 */

/* ===========================================
   RESET MOBILE CRITIQUE
   =========================================== */

@media (max-width: 767px) {
  /* Reset complet mobile */
  * {
    box-sizing: border-box !important;
  }
  
  html {
    font-size: 14px !important;
    overflow-x: hidden !important;
  }
  
  body {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Images responsive par défaut */
  img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

/* ===========================================
   HEADER MOBILE CRITIQUE (320px-375px)
   =========================================== */

@media (max-width: 767px) {
  /* Header mobile - Hauteur réduite - TOUJOURS VISIBLE */
  .header {
    height: 56px !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background-color: #060f23 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(0) !important;
    transition: none !important;
  }
  
  /* Compenser le header fixe pour le contenu */
  body {
    padding-top: 56px !important;
  }
  
  main {
    padding-top: 0 !important;
  }
  
  /* Container menu mobile */
  .container.menu {
    height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 12px !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* S'assurer que les éléments du header sont bien positionnés */
  .header .container.menu > * {
    position: relative !important;
    z-index: 1001 !important;
  }
  
  /* Burger menu - OPTIMISÉ POUR PETITS ÉCRANS */
  .burger {
    position: absolute !important;
    top: 50% !important;
    left: 12px !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    height: 44px !important;
    width: 50px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    z-index: 1001 !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
  }
  
  /* Texte MENU - CACHÉ POUR ÉVITER LE DÉBORDEMENT */
  .menu-text {
    display: none !important;
  }
  
  .menu-text p {
    display: none !important;
  }
  
  /* Lignes hamburger - OPTIMISÉES */
  .lines {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    align-items: flex-start !important;
  }
  
  .line1, .line2 {
    width: 20px !important;
    height: 2px !important;
    background-color: white !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
    display: block !important;
  }
  
  .line2 {
    width: 16px !important;
  }
  
  /* États actifs du burger */
  .line1Active {
    transform: rotate(45deg) translateX(4px) !important;
    background-color: #e30075 !important;
  }
  
  .line2Active {
    transform: rotate(-45deg) translateX(4px) !important;
    background-color: #e30075 !important;
    width: 20px !important;
  }
  
  /* Logo mobile - PARFAITEMENT CENTRÉ - OVERRIDE CSS PRINCIPAL */
  .header .logo,
  .menu .logo,
  .container.menu .logo,
  .header .container .logo {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999 !important;
    margin: 0 !important;
    pointer-events: none !important;
  }
  
  .header .logo a,
  .menu .logo a,
  .container.menu .logo a,
  .header .container .logo a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    pointer-events: auto !important;
  }
  
  .logo-mobile {
    display: block !important;
    height: 36px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .logo-header {
    display: none !important;
  }
  
  /* Boutons header - Afficher seulement le sélecteur de langue */
  .logo-button {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    gap: 0 !important;
    align-items: center !important;
    z-index: 1001 !important;
    height: 44px !important;
  }
  
  /* Masquer les boutons Mon Compte et Demander une démo */
  .logo-button .account-button,
  .logo-button .demo-button,
  .logo-button .account-btn,
  .logo-button a.account-button,
  .logo-button a:has(.account-btn),
  .logo-button a:has(.demo-button),
  .logo-button > a:not(:has(.language)) {
    display: none !important;
  }
  
  /* Afficher uniquement le sélecteur de langue */
  .logo-button .language {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
  }
  
  /* Styles du sélecteur de langue - SIMPLIFIÉ */
  .logo-button .pll-switcher-select,
  .language select,
  select#lang_choice_1 {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    color: white !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    min-height: 40px !important;
    width: 55px !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    text-align: center !important;
    text-align-last: center !important;
    line-height: 1 !important;
    font-family: 'InterTight', sans-serif !important;
    letter-spacing: 0.5px !important;
  }
  
  .logo-button .pll-switcher-select:focus,
  .language select:focus,
  select#lang_choice_1:focus {
    outline: 2px solid #e30075 !important;
    outline-offset: 2px !important;
    border-color: #e30075 !important;
  }
  
  .logo-button .pll-switcher-select option,
  .language select option,
  select#lang_choice_1 option {
    background-color: #060f23 !important;
    color: white !important;
    text-align: center !important;
    padding: 8px !important;
  }
  
  /* Menu overlay mobile */
  .menuX {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important; /* Support for dynamic viewport height on iOS */
    background-color: #e3edfc !important;
    z-index: 999 !important;
    transform: translateY(-100%) !important;
    transition: transform 0.4s ease-in-out !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  .playMenu {
    transform: translateY(0) !important;
  }
  
  /* Empêcher le scroll du body quand le menu est ouvert */
  body.body-menu {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
  }
  
  /* Navigation mobile */
  .menuX nav {
    padding: 80px 0 0 0 !important;
    font-size: 1.5rem !important;
    text-align: center !important;
  }
  
  .menuX ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .menuX li {
    margin-bottom: 1.5rem !important;
  }
  
  .menuX a {
    color: #e30075 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    display: block !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease !important;
    font-size: 1.5rem !important;
    line-height: 1.4 !important;
  }
  
  .menuX a:hover,
  .menuX a:active {
    color: #060f23 !important;
    transform: translateY(-2px) !important;
  }
}

/* ===========================================
   TYPOGRAPHY MOBILE OPTIMISÉE
   =========================================== */

@media (max-width: 375px) {
  /* Très petits écrans (iPhone SE) */
  h1 {
    font-size: 1.75rem !important; /* 28px */
    line-height: 1.2 !important;
    margin-bottom: 0.75rem !important;
  }
  
  /* Correction spécifique pour le titre principal */
  .welcome-content h1 {
    font-size: 1.5rem !important; /* 24px sur très petits écrans */
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
    position: relative !important;
    z-index: 10 !important;
  }
  
  .welcome-content h1 span {
    position: relative !important;
    z-index: 11 !important;
    display: block !important;
    margin-top: 0.25rem !important;
    font-size: 1.25rem !important; /* 20px pour le span */
  }
  
  h2 {
    font-size: 1.25rem !important; /* 20px */
    line-height: 1.3 !important;
    margin-bottom: 0.75rem !important;
  }
  
  h3 {
    font-size: 1.125rem !important; /* 18px */
    line-height: 1.4 !important;
    margin-bottom: 0.5rem !important;
  }
  
  p, li {
    font-size: 0.875rem !important; /* 14px */
    line-height: 1.5 !important;
    margin-bottom: 0.75rem !important;
  }
}

@media (max-width: 767px) {
  /* Mobile standard */
  h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }
  
  h2 {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.875rem !important;
  }
  
  h3 {
    font-size: 1.25rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.75rem !important;
  }
  
  p, li {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
  }
  
  /* Container mobile */
  .container {
    width: 100% !important;
    padding: 0 12px !important;
    margin: 0 auto !important;
    max-width: 100% !important;
  }
  
  /* Sections mobile */
  section {
    padding: 1.5rem 0 !important;
    width: 100% !important;
  }
}

/* ===========================================
   WELCOME BANNER MOBILE
   =========================================== */

@media (max-width: 767px) {
  .welcome-banner {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 1rem 0 !important;
    text-align: center !important;
  }
  
  .welcome-content {
    width: 100% !important;
    order: 2 !important;
    text-align: center !important;
    padding: 0 1rem !important;
  }
  
  .welcome-content h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 10 !important;
  }
  
  .welcome-content h1 span {
    position: relative !important;
    z-index: 11 !important;
    display: block !important;
    margin-top: 0.5rem !important;
    padding: 0.25rem 0 !important;
    background-color: transparent !important;
  }
  
  .welcome-content h2 {
    font-size: 1.25rem !important;
    line-height: 1.4 !important;
    margin-bottom: 1rem !important;
    padding: 0 !important;
  }
  
  .welcome-content p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
    padding: 0 !important;
  }
  
  .welcome-text {
    padding: 0 !important;
  }
  
  .welcome-img {
    display: none !important; /* Masquer la bouteille sur mobile pour éviter le chevauchement */
  }
  
  .welcome-img img {
    display: none !important; /* Masquer l'image de la bouteille sur mobile */
  }
  
  /* S'assurer que la bouteille est masquée sur tous les écrans mobiles */
  @media (max-width: 768px) {
    .welcome-img {
      display: none !important;
    }
    
    .welcome-img img {
      display: none !important;
    }
  }
  
  @media (max-width: 480px) {
    .welcome-img {
      display: none !important;
    }
    
    .welcome-img img {
      display: none !important;
    }
  }
  
  /* Boutons mobile */
  .welcome-content button {
    width: 100% !important;
    padding: 16px 24px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    min-height: 48px !important;
    border: none !important;
    border-radius: 8px !important;
    background-color: #e30075 !important;
    color: white !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 1rem 0 !important;
  }
  
  .welcome-content button:hover {
    background-color: #060f23 !important;
    transform: translateY(-2px) !important;
  }
}

/* ===========================================
   VIDEO BANNER MOBILE
   =========================================== */

@media (max-width: 767px) {
  .video-container {
    width: 95% !important;
    margin: 0 auto !important;
    padding: 1rem !important;
    min-height: 400px !important;
  }
  
  .video-content-left {
    display: none !important;
  }
  
  .video-content-right {
    width: 100% !important;
    text-align: center !important;
  }
  
  .video-content-right h2 {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
  }
  
  .video-content-right h3 {
    font-size: 1.125rem !important;
    line-height: 1.4 !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
  }
  
  .video-content-right p {
    text-align: center !important;
    margin-bottom: 1.5rem !important;
  }
}

/* ===========================================
   HOW IT WORKS MOBILE
   =========================================== */

@media (max-width: 767px) {
  .how-it-works {
    padding: 2rem 0 !important;
  }
  
  .how-it-works-content {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 2rem !important;
  }
  
  .how-it-works-content h2 {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }
  
  .selector-container {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .selector {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid white !important;
    padding: 1rem 0 !important;
    text-align: center !important;
  }
  
  .selector h3 {
    font-size: 1.25rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .selector-content {
    width: 100% !important;
    padding: 1rem 0 !important;
    text-align: center !important;
  }
  
  .selector-content-buttons {
    display: flex !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
  }
  
  .selector-content-buttons button {
    padding: 8px 16px !important;
    font-size: 0.875rem !important;
    min-height: 44px !important;
  }
}

/* ===========================================
   ADVANTAGES MOBILE
   =========================================== */

@media (max-width: 767px) {
  .advantages {
    padding: 2rem 0 !important;
  }
  
  .advantages-title {
    display: block !important;
    text-align: center !important;
    margin-bottom: 2rem !important;
  }
  
  .advantages-title h2 {
    width: 100% !important;
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }
  
  .advantages-content {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 2rem !important;
  }
  
  .advantages-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
  }
  
  .advantages-details-left,
  .advantages-details-right {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  
  .advantage-left-icon,
  .advantage-right-icon {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 1rem auto !important;
  }
  
  .advantage-left-content,
  .advantage-right-content {
    width: 100% !important;
    padding: 0 !important;
    text-align: center !important;
  }
}

/* ===========================================
   KEY FIGURES MOBILE
   =========================================== */

@media (max-width: 767px) {
  .key-figures {
    padding: 2rem 0 !important;
  }
  
  .key-figures-container h2 {
    width: 100% !important;
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
    text-align: center !important;
    margin-bottom: 2rem !important;
  }
  
  .key-figures-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
  }
  
  .figure {
    width: 100% !important;
    text-align: center !important;
    padding: 1rem !important;
  }
}

/* ===========================================
   TEAM MOBILE
   =========================================== */

@media (max-width: 767px) {
  .team {
    padding: 2rem 0 !important;
  }
  
  .team h2 {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
    text-align: center !important;
    margin-bottom: 1.5rem !important;
  }
  
  .team p {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 2rem !important;
  }
  
  .team-members {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
  }
  
  .member {
    width: 100% !important;
    text-align: center !important;
  }
  
  .photo-member {
    width: 150px !important;
    height: 150px !important;
    margin: 0 auto 1rem auto !important;
    border-radius: 50% !important;
    object-fit: cover !important;
  }
}

/* ===========================================
   CONTACT MOBILE
   =========================================== */

@media (max-width: 767px) {
  .contact {
    padding: 2rem 0 !important;
  }
  
  .contact h2 {
    width: 100% !important;
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
  }
  
  .contact p {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 1.5rem !important;
  }
  
  .email-contact {
    font-size: 1.25rem !important;
    text-align: center !important;
    margin-top: 2rem !important;
  }
}

/* ===========================================
   CALCULATEUR ÉNERGÉTIQUE MOBILE
   =========================================== */

@media (max-width: 767px) {
  .calculator-title {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
    margin: 1.5rem 0 1rem 0 !important;
    padding: 0 1rem !important;
    text-align: center !important;
  }
  
  .intro-text {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
    padding: 0 1rem !important;
    text-align: center !important;
  }
  
  #wineForm {
    max-width: 100% !important;
    padding: 0 1rem !important;
    margin-bottom: 2rem !important;
  }
  
  #wineForm label {
    font-size: 0.875rem !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
    color: #e30075 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
  }
  
  #wineForm input[type="number"] {
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 16px !important; /* Éviter le zoom iOS */
    min-height: 48px !important;
    border-radius: 8px !important;
    border: 2px solid #e30075 !important;
    background-color: white !important;
    color: #333 !important;
    box-sizing: border-box !important;
  }
  
  #wineForm button {
    width: 100% !important;
    padding: 16px 24px !important;
    font-size: 1rem !important;
    min-height: 48px !important;
    margin-top: 1rem !important;
    border-radius: 8px !important;
    background-color: #e30075 !important;
    color: white !important;
    border: none !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
  }
  
  #wineForm button:hover {
    background-color: #060f23 !important;
    transform: translateY(-2px) !important;
  }
  
  #result {
    margin-top: 2rem !important;
    padding: 1.5rem 1rem !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    text-align: center !important;
  }
  
  #result h2 {
    font-size: 1.25rem !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
    color: white !important;
  }
  
  #result p {
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
    color: white !important;
    font-weight: 600 !important;
  }
  
  .result-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    margin: 1.5rem 0 !important;
  }
  
  .result-item {
    background-color: rgba(255, 255, 255, 0.05) !important;
    padding: 1rem !important;
    border-radius: 8px !important;
    text-align: center !important;
  }
  
  #qrcode-container {
    margin-top: 2rem !important;
    text-align: center !important;
  }
  
  #qrcode {
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 1rem !important;
  }
  
  #qrcode canvas {
    max-width: 200px !important;
    height: auto !important;
  }
  
  .qr-info {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 1.5rem !important;
  }
  
  .contact-button {
    display: inline-block !important;
    background-color: #e30075 !important;
    color: white !important;
    padding: 12px 24px !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    min-height: 48px !important;
    transition: all 0.3s ease !important;
  }
  
  .contact-button:hover {
    background-color: #060f23 !important;
    transform: translateY(-2px) !important;
  }
}

/* ===========================================
   PAGES DE CONTENU MOBILE
   =========================================== */

@media (max-width: 767px) {
  /* Pages solutions, réglementation, etc. */
  .vignerons-page,
  .labo-page,
  .reglementation-page,
  .grapetrack-page,
  .transparence-page,
  .nutrition-page {
    padding: 1rem 0 !important;
  }
  
  .vignerons-title,
  .labo-title,
  .reglementation-title,
  .grapetrack-title,
  .transparence-title,
  .nutrition-title {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
    padding: 0 1rem !important;
    text-align: center !important;
  }
  
  .highlighted-text {
    display: inline-block !important;
    background-color: #E20775 !important;
    color: #ffffff !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    margin-bottom: 0.5rem !important;
  }
  
  /* Sections de contenu */
  .vignerons-content,
  .labo-content,
  .reglementation-content,
  .grapetrack-content,
  .transparence-content,
  .nutrition-content {
    padding: 0 1rem !important;
  }
  
  .vignerons-content section,
  .labo-content section,
  .reglementation-content section,
  .grapetrack-content section,
  .transparence-content section,
  .nutrition-content section {
    margin-bottom: 2rem !important;
    padding: 1rem 0 !important;
  }
  
  .vignerons-content h2,
  .labo-content h2,
  .reglementation-content h2,
  .grapetrack-content h2,
  .transparence-content h2,
  .nutrition-content h2 {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
    color: white !important;
  }
  
  .vignerons-content h3,
  .labo-content h3,
  .reglementation-content h3,
  .grapetrack-content h3,
  .transparence-content h3,
  .nutrition-content h3 {
    font-size: 1.125rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.75rem !important;
    color: white !important;
  }
  
  .vignerons-content p,
  .labo-content p,
  .reglementation-content p,
  .grapetrack-content p,
  .transparence-content p,
  .nutrition-content p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
    color: white !important;
  }
  
  .vignerons-content ul,
  .labo-content ul,
  .reglementation-content ul,
  .grapetrack-content ul,
  .transparence-content ul,
  .nutrition-content ul {
    padding-left: 1.5rem !important;
    margin-bottom: 1rem !important;
  }
  
  .vignerons-content li,
  .labo-content li,
  .reglementation-content li,
  .grapetrack-content li,
  .transparence-content li,
  .nutrition-content li {
    margin-bottom: 0.5rem !important;
    color: white !important;
  }
  
  /* Grilles et cartes */
  .benefits-grid,
  .features-grid,
  .testimonials-container,
  .numbers-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }
  
  .benefit-card,
  .feature-card,
  .testimonial-card {
    width: 100% !important;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
  }
  
  .benefit-card h3,
  .feature-card h3,
  .testimonial-card h3 {
    font-size: 1.125rem !important;
    margin-bottom: 0.75rem !important;
    color: white !important;
  }
  
  .benefit-card p,
  .feature-card p,
  .testimonial-card p {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.8) !important;
  }
  
  /* Tables responsive */
  table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-collapse: collapse !important;
    margin: 1rem 0 !important;
    white-space: nowrap !important;
  }
  
  th, td {
    padding: 8px 12px !important;
    text-align: left !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    font-size: 0.875rem !important;
  }
  
  th {
    background-color: rgba(227, 0, 117, 0.2) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.5px !important;
  }
  
  /* Boutons CTA */
  .btn,
  .cta-button,
  .contact-button {
    display: block !important;
    width: 100% !important;
    padding: 12px 16px !important;
    text-align: center !important;
    background-color: #E20775 !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    margin: 0.5rem 0 !important;
    font-weight: 600 !important;
    min-height: 48px !important;
    transition: all 0.3s ease !important;
  }
  
  .btn:hover,
  .cta-button:hover,
  .contact-button:hover {
    background-color: #060f23 !important;
    transform: translateY(-2px) !important;
  }
  
  /* Images dans le contenu */
  .vignerons-content img,
  .labo-content img,
  .reglementation-content img,
  .grapetrack-content img,
  .transparence-content img,
  .nutrition-content img {
    max-width: 100% !important;
    height: auto !important;
    margin: 1rem 0 !important;
    border-radius: 8px !important;
  }
  
  /* Listes de reconnaissance */
  .recognition-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2rem !important;
    margin: 2rem 0 !important;
  }
  
  .recognition-item {
    width: 100% !important;
    max-width: 280px !important;
    text-align: center !important;
  }
  
  .recognition-logo {
    height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 1rem !important;
  }
  
  .recognition-logo img {
    max-width: 200px !important;
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
  }
}

/* ===========================================
   MEDIA COVERAGE SECTION MOBILE
   =========================================== */

@media (max-width: 767px) {
  .media-coverage {
    padding: 2rem 0 !important;
    width: 100% !important;
  }
  
  .media-coverage h2 {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
    text-align: center !important;
    margin-bottom: 1.5rem !important;
    color: white !important;
  }
  
  .media-coverage p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    text-align: center !important;
    margin-bottom: 1.5rem !important;
    color: white !important;
  }
  
  .media-coverage button {
    width: 100% !important;
    padding: 16px 24px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    min-height: 48px !important;
    border: none !important;
    border-radius: 8px !important;
    background-color: #e30075 !important;
    color: white !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 1rem 0 !important;
  }
  
  .media-coverage button:hover {
    background-color: #060f23 !important;
    transform: translateY(-2px) !important;
  }
}

/* ===========================================
   MEDIA COVERAGE FOOTER MOBILE
   =========================================== */

@media (max-width: 767px) {
  .media-coverage-footer {
    width: auto !important;
    text-align: center !important;
    padding: 20px 25px !important;
    margin-top: 2rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 50px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px) !important;
    position: relative !important;
    overflow: hidden !important;
    display: inline-block !important;
    max-width: 90% !important;
  }
  
  .media-coverage-footer::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(45deg, rgba(227, 0, 117, 0.08), rgba(255, 255, 255, 0.03)) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    border-radius: 50px !important;
  }
  
  .media-coverage-footer:active::before {
    opacity: 1 !important;
  }
  
  .media-coverage-footer p {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 400 !important;
    position: relative !important;
    z-index: 2 !important;
    display: inline !important;
  }
  
  .media-coverage-footer a {
    color: #e30075 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    display: inline-block !important;
    padding: 6px 12px !important;
    border: 1px solid #e30075 !important;
    border-radius: 20px !important;
    margin-left: 6px !important;
    transition: all 0.3s ease !important;
    min-height: 44px !important;
    position: relative !important;
    z-index: 2 !important;
    background: rgba(255, 255, 255, 0.05) !important;
  }
  
  .media-coverage-footer a:hover,
  .media-coverage-footer a:active {
    background-color: #e30075 !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(227, 0, 117, 0.2) !important;
  }
}

/* ===========================================
   FOOTER MOBILE
   =========================================== */

@media (max-width: 767px) {
  .footer {
    height: auto !important;
    padding: 2rem 0 !important;
  }
  
  .footer-container {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.5rem !important;
    height: auto !important;
    padding: 0 1rem !important;
  }
  
  .footer-container a {
    height: auto !important;
  }
  
  .footer-container a img {
    height: 40px !important;
    width: auto !important;
    padding: 0 !important;
  }
  
  .link-footer {
    position: static !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
  }
  
  .link-footer ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    transform: none !important;
  }
  
  .link-footer li {
    text-align: center !important;
  }
  
  .link-footer a {
    color: white !important;
    text-decoration: none !important;
    font-size: 0.875rem !important;
    padding: 0.5rem !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .ms-footer {
    display: flex !important;
    justify-content: center !important;
  }
  
  .ms-footer img {
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
  }
}

/* ===========================================
   BACK TO TOP MOBILE
   =========================================== */

@media (max-width: 767px) {
  .backtotop {
    position: fixed !important;
    bottom: 1rem !important;
    right: 1rem !important;
    width: 48px !important;
    height: 48px !important;
    background-color: #e30075 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100 !important;
    transition: all 0.3s ease !important;
  }
  
  .backtotop img {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
  }
}

/* ===========================================
   TOUCH INTERACTIONS MOBILE
   =========================================== */

@media (max-width: 767px) {
  /* Touch-friendly interactions */
  a, button, input, select, textarea {
    min-height: 44px !important;
    touch-action: manipulation !important;
  }
  
  /* Focus visible amélioré */
  a:focus,
  button:focus,
  input:focus,
  select:focus,
  textarea:focus {
    outline: 2px solid #e30075 !important;
    outline-offset: 2px !important;
  }
  
  /* Animations optimisées mobile */
  .reveal,
  .revealS,
  .revealL,
  .revealD,
  .revealSD {
    transition-duration: 0.2s !important;
  }
}

/* ===========================================
   PREFERS REDUCED MOTION
   =========================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .reveal [class*="reveal-"],
  .revealS [class*="revealS-"],
  .revealL [class*="revealL-"],
  .revealD [class*="revealD-"],
  .revealSD [class*="revealSD-"] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
