/* FILE: footer.css — Premium minimal copper */

/* (Facultatif) Fallback des variables si non définies dans global.css */
:root{
  --offwhite: #f3f3f3;
--copper: #C8A86B; /* gold champagne (primary) */
  --contact-title-offset: clamp(16px, 3vh, 40px); /* offset du titre CONTACT */
}

/* ===== Wrapper & typo (transparent background) ===== */
.elite-footer-section{
  background: transparent !important;
  color: var(--offwhite);
  padding-top: 180px !important;
  padding-bottom: 0 !important;
  position: relative;
}

#contact {
  padding-top: 180px !important;
}

.elite-footer-section::before{
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 48px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0));
  pointer-events: none;
}
.elite-footer-section .container-footer{
  max-width:1200px; margin:0 auto; padding:0 clamp(20px,4vw,32px);
}
.footer-title{
 font-family: "InterVariable", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
 text-align: center;
 margin: var(--contact-title-offset, 24px) 0 .6rem;
 font-weight: 800;
 letter-spacing: .08em;
 font-size: clamp(28px, 5vw, 48px);
 text-transform: uppercase;
 color: var(--copper);
}

.footer-subtext{ text-align:center; color:rgba(245,245,245,.86); margin:.1rem 0 .2rem; }
.footer-subtext.small{ opacity:.9; font-size:.95rem; }

/* ===== Grille des infos ===== */
.footer-info-columns{
  display:grid; grid-template-columns: repeat(3, minmax(260px,1fr));
  grid-auto-rows: 1fr;
  gap:32px !important;
  margin:32px 0 24px !important;
  align-items:stretch;
}
@media (max-width:920px){ .footer-info-columns{ grid-template-columns:1fr; gap:24px !important; } }

.footer-box{
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 28px !important;
  background: transparent !important;
  border: 2px solid color-mix(in oklab, var(--copper) 65%, #fff);
  box-shadow: none !important;
  border-radius: 20px;
  transition: transform .18s ease, border-color .18s ease;
}
.footer-box:hover{
  transform: translateY(-2px);
  border-color: var(--copper);
}
.footer-box h4{ 
  margin: 0 0 .8rem !important;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--copper);
  font-size: clamp(16px, 1.4vw, 18px) !important;
  text-transform: uppercase;
}

.footer-box p{
  margin: 0;
  font-size: clamp(15px, 1.25vw, 17px) !important;
  line-height: 1.75 !important;
  color: rgba(245,245,245,.95);
}

/* ===== CTA row (hidden for cleaner look) ===== */
.footer-cta-row{
  display: none !important;
}
.chip-btn{
  display: inline-flex;
  align-items: center;
  gap: .5ch;
  padding: .58rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.14);
  background: transparent !important;
  color: var(--offwhite);
  text-decoration: none;
  box-shadow: none !important;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, filter .18s ease;
}
.chip-btn:hover{ transform:translateY(-1px); border-color:rgba(255,255,255,.22); background:rgba(255,255,255,.08); }
.chip-btn:active{ transform:none; filter:saturate(.98); }
.chip-btn--accent{
  border-color: color-mix(in oklab, var(--copper) 55%, #fff);
  background: linear-gradient(180deg, #D6C08A 0%, #C8A86B 60%, #A88D53 100%);
  color: #1b120c;
}


/* ===== Map responsive (jamais coupée) ===== */
.elite-map-wrapper-premium{
  margin: 12px 0 24px;
  border-radius:16px; overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 22px 60px rgba(0,0,0,.33);
  position: relative; isolation: isolate;
}
.elite-map-wrapper-premium::before{
  content:""; position:absolute; inset:0 0 auto 0; height:28px;
  pointer-events:none;
  background: linear-gradient(to bottom, rgba(13,13,13,.55), rgba(13,13,13,0));
  z-index:1;
}
.elite-map-iframe-premium{
  width:100%; height:min(56vh,560px); border:0; display:block;
}
@media (max-width:640px){ .elite-map-iframe-premium{ height:360px; } }

/* Lien mobile “ouvrir Maps” */
.map-mobile-link{
  display:none; margin:12px auto 0; width:fit-content; text-decoration:none;
  color: color-mix(in oklab, var(--copper) 82%, var(--offwhite));
  border:1px solid color-mix(in oklab, var(--copper) 55%, var(--offwhite));
  padding:.55rem .9rem; border-radius:999px;
}
@media (max-width:640px){ .map-mobile-link{ display:inline-flex; } }

/* Réseaux */
.footer-social{ display:flex; justify-content:center; gap:14px; margin:16px 0 0; }
.footer-social img{ width:28px; height:28px; display:block; opacity:.95; transition:opacity .18s ease; }
.footer-social a:hover img{ opacity:1; }

/* Bas de page */
.footer-bottom{
  margin-top:22px; border-top:1px solid rgba(255,255,255,.10);
  display:flex; align-items:center; justify-content:center; gap:14px;
  padding:14px 12px 24px; color:rgba(245,245,245,.8);
}
.footer-bottom .back-to-top{
  color: color-mix(in oklab, var(--copper) 85%, #fff); text-decoration:none; font-weight:600;
}
.footer-bottom .back-to-top:hover{ text-decoration:underline; }
/* ===== Links — no underline, same color on hover/focus ===== */
.elite-footer-section a {
  text-decoration: none;
}

.elite-footer-section a:hover,
.elite-footer-section a:focus,
.elite-footer-section a:active {
  text-decoration: none;
  color: inherit;          /* garde la même couleur qu’à l’état normal */
}

/* Optionnel: si tu veux quand même un feedback d’accessibilité au clavier */
.elite-footer-section a:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255,255,255,.08), 0 0 0 5px color-mix(in oklab, var(--copper) 40%, #000);
  border-radius: 10px;
}

/* Spécifique aux cartes (remplace l’ancienne règle qui mettait un underline) */
.footer-box a:hover { text-decoration: none; color: inherit; }

/* Pour les chips/boutons, on garde la même couleur de texte au hover */
.chip-btn:hover { color: inherit; }
/* === Footer — Champagne Gold overrides === */
:root{
  --copper: #C8A86B;   /* principal */
}

/* liens et petits accents tirent vers l’or */
.footer-box a,
.map-mobile-link,
.footer-bottom .back-to-top{
  color: color-mix(in oklab, var(--copper) 82%, var(--offwhite));
  border-color: color-mix(in oklab, var(--copper) 55%, var(--offwhite));
}
.footer-box a:hover,
.map-mobile-link:hover,
.footer-bottom .back-to-top:hover{
  color: var(--copper);
  text-decoration: none;
}

/* chips neutres → bordure or doux au hover */
.chip-btn:hover{
  border-color: color-mix(in oklab, var(--copper) 45%, #fff);
}

/* focus ring accessibilité en or */
.elite-footer-section a:focus-visible{
  box-shadow: 0 0 0 3px rgba(255,255,255,.08),
              0 0 0 5px color-mix(in oklab, var(--copper) 40%, #000);
}
/* === Map — taille plus petite et responsive === */
.elite-map-wrapper-premium{
  /* largeur max + centrage */
  --map-max-w: 880px;      /* ← ajuste: 720–960px selon ton goût */
  --map-pad:   0px;        /* padding interne si tu veux respirer */
  max-width: var(--map-max-w);
  width: min(var(--map-max-w), 90vw);
  margin: 18px auto 0;
  padding: var(--map-pad);
  border-radius: 18px;
  overflow: hidden;                 /* arrondis appliqués à l’iframe */
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
}

/* iframe 100% du wrapper + hauteur contrôlée */
.elite-map-iframe-premium{
  display: block;
  width: 100%;
  height: clamp(240px, 36vh, 420px); /* ← ajuste la hauteur mini/ratio/max */
  border: 0;
}

/* encore plus compact sur mobile */
@media (max-width: 640px){
  .elite-map-wrapper-premium{
    --map-max-w: 560px;    /* cap plus serré */
    border-radius: 14px;
    box-shadow: 0 12px 38px rgba(0,0,0,.35);
  }
  .elite-map-iframe-premium{
    height: clamp(200px, 34vh, 320px);
  }
}
/* === CONTACT / LOCALISATION — Patch premium === */

/* 1) Headings + sous-texte : un peu plus compacts */
.elite-footer-section .footer-title{
  text-align:center;
  font-size: clamp(22px, 2.8vw, 32px);
  margin: 0 0 .25rem 0;
}
.elite-footer-section .footer-subtext{
  text-align:center;
  max-width: 70ch;
  margin: .2rem auto .6rem;
  line-height: 1.5;
  opacity: .92;
}

/* 2) Colonnes info : align clean + respiration */
.elite-footer-section .footer-info-columns{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(16px, 2.2vw, 28px);
  margin: clamp(10px, 2vw, 18px) auto clamp(6px, 1.4vw, 12px);
  max-width: 1100px;
}
@media (max-width: 840px){
  .elite-footer-section .footer-info-columns{ grid-template-columns: 1fr; text-align: center; }
}
.elite-footer-section .footer-box h4{ margin: 0 0 .25rem; }

/* Liens “texte only” (pas d’underline), cuivre au hover */
.elite-footer-section a{
  color: rgba(245,245,245,.96);
  text-decoration: none !important;
  transition: color .18s ease, opacity .18s ease;
}
.elite-footer-section a:hover,
.elite-footer-section a:focus-visible{
  color: var(--copper);
  outline: none;
}

/* 3) BOUTONS : on retire la rangée (Itinéraire/Appeler/Réserver) */
.elite-footer-section .footer-cta-row{
  display: none !important;
}

/* 4) MAP plus PETITE + centrée */
.elite-map-wrapper-premium{
  --map-max-w: 820px;                 /* ← ajuste 720–900px si tu veux */
  max-width: var(--map-max-w);
  width: min(var(--map-max-w), 90vw);
  margin: clamp(10px, 2vw, 20px) auto 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
}
.elite-map-iframe-premium{
  display:block;
  width:100%;
  height: clamp(240px, 34vh, 380px);  /* ← hauteur compacte & réactive */
  border:0;
}
@media (max-width:640px){
  .elite-map-wrapper-premium{ border-radius: 14px; }
  .elite-map-iframe-premium{ height: clamp(200px, 36vh, 320px); }
}

/* 5) Bas de section : centrage propre */
.elite-footer-section .footer-bottom{
  margin: clamp(12px, 2.2vw, 18px) auto 0;
  text-align: center;
  opacity: .95;
}

/* 6) Petit polish des puces/labels */
.elite-footer-section .footer-box h4{
  letter-spacing: .02em;
  font-weight: 700;
}
.elite-footer-section .footer-subtext.small{ opacity: .88; }
/* Desktop: ensure original layout is preserved */
@media (min-width: 769px){
  .elite-footer-section{
    padding: clamp(88px, 10vw, 140px) 0 0;
  }
  
  .footer-info-columns{
    grid-template-columns: repeat(3, minmax(260px, 1fr));
  }
  
  .footer-box{
    text-align: left;
  }
}

/* Mobile improvements for Contact section */
@media (max-width: 768px){
  .elite-footer-section{
    padding: 80px 0 50px !important;
    background: transparent !important;
  }
  
  .elite-footer-section .container-footer{
    padding: 0 16px !important;
    max-width: 100%;
    width: 100%;
  }
  
  .footer-title{
    font-size: 28px !important; /* FIXE - comme iPhone 14 */
    margin: 0 0 28px !important; /* FIXE */
    padding: 0;
    letter-spacing: 0.12em !important; /* FIXE */
    font-weight: 900 !important;
    text-align: center;
  }
  
  .footer-info-columns{
    gap: 14px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    grid-template-columns: 1fr !important;
    width: 100%;
    max-width: 100%;
  }
  
  .footer-box{
    padding: 22px 18px !important;
    text-align: center !important;
    border-radius: 10px !important;
    min-height: 140px !important;
    max-height: 140px !important;
    height: 140px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    border: 2px solid color-mix(in oklab, var(--copper) 65%, #fff) !important;
    background: rgba(0,0,0,0.4) !important;
    backdrop-filter: blur(12px);
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
    transition: all 0.3s ease;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    position: relative !important;
  }
  
  .footer-box > *{
    position: relative !important;
    z-index: 1 !important;
  }
  
  .footer-box:hover{
    transform: translateY(-2px);
    background: rgba(0,0,0,0.4) !important;
    border-color: var(--copper) !important;
  }
  
  .footer-box h4{
    font-size: 15px !important; /* FIXE - comme iPhone 14 */
    margin: 0 0 12px !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important; /* FIXE */
    color: #D4AF7A !important;
    text-transform: uppercase;
    white-space: normal;
    width: 100%;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  }
  
  /* Force tous les h4 à être identiques */
  .footer-info-columns .footer-box:nth-child(1) h4,
  .footer-info-columns .footer-box:nth-child(2) h4,
  .footer-info-columns .footer-box:nth-child(3) h4{
    margin: 0 0 12px !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    padding: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  
  .footer-box h4 span{
    margin: 0 !important;
    padding: 0 !important;
    display: inline !important;
  }
  
  /* Force le h4 en position absolue pour alignement identique */
  .footer-box h4{
    position: absolute !important;
    top: 22px !important;
    left: 0 !important;
    right: 0 !important;
    text-align: center !important;
  }
  
  .footer-box p{
    font-size: 13px !important; /* FIXE - comme iPhone 14 */
    margin: 0 !important;
    margin-top: 40px !important;
    line-height: 1.6 !important;
    color: rgba(255,255,255,0.95) !important;
    width: 100%;
    text-align: center;
    word-break: break-word !important; /* Coupe l'email si trop long */
    overflow-wrap: break-word !important; /* Sécurité supplémentaire */
  }

  .footer-box p br{
    display: block;
    content: "";
    margin: 2px 0;
  }

  .footer-box a{
    color: rgba(255,255,255,0.95) !important;
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-word !important; /* Email s'adapte */
    overflow-wrap: break-word !important;
  }

  .footer-box a:hover{
    color: var(--copper) !important;
  }
  
  .elite-map-wrapper-premium{
    width: 100% !important;
    max-width: 100% !important;
    margin: 20px 0 !important;
    border-radius: 10px !important;
    box-sizing: border-box;
  }
  
  .elite-map-iframe-premium{
    height: clamp(240px, 40vh, 360px) !important;
    width: 100%;
  }
  
  .map-mobile-link{
    font-size: 15px !important;
    padding: 12px 20px !important;
    margin: 16px auto 20px !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: fit-content !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    position: relative !important;
  }
  
  .footer-social{
    margin: 20px 0;
  }
  
  .footer-social img{
    width: 32px;
    height: 32px;
  }
  
  .footer-bottom{
    padding: 16px 12px 28px;
    font-size: 14px;
  }
}

/* Force Inter dans tout le bloc footer */
.elite-footer-section,
.elite-footer-section *{
  font-family: var(--font-body) !important;
}

/* Titres du footer en Inter aussi */
.footer-title{
  font-family: var(--font-body) !important;
}
/* 1) Titre du footer en Inter (remplace l'ancienne règle) */
.footer-title{
  text-align:center;
  margin:var(--contact-title-offset, 24px) 0 .35rem;
  font-family: var(--font-body) !important;   /* ← Inter */
  font-weight: 800;
  letter-spacing: .02em;
  font-size: clamp(26px,3.2vw,40px);
}

/* 2) OVERRIDE INTER – À METTRE TOUT EN BAS DE footer.css */
#contact.elite-footer-section,
#contact.elite-footer-section :where(*):not(svg):not(i):not([class*="icon"]):not([class*="fa-"]):not(code):not(kbd):not(pre){
  font-family: var(--font-body) !important;   /* ← force Inter partout dans le bloc */
}

/* titres internes en Inter aussi */
#contact .footer-box h4{
  font-family: var(--font-body) !important;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
/* === FORCE INTER IN CONTACT/FOOTER ========================== */
#contact.elite-footer-section,
#contact.elite-footer-section :where(*):not(svg):not(i):not([class*="icon"]):not([class*="fa-"]):not(code):not(kbd):not(pre){
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}

/* Titles in Inter (no small-caps so it looks “Inter”, not serif-ish) */
#contact .footer-title,
#contact .footer-box h4{
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-weight: 700 !important;
  font-variant-caps: normal !important;  /* kill small-caps */
  text-transform: uppercase;             /* keep the CAPS look */
  letter-spacing: .08em;
}

/* Links/buttons in Inter too (some blocks re-apply fonts) */
#contact a,
#contact .chip-btn{
  font-family: inherit !important;
}
/* === CONTACT — FORCE INTER VRAIMENT PARTOUT ================== */
/* 1) Tout le bloc en Inter, même si des fichiers avant forcent une serif */
#contact.elite-footer-section,
#contact.elite-footer-section :where(*):not(svg):not(i):not([class*="icon"]):not([class*="fa-"]):not(code):not(kbd):not(pre){
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}

/* 2) Neutralise les petites capitales / features typographiques qui “donnent un look serif” */
#contact .footer-title,
#contact .footer-box h4,
#contact .footer-box p,
#contact a,
#contact .chip-btn{
  font-variant-caps: normal !important;
  font-feature-settings: normal !important;
  letter-spacing: .02em;       /* petit tracking propre */
}

/* 3) Titres du footer = Inter + graisses cohérentes */
#contact .footer-title{
  font-weight: 800 !important; /* si tu préfères: 700 */
  text-transform: none !important;  /* ou 'uppercase' si tu veux tout caps */
}
#contact .footer-box h4{
  font-weight: 700 !important;
  text-transform: uppercase;        /* option: commente si tu n’en veux pas */
  letter-spacing: .08em;
}
/* TITRE DE SECTION - INTER */
.section-title {
  font-family: "InterVariable", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: clamp(36px, 5vw, 54px);
  letter-spacing: 0.4px;
  font-weight: 700;
}

/* NOM DU BARBIER - INTER */
.barber-name {
  font-family: "InterVariable", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
}

/* DESCRIPTION DU BARBIER - INTER */
.barber-role,
.barber-bio {
  font-family: "InterVariable", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 14px;
  opacity: 0.85;
}

/* CTA Réserver - INTER */
.barber-card a {
  font-family: "InterVariable", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-weight: 600;
  letter-spacing: 0.6px;
}
/* === FOOTER / CONTACT — INTER LOCK (append at end of footer.css) === */

/* 0) s'assure que la variable pointe vers Inter variable si dispo */
:root{
  --font-body: "InterVariable", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* 1) Inter partout dans le bloc #contact */
#contact.elite-footer-section,
#contact.elite-footer-section :where(*):not(svg):not(i):not([class*="icon"]):not([class*="fa-"]):not(code):not(kbd):not(pre){
  font-family: var(--font-body) !important;
  font-variant-caps: normal !important;
  font-feature-settings: normal !important;
}

/* 2) Titres & labels (Inter, graisses propres) */
#contact .footer-title{
  font-family: var(--font-body) !important;
  font-weight: 800 !important;
  letter-spacing: .04em;
  text-transform: uppercase; /* retire si tu ne veux pas les CAPS */
}
#contact .footer-box h4{
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* 3) Texte et liens héritent d’Inter (pas d’underline forcé ailleurs) */
#contact p,
#contact a,
#contact .chip-btn,
#contact .footer-subtext{
  font-family: inherit !important;
}

/* 4) Micro-tuning mobile: tracking un peu réduit */
@media (max-width:640px){
  #contact .footer-title{ letter-spacing: .035em; }
  #contact .footer-box h4{ letter-spacing: .06em; }
}


/* ========================================
   🔥 MOBILE SPACING FIX - FINAL OVERRIDE
   MUST BE LAST IN FILE
   ======================================== */
@media (max-width: 768px) {
  .elite-footer-section,
  #contact,
  section#contact,
  #contact.elite-footer-section {
    padding-top: 180px !important;
  }
}

@media (max-width: 640px) {
  .elite-footer-section,
  #contact,
  section#contact,
  #contact.elite-footer-section {
    padding-top: 180px !important;
  }
}
