/* ===================================================================
   FOOTER MAYAGE - VERSION CORRIGÉE
   CORRECTIFS : Flèches + Newsletter + Lien Leb Communication
   ===================================================================== */

/* ===================================================================
   VARIABLES CSS FOOTER
   ===================================================================== */

   :root {
    /* Couleurs spécifiques au footer */
    --footer-bg-main: #2c3e50;
    --footer-bg-bottom: #1a252f;
    --footer-text-primary: #ffffff;
    --footer-text-secondary: #bdc3c7;
    --footer-text-muted: #95a5a6;
    --footer-border: rgba(255, 255, 255, 0.1);
    --footer-hover: var(--mayage-blue-light);
    --footer-accent: var(--mayage-green-dark);
    
    /* NOUVEAU : Couleur pour le lien Leb Communication */
    --footer-leb-color: #95c11f; /* Vert Mayage */
  }
  
  /* ===================================================================
     STRUCTURE PRINCIPALE DU FOOTER
     ===================================================================== */
  
  .mayage-footer {
    background: var(--footer-bg-main);
    color: var(--footer-text-primary);
    margin-top: auto;
    position: relative;
  }
  
  .mayage-footer__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  /* ===================================================================
     SECTION PRINCIPALE DU FOOTER
     ===================================================================== */
  
  .mayage-footer__main {
    padding: 4rem 0 3rem 0;
    border-bottom: 1px solid var(--footer-border);
  }
  
  .mayage-footer__content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
  
  .mayage-footer__col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  /* ===================================================================
     COLONNE MARQUE (Logo + Description + Réseaux)
     ===================================================================== */
  
  .mayage-footer__col--brand {
    padding-right: 1rem;
  }
  
  .mayage-footer__logo-link {
    display: block;
    line-height: 0;
    transition: opacity 0.3s ease;
  }
  
  .mayage-footer__logo-link:hover {
    opacity: 0.8;
  }
  
  .mayage-footer__logo-img {
    height: 50px;
    width: auto;
    max-width: 180px;
    filter: brightness(0) invert(1); /* Rendre le logo blanc */
  }
  
  .mayage-footer__description p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--footer-text-secondary);
    margin: 0;
  }
  
  /* Réseaux sociaux */
  .mayage-footer__social-title {
    font-family: var(--font-logo);
    font-size: 1rem;
    font-weight: 600;
    color: var(--footer-text-primary);
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .mayage-footer__social-links {
    display: flex;
    gap: 0.75rem;
  }
  
  .mayage-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--footer-text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
  }
  
  .mayage-footer__social-link:hover {
    background: var(--footer-hover);
    color: var(--footer-text-primary);
    transform: translateY(-2px);
  }
  
  /* Couleurs spécifiques par réseau */
  .mayage-footer__social-link[href*="facebook"]:hover {
    background: #1877f2;
  }
  
  .mayage-footer__social-link[href*="twitter"]:hover,
  .mayage-footer__social-link[href*="x.com"]:hover {
    background: #000000;
  }
  
  .mayage-footer__social-link[href*="linkedin"]:hover {
    background: #0077b5;
  }
  
  .mayage-footer__social-link[href*="youtube"]:hover {
    background: #ff0000;
  }
  
  .mayage-footer__social-link[href*="instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  }
  
  /* ===================================================================
     TITRES DES COLONNES
     ===================================================================== */
  
  .mayage-footer__col-title {
    font-family: var(--font-logo);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--footer-text-primary);
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--footer-accent);
    padding-bottom: 0.5rem;
  }
  
  .mayage-footer__col-title i {
    color: var(--footer-accent);
    font-size: 1rem;
  }
  
  /* ===================================================================
     COLONNE CONTACT
     ===================================================================== */
  
  .mayage-footer__contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  
  .mayage-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background-color 0.3s ease;
  }
  
  .mayage-footer__contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .mayage-footer__contact-item i {
    color: var(--footer-accent);
    font-size: 1rem;
    margin-top: 0.2rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
  }
  
  .mayage-footer__contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
  }
  
  .mayage-footer__contact-details strong {
    font-family: var(--font-logo);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--footer-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .mayage-footer__contact-details span,
  .mayage-footer__contact-details a {
    font-size: 0.9rem;
    color: var(--footer-text-secondary);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s ease;
  }
  
  .mayage-footer__contact-details a:hover {
    color: var(--footer-hover);
  }
  
  /* Bouton CTA Contact */
  .mayage-footer__contact-cta {
    margin-top: 0.5rem;
  }
  
  .mayage-footer__contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--mayage-red) 0%, #e74c3c 100%);
    color: var(--footer-text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
  }
  
  .mayage-footer__contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.4);
    color: var(--footer-text-primary);
  }
  
  /* ===================================================================
     COLONNE LIENS RAPIDES - FLÈCHES CORRIGÉES POUR APPLE
     ===================================================================== */
  
  .mayage-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .mayage-footer__menu li {
    margin: 0;
  }
  
  .mayage-footer__menu a {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--footer-text-secondary);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 1.5rem;
  }
  
  /* CORRIGÉ : Flèches compatibles Apple/Safari */
  .mayage-footer__menu a::before {
    content: '→'; /* Flèche Unicode standard au lieu de ▶ */
    position: absolute;
    left: 0;
    color: var(--footer-accent);
    font-size: 0.9rem; /* Taille plus lisible */
    font-weight: bold;
    transition: transform 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif; /* Police système Apple */
  }
  
  .mayage-footer__menu a:hover {
    color: var(--footer-text-primary);
    padding-left: 2rem;
  }
  
  .mayage-footer__menu a:hover::before {
    transform: translateX(0.5rem);
  }
  
  /* Fallback pour les navigateurs qui ne supportent pas les flèches Unicode */
  @supports not (content: '→') {
    .mayage-footer__menu a::before {
      content: '>';
      font-size: 0.8rem;
    }
  }
  
  /* ===================================================================
     COLONNE INFORMATIONS
     ===================================================================== */
  
  /* Horaires */
  .mayage-footer__hours-title,
  .mayage-footer__newsletter-title {
    font-family: var(--font-logo);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--footer-text-primary);
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .mayage-footer__hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
  }
  
  .mayage-footer__hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .mayage-footer__hours-item:last-child {
    border-bottom: none;
  }
  
  .mayage-footer__hours-day {
    color: var(--footer-text-secondary);
    font-weight: 500;
  }
  
  .mayage-footer__hours-time {
    color: var(--footer-text-primary);
    font-weight: 600;
  }
  
  /* ===================================================================
     NEWSLETTER - SUPPRESSION DU DÉCALAGE
     ===================================================================== */
  
  .mayage-footer__newsletter {
    margin-top: 1rem;
  }
  
  .mayage-footer__newsletter-text {
    font-size: 0.85rem;
    color: var(--footer-text-secondary);
    margin: 0 0 1rem 0;
    line-height: 1.4;
  }
  
  /* CORRIGÉ : Suppression du décalage entre champ et bouton */
  .mayage-footer__newsletter-input-group {
    display: flex;
    border-radius: 25px;
    overflow: hidden;
    /* background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2); */
    transition: border-color 0.3s ease;
    /* NOUVEAU : Suppression des gaps/espaces */
    gap: 3% !important;
    margin: 0;
    padding: 0;
  }
  
  .mayage-footer__newsletter-input-group:focus-within {
    border-color: var(--footer-hover);
  }
  
  .mayage-footer__newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--footer-text-primary);
    font-size: 0.9rem;
    outline: none;
    /* NOUVEAU : Suppression des marges */
    margin: 0;
    /* NOUVEAU : Alignement parfait */
    border-radius: 0;
    height: auto;
  }
  
  .mayage-footer__newsletter-input::placeholder {
    color: var(--footer-text-muted);
  }
  
  .mayage-footer__newsletter-btn {
    background: var(--footer-accent);
    border: none;
    color: var(--footer-text-primary);
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    /* NOUVEAU : Suppression des marges et alignement parfait */
    margin: 0;
    border-radius: 0;
    height: auto;
    flex-shrink: 0;
  }
  
  .mayage-footer__newsletter-btn:hover {
    background: var(--footer-hover);
    transform: scale(1.05);
  }
  
  /* ===================================================================
     SECTION BOTTOM (Copyright + Liens légaux)
     ===================================================================== */
  
  .mayage-footer__bottom {
    background: var(--footer-bg-bottom);
    padding: 1.5rem 0;
  }
  
  .mayage-footer__bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .mayage-footer__copyright p {
    font-size: 0.85rem;
    color: var(--footer-text-muted);
    margin: 0;
  }
  
  .mayage-footer__copyright strong {
    color: var(--footer-text-primary);
    font-weight: 600;
  }
  
  /* Liens légaux */
  .mayage-footer__legal-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  
  .mayage-footer__legal-menu li {
    margin: 0;
  }
  
  .mayage-footer__legal-menu a {
    font-size: 0.8rem;
    color: var(--footer-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
  }
  
  .mayage-footer__legal-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--footer-hover);
    transition: width 0.3s ease;
  }
  
  .mayage-footer__legal-menu a:hover {
    color: var(--footer-text-primary);
  }
  
  .mayage-footer__legal-menu a:hover::after {
    width: 100%;
  }
  
  /* ===================================================================
     CRÉDITS - COULEUR LEB COMMUNICATION CORRIGÉE
     ===================================================================== */
  
  .mayage-footer__credits p {
    font-size: 0.8rem;
    color: var(--footer-text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  
  .mayage-footer__credits i {
    color: var(--mayage-red);
    animation: heartbeat 2s ease-in-out infinite;
  }
  
  /* NOUVEAU : Style spécifique pour le lien Leb Communication */
  .mayage-footer__leb-link {
    color: var(--footer-leb-color) !important;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .mayage-footer__leb-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--footer-leb-color);
    transition: width 0.3s ease;
  }
  
  .mayage-footer__leb-link:hover {
    color: var(--mayage-green-light) !important;
    transform: translateY(-1px);
  }
  
  .mayage-footer__leb-link:hover::after {
    width: 100%;
    background: var(--mayage-green-light);
  }
  
  @keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
  }
  
  /* ===================================================================
     BOUTON RETOUR EN HAUT
     ===================================================================== */
  
  .mayage-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--mayage-red);
    border: none;
    border-radius: 50%;
    color: var(--footer-text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(233, 74, 66, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
  }
  
  .mayage-back-to-top:hover {
    background: #d63031;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(233, 74, 66, 0.6);
  }
  
  .mayage-back-to-top:focus {
    outline: 2px solid var(--footer-hover);
    outline-offset: 2px;
  }
  
  /* ===================================================================
     RESPONSIVE DESIGN
     ===================================================================== */
  
  /* Tablette (max-width: 1024px) */
  @media (max-width: 1024px) {
    .mayage-footer__content {
      grid-template-columns: 1fr 1fr;
      gap: 2.5rem;
    }
    
    .mayage-footer__col--brand {
      padding-right: 0;
    }
    
    .mayage-footer__main {
      padding: 3.5rem 0 2.5rem 0;
    }
    
    .mayage-footer__container {
      padding: 0 1.5rem;
    }
  }
  
  /* Tablette portrait (max-width: 768px) */
  @media (max-width: 768px) {
    .mayage-footer__content {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    
    .mayage-footer__main {
      padding: 3rem 0 2rem 0;
    }
    
    .mayage-footer__container {
      padding: 0 1rem;
    }
    
    .mayage-footer__bottom-content {
      flex-direction: column;
      text-align: center;
      gap: 1rem;
    }
    
    .mayage-footer__legal-menu {
      justify-content: center;
      gap: 1rem;
    }
    
    .mayage-footer__social-links {
      justify-content: center;
    }
    
    .mayage-back-to-top {
      bottom: 1.5rem;
      right: 1.5rem;
      width: 45px;
      height: 45px;
    }
  }
  
  /* Mobile (max-width: 480px) */
  @media (max-width: 480px) {
    .mayage-footer__main {
      padding: 2.5rem 0 1.5rem 0;
    }
    
    .mayage-footer__container {
      padding: 0 0.75rem;
    }
    
    .mayage-footer__content {
      gap: 1.5rem;
    }
    
    .mayage-footer__col-title {
      font-size: 1rem;
    }
    
    .mayage-footer__contact-item {
      padding: 0.5rem;
    }
    
    /* RESPONSIVE NEWSLETTER CORRIGÉE */
    .mayage-footer__newsletter-input-group {
      flex-direction: column;
      border-radius: 8px;
      gap: 10px !important; /* Pas d'espace même en mobile */
    }
    
    .mayage-footer__newsletter-input {
      border-radius: 8px 8px 0 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .mayage-footer__newsletter-btn {
      border-radius: 0 0 8px 8px;
      padding: 0.75rem;
    }
    
    .mayage-footer__legal-menu {
      flex-direction: column;
      gap: 0.5rem;
    }
    
    .mayage-back-to-top {
      bottom: 1rem;
      right: 1rem;
      width: 40px;
      height: 40px;
      font-size: 1rem;
    }
  }
  
  /* ===================================================================
     ACCESSIBILITÉ
     ===================================================================== */
  
  /* Focus states améliorés */
  .mayage-footer__social-link:focus,
  .mayage-footer__contact-btn:focus,
  .mayage-footer__menu a:focus,
  .mayage-footer__legal-menu a:focus,
  .mayage-footer__newsletter-input:focus,
  .mayage-footer__newsletter-btn:focus,
  .mayage-footer__leb-link:focus {
    outline: 2px solid var(--footer-hover);
    outline-offset: 2px;
  }
  
  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .mayage-footer__social-link,
    .mayage-footer__contact-btn,
    .mayage-footer__menu a,
    .mayage-footer__newsletter-btn,
    .mayage-back-to-top,
    .mayage-footer__credits i,
    .mayage-footer__leb-link {
      transition: none;
      animation: none;
    }
  }
  
  /* High contrast mode */
  @media (prefers-contrast: high) {
    .mayage-footer {
      background: #000000;
      color: #ffffff;
    }
    
    .mayage-footer__bottom {
      background: #111111;
    }
    
    .mayage-footer__contact-item,
    .mayage-footer__hours-list,
    .mayage-footer__newsletter-input-group {
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid #ffffff;
    }
  }
  
  /* ===================================================================
     STYLES COMPLÉMENTAIRES POUR LES RÉSEAUX SOCIAUX
     ===================================================================== */
  
  /* Styles pour les icônes des réseaux sociaux */
  .mayage-contact-info__social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
  }
  
  .mayage-contact-info__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #2c3d50; /* Gris Mayage */
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: solid 1px white;
  }
  
  .mayage-contact-info__social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    text-decoration: none;
    border: none;
  }
  
  /* Couleurs spécifiques au survol pour chaque réseau */
  .mayage-contact-info__social-link:hover {
    background-color: #e94a42; /* Rouge Mayage par défaut */
  }
  
  /* Couleurs spécifiques par réseau social au survol */
  .mayage-contact-info__social-link[aria-label="Facebook"]:hover {
    background-color: #1877f2;
  }
  
  .mayage-contact-info__social-link[aria-label="Twitter"]:hover,
  .mayage-contact-info__social-link[aria-label="X"]:hover {
    background-color: #1da1f2;
  }
  
  .mayage-contact-info__social-link[aria-label="LinkedIn"]:hover {
    background-color: #0077b5;
  }
  
  .mayage-contact-info__social-link[aria-label="YouTube"]:hover {
    background-color: #ff0000;
  }
  
  .mayage-contact-info__social-link[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  }
  
  /* Icônes Font Awesome */
  .mayage-contact-info__social-link i {
    font-size: 18px;
    color: inherit;
  }
  
  /* Animation sur l'icône */
  .mayage-contact-info__social-link:hover i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
  }
  
  footer .mayage-contact-info__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--footer-text-primary);
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--footer-accent);
    padding-bottom: 0.5rem;
  }
  
  /* Responsive pour les réseaux sociaux */
  @media (max-width: 768px) {
    .mayage-contact-info__social {
        justify-content: center;
        gap: 12px;
    }
    
    .mayage-contact-info__social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
  }