/* =========================================================================
   Horn Academic Bridge — feuille de style
   Palette navy + or reprise du logo. Registre arrondi et aéré : cartes à
   grands rayons, boutons pilule à pastille fléchée, badges circulaires.
   Titres en serif d'affichage, en écho au « HAB » du logo ; texte courant
   en sans-serif. Le motif récurrent est l'arc du logo — un pont entre un
   point de départ et un point d'arrivée.
   ========================================================================= */

:root {
  color-scheme: light;

  /* — Marque — */
  --navy:        #1a2e4a;
  --navy-fonce:  #0e1c30;
  --navy-clair:  #27405f;
  --or:          #c9973a;
  --or-clair:    #dcae57;
  --or-pale:     #f6edda;

  /* — Texte — */
  --encre:       #0f2038;
  --gris:        #5a6b82;
  --gris-clair:  #8798ae;

  /* — Surfaces — */
  --blanc:       #ffffff;
  --bande:       #f5f7fa;
  --carte:       #f2f5f9;
  --filet:       #e2e8f0;

  /* — Typographie — */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* — Rythme — */
  --large: 1200px;
  --gouttiere: 24px;
  --section: 104px;

  /* — Formes — */
  --r-carte: 20px;
  --r-panneau: 28px;
  --r-champ: 14px;
  --r-pilule: 9999px;
  --ombre: 0 1px 2px rgba(15,32,56,.04), 0 10px 30px rgba(15,32,56,.07);
  --ombre-forte: 0 2px 6px rgba(15,32,56,.06), 0 18px 48px rgba(15,32,56,.12);

  /* — Mouvement — */
  --ease: cubic-bezier(.22,.61,.36,1);
  --sortie: cubic-bezier(.16,1,.3,1);
}

/* ============================ BASE ============================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--blanc);
  color: var(--gris);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "tnum" on;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; color: var(--encre); font-family: var(--serif); font-weight: 700; text-wrap: balance; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
ol, ul, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
::selection { background: var(--or-pale); color: var(--encre); }

:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--large); margin-inline: auto; padding-inline: var(--gouttiere); }

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: var(--r-pilule); font-size: 14px;
}
.skip-link:focus { left: 16px; }

.section { padding-block: var(--section); }
.section--serre { padding-block: calc(var(--section) * .55); }
.section--bande { background: var(--bande); }

/* ======================= ÉCHELLE TYPOGRAPHIQUE ======================= */

.h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-align: center;
}
.h2--gauche { text-align: start; }
.h2--clair  { color: #fff; }
.h2--sombre { color: var(--navy-fonce); }

.lede {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.7;
  color: var(--gris);
  max-width: 62ch;
}
.lede--centre { margin-inline: auto; text-align: center; }
.lede--clair  { color: rgba(255,255,255,.82); }

.para { font-size: 17px; line-height: 1.75; color: var(--gris); max-width: 58ch; }
.para + .para { margin-top: 20px; }
.h2 + .para, .h2 + .lede { margin-top: 24px; }
.para--sombre { color: #3d3115; max-width: 54ch; }


.surtitre {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--or);
  margin-bottom: 18px;
}
.surtitre--gauche { justify-content: flex-start; }
.surtitre--sombre { color: var(--navy); }
.surtitre__trait { display: block; width: 34px; height: 2px; background: currentColor; border-radius: 2px; flex: none; transform-origin: center; }

.tete { max-width: 720px; margin-inline: auto; margin-bottom: 64px; text-align: center; }
.tete .lede { margin-top: 22px; }


/* ====================== BARRE DE NAVIGATION ====================== */

.scroll-progress { position: fixed; inset: 0 0 auto 0; z-index: 110; height: 3px; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--or), #fff);
  transition: width .08s linear;
}

.nav {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--or);
  transition: border-color .3s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.90);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  transition: background .3s var(--ease);
}
.nav.is-stuck { --hauteur-nav: 72px; }
.nav.is-stuck::before { background: rgba(26,46,74,.62); }

.nav__inner { display: flex; align-items: center; gap: 28px; height: 88px; transition: height .3s var(--ease); }
.nav.is-stuck .nav__inner { height: 72px; }

.brand { position: relative; display: flex; align-items: center; flex: none; }
.brand__logo { display: block; height: 60px; width: auto; transition: height .3s var(--ease), opacity .35s var(--ease); }
.brand__logo--clair { position: absolute; left: 0; top: 50%; translate: 0 -50%; opacity: 0; }
.nav.is-stuck .brand__logo { height: 50px; }
.nav.is-stuck .brand__logo--fonce { opacity: 0; }
.nav.is-stuck .brand__logo--clair { opacity: 1; }

.nav__cta-mobile { display: none; }

.nav__links { position: relative; display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav__link {
  position: relative;
  padding: 9px 14px;
  font-size: 15px; font-weight: 500;
  white-space: nowrap;
  color: var(--encre);
  border-radius: var(--r-pilule);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link:hover { color: var(--navy); background: var(--carte); }
.nav__link.is-active { color: var(--or); }
.nav.is-stuck .nav__link { color: #fff; }
.nav.is-stuck .nav__link:hover { color: var(--or-clair); background: rgba(255,255,255,.12); }
.nav.is-stuck .nav__link.is-active { color: var(--or-clair); }

.nav__indicator {
  position: absolute; bottom: -1px; left: 0;
  height: 2px; width: 0; background: var(--or); border-radius: 2px; opacity: 0;
  transition: transform .4s var(--sortie), width .4s var(--sortie), opacity .3s var(--ease);
  pointer-events: none;
}

.nav__actions { display: flex; align-items: center; gap: 8px; }

.nav__burger {
  display: none; width: 42px; height: 42px; margin-inline-start: auto;
  background: none; border: 1px solid var(--filet); border-radius: var(--r-pilule);
  cursor: pointer; padding: 0;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav__burger span { display: block; width: 16px; height: 1.6px; background: var(--encre); border-radius: 2px; transition: transform .3s var(--ease); }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }
.nav.is-stuck .nav__burger { border-color: rgba(255,255,255,.4); }
.nav.is-stuck .nav__burger span { background: #fff; }

/* ============================ BOUTONS ============================ */

.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 16px 13px 26px;
  border: 1.5px solid transparent;
  border-radius: var(--r-pilule);
  font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--sortie), box-shadow .25s var(--ease);
}
.btn__pastille {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.22);
  transition: transform .35s var(--sortie), background .25s var(--ease);
}
.btn__pastille svg { width: 14px; height: 14px; }
.btn:hover .btn__pastille { transform: translateX(3px); }
.btn:not(:has(.btn__pastille)) { padding: 13px 26px; }

.btn--primary { background: var(--navy); color: #fff; box-shadow: var(--ombre); }
.btn--primary:hover { background: var(--navy-clair); box-shadow: var(--ombre-forte); }

.btn--or { background: var(--or); color: var(--navy-fonce); box-shadow: var(--ombre); }
.btn--or:hover { background: var(--or-clair); box-shadow: var(--ombre-forte); }
.btn--or .btn__pastille { background: rgba(14,28,48,.16); }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-clair); }

.btn--fantome-clair { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--fantome-clair:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn--fantome-sombre { background: transparent; color: var(--navy-fonce); border-color: rgba(14,28,48,.34); }
.btn--fantome-sombre:hover { background: rgba(14,28,48,.09); border-color: var(--navy-fonce); }

.btn--bloc { width: 100%; justify-content: center; padding-block: 16px; }

.nav.is-stuck .btn--primary { background: var(--or); color: var(--navy-fonce); }
.nav.is-stuck .btn--primary:hover { background: var(--or-clair); }
.nav.is-stuck .btn--primary .btn__pastille { background: rgba(14,28,48,.16); }

.lien {
  color: var(--navy);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-size: 100% 1px; background-position: 0 100%;
  transition: background-size .35s var(--sortie), color .2s var(--ease);
}
.lien:hover { color: var(--or); background-size: 0% 1px; background-position: 100% 100%; }

/* ============================ HERO ============================ */

.hero { padding-block: 40px 0; }

.hero__carte {
  position: relative;
  border-radius: var(--r-panneau);
  background: linear-gradient(150deg, #1d3454 0%, var(--navy) 42%, var(--navy-fonce) 100%);
  overflow: hidden;
  isolation: isolate;
  padding: clamp(56px, 8vw, 104px) clamp(24px, 5vw, 72px);
  box-shadow: var(--ombre-forte);
}
.hero__arcs { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__arcs .arc-deco { fill: none; stroke-width: 1.5; stroke-linecap: round; }
.arc-deco--1 { stroke: rgba(255,255,255,.10); }
.arc-deco--2 { stroke: rgba(201,151,58,.34); }
.arc-deco--3 { stroke: rgba(255,255,255,.08); }
.node-deco { fill: #fff; opacity: .12; }
.node-deco--or { fill: var(--or); opacity: .7; }

/* 880px, et non 780 : « Votre avenir académique » mesure environ onze fois
   la taille de police en Playfair Display 800, soit 790px à 72px. Dans un
   bloc plus étroit, le titre passait à trois lignes. Le chapô garde sa
   propre largeur de lecture (60ch) juste en dessous. */
.hero__contenu { position: relative; max-width: 880px; margin-inline: auto; text-align: center; }

.pastille {
  display: inline-block;
  padding: 7px 18px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--r-pilule);
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  color: rgba(255,255,255,.88);
  margin-bottom: 28px;
}

.hero__titre {
  /* Plancher à 20px : sur un téléphone la place intérieure de la carte
     tombe à ~306px, où 36px faisaient déborder la première ligne. */
  font-size: clamp(20px, 6.4vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  font-weight: 800;
  margin-bottom: 26px;
}
.hero__titre .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__titre .line > span { display: block; }

.hero__lede {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.7;
  color: rgba(255,255,255,.78);
  max-width: 60ch; margin-inline: auto;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 38px; }

/* ============================ CHIFFRES ============================ */

.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.chiffre {
  background: var(--carte);
  border-radius: var(--r-carte);
  padding: 34px 30px;
  text-align: center;
  transition: background .3s var(--ease), transform .35s var(--sortie), box-shadow .3s var(--ease);
}
.chiffre:hover { background: var(--blanc); transform: translateY(-3px); box-shadow: var(--ombre); }
.chiffre__valeur {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(38px, 5vw, 56px); line-height: 1.05;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.chiffre__label { margin-top: 10px; font-size: 15px; color: var(--gris); }
.chiffre--or .chiffre__valeur { color: var(--or); }

/* ============================ CARTES ============================ */

/* Six colonnes et des cartes de deux colonnes : la rangée incomplète se
   décale d'une colonne et se centre exactement sous celle du dessus. */
.cartes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.carte { grid-column: span 2; }
.carte:nth-child(4) { grid-column: 2 / span 2; }
.carte {
  background: var(--carte);
  border-radius: var(--r-carte);
  padding: 38px 32px;
  text-align: center;
  transition: background .35s var(--ease), transform .4s var(--sortie), box-shadow .35s var(--ease);
}
.carte:hover { background: var(--blanc); transform: translateY(-5px); box-shadow: var(--ombre-forte); }
.carte__titre { font-size: 21px; line-height: 1.25; margin-bottom: 12px; }
.carte__texte { font-size: 15px; line-height: 1.7; color: var(--gris); }

.badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 66px; height: 66px; border-radius: 50%;
  margin-bottom: 24px;
  transition: transform .4s var(--sortie), background .3s var(--ease);
}
.badge--navy { background: rgba(26,46,74,.10); color: var(--navy); }
.badge--or   { background: rgba(201,151,58,.16); color: var(--or); }
.badge--mini { width: 34px; height: 34px; margin-bottom: 0; }
.badge--grand { width: 78px; height: 78px; background: rgba(201,151,58,.22); color: var(--or-clair); }
.carte:hover .badge { transform: scale(1.08) translateY(-2px); }
.carte:hover .badge--navy { background: var(--navy); color: #fff; }
.carte:hover .badge--or { background: var(--or); color: #fff; }

.icone { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.badge--mini .icone { width: 17px; height: 17px; }
.badge--grand .icone { width: 34px; height: 34px; }
.icone__plein { fill: currentColor; stroke: none; }

/* ==================== LE PONT (DESTINATIONS) ==================== */

.corridor {
  position: relative;
  background: var(--blanc);
  border-radius: var(--r-panneau);
  padding: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 44px) clamp(36px, 4vw, 60px);
  box-shadow: var(--ombre);
}
.corridor__svg { display: block; width: 100%; height: auto; overflow: visible; }
.corridor__sol { stroke: var(--filet); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; }

.arc { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.arc--1 { stroke: #c3cede; }
.arc--2 { stroke: var(--or); }
.arc--3 { stroke: var(--navy); }

.node { stroke: var(--blanc); stroke-width: 4; }
.node--origin { fill: var(--or); }
.node--dest { fill: var(--navy); opacity: .2; transition: opacity .5s var(--ease); }
.node--dest.is-on { opacity: 1; }

.corridor__zone { position: relative; }
.corridor__etiquettes { position: absolute; inset: 0; pointer-events: none; }
.corridor__etiquette {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, -150%);
  text-align: center; white-space: nowrap;
}
.corridor__ville { display: block; font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--encre); }
.corridor__meta { display: block; margin-top: 2px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gris-clair); }
.corridor__etiquette--origine .corridor__meta { color: var(--or); }

.destinations__note { margin-top: 32px; text-align: center; font-size: 15px; color: var(--gris-clair); }

/* ============================ DUO ============================ */

.duo { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(36px, 5vw, 72px); align-items: center; }

.reperes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.repere {
  background: var(--carte);
  border-radius: var(--r-carte);
  padding: 22px 22px 24px;
  transition: background .3s var(--ease), transform .35s var(--sortie);
}
.repere:hover { background: var(--blanc); transform: translateY(-3px); box-shadow: var(--ombre); }
.repere__haut { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.repere__n { font-size: 13px; font-weight: 600; color: var(--gris-clair); font-variant-numeric: tabular-nums; }
.repere__valeur { font-family: var(--serif); font-weight: 800; font-size: 30px; line-height: 1.1; color: var(--navy); }
.repere__label { margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--gris); }

.duo__visuel {
  position: relative;
  border-radius: var(--r-panneau);
  background: linear-gradient(160deg, #1d3454, var(--navy-fonce));
  overflow: hidden; isolation: isolate;
  aspect-ratio: 4 / 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  padding: 40px;
  box-shadow: var(--ombre-forte);
}
.duo__arcs { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.duo__logo { width: min(62%, 220px); }
.duo__legende { font-size: 13px; letter-spacing: 0.08em; color: rgba(255,255,255,.62); text-align: center; }

/* ============================ ÉTAPES ============================ */

.etapes { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 8px; }
.etapes__ligne { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--filet); border-radius: 3px; }
.etapes__remplissage { display: block; height: 100%; width: 0; background: var(--or); border-radius: 3px; transition: width .2s linear; }
.step { position: relative; padding-top: 42px; }
.step__dot {
  position: absolute; top: -5px; left: 0;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bande); border: 3px solid var(--filet);
  transition: border-color .4s var(--ease), background .4s var(--ease), transform .4s var(--sortie);
}
.step.is-passed .step__dot { border-color: var(--or); background: var(--or); transform: scale(1.2); }
.step__n { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--gris-clair); margin-bottom: 8px; transition: color .4s var(--ease); }
.step.is-passed .step__n { color: var(--or); }
.step__titre { font-size: 18px; line-height: 1.25; margin-bottom: 6px; }
.step__texte { font-size: 14px; line-height: 1.6; color: var(--gris); }

/* ============================ PANNEAUX ============================ */

.panneau {
  position: relative;
  border-radius: var(--r-panneau);
  overflow: hidden; isolation: isolate;
  padding: clamp(48px, 6vw, 80px) clamp(24px, 5vw, 72px);
  box-shadow: var(--ombre-forte);
}
.panneau--navy { background: linear-gradient(150deg, #1d3454, var(--navy-fonce)); }
.panneau--or { background: linear-gradient(150deg, var(--or-clair), var(--or)); }
.panneau__arcs { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .7; }
.panneau__arcs path { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 1; }
.panneau__arcs--sombre path { stroke: rgba(14,28,48,.16); }
.panneau__glow {
  position: absolute; width: 700px; height: 700px; left: 0; top: 0; margin: -350px 0 0 -350px;
  background: radial-gradient(circle, rgba(201,151,58,.22), rgba(201,151,58,0) 62%);
  transform: translate3d(40%, 30%, 0);
  transition: transform .9s var(--sortie);
  pointer-events: none; z-index: -1;
}
.panneau__contenu { position: relative; max-width: 720px; margin-inline: auto; text-align: center; }
.panneau__contenu--duo {
  max-width: none; text-align: start;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr);
  column-gap: clamp(36px, 5vw, 72px); row-gap: 0;
  align-items: start;
}
.panneau__surtitre { grid-column: 1 / -1; }
.panneau__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.panneau__cta--gauche { justify-content: flex-start; }
.panneau--navy .h2 { margin-top: 8px; }

.suite { display: grid; gap: 2px; background: rgba(14,28,48,.18); border-radius: var(--r-carte); overflow: hidden; }
.suite__item {
  display: grid; grid-template-columns: 38px 1fr; gap: 14px;
  padding: 22px 24px;
  background: rgba(255,255,255,.22);
  transition: background .3s var(--ease);
}
.suite__item:hover { background: rgba(255,255,255,.38); }
.suite__n { font-size: 13px; font-weight: 700; color: var(--navy-fonce); font-variant-numeric: tabular-nums; padding-top: 3px; }
.suite__titre { font-family: var(--serif); font-weight: 700; font-size: 17px; color: var(--navy-fonce); }
.suite__texte { margin-top: 4px; font-size: 14px; line-height: 1.55; color: #3d3115; }

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

.contact { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .8fr); gap: clamp(28px, 4vw, 56px); align-items: start; }

.formulaire {
  display: flex; flex-direction: column; gap: 18px;
  background: var(--blanc);
  border-radius: var(--r-panneau);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--ombre-forte);
}
.formulaire__titre { font-size: 26px; text-align: center; margin-bottom: 4px; }
.champ { display: flex; flex-direction: column; gap: 8px; }
.champ-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.champ label { font-size: 13px; font-weight: 600; color: var(--gris); }
.champ__opt { font-weight: 400; font-style: italic; color: var(--gris-clair); }
.champ input, .champ textarea, .champ select {
  font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--encre);
  background: var(--bande);
  border: 1.5px solid transparent;
  border-radius: var(--r-champ);
  padding: 14px 18px; width: 100%;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.champ textarea { resize: vertical; line-height: 1.6; }
.champ input::placeholder, .champ textarea::placeholder { color: var(--gris-clair); }
.champ input:hover, .champ textarea:hover, .champ select:hover { background: var(--carte); }
.champ input:focus, .champ textarea:focus, .champ select:focus { outline: none; border-color: var(--or); background: var(--blanc); }
/* Champ leurre : invisible pour l'humain, rempli par les robots, ce qui
   permet à Formspree d'écarter l'envoi. Hors du flux plutôt qu'en
   display:none, que certains robots savent détecter. */
.leurre { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn:disabled { opacity: .6; pointer-events: none; }

.formulaire__etat { font-size: 14px; color: var(--navy); min-height: 1.2em; }
.formulaire__etat.is-error { color: #a8442c; }

.coordonnees { display: grid; gap: 20px; align-content: start; }
.coord {
  background: var(--carte);
  border-radius: var(--r-carte);
  padding: 28px 26px;
  text-align: center;
  transition: background .3s var(--ease), transform .35s var(--sortie), box-shadow .3s var(--ease);
}
.coord:hover { background: var(--blanc); transform: translateY(-3px); box-shadow: var(--ombre); }
.coord .badge { width: 54px; height: 54px; margin-bottom: 16px; }
.coord .badge .icone { width: 24px; height: 24px; }
.coord:hover .badge--navy { background: var(--navy); color: #fff; }
.coord:hover .badge--or { background: var(--or); color: #fff; }
.coord__titre { font-size: 18px; margin-bottom: 8px; }
.coord__texte { font-size: 15px; line-height: 1.7; color: var(--gris); font-variant-numeric: tabular-nums; }

/* --- codes QR ------------------------------------------------------
   Le code garde son fond blanc et sa marge claire : cette marge fait
   partie du code, un lecteur ne retrouve pas ses repères sans elle.
   112 px est le plancher retenu — en dessous, le décodage devient
   incertain sur un écran non retina. */
.qr__image {
  display: block;
  width: 112px; height: 112px;
  border-radius: 10px;
  background: var(--blanc);
  box-shadow: 0 0 0 1px var(--filet);
}
.qr {
  display: block; width: fit-content;
  margin: 20px auto 0;
  text-align: center;
}
.qr .qr__image { transition: box-shadow .25s var(--ease), transform .3s var(--sortie); }
.qr:hover .qr__image { box-shadow: 0 0 0 2px var(--or); transform: scale(1.04); }
.qr__legende {
  display: block; margin-top: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gris-clair);
  transition: color .25s var(--ease);
}
.qr:hover .qr__legende { color: var(--or); }

.tel { display: block; }
.tel + .tel { margin-top: 14px; }
.tel__pays {
  display: block; margin-top: 1px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gris-clair);
}
.wa {
  display: inline-block; margin-inline-start: 7px;
  padding: 2px 9px 3px;
  border-radius: var(--r-pilule);
  background: rgba(201,151,58,.18);
  color: var(--or);
  font-size: 10px; letter-spacing: 0.08em;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.wa:hover { background: var(--or); color: #fff; }

.pied__pays { color: var(--gris-clair); font-size: 12px; letter-spacing: 0.04em; }

/* ============================ PIED ============================ */

.pied { background: var(--bande); border-top: 1px solid var(--filet); padding-block: 72px 32px; }
.pied__grille { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 44px; padding-bottom: 48px; }
.pied__logo { width: 224px; }
.pied__tag { margin-top: 20px; font-size: 14px; line-height: 1.7; color: var(--gris); max-width: 34ch; }
.pied__qr { display: flex; align-items: center; gap: 18px; margin-top: 28px; }
.pied__qr-texte { font-size: 13px; line-height: 1.6; color: var(--gris); max-width: 24ch; }
.pied__qr-texte strong { display: block; margin-bottom: 3px; font-weight: 600; color: var(--encre); }
.pied__col { display: flex; flex-direction: column; gap: 12px; }
.pied__titre { font-family: var(--serif); font-weight: 700; font-size: 17px; color: var(--encre); margin-bottom: 4px; }
.pied__col a { font-size: 14px; color: var(--gris); width: fit-content; transition: color .2s var(--ease), transform .25s var(--sortie); }
.pied__col a:hover { color: var(--or); transform: translateX(3px); }
.pied__bas {
  display: flex; flex-wrap: wrap; gap: 8px 32px;
  padding-top: 28px; border-top: 1px solid var(--navy);
  font-size: 13px; color: var(--navy);
}
.pied__credit { margin-inline-start: auto; }
.pied__bas a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s var(--ease);
}
.pied__bas a:hover { color: var(--or); }

/* ======================= RÉVÉLATION AU SCROLL ======================= */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .75s var(--sortie), transform .75s var(--sortie); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal .surtitre__trait { transform: scaleX(0); transition: transform .6s var(--sortie) .15s; }
.js .reveal.is-in .surtitre__trait { transform: scaleX(1); }

.js .hero__titre .line > span { transform: translateY(105%); }
.js .hero__titre.is-in .line > span { transform: none; transition: transform .95s var(--sortie); }
.js .hero__titre.is-in .line:nth-child(2) > span { transition-delay: .1s; }

.js [class*="load-"] { opacity: 0; transform: translateY(14px); }
.js body.is-loaded [class*="load-"] { opacity: 1; transform: none; transition: opacity .75s var(--sortie), transform .75s var(--sortie); }
.js body.is-loaded .load-3 { transition-delay: .05s; }
.js body.is-loaded .load-5 { transition-delay: .34s; }
.js body.is-loaded .load-6 { transition-delay: .46s; }

/* ============================ RESPONSIVE ============================ */

@media (max-width: 1100px) {
  .nav__links {
    position: fixed; inset: var(--hauteur-nav, 88px) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--blanc);
    border-bottom: 1px solid var(--filet);
    padding: 12px var(--gouttiere) 22px; margin: 0;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .28s var(--ease), transform .28s var(--sortie), visibility .28s;
  }
  .nav__links.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__link { padding: 14px 6px; font-size: 16px; border-radius: 0; border-bottom: 1px solid var(--filet); }
  .nav__indicator { display: none; }
  .nav__burger { display: flex; margin-inline-start: 8px; }
  .nav__actions { margin-inline-start: auto; }
  .nav__cta-mobile { display: block; margin-top: 14px; color: var(--or); border-bottom: 0; }
  .nav.is-stuck .nav__links { background: var(--navy); border-bottom-color: rgba(255,255,255,.18); }
  .nav.is-stuck .nav__link { border-bottom-color: rgba(255,255,255,.16); }
  .etapes { grid-template-columns: repeat(3, 1fr); row-gap: 38px; }
  .etapes__ligne { display: none; }
}

@media (max-width: 960px) {
  :root { --section: 76px; }
  .cartes { grid-template-columns: repeat(4, 1fr); }
  .carte:nth-child(4) { grid-column: span 2; }
  .carte:nth-child(5) { grid-column: 2 / span 2; }
  .chiffres { grid-template-columns: repeat(2, 1fr); }
  .duo, .contact, .panneau__contenu--duo { grid-template-columns: 1fr; }
  .panneau__contenu--duo { row-gap: 40px; }
  .duo__visuel { aspect-ratio: 16 / 10; }
  .corridor__etiquettes {
    position: static;
    display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: center;
    margin-top: 24px; padding-top: 22px;
    border-top: 1px solid var(--filet);
  }
  .corridor__etiquette { position: static; transform: none; }
  .arc { stroke-width: 3.5; }
  .pied__grille { grid-template-columns: 1fr 1fr; gap: 36px; }
  .h2--gauche, .surtitre--gauche { text-align: start; }
}

@media (max-width: 680px) {
  :root { --gouttiere: 18px; --section: 62px; --r-panneau: 20px; --r-carte: 16px; }
  .cartes, .chiffres, .reperes, .champ-duo { grid-template-columns: 1fr; }
  .carte, .carte:nth-child(4), .carte:nth-child(5) { grid-column: auto; }
  .etapes { grid-template-columns: 1fr; gap: 28px; }
  .pied__grille { grid-template-columns: 1fr; gap: 32px; }
  .hero__cta .btn, .panneau__cta .btn { flex: 1 1 auto; justify-content: center; }
  .ligne { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav__actions { display: none; }
}

/* ======================= MOUVEMENT RÉDUIT ======================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal, .js [class*="load-"] { opacity: 1 !important; transform: none !important; }
  .js .hero__titre .line > span { transform: none !important; }
  .js .reveal .surtitre__trait { transform: scaleX(1) !important; }
}
