/* R5 — header-footer.css. En-tête (méga-menu) et pied de page, communs à toutes les pages. */

/* « body > header » et non « header ».
   Le sélecteur nu frappait TOUT <header> du site : fond bleu nuit,
   position collante et z-index 1001 sur n'importe quel en-tête de
   section. Le guide du vendeur, qui en utilise six pour ses actes, les
   voyait flotter par-dessus la navigation, texte sombre sur fond sombre
   (signalé par Gary le 31/08/2026). page.php et sa classe
   .r5-page-header étaient logés à la même enseigne.
   L'en-tête du site est le seul <header> enfant direct du body : c'est
   par là qu'on le désigne, sans toucher au balisage. */
body > header { background: linear-gradient(135deg, var(--green-700) 0%, var(--green) 55%, var(--green-mid) 100%); position: sticky; top: 0; z-index: 1001; border-bottom: 1px solid rgba(255,255,255,0.06); }

.header-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; height: 68px; gap: 20px; }

.logo { font-family: var(--font); font-size: 22px; color: var(--white); letter-spacing: 0.08em; font-weight: normal; flex-shrink: 0; }

.logo span { color: var(--gold-light); }

nav a { color: rgba(255,255,255,0.82); font-size: 12.5px; text-decoration: none; letter-spacing: 0.03em; font-family: var(--font-sans); white-space: nowrap; }

nav a:hover { color: var(--white); }

.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.lang-toggle { display: flex; align-items: center; gap: 2px; }

.lang-btn { background: transparent; border: none; color: rgba(255,255,255,0.32); font-size: 10.5px; padding: 5px 7px; cursor: pointer; font-family: var(--font-sans); letter-spacing: 0.12em; font-weight: 600; transition: color 0.2s; position: relative; }

.lang-btn::after { content: ""; position: absolute; bottom: 2px; left: 50%; right: 50%; height: 1px; background: var(--gold-light); transition: left 0.2s, right 0.2s; }

.lang-btn.active { color: rgba(255,255,255,0.92); }

.lang-btn.active::after { left: 7px; right: 7px; }

.lang-btn:hover:not(.active) { color: rgba(255,255,255,0.6); }

.lang-separator { width: 1px; height: 10px; background: rgba(255,255,255,0.18); margin: 0 1px; }

.header-cta { background: var(--gold); color: var(--white); padding: 10px 24px; font-size: 12.5px; border: none; cursor: pointer; letter-spacing: 0.04em; font-family: var(--font-sans); white-space: nowrap; border-radius: 100px !important; }

.header-cta {
    border-radius: 999px !important;
  }

.footer-brand .logo-foot { font-family: var(--font); font-size: 20px; color: var(--white); letter-spacing: 0.08em; margin-bottom: 12px; display: block; }

.footer-brand .logo-foot span { color: var(--gold-light); }

.know-grid-header { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; padding:4px 0 24px; border-bottom:1px solid var(--border); margin-bottom:28px; }

.know-art-header { height:92px; display:flex; align-items:flex-end; padding:20px; position:relative; overflow:hidden; }

.know-art-header:after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 100%); pointer-events:none; }

.know-cat-header { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:28px; }

.know-art-card:nth-child(1) .know-art-header { height:132px; }

.r5-footer {
  background: var(--green-700);
  color: rgba(255,255,255,0.65);
  padding: 0;
  border-top: 3px solid var(--gold);
}

.r5-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 80px 0;
}

.r5-footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 1.1fr 1.15fr 1.1fr;
  gap: 28px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.r5-footer-logo {
  font-family: var(--font);
  font-size: 22px;
  color: white;
  margin-bottom: 14px;
}

.r5-footer-logo span { color: var(--gold-light); }

.r5-footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.72);
}

.r5-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  opacity: 0.78;
  font-family: var(--font-sans);
  margin-bottom: 16px;
}

/* TROIS CIBLES DE 19 PX DE HAUT, ESPACÉES DE 4 : 23 PX ENTRE CENTRES.
   Un pixel sous le minimum du critère 2.5.8 des WCAG, qui demande 24 px
   — soit en taille, soit en espacement. Sur un téléphone, viser
   l'adresse plutôt que le numéro de téléphone relevait de la chance.
   Mesuré le 01/09/2026 sur les 20 gabarits : c'était le seul défaut de
   cible tactile du site, et il était sur TOUTES les pages, puisqu'il est
   dans le pied.

   Trois pixels au-dessus et au-dessous suffisent : la cible passe à
   25 px, l'écart entre centres à 29. La typographie ne bouge pas, le
   pied grandit de six pixels. */
.r5-footer-contact > a,
.r5-footer-contact > button {
  padding-block: 3px;
}

.r5-footer-badge {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  color: rgba(255,255,255,0.4);
}

.r5-footer-col h3,
.r5-footer-col h4 {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
  font-weight: 600;
}

/* La cible tactile plutôt que la seule ligne de texte.
   Ces liens mesuraient 21 px de haut pour 10 px d'écart : conformes par
   l'exception d'espacement de WCAG, mais fiddly au pouce — et ils sont
   vingt par page, sur toutes les pages du site. On passe à 24 px de
   cible et 7 px d'écart : la somme ne bouge pas, le rythme visuel non
   plus, la cible gagne trois pixels. Audit du 31/08/2026. */
.r5-footer-col a {
  display: flex;
  align-items: center;
  min-height: 24px;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 13px;
  font-family: var(--font-sans);
  margin-bottom: 7px;
  transition: color 0.2s;
  cursor: pointer;
}

.r5-footer-col a:hover { color: white; }

.r5-footer-bottom {
  padding: 24px 0;
  font-size: 11px;
  opacity: 0.68;
  font-family: var(--font-sans);
}

.r5-footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.r5-footer-bottom a:hover { opacity: 0.8; }

.r5-social-links { display: flex; gap: 10px; margin-top: 16px; }

.r5-social-link { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.72); text-decoration: none; transition: border-color .2s, color .2s; }

.r5-social-link:hover { border-color: var(--gold-light); color: var(--gold-light); }

.r5-social-link .ico { width: 16px; height: 16px; stroke-width: 1.5; stroke: currentColor; fill: none; }

.nav-drop {
  position: relative;
}

.nav-drop > a {
  display: flex !important;
  align-items: center;
  gap: 7px;
}

/* Respiration entre les entrées : 24 px (base.css) les serrait les unes
   contre les autres, chevron compris. 40 px au large, qui redescendent
   quand la barre se resserre, pour ne pas pousser le CTA hors champ. */
.header-inner nav { gap: clamp(26px, 2.8vw, 40px); }

/* Panneaux de navigation « verre navy » — prototype work/menu-lab.html
   validé par Gary le 14/08 : verre fumé, filet d'or, kicker doré,
   tiret doré au survol, entrée en fondu. Typo et logo inchangés. */

.nav-drop > a::after {
  content: "";
  width: 5px; height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  opacity: 0.6;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-drop:hover > a::after { opacity: 1; transform: rotate(225deg) translateY(-1px); }

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 12px);
  min-width: 340px;
  padding: 8px 0 6px;
  /* Verre navy — le juste milieu validé 19/08 : plus clair et plus
     transparent que le quasi-noir d'origine, plus premium que le
     panneau blanc du design initial. Le blur fort garde le texte
     lisible sur les heros chargés. */
  background: rgba(20, 38, 70, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
  backdrop-filter: blur(28px) saturate(1.25);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.22);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s 0.32s;
}

.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

/* Pont invisible : le survol ne se perd pas entre le lien et le panneau. */
.nav-drop-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }

/* Filet d'or en tête, estompé vers les bords. */
.nav-drop-menu::after {
  content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(to right, transparent, rgba(168, 139, 99, 0.75), transparent);
}

.drop-kicker {
  display: block;
  padding: 14px 24px 10px;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-family: var(--font-sans);
}

@media (prefers-reduced-motion: reduce) {
  .nav-drop-menu, .nav-drop > a::after { transition: none !important; }
}

.pr-results-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}

.nav-drop-menu .mega-item {
  display: block !important;
  padding: 11px 24px !important;
  text-decoration: none;
  white-space: normal !important;
  transition: background 0.25s;
}

.nav-drop-menu .mega-item + .mega-item { border-top: 1px solid rgba(255, 255, 255, 0.09); }

.nav-drop-menu .mega-item:hover { background: rgba(255, 255, 255, 0.07); }

.mega-item b {
  display: flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.94) !important;
  line-height: 1.4;
  margin: 0;
  font-family: var(--font-sans);
  transition: color 0.25s;
}

/* Le tiret doré qui s'étire au survol — la signature. */
.mega-item b::before {
  content: "";
  width: 0; height: 1px;
  background: var(--gold-light);
  margin-right: 0;
  transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    margin-right 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.mega-item:hover b { color: var(--gold-light) !important; }
.mega-item:hover b::before { width: 14px; margin-right: 9px; }

.mega-item .md {
  display: block;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.58) !important;
  line-height: 1.5;
  margin-top: 3px;
  font-family: var(--font-sans);
  white-space: normal;
}

/* Pied de panneau vivant — la « Dernière entrée » (Apimo). */
.mega-foot {
  margin-top: 6px;
  padding: 12px 24px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mega-foot span {
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-sans);
}

.mega-foot a {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(168, 139, 99, 0.4);
  padding-bottom: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.mega-foot a:hover { color: var(--gold); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }

.nav-hamburger.open span:nth-child(2) { opacity: 0; }

.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Le panneau mobile est défini UNE SEULE fois, plus bas (section
   « Panneau de navigation mobile ») — doublon supprimé le 14/08. */

#lp-anav::-webkit-scrollbar { display: none; }

#lp-anav .lp-anav-item:focus-visible {
  outline: 2px solid rgba(8,25,56,0.24);
  outline-offset: 2px;
}

.offm-form-panel-header { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:24px; flex-wrap:wrap; }

@media (max-width: 768px) {
.header-inner { padding: 0 20px; height: 60px; }

.header-right { display: none; }

.nav-hamburger { display: flex; }

body > header { position: sticky; top: 0; z-index: 1000; }

.r5-footer-top {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
    padding: 40px 20px !important;
  }

.r5-footer-bottom {
    padding: 20px !important;
    text-align: center;
  }

.r5-footer-top {
    grid-template-columns: 1fr !important;
    padding: 32px 20px !important;
  }

.know-grid-header { align-items: flex-start !important; flex-direction: column !important; }
}

@media (max-width: 480px) {
.r5-footer-top { grid-template-columns: 1fr !important; }
}
/* ── Panneau de navigation mobile (remplace Superfly) ───────────────── */
.nav-hamburger { display: flex; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; min-width: 44px; min-height: 44px; padding: 10px; z-index: var(--z-nav); }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--white); transition: transform .25s, opacity .25s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Rigueur mobile (retour Gary 14/08, iPhone) : UNE hiérarchie —
   kicker doré (même langage que les panneaux desktop), liens réguliers,
   filets constants, rythme de section unique. Le survol doré est réservé
   aux vrais pointeurs : sur iOS il « collait » après le toucher. */
/* justify-content explicite : la règle extraite `nav { justify-content:
   center }` (header) attrape aussi ce <nav> — centré + débordement =
   le haut du menu (Acheter) devenait inatteignable (bug Gary 14/08). */
/* Même verre navy éclairci que les panneaux desktop (validé Gary
   19/08) — un cran plus opaque qu'eux : plein écran, il recouvre du
   contenu dense, la lisibilité prime. Repli opaque si le navigateur
   ne sait pas flouter. */
#mobile-nav { display: none; position: fixed; inset: 0; z-index: var(--z-dropdown); background: var(--green-800); overflow-y: auto; padding: 30px 24px 44px; flex-direction: column; justify-content: flex-start; }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  #mobile-nav {
    background: rgba(20, 38, 70, 0.82);
    -webkit-backdrop-filter: blur(28px) saturate(1.25);
    backdrop-filter: blur(28px) saturate(1.25);
  }
}
#mobile-nav.open { display: flex; }

#mobile-nav a {
  display: block;
  color: rgba(255,255,255,0.88);
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 13px 0;
  min-height: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mob-section { margin-bottom: 30px; }
.mob-section:last-of-type { margin-bottom: 10px; }

#mobile-nav .mob-section-title {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light) !important;
  padding: 0 0 10px;
  min-height: 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.mob-section-links a:last-child { border-bottom: none; }

#mobile-nav .mob-cta {
  margin-top: 20px;
  background: var(--gold);
  color: var(--white) !important;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px !important;
  border-bottom: none !important;
  border-radius: 50px;
}

/* Retour visuel au toucher (bref), survol réservé aux pointeurs. */
#mobile-nav a:active { color: var(--gold-light); }
@media (hover: hover) {
  #mobile-nav a:hover { color: var(--gold-light); }
}

@media (min-width: 1100px) {
  .nav-hamburger { display: none; }
  #mobile-nav { display: none !important; }
}
@media (max-width: 1099px) {
  .header-inner nav { display: none; }
  .header-right .header-cta { display: none; }
}

/* ─────────────────────────────────────────────────────────────────────
   Header « fantôme » sur la page d'accueil — validé le 12/08/2026 avec
   le hero Horizon (prototype work/hero-lab.html) : pas de bandeau plein,
   le menu flotte sur l'image. WordPress pose la classe `home` sur
   <body> en page d'accueil ; les autres pages gardent le bandeau navy
   (leur contenu ne commence pas toujours par une zone sombre).
   ───────────────────────────────────────────────────────────────────── */
/* Hauteurs du bandeau et offset de la barre d'admin WordPress,
   centralisés en variables : le panneau mobile et le header restent
   synchronisés quel que soit le contexte. La barre d'admin (utilisateur
   connecté à wp-admin) occupe 32px en haut (46px sous 783px) — sans cet
   offset elle recouvre le logo et le hamburger (bug signalé le 12/08). */
:root { --r5-header-h: 68px; --r5-adminbar: 0px; }
body.admin-bar { --r5-adminbar: 32px; }
/* Sous 783 px, WordPress pose sa barre en position:absolute — elle défile
   avec la page et disparaît. Garder l'offset de 46 px ferait coller le
   header à 46 px du haut, avec du vide au-dessus (Gary, 21/08 : « sur
   mobile le menu flotte »). Donc : la barre décale le flux, pas le sticky. */
@media (max-width: 782px) {
  body.admin-bar { --r5-adminbar: 0px; }
}

body > header { top: var(--r5-adminbar); }
#mobile-nav { top: calc(var(--r5-header-h) + var(--r5-adminbar)); }
.header-inner { height: var(--r5-header-h); }

.r5-header-float { --r5-header-h: 96px; }

.r5-header-float header {
  /* left/right obligatoires : en absolute, un bloc sans ancres
     horizontales se rétrécit à son contenu — c'était le bandeau cassé
     du 12/08 (menu tassé à gauche sur 766px). */
  position: absolute;
  left: 0; right: 0;
  background: none;
  border-bottom: none;
}
.r5-header-float .header-inner {
  padding: 0 max(24px, calc((100% - 1280px) / 2));
  max-width: none;
}
/* Respiration du menu — valeurs du prototype validé. */
.r5-header-float .header-inner > nav { gap: 34px; }
.r5-header-float .header-inner > nav > a,
.r5-header-float .header-inner > nav .nav-drop > a { font-size: 13.5px; }
.r5-header-float .header-cta {
  background: none;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50px;
  color: var(--white);
  transition: border-color .3s;
}
.r5-header-float .header-cta:hover { border-color: var(--gold-light); background: none; }

@media (max-width: 767px) {
  .r5-header-float { --r5-header-h: 80px; }
}
@media (min-width: 768px) {
  .r5-header-float .header-inner { padding-left: max(48px, calc((100% - 1280px) / 2)); padding-right: max(48px, calc((100% - 1280px) / 2)); }
}
@media (min-width: 1100px) {
  .r5-header-float .header-inner { padding-left: max(80px, calc((100% - 1280px) / 2)); padding-right: max(80px, calc((100% - 1280px) / 2)); }
}

/* Normalisation de colonne (12/08) — le footer s'aligne sur la même
   colonne que le reste du site : bord de contenu 24/48/80px, 1280 max. */
.r5-footer { padding-left: 24px !important; padding-right: 24px !important; }
.r5-footer-inner { max-width: 1280px !important; margin: 0 auto !important; padding-left: 0 !important; padding-right: 0 !important; }
@media (min-width: 768px) {
  .r5-footer { padding-left: 48px !important; padding-right: 48px !important; }
}
@media (min-width: 1100px) {
  .r5-footer { padding-left: 80px !important; padding-right: 80px !important; }
}
/* Même audit : .r5-footer-top portait 20px de padding hérité — la
   colonne est déjà gérée par .r5-footer, pas de double peine. */
.r5-footer-top { padding-left: 0 !important; padding-right: 0 !important; }

/* Sélecteur de langue du menu mobile — le bloc de droite de l'en-tête
   étant masqué sous 1000 px, c'est le seul accès au site anglais
   depuis un téléphone. */
.mob-lang { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12); }
.mob-lang .lang-btn { font-size: 12px; padding: 8px 12px; }

/* L'adresse email du pied de page ouvre le formulaire (règle Gary
   27/08 : jamais de mailto, Apimo trace). Le bouton se présente
   exactement comme les deux lignes qui l'entourent. */
.r5-footer-contact .r5-footer-ecrire { background: none; border: 0; padding: 3px 0; cursor: pointer;
  color: inherit; font: inherit; text-align: left; text-decoration: none;
  /* Même raison qu'au-dessus : 19 px de haut, c'est trop peu pour un pouce. */
  display: inline-flex; align-items: center; min-height: 24px; }
.r5-footer-contact .r5-footer-ecrire:hover, .r5-footer-contact .r5-footer-ecrire:focus-visible { color: var(--gold-light); }
