/*
Theme Name: RP237
Theme URI: https://rp237.org/
Author: RP237
Author URI: https://rp237.org/
Description: Thème sur mesure du Réseau des Professionnels du Cameroun (RP237). Chaque section de la page d'accueil est un bloc éditable ; les événements sont un type de contenu dédié.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rp237
Domain Path: /languages
Tags: custom-colors, custom-menu, custom-logo, block-styles, wide-blocks
*/

/* ==========================================================================
   Feuille de style principale du thème.

   Tout ce qui suit l'en-tête ci-dessus est l'extraction littérale du bloc
   <style> de prototype-RP237-v2.html, sans retouche : resynchroniser avec la
   maquette revient à remplacer ce bloc, l'en-tête restant en place.

   Les ajouts que la maquette ne couvrait pas vivent à côté, dans
   assets/css/ — voir inc/enqueue.php :

     pages.css     pages intérieures, événements, contenu éditorial
     sections.css  sections des pages intérieures
     passes.css    billetterie et formulaire d'inscription
     roadmap.css   parcours guidé — chargé uniquement là où il sert
   ========================================================================== */

/* ==========================================================================
   RP237 — feuille de style MOBILE FIRST
   Les styles de base ciblent le téléphone. Les media queries (min-width)
   n'ajoutent que ce dont les écrans plus larges ont besoin.
   Points de rupture : 600px · 900px · 1200px
   ========================================================================== */

:root{
  --teal:#006d6d;
  --teal-dark:#005b5b;
  --teal-deep:#004f50;
  --red:#d5003b;
  --red-dark:#b80034;
  --yellow:#ffc928;
  --yellow-soft:#ffe28a;
  --ink:#111827;
  --muted:#5b6575;          /* assombri : 4.6:1 sur blanc (était #667085, 3.9:1) */
  --muted-on-mist:#59636f;
  --mist:#f4f8f8;
  --line:#dfe8e8;
  --white:#fff;
  --black:#081111;
  --max:1240px;

  /* Typographie : display vs lecture — voir la note en bas de fichier */
  --font-display:"DM Sans",system-ui,-apple-system,Segoe UI,Arial,sans-serif;
  --font-body:"Inter",system-ui,-apple-system,Segoe UI,Arial,sans-serif;
  --font-serif:"Playfair Display",Georgia,"Times New Roman",serif;

  /* Corps de texte fluide : 17px sur mobile → 18px à partir de ~900px */
  --fs-body:clamp(1.0625rem,1.012rem + .215vw,1.125rem);
  --fs-lead:clamp(1.125rem,1.04rem + .36vw,1.25rem);
  --lh-body:1.75;
  --measure:68ch;           /* longueur de ligne confortable */

  /* Gouttière latérale : 16px mobile → 24px desktop, + encoche iOS */
  --gutter:16px;
  --safe-l:max(var(--gutter),env(safe-area-inset-left));
  --safe-r:max(var(--gutter),env(safe-area-inset-right));
  --safe-b:env(safe-area-inset-bottom,0px);

  --header-h:64px;          /* redéfini par point de rupture */
  --dock-h:0px;             /* hauteur de la barre CTA collante, gérée en JS */
  --subnav-h:0px;           /* hauteur de la nav secondaire, gérée en JS */
}

*{box-sizing:border-box}
html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;   /* pas de gonflage auto en paysage iOS */
  scroll-padding-top:calc(var(--header-h) + var(--subnav-h) + 12px);
}
body{
  margin:0;
  color:var(--ink);
  font-family:var(--font-body);
  font-size:var(--fs-body);
  line-height:var(--lh-body);
  background:#fff;
  overflow-x:hidden;               /* garde-fou anti-débordement horizontal */
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body.scroll-locked{position:fixed;width:100%;overflow:hidden}

a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
img,svg,video{max-width:100%;height:auto;display:block}

/* Focus visible au clavier — obligatoire, jamais supprimé */
:focus-visible{outline:3px solid var(--yellow);outline-offset:3px;border-radius:2px}
.on-dark :focus-visible,.hero :focus-visible,.red-section :focus-visible,
.network :focus-visible,.footer :focus-visible{outline-color:#fff}

/* Lien d'évitement */
.skip{
  position:absolute;left:-9999px;top:0;z-index:200;
  background:var(--yellow);color:#101010;padding:14px 20px;font-weight:700;
}
.skip:focus{left:8px;top:8px}

.container{
  width:100%;max-width:var(--max);margin-inline:auto;
  padding-inline:var(--safe-l) var(--safe-r);
}
.serif{font-family:var(--font-serif);font-weight:600}
.vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* --- Titres : famille display, resserrée, équilibrée ---------------------- */
h1,h2,h3,h4,.event-title,.nav-links,.btn,.eyebrow,.card-number,.flow-num,
.objective-num,.footer-tagline,.phrase,.pillar b,.sticky-event{
  font-family:var(--font-display);
}
h1,h2,h3{text-wrap:balance;overflow-wrap:break-word}
p{text-wrap:pretty;hyphens:auto;-webkit-hyphens:auto}  /* césure utile en français */

.eyebrow{
  font-size:.6875rem;letter-spacing:.16em;text-transform:uppercase;
  font-weight:700;line-height:1.4;
}

.reveal{opacity:0;transform:translateY(24px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.75,.2,1)}
.reveal.visible{opacity:1;transform:none}

/* ==========================================================================
   EN-TÊTE
   ========================================================================== */
.header{
  position:fixed;z-index:70;inset:0 0 auto 0;
  height:var(--header-h);
  background:rgba(255,255,255,.97);
  -webkit-backdrop-filter:saturate(180%) blur(12px);backdrop-filter:saturate(180%) blur(12px);
  display:flex;align-items:center;
  border-bottom:1px solid rgba(0,0,0,.06);
  transition:height .3s ease,box-shadow .3s ease;
}
.header.scrolled{box-shadow:0 8px 28px rgba(0,60,60,.10)}
.nav{display:flex;align-items:center;justify-content:space-between;gap:16px}

.brand{display:flex;align-items:center;flex-shrink:0;min-height:48px}
/* Le logo est dimensionné par sa HAUTEUR, la largeur suit le ratio 154:55.
   width/height dans le HTML réservent la place et évitent tout saut de mise
   en page pendant le chargement (CLS). */
.logo{display:block;height:34px;width:auto;max-width:none}

.nav-links{display:none}                 /* ← caché sur mobile, activé à 1000px */
.header-actions{display:none}

/* Bouton menu : cible tactile 48×48 conforme */
.menu-btn{
  display:grid;place-items:center;
  width:48px;height:48px;margin-right:-10px;
  border:0;background:none;color:var(--teal);
  font-size:1.5rem;line-height:1;border-radius:8px;
}
.menu-btn:active{background:var(--mist)}

/* ==========================================================================
   BOUTONS — hauteur minimale 48px pour le tactile
   ========================================================================== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:48px;padding:.875rem 1.25rem;
  border:0;border-radius:6px;
  font-size:.8125rem;font-weight:700;letter-spacing:.01em;line-height:1.2;
  text-align:center;
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
  touch-action:manipulation;                  /* supprime le délai de 300ms */
}
.btn-yellow{background:var(--yellow);color:#101010}
.btn-red{background:var(--red);color:#fff}
.btn-teal{background:var(--teal);color:#fff}
.btn-outline-white{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.55)}
.btn:active{transform:scale(.97)}

/* Le survol n'existe que sur les appareils qui en ont un —
   sinon l'effet reste « collé » après un tap sur mobile. */
@media (hover:hover) and (pointer:fine){
  .btn:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(0,0,0,.14)}
  .btn:active{transform:translateY(0)}
}

/* ==========================================================================
   BANDEAU ÉVÉNEMENT — empilé sur mobile, aucune information masquée
   ========================================================================== */
.event-bar{
  position:relative;z-index:60;
  margin-top:var(--header-h);
  background:var(--red);color:#fff;
}
.event-bar-inner{
  display:flex;flex-direction:column;align-items:stretch;gap:12px;
  padding-block:16px;
}
.event-title{font-size:.9375rem;font-weight:700;line-height:1.35}
.event-details{display:flex;flex-direction:column;gap:8px}
.event-meta{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:.8125rem}
.event-detail{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.event-detail strong{font-weight:700}
.event-icon{font-size:1rem;line-height:1}
.event-bar .btn-yellow{width:100%}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  position:relative;overflow:hidden;
  color:#fff;background:var(--teal);
  min-height:600px;                    /* repli navigateurs sans svh */
  min-height:min(78svh,720px);
}
/* Conteneur des médias du hero : vidéo au-dessous, dégradé au-dessus. */
.hero-media{position:absolute;inset:0;overflow:hidden}
.hero-video-el{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;                  /* remplit sans déformer, recadre au besoin */
  opacity:0;transition:opacity .9s ease;pointer-events:none;
}
.hero.video-ready .hero-video-el{opacity:1}

.hero-video{
  position:absolute;inset:0;
  background:
    linear-gradient(90deg,rgba(0,62,62,.86),rgba(0,109,109,.66) 52%,rgba(0,71,71,.76)),
    radial-gradient(circle at 76% 30%,rgba(255,201,40,.22),transparent 17%),
    linear-gradient(120deg,#075c5c,#0c7a77 50%,#063f40);
}
.hero-video:before{
  content:"";position:absolute;inset:-8%;
  background:
    radial-gradient(ellipse at 25% 48%,rgba(255,255,255,.14),transparent 20%),
    radial-gradient(ellipse at 67% 55%,rgba(255,255,255,.12),transparent 25%),
    repeating-linear-gradient(95deg,transparent 0 80px,rgba(255,255,255,.035) 81px 83px);
  transform:scale(1.05);
  animation:heroDrift 14s ease-in-out infinite alternate;
}
.hero-video:after{display:none}        /* note de prototype : desktop uniquement */
/* Vidéo affichée : le dégradé cesse d'être un décor et devient le voile
   qui garantit le contraste du texte blanc par-dessus l'image animée. */
.hero.video-ready .hero-video{
  /* Masque en deux couches, calibre sur les images reelles du clip :
     1. un lavis general aux couleurs de la marque, qui calme l'image ;
     2. un noyau plus sombre centre sur le bloc de texte, pour que le
        message principal ressorte sans eteindre les bords de la video.
     Mesure sur l'ensemble des images : titre >= 7:1, sous-titre >= 7:1,
     mentions 11px et sur-titre >= 4.9:1 (exigence AA petit texte : 4.5). */
  background:
    radial-gradient(ellipse 95% 62% at 50% 50%,
      rgba(0,34,36,.42) 0%, rgba(0,34,36,.32) 45%, rgba(0,34,36,0) 100%),
    linear-gradient(90deg,
      rgba(0,50,51,.76), rgba(0,50,51,.64) 52%, rgba(0,50,51,.74));
}
.hero.video-ready .hero-video:before{opacity:.3}
.hero.video-ready .hero-video:after{display:none}

@keyframes heroDrift{from{transform:scale(1.05) translateX(-1%)}to{transform:scale(1.09) translateX(1%)}}

.hero-inner{
  position:relative;z-index:2;
  min-height:inherit;
  display:flex;align-items:center;justify-content:center;text-align:center;
  padding-block:56px 72px;
}
.hero-copy{max-width:960px;width:100%}
.hero .eyebrow{color:var(--yellow-soft);margin-bottom:16px}
.hero h1{
  margin:0;
  font-size:clamp(2.6rem,12.5vw,4.5rem);
  line-height:.88;letter-spacing:-.045em;font-weight:800;
  text-shadow:0 12px 35px rgba(0,0,0,.18);
  hyphens:none;
}
.hero h1 .serif{font-weight:600;letter-spacing:-.02em}
.hero-edition{
  display:flex;align-items:center;justify-content:center;gap:10px;
  margin:20px 0 16px;
  font-family:var(--font-display);font-size:.9375rem;font-weight:700;
  letter-spacing:.02em;flex-wrap:wrap;
}
.hero-edition .line{height:2px;width:32px;background:var(--yellow);flex-shrink:0}
.hero-sub{
  max-width:38ch;margin-inline:auto;
  color:rgba(255,255,255,.97);
  font-size:var(--fs-lead);line-height:1.65;
}
.hero-actions{display:flex;flex-direction:column;gap:10px;margin-top:26px}
.hero-meta{
  display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;
  margin-top:20px;color:rgba(255,255,255,.93);
  font-size:.6875rem;font-weight:600;letter-spacing:.06em;
}
.hero-scroll{display:none}             /* invitation au scroll : desktop uniquement */

/* ==========================================================================
   RYTHME VERTICAL DES SECTIONS
   ========================================================================== */
.statement,.architecture,.red-section,.experience,.network,.objectives,.final-cta{
  padding-block:clamp(64px,10vw,125px);
}
.statement{background:#fff}
.architecture{background:var(--mist)}
.experience{background:#fff}
.objectives{background:#fff}

/* --- Déclaration de marque ---------------------------------------------- */
.statement-grid{display:grid;grid-template-columns:1fr;gap:28px;align-items:end}
.statement h2{
  font-size:clamp(2.125rem,8.5vw,4.875rem);
  line-height:1.02;letter-spacing:-.045em;margin:12px 0;font-weight:800;
}
.statement h2 span{color:var(--teal)}
.statement-copy{
  font-size:var(--fs-body);line-height:var(--lh-body);
  color:#4b5563;max-width:var(--measure);margin:0;
}
.statement-copy + .statement-copy{margin-top:1.1em}
.statement-copy strong{color:var(--ink);font-weight:600}
.statement-rule{height:5px;width:80px;background:var(--yellow);margin-top:22px}

/* --- En-tête de section -------------------------------------------------- */
.section-heading{display:block;margin-bottom:32px}
.section-heading h2{
  font-size:clamp(2.125rem,8.5vw,5rem);
  line-height:1.02;letter-spacing:-.045em;margin:10px 0 0;font-weight:800;
}
.section-heading > p{
  max-width:var(--measure);color:var(--muted-on-mist);
  line-height:1.7;margin:16px 0 0;font-size:var(--fs-body);
}

/* --- Cartes expérience --------------------------------------------------- */
.experience-grid{display:grid;grid-template-columns:1fr;gap:14px}
.experience-card{
  position:relative;overflow:hidden;
  padding:28px 24px;
  display:flex;flex-direction:column;gap:28px;
  color:#fff;background:var(--teal);
  transition:transform .4s ease,box-shadow .4s ease;
}
.experience-card.red{background:var(--red)}
.experience-card:after{
  content:"";position:absolute;width:250px;height:250px;border-radius:50%;
  right:-110px;bottom:-110px;border:1px solid rgba(255,255,255,.18);
  box-shadow:0 0 0 30px rgba(255,255,255,.03),0 0 0 60px rgba(255,255,255,.02);
  pointer-events:none;
}
.card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;position:relative;z-index:1}
.card-number{font-size:.6875rem;letter-spacing:.14em;font-weight:700}
.card-label{font-size:.625rem;letter-spacing:.08em;border:1px solid rgba(255,255,255,.4);padding:6px 10px;border-radius:999px;white-space:nowrap}
.card-body{position:relative;z-index:1}
.experience-card h3{
  font-size:clamp(1.75rem,7vw,2.25rem);
  line-height:1.05;letter-spacing:-.035em;margin:0 0 12px;font-weight:800;
}
.experience-card p{max-width:52ch;color:rgba(255,255,255,.9);line-height:1.7;margin:0;font-size:.9375rem}
.card-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.card-tag{font-size:.625rem;letter-spacing:.06em;padding:7px 11px;border:1px solid rgba(255,255,255,.32);border-radius:999px}

/* --- Tapis rouge --------------------------------------------------------- */
.red-section{background:var(--red);color:#fff;position:relative;overflow:hidden}
.red-section:before{
  content:"TAPIS";position:absolute;right:-4%;top:-10px;
  font-family:var(--font-display);
  font-size:28vw;font-weight:800;line-height:1;color:rgba(255,255,255,.05);
  letter-spacing:-.07em;pointer-events:none;
}
.red-grid{position:relative;z-index:1;display:grid;grid-template-columns:1fr;gap:32px;align-items:center}
.red-section h2{
  font-size:clamp(2.75rem,13vw,5rem);
  line-height:.92;letter-spacing:-.05em;margin:12px 0 20px;font-weight:800;
}
.red-section h2 .serif{color:var(--yellow-soft)}
.red-section p{
  font-size:var(--fs-body);line-height:var(--lh-body);
  color:rgba(255,255,255,.92);max-width:var(--measure);margin:0 0 24px;
}
.red-section .btn{width:100%}
.big-profile{border:1px solid rgba(255,255,255,.3);padding:24px;background:rgba(0,0,0,.09)}
.big-profile .phrase{
  font-size:clamp(1.625rem,7.5vw,2.75rem);
  line-height:1.1;font-weight:800;letter-spacing:-.035em;
}
.big-profile .phrase span{color:var(--yellow)}
.big-profile .mini{
  margin-top:24px;padding-top:18px;border-top:1px solid rgba(255,255,255,.24);
  font-size:.875rem;color:rgba(255,255,255,.75);line-height:1.7;
}

/* --- Parcours en 4 temps ------------------------------------------------- */
.experience-flow{
  margin-top:32px;display:grid;grid-template-columns:1fr;
  border-top:1px solid var(--line);
}
.flow-item{
  padding:24px 0;border-bottom:1px solid var(--line);
  transition:background .3s;
}
.flow-num{color:var(--red);font-size:.6875rem;font-weight:700;letter-spacing:.14em}
.flow-item h3{font-size:1.375rem;margin:8px 0 6px;letter-spacing:-.02em;font-weight:700}
.flow-item p{font-size:.9375rem;line-height:1.65;color:var(--muted);margin:0;max-width:52ch}

/* --- Réseau -------------------------------------------------------------- */
.network{background:var(--teal);color:#fff}
.network-grid{display:grid;grid-template-columns:1fr;gap:32px;align-items:start}
.network h2{
  font-size:clamp(2.125rem,8.5vw,5rem);
  line-height:1.02;letter-spacing:-.045em;margin:12px 0;font-weight:800;
}
.network h2 .serif{color:var(--yellow)}
.network-copy{
  font-size:var(--fs-body);line-height:var(--lh-body);
  color:rgba(255,255,255,.88);max-width:var(--measure);margin:0;
}
.pillars{display:grid;grid-template-columns:1fr;gap:1px;background:rgba(255,255,255,.2);margin-top:28px}
.pillar{background:#0a7070;padding:20px}
.pillar b{font-size:1.0625rem;font-family:var(--font-display);font-weight:700}
.pillar span{display:block;margin-top:8px;color:rgba(255,255,255,.75);font-size:.875rem;line-height:1.6}

/* --- Objectifs ----------------------------------------------------------- */
.objective-list{border-top:1px solid var(--line);margin-top:32px}
.objective{
  display:grid;grid-template-columns:2.25rem 1fr;gap:4px 12px;
  padding:26px 0;border-bottom:1px solid var(--line);align-items:start;
}
.objective-num{font-size:.75rem;font-weight:700;color:var(--red);padding-top:.35em;grid-row:1}
.objective h3{font-size:1.25rem;letter-spacing:-.02em;margin:0;line-height:1.25;font-weight:700}
.objective p{
  grid-column:2;font-size:.9375rem;line-height:1.7;color:var(--muted);
  margin:8px 0 0;max-width:var(--measure);
}

/* --- Appel à l'action final ---------------------------------------------- */
.final-cta{background:var(--mist);text-align:center}
.final-cta h2{
  font-size:clamp(2.25rem,9.5vw,6rem);
  line-height:1;letter-spacing:-.05em;max-width:900px;margin:12px auto 20px;font-weight:800;
}
.final-cta h2 .serif{color:var(--teal)}
.final-cta p:not(.eyebrow){
  max-width:56ch;margin:0 auto 26px;color:var(--muted-on-mist);
  font-size:var(--fs-body);line-height:1.7;
}
.final-cta .btn{width:100%;max-width:340px}

/* ==========================================================================
   JEU D'ICONES RP237
   Regle de couleur : chaque icone est encrée pour SON fond et n'est jamais
   reteintée en CSS (pas de filter/opacity sur le trait) — trait sombre sur
   blanc/or, trait clair sur sarcelle. Les PNG sont exportés sur un canevas
   commun de 96x96, donc l'échelle optique est identique partout.
   Elles doublent un intitulé texte adjacent : alt="" (décoratives).
   ========================================================================== */

/* Rangée « Faire circuler l'expérience » — trait sombre sur blanc */
.flow-icon{
  display:block;width:44px;height:44px;
  margin:18px 0 16px;          /* ~16-24px avant le titre, cf. guide */
}
/* Emplacement réservé : icône « Partager » absente du kit fourni.
   On garde la hauteur pour que les 4 titres restent alignés. */
.flow-icon--todo{
  border:1px dashed rgba(0,109,109,.35);border-radius:8px;
  background:repeating-linear-gradient(45deg,transparent 0 6px,rgba(0,109,109,.05) 6px 12px);
}

/* Piliers — trait clair sur sarcelle */
.pillar-icon{display:block;width:40px;height:40px;margin:0 0 14px}

/* Objectif 01 — trait sombre sur blanc, aligné sur le titre */
.objective-icon{
  display:inline-block;vertical-align:-.18em;
  width:30px;height:30px;margin-right:10px;
}

/* Pied de page — icônes en ligne devant le texte, trait clair sur sarcelle */
.footer-contact .contact-line{
  display:flex;align-items:flex-start;gap:10px;
  min-height:44px;padding:4px 0;
}
.contact-icon{
  display:block;width:22px;height:22px;flex-shrink:0;
  margin-top:.25em;
}
.contact-icon--todo{
  border:1px dashed rgba(255,255,255,.45);border-radius:5px;
}

/* Flèche des boutons — trait sombre par défaut (boutons OR / clairs) ;
   passée en blanc sur les boutons à fond sombre, où elle serait sinon
   quasi invisible. */
.btn-arrow{
  width:17px;height:17px;flex-shrink:0;
  margin-left:-1px;             /* le gap:8px du bouton fournit l'écart */
}
.btn-teal .btn-arrow,
.btn-red .btn-arrow,
.btn-outline-white .btn-arrow{
  filter:brightness(0) invert(1);
}

/* ==========================================================================
   PIED DE PAGE
   ========================================================================== */
.footer{
  background:var(--teal-deep);color:#fff;
  padding-block:48px calc(24px + var(--dock-h) + var(--safe-b));
}
.footer-grid{display:grid;grid-template-columns:1fr;gap:36px}
/* Pied de page : variante SYMBOLE SEUL (logo-rp237-mark.webp).
   La baseline intégrée au logo est encrée en sombre et ne fait que ~4px de
   haut à l'écran : sur le sarcelle elle forme une bavure illisible, en plus
   de doubler le texte ci-dessous. On la recompose ici en vrai texte blanc —
   lisible, sélectionnable et indexable. Ratio du symbole : 97:40. */
.footer-logo{height:40px;width:auto;max-width:none;margin-bottom:16px}
.footer-brand .footer-tagline{
  font-size:1rem;font-weight:700;color:#fff;
  margin:0 0 10px;line-height:1.4;letter-spacing:.01em;max-width:46ch;
}
.footer-brand p{max-width:46ch;color:rgba(255,255,255,.76);line-height:1.7;font-size:.875rem}
.footer h4{margin:0 0 12px;font-size:.875rem;letter-spacing:.04em;text-transform:uppercase;font-weight:700}
.footer nav a{display:block;color:rgba(255,255,255,.76);font-size:.9375rem;padding:10px 0;min-height:44px}
.footer-contact{
  color:rgba(255,255,255,.76);font-size:.9375rem;line-height:1.8;
  font-style:normal;              /* <address> est en italique par défaut */
}
/* Cible tactile pleine hauteur : un lien e-mail en ligne ne fait que ~19px */
.footer-contact a{
  display:inline-flex;align-items:center;min-height:44px;
  text-decoration:underline;text-underline-offset:3px;
}
.footer-contact a.contact-line{text-decoration:none}
.footer-contact a.contact-line span{text-decoration:underline;text-underline-offset:3px}
.copyright{
  border-top:1px solid rgba(255,255,255,.16);margin-top:36px;padding-top:20px;
  color:rgba(255,255,255,.55);font-size:.75rem;
  display:flex;flex-direction:column;gap:6px;
}
@media (hover:hover){.footer a:hover{color:#fff}}

/* ==========================================================================
   ÉLÉMENTS FLOTTANTS — zone du pouce
   La barre CTA occupe le bas ; le bouton tchat se soulève au-dessus d'elle.
   ========================================================================== */
.sticky-event{
  position:fixed;z-index:65;left:0;right:0;bottom:0;
  transform:translateY(110%);
  transition:transform .4s cubic-bezier(.2,.7,.2,1);
  padding:12px var(--safe-r) calc(12px + var(--safe-b)) var(--safe-l);
  background:rgba(0,79,80,.97);
  -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
  border-top:1px solid rgba(255,255,255,.2);
  display:flex;align-items:center;gap:12px;
  box-shadow:0 -12px 40px rgba(0,0,0,.25);
  color:#fff;
}
.sticky-event.show{transform:translateY(0)}
.sticky-event span{font-size:.6875rem;letter-spacing:.03em;line-height:1.4;flex:1}
.sticky-event strong{color:var(--yellow);display:block;font-size:.8125rem}
.sticky-event .btn{min-height:44px;padding:.75rem 1.125rem;flex-shrink:0}

.chatlive{
  position:fixed;z-index:66;right:var(--safe-r);
  bottom:calc(16px + var(--safe-b));
  transition:bottom .4s cubic-bezier(.2,.7,.2,1);
  background:#1aa557;color:#fff;                 /* assombri : contraste AA du libellé */
  min-height:52px;padding:0 18px;border-radius:999px;
  font-family:var(--font-display);font-size:.8125rem;font-weight:700;
  box-shadow:0 12px 28px rgba(0,0,0,.22);
  display:flex;align-items:center;gap:8px;border:0;
}
body.dock-visible .chatlive{bottom:calc(16px + var(--dock-h) + var(--safe-b))}
.chat-dot{width:8px;height:8px;border:1.5px solid #fff;border-radius:50%;position:relative;flex-shrink:0}
.chat-dot:after{content:"";position:absolute;width:3px;height:3px;background:#fff;border-radius:50%;right:-2px;bottom:-2px}

/* ==========================================================================
   MENU MOBILE — panneau plein écran sous l'en-tête, défilable
   ========================================================================== */
.mobile-menu{
  position:fixed;z-index:69;
  inset:var(--header-h) 0 0 0;
  background:#fff;
  padding:8px var(--safe-r) calc(32px + var(--safe-b)) var(--safe-l);
  overflow-y:auto;overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  display:flex;flex-direction:column;
  transform:translateX(100%);visibility:hidden;
  transition:transform .3s cubic-bezier(.2,.7,.2,1),visibility .3s;
}
.mobile-menu.open{transform:translateX(0);visibility:visible}
.mobile-menu[hidden]{display:none}   /* sinon display:flex écrase l'attribut hidden */
.mobile-menu a{
  display:flex;align-items:center;min-height:56px;
  padding:14px 0;border-bottom:1px solid var(--line);
  font-family:var(--font-display);font-size:1.0625rem;font-weight:600;
}
.mobile-menu .menu-cta{margin-top:24px;display:flex;flex-direction:column;gap:10px}
.mobile-menu .btn{width:100%}
.mobile-menu .menu-note{margin-top:20px;font-size:.8125rem;color:var(--muted);line-height:1.6}

/* ==========================================================================
   MODALE — feuille du bas sur mobile, boîte centrée sur desktop
   ========================================================================== */
.modal{
  position:fixed;z-index:100;inset:0;
  background:rgba(0,40,40,.75);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  display:none;align-items:flex-end;justify-content:center;
}
.modal.open{display:flex}
.modal-box{
  width:100%;background:#fff;position:relative;
  padding:32px var(--safe-r) calc(28px + var(--safe-b)) var(--safe-l);
  border-radius:18px 18px 0 0;
  max-height:92dvh;max-height:92vh;
  overflow-y:auto;overscroll-behavior:contain;
  animation:sheetUp .3s cubic-bezier(.2,.7,.2,1);
}
@keyframes sheetUp{from{transform:translateY(100%)}to{transform:none}}
.close{
  position:absolute;right:8px;top:8px;
  width:44px;height:44px;display:grid;place-items:center;
  border:0;background:none;font-size:1.75rem;color:#555;border-radius:8px;line-height:1;
}
.modal-box h2{
  font-size:clamp(1.75rem,7.5vw,2.5rem);
  line-height:1.05;letter-spacing:-.04em;margin:10px 0;font-weight:800;
}
.modal-intro{color:var(--muted);line-height:1.6;font-size:.9375rem;margin:0}

.form{display:grid;grid-template-columns:1fr;gap:14px;margin-top:22px}
.field label{
  display:block;font-size:.75rem;font-weight:600;letter-spacing:.04em;
  text-transform:uppercase;color:#4b5563;margin-bottom:6px;
}
.form input,.form select{
  width:100%;border:1px solid #cbd7d7;background:#f8fbfb;
  padding:14px 12px;outline:0;border-radius:6px;
  font-size:16px;                 /* ≥16px : empêche le zoom auto au focus sur iOS */
  min-height:50px;
}
.form select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#555 50%),linear-gradient(135deg,#555 50%,transparent 50%);background-position:calc(100% - 20px) 22px,calc(100% - 14px) 22px;background-size:6px 6px;background-repeat:no-repeat}
.form input:focus,.form select:focus{border-color:var(--teal);background:#fff;box-shadow:0 0 0 3px rgba(0,109,109,.14)}
.form button{width:100%;margin-top:6px}

.success{display:none;text-align:center;padding:28px 0}
.success.show{display:block}
.success h3{font-size:1.625rem;margin:12px 0;font-weight:800}
.success p{color:var(--muted);line-height:1.65;font-size:.9375rem;max-width:42ch;margin-inline:auto}

/* ==========================================================================
   ≥ 600px — grand téléphone / petite tablette
   ========================================================================== */
@media (min-width:600px){
  :root{--gutter:24px;--header-h:68px}
  .logo{height:37px}

  .event-bar-inner{
    flex-direction:row;align-items:center;justify-content:space-between;gap:20px;
    min-height:72px;
  }
  .event-details{flex-direction:row;align-items:center;gap:16px;flex-wrap:wrap;flex:1}
  .event-title{font-size:1rem}
  .event-bar .btn-yellow{width:auto;min-width:160px}

  .hero-actions{flex-direction:row;justify-content:center;flex-wrap:wrap}
  .hero-actions .btn{flex:0 1 auto}
  .hero-edition{font-size:1.0625rem;gap:14px}
  .hero-edition .line{width:48px}

  .experience-grid{gap:16px}
  .experience-card{padding:34px 30px}

  .experience-flow{grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line)}
  .flow-item{padding:28px 24px 28px 0;border-right:1px solid var(--line)}
  .flow-item:nth-child(2n){border-right:0;padding-left:24px}
  .flow-item:nth-child(2n+1){padding-left:0}
  .flow-item:nth-last-child(-n+2){border-bottom:0}

  .pillars{grid-template-columns:1fr 1fr}
  .pillar{min-height:140px;padding:24px}

  .objective{grid-template-columns:3rem 1fr;gap:6px 20px}
  .objective h3{font-size:1.5rem}

  .red-section .btn,.final-cta .btn{width:auto}

  .footer-grid{grid-template-columns:1fr 1fr;gap:32px 40px}
  .footer-brand{grid-column:1/-1}
  .copyright{flex-direction:row;justify-content:space-between;gap:20px}

  .sticky-event{
    left:50%;right:auto;bottom:20px;
    transform:translate(-50%,160%);
    width:min(760px,calc(100% - 32px));
    border-radius:999px;border:1px solid rgba(255,255,255,.2);
    padding:10px 10px 10px 22px;
    box-shadow:0 20px 50px rgba(0,0,0,.24);
  }
  .sticky-event.show{transform:translate(-50%,0)}
  .sticky-event span{font-size:.75rem}
  .sticky-event strong{display:inline;font-size:inherit}
  body.dock-visible .chatlive{bottom:calc(16px + var(--safe-b))}  /* plus de collision */

  .modal{align-items:center;padding:24px}
  .modal-box{
    width:min(720px,100%);border-radius:10px;
    padding:40px;max-height:90dvh;animation:none;
  }
  .form{grid-template-columns:1fr 1fr;gap:16px}
  .form .full,.form button{grid-column:1/-1}
}

/* ==========================================================================
   ≥ 900px — tablette large / petit portable
   ========================================================================== */
@media (min-width:900px){
  :root{--header-h:72px}
  .logo{height:40px}

  .hero{min-height:min(84svh,820px)}
  .hero-inner{padding-block:80px 96px}
  .hero h1{font-size:clamp(4.5rem,8.5vw,7.375rem);line-height:.84;letter-spacing:-.06em}
  .hero .eyebrow{margin-bottom:22px}
  .hero-edition{font-size:1.3125rem;margin:30px 0 22px}
  .hero-edition .line{width:62px}
  .hero-sub{max-width:52ch}
  .hero-meta{font-size:.75rem;gap:18px}
  .hero-scroll{
    display:block;position:absolute;bottom:22px;left:50%;transform:translateX(-50%);
    font-size:.625rem;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.65);
  }
  .hero-scroll:after{content:"";display:block;width:1px;height:30px;background:rgba(255,255,255,.5);margin:8px auto 0}
  .hero-video:after{
    display:block;content:"VIDÉO HERO EN ATTENTE · assets/hero.mp4 + hero-poster.jpg";
    position:absolute;right:28px;bottom:20px;
    font-size:.5625rem;letter-spacing:.15em;color:rgba(255,255,255,.42);
  }

  .section-heading{display:flex;justify-content:space-between;gap:40px;align-items:flex-end;margin-bottom:48px}
  .section-heading > p{margin-top:0;max-width:420px;flex-shrink:0}

  .experience-grid{grid-template-columns:1fr 1fr;gap:18px}
  .experience-card{min-height:430px;padding:42px;justify-content:space-between}
  .experience-card h3{font-size:clamp(2rem,3.4vw,3.375rem)}
  .experience-card p{font-size:1rem}

  .experience-flow{grid-template-columns:repeat(4,1fr)}
  .flow-item{padding:35px 25px 35px 0;border-bottom:0;min-height:200px}
  .flow-item:nth-child(n){border-right:1px solid var(--line);padding-left:0}
  .flow-item:nth-child(n+2){padding-left:25px}
  .flow-item:last-child{border-right:0}
  .flow-item h3{font-size:1.5rem;margin-top:36px}

  .big-profile{padding:36px}
  .red-section:before{font-size:25vw;top:-40px}

  .objective{grid-template-columns:70px 1fr 1fr;gap:35px;padding:32px 0}
  .objective h3{font-size:1.75rem}
  .objective p{grid-column:3;grid-row:1;margin-top:0}

  .footer{padding-block:65px 25px}
  .footer-grid{grid-template-columns:1.5fr .8fr .9fr;gap:60px}
  .footer-brand{grid-column:auto}

  .statement-grid{grid-template-columns:.8fr 1.2fr;gap:56px}
  .red-grid{grid-template-columns:1.1fr .9fr;gap:56px}
  .network-grid{grid-template-columns:1fr 1fr;gap:56px}
}

/* ==========================================================================
   ≥ 1000px — la navigation complète tient : on repasse au menu horizontal
   ========================================================================== */
@media (min-width:1000px){
  .nav{gap:30px}
  .nav-links{
    display:flex;align-items:center;gap:22px;
    font-size:.875rem;font-weight:600;
  }
  .nav-links a{position:relative;padding:10px 0}
  .nav-links a:after{content:"";position:absolute;left:0;right:100%;bottom:2px;height:2px;background:var(--teal);transition:right .3s}
  .nav-links a:hover:after,.nav-links a.active:after{right:0}
  .nav-links a.active{color:var(--teal)}
  .header-actions{display:flex;align-items:center;gap:12px}
  .theme{
    display:grid;place-items:center;
    border:0;background:none;font-size:1.125rem;
    width:44px;height:44px;border-radius:8px;color:var(--ink);
  }
  .menu-btn{display:none}
  .mobile-menu{display:none}
}

/* ==========================================================================
   ≥ 1200px — desktop : on retrouve l'ampleur d'origine
   ========================================================================== */
@media (min-width:1200px){
  :root{--gutter:24px;--header-h:80px}
  .header.scrolled{height:68px}
  .logo{height:44px}
  .nav-links{gap:28px}
  .statement-grid{grid-template-columns:.75fr 1.25fr;gap:70px}
  .red-grid{gap:80px}
  .network-grid{gap:90px}
  .footer-grid{gap:70px}
  .statement h2,.section-heading h2,.network h2{letter-spacing:-.06em;line-height:.94}
  .final-cta h2,.red-section h2{letter-spacing:-.065em;line-height:.9}
}

/* Écrans très larges : on borne la mesure typographique pour rester lisible */
@media (min-width:1600px){
  .statement-copy,.network-copy,.red-section p{max-width:62ch}
}

/* ==========================================================================
   AFFINAGES CONTEXTUELS
   ========================================================================== */

/* Téléphone en paysage : peu de hauteur, on comprime le hero */
@media (max-height:520px) and (orientation:landscape){
  .hero{min-height:auto}
  .hero-inner{padding-block:40px 48px}
  .hero h1{font-size:clamp(2.25rem,7vw,3.25rem)}
  .hero-scroll{display:none}
  .mobile-menu a{min-height:48px;padding:10px 0}
}

/* Effets de survol réservés aux appareils pointeurs */
@media (hover:hover) and (pointer:fine){
  .experience-card:hover{transform:translateY(-7px);box-shadow:0 25px 50px rgba(0,60,60,.15)}
  .flow-item:hover{background:var(--mist)}
  .menu-btn:hover{background:var(--mist)}
  .close:hover{background:var(--mist);color:#111}
}

/* Respect des préférences système */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  .hero-video-el{display:none}
  .hero-video:before{animation:none}
  *,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

@media print{
  .header,.mobile-menu,.sticky-event,.chatlive,.modal,.hero-scroll{display:none!important}
  body{color:#000;background:#fff}
  .reveal{opacity:1;transform:none}
}

/* ==========================================================================
   NOTE TYPOGRAPHIE (recommandation)
   --------------------------------------------------------------------------
   Display  : DM Sans      — titres, navigation, boutons, chiffres. Conservé :
                             c'est la signature graphique de la maquette.
   Lecture  : Inter        — NOUVEAU, pour tous les paragraphes. Hauteur d'x
                             nettement supérieure à DM Sans, contreformes plus
                             ouvertes, dessin pensé pour l'écran. Gain net de
                             lisibilité sur les blocs longs, en particulier à
                             17px sur téléphone et sur les diacritiques du
                             français (é è ê ç à ù î ï).
   Accent   : Playfair Display — inchangé, réservé aux mots mis en exergue.
   Réglages : corps 17→18px, interligne 1.75, mesure bornée à ~68 caractères,
              césure automatique activée en français.
   ========================================================================== */
