@import url("../fonts/fonts.css");

/* =========================================================================
   PMS — Peloton Motocycliste Sécurisation
   Feuille de style unique. Aucune dépendance externe.
   1. Jetons          2. Reset      3. Utilitaires
   4. En-tête         5. Hero       6. Blocs de contenu
   7. Galerie         8. Formulaire 9. Pied de page   10. Responsive
   ========================================================================= */

/* ---------------------------------------------------------------- 1. JETONS */
:root {
  /* Couleurs de marque, reprises du blason PMS */
  --blue-900: #071033;
  --blue-700: #0e1f6e;
  --blue-500: #1b34c4;
  --blue-300: #4c6bff;
  --gold:     #ffd200;   /* jaune du blason */
  --hv:       #d8ff36;   /* jaune-vert haute visibilité */

  /* Neutres */
  --bg:        #080a10;
  --bg-2:      #0d1119;
  --surface:   #141a26;
  --surface-2: #1b2331;
  --line:      #262f40;
  --line-soft: rgba(255, 255, 255, .08);
  --text:      #f3f6fb;
  --text-soft: #dde4f0;   /* chapôs : à peine en retrait du texte courant */
  --muted:     #9daabf;
  --muted-2:   #6f7d94;

  /* Typographie */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Barlow Condensed', 'Segoe UI', Impact, sans-serif;

  /* Rythme */
  --wrap: 1240px;
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --sec: clamp(4.5rem, 10vw, 8.5rem);
  --r: 14px;
  --r-lg: 22px;

  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .75);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------------- 2. RESET */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  font-feature-settings: "cv05" 1, "ss03" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.005em;
  text-transform: uppercase;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.9rem, 8vw, 6rem); }
h2 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-color: color-mix(in srgb, var(--gold) 60%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold); }

ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 650; color: #fff; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold); color: #000; padding: .8rem 1.4rem;
  font-weight: 700;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------- 3. UTILITAIRES */
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--sec); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* Sur-titre : petite étiquette au dessus des H2 */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-sans);
  font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--hv);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--hv); flex: none;
}
.center .eyebrow::before { display: none; }

/* Le chapô est légèrement plus grand que le texte courant, et à peine plus
   doux en couleur. Un écart plus marqué donnait l'impression de deux polices
   différentes alors qu'il s'agit de la même. */
.lead {
  font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem);
  color: var(--text-soft);
  line-height: 1.62;
  max-width: 62ch;
}
.center .lead { margin-inline: auto; }

/* Bandeau à rayures haute visibilité, motif signature du site */
.hv-bar {
  height: 6px;
  background: repeating-linear-gradient(-45deg,
      var(--hv) 0 16px, #0b0d12 16px 32px);
}

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem;
  font-family: var(--font-sans);
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  border: 2px solid transparent; border-radius: 100px;
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s, border-color .18s, color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--gold); color: #0a0a0a; }
.btn--primary:hover { background: #ffe14d; }

.btn--ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn--ghost:hover { border-color: var(--hv); color: var(--hv); }

.btn--dark { background: #0a0d14; color: #fff; }
.btn--dark:hover { background: #161c28; }

.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* Sans JavaScript, personne ne viendrait rendre ces blocs visibles :
   on annule l'animation d'apparition plutôt que de masquer le contenu. */
@media (scripting: none) {
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------- 4. EN-TÊTE */
.hdr {
  position: sticky; top: 0; z-index: 100;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.hdr.is-stuck {
  background: rgba(8, 10, 16, .86);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}
.hdr__in {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 5rem;
}
.brand {
  display: flex; align-items: center; gap: .8rem;
  text-decoration: none; margin-right: auto; flex: none;
}
.brand img { width: 46px; height: 46px; }
.brand b {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .01em; line-height: 1; display: block;
}
.brand span span {
  display: block; font-size: .66rem; letter-spacing: .19em;
  text-transform: uppercase; color: var(--muted-2); font-weight: 600;
}

.nav ul { display: flex; align-items: center; gap: .35rem; }
.nav a {
  display: block; padding: .6rem .95rem; border-radius: 100px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  color: var(--muted); transition: color .2s, background-color .2s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: var(--hv); }

/* Le CTA présent dans la liste ne sert qu'au tiroir mobile :
   sur grand écran c'est celui posé à droite de l'en-tête qui s'affiche. */
.nav .btn { display: none; }
.hdr .btn { padding: .7rem 1.3rem; font-size: .88rem; }

.burger {
  display: none; width: 46px; height: 46px; flex: none;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.burger span {
  display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px;
  position: relative; transition: background-color .2s;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px;
  background: #fff; border-radius: 2px; transition: transform .25s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------- 5. HERO */
.hero { position: relative; isolation: isolate; margin-top: -5rem; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,10,16,.88) 0%, rgba(8,10,16,.42) 30%, rgba(8,10,16,.72) 72%, var(--bg) 100%),
    linear-gradient(95deg, rgba(8,10,16,.9) 0%, rgba(8,10,16,.25) 62%, transparent 100%);
}
.hero__in {
  min-height: min(94svh, 900px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 9rem; padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.hero h1 { margin-bottom: .35em; max-width: 16ch; }
.hero h1 em {
  font-style: normal; color: var(--hv);
  display: block;
}
.hero__lead { max-width: 54ch; font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); color: #d5dcea; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

/* Bandeau de chiffres sous le hero */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-soft);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
/* Séparateur à gauche de chaque colonne (sauf la première de chaque rangée),
   et ligne entre les deux rangées de 4. */
.stats div { padding: 1.6rem 1rem 0; border-left: 1px solid var(--line-soft); }
.stats div:first-child { border-left: 0; }
.stats div:nth-child(4n+1) { border-left: 0; }
.stats div:nth-child(n+5) { border-top: 1px solid var(--line-soft); padding-top: 1.4rem; }
.stats b {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: var(--gold);
}
.stats span {
  display: block; margin-top: .4rem; font-size: .8rem; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase; color: var(--muted-2);
}

/* --------------------------------------------------- 6. BLOCS DE CONTENU */
.section--alt { background: var(--bg-2); }
.section--alt::before, .section--alt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: var(--line-soft);
}
.section--alt::before { top: 0; }
.section--alt::after { bottom: 0; }

.head { max-width: 64ch; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.head.center { margin-inline: auto; }

/* Deux colonnes texte / image */
.split {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1fr 1fr; align-items: center;
}
.split--rev .split__media { order: -1; }
.split__media {
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow); position: relative;
}
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media--tall img { aspect-ratio: 3 / 4; }
/* Photo en 16/9, montrée sans recadrage notable. On fixe le rapport plutôt que
   de le laisser en « auto » : sinon la hauteur reste à zéro tant que l'image
   n'est pas chargée, et la page saute au moment où elle arrive. */
.split__media--free img { aspect-ratio: 16 / 9; }
/* Rapport 3/2 conservé : sur les vues larges, un recadrage en 4/3 amputerait
   les bords — et c'est justement là que se trouvent les motos latérales. */
.split__media--large img { aspect-ratio: 3 / 2; }

/* Deux photos côte à côte dans une même colonne */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.duo figure { margin: 0; }
.duo img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--r); box-shadow: var(--shadow);
}
/* Variante pour une paire d'images au format paysage */
.duo--paysage img { aspect-ratio: 4 / 3; }
/* Le bloc suit l'inversion gauche/droite au même titre qu'une image seule */
.split--rev > .duo { order: -1; }
.duo figcaption {
  margin-top: .7rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted-2); text-align: center;
}

/* Références : blocs compacts, texte volontairement plus petit */
.lead--sm { font-size: 1.02rem; }
.refs { display: grid; gap: 1.05rem; margin-top: 1.9rem; }
.ref { border-top: 1px solid var(--line); padding-top: 1rem; }
.ref h3 {
  font-family: var(--font-sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--hv);
  margin-bottom: .45em;
}
.ref p { font-size: .93rem; color: var(--muted); margin: 0; line-height: 1.55; }
.media-note {
  margin-top: .9rem; font-size: .88rem; color: var(--muted-2); line-height: 1.5;
}
/* La colonne occupe toute la hauteur du bloc : la photo se centre sur le texte
   et la légende descend en bas, au lieu de tirer la photo vers le haut. */
.split__col { align-self: stretch; display: flex; flex-direction: column; }
.split__col .split__media { margin-block: auto; }

/* Liste à puces jaunes */
.ticks { display: grid; gap: .85rem; margin-top: 1.6rem; }
.ticks li { display: flex; gap: .85rem; align-items: flex-start; color: var(--muted); }
.ticks li strong { color: var(--text); font-weight: 650; }
.ticks svg { width: 22px; height: 22px; flex: none; color: var(--hv); margin-top: .18rem; }

/* Grille de prestations */
.cards {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--hv) 45%, var(--line)); }
.card__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 1.5rem 1.5rem 1.7rem; }
.card__body h3 { margin-bottom: .45em; }
.card__body p { color: var(--muted); font-size: .96rem; margin: 0; }
.card__tag {
  position: absolute; top: .9rem; left: .9rem; z-index: 1;
  background: var(--gold); color: #0a0a0a;
  font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: .38rem .7rem; border-radius: 100px;
}

/* Étapes numérotées */
.steps { counter-reset: s; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.step {
  counter-increment: s; position: relative;
  padding: 2.4rem 1.5rem 1.7rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.step::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--blue-300);
  position: absolute; top: 1.1rem; right: 1.3rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: .4em; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Encadré de mise au point (ex. limites du secourisme) */
.note-box {
  border-left: 3px solid var(--hv);
  background: color-mix(in srgb, var(--hv) 7%, transparent);
  border-radius: 0 12px 12px 0;
  padding: 1.1rem 1.3rem;
  margin-block: 1.5rem;
  color: var(--muted);
  font-size: .97rem;
}
.note-box strong { color: var(--text); }

/* Bandeau valeurs */
.values { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
/* Variante pleine largeur : la liste traverse les deux colonnes du bloc,
   sous le texte comme sous la photo. */
.values--full {
  grid-column: 1 / -1;
  justify-content: center;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.values li {
  border: 1px solid var(--line); border-radius: 100px;
  padding: .5rem 1.1rem; font-size: .88rem; font-weight: 600; color: var(--muted);
  background: var(--surface);
}

/* Témoignages */
.quotes { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.quote {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 2rem 1.7rem 1.7rem; position: relative;
}
.quote::before {
  content: "\201C"; font-family: var(--font-display); font-size: 5rem; line-height: .8;
  color: var(--blue-300); opacity: .45; position: absolute; top: .6rem; left: 1.2rem;
}
.quote p { position: relative; font-size: 1.08rem; color: var(--text); }
.quote cite {
  display: block; margin-top: 1rem; font-style: normal; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); font-weight: 600;
}

/* Citation pleine largeur */
.pullquote { text-align: center; max-width: 30ch; margin-inline: auto; }
.pullquote blockquote {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.7rem, 4.2vw, 2.9rem); line-height: 1.12; text-transform: uppercase;
}
.pullquote cite {
  display: block; margin-top: 1.5rem; font-style: normal;
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--hv); font-weight: 700; font-family: var(--font-sans);
}

/* Partenaires — chaque logo posé sur une plaque claire : la plupart sont
   dessinés en foncé sur fond transparent et disparaîtraient sur le fond sombre. */
.partners {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.partner {
  background: #f2f5f9; border-radius: var(--r-lg);
  min-height: 140px; padding: 1.6rem 1.9rem;
  display: grid; place-items: center;
  transition: transform .25s var(--ease), background-color .25s;
}
a.partner { text-decoration: none; }
a.partner:hover { transform: translateY(-4px); background: #fff; }
.partner img {
  max-height: 72px; max-width: 100%; width: auto;
  object-fit: contain;
}
.partner-txt {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  text-transform: uppercase; color: #5b6577; text-align: center; line-height: 1.05;
}

/* Bandeau photo pleine largeur */
.band { position: relative; }
.band__media {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow);
  position: relative;
}
.band__media img { width: 100%; display: block; }
.band__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 8, 13, .82) 100%);
}
.band__cap {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: .4rem 1.2rem;
}
.band__cap b {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem); line-height: 1; color: #fff;
}
.band__cap span { color: var(--muted); font-size: .92rem; }

/* Appel à l'action final */
.cta-band {
  background: linear-gradient(120deg, var(--blue-700), var(--blue-500) 55%, #2a45e0);
  border-radius: var(--r-lg); padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--hv) 0 16px, transparent 16px 32px);
}
.cta-band h2 { margin-bottom: .35em; }
.cta-band p { color: rgba(255, 255, 255, .82); max-width: 55ch; margin-inline: auto; }
.cta-band .hero__cta { justify-content: center; }

/* ------------------------------------------------------------- 7. GALERIE */
.filters {
  display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center;
  margin-bottom: 2.5rem;
}
.filters button {
  font-family: inherit; font-size: .88rem; font-weight: 600;
  padding: .55rem 1.15rem; border-radius: 100px; cursor: pointer;
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--line);
  transition: background-color .2s, color .2s, border-color .2s;
}
.filters button:hover { color: #fff; border-color: var(--muted-2); }
.filters button[aria-pressed="true"] {
  background: var(--gold); color: #0a0a0a; border-color: var(--gold);
}

.grid-gal {
  display: grid; gap: .85rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}
.grid-gal figure { margin: 0; }
.grid-gal button {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: var(--surface-2); border-radius: var(--r); overflow: hidden;
  position: relative; aspect-ratio: 4 / 3;
}
.grid-gal img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s var(--ease), opacity .3s;
}
.grid-gal button:hover img { transform: scale(1.06); }
.grid-gal figcaption {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  padding: 2.5rem .9rem .8rem; text-align: left;
  font-size: .82rem; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85));
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s, transform .3s var(--ease);
}
.grid-gal button:hover figcaption,
.grid-gal button:focus-visible figcaption { opacity: 1; transform: none; }
.grid-gal figure[hidden] { display: none; }

/* Cartes vidéo (bas de galerie) — miniature YouTube hébergée en local, le clic
   ouvre la vidéo sur YouTube dans un nouvel onglet. Pas d'iframe, pas de tracker. */
/* Deux vidéos : deux colonnes centrées (borné pour éviter une 3e piste vide
   sur grand écran), empilées sous 640px. */
.videos {
  display: grid; gap: 1.25rem; margin-top: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
  max-width: 940px; margin-inline: auto;
}
@media (max-width: 640px) { .videos { grid-template-columns: 1fr; } }
.videocard {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); transition: transform .3s var(--ease), border-color .3s;
}
.videocard:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--hv) 45%, var(--line)); }
.videocard__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.videocard__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.videocard:hover .videocard__thumb img { transform: scale(1.05); }
.videocard__play {
  position: absolute; inset: 0; margin: auto; width: 66px; height: 66px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(2px);
  transition: background-color .25s, transform .25s var(--ease);
}
.videocard:hover .videocard__play { background: var(--hv); transform: scale(1.08); }
.videocard__play svg { width: 26px; height: 26px; margin-left: 3px; color: #fff; }
.videocard:hover .videocard__play svg { color: #0a0a0a; }
.videocard__body { padding: 1.1rem 1.3rem 1.3rem; }
.videocard__body b { display: block; font-size: 1rem; font-weight: 650; line-height: 1.35; }
.videocard__body span {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .5rem;
  font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 600;
}

/* Visionneuse */
.lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 5, 8, .96);
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; visibility: hidden; transition: opacity .28s, visibility .28s;
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb img {
  max-width: 100%; max-height: 80svh; width: auto;
  border-radius: 10px; box-shadow: var(--shadow);
}
.lb__cap {
  margin-top: 1.1rem; text-align: center; color: var(--muted);
  font-size: .95rem; max-width: 60ch;
}
.lb__cap b { display: block; color: var(--muted-2); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-top: .4rem; font-weight: 600; }
.lb button {
  position: absolute; background: rgba(255, 255, 255, .1);
  border: 1px solid var(--line); color: #fff; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; transition: background-color .2s;
}
.lb button:hover { background: rgba(255, 255, 255, .2); }
.lb button svg { width: 22px; height: 22px; }
.lb__close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lb__prev { left: clamp(.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.lb__next { right: clamp(.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------- 8. FORMULAIRE / NEWS */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.field label .req { color: var(--hv); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: .85rem 1rem; width: 100%;
  transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--hv); background: var(--surface-2); outline: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239daabf' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 20px; padding-right: 2.8rem; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

.form-note { font-size: .85rem; color: var(--muted-2); }
.form-msg {
  border-radius: 12px; padding: 1rem 1.2rem; font-size: .95rem; font-weight: 600;
  border: 1px solid; margin-bottom: 1.3rem;
}
.form-msg--ok { border-color: color-mix(in srgb, var(--hv) 50%, transparent); background: color-mix(in srgb, var(--hv) 10%, transparent); color: var(--hv); }
.form-msg--ko { border-color: #ff6b6b80; background: #ff6b6b1a; color: #ff9d9d; }
.form-msg[hidden] { display: none; }

/* Carte de coordonnées */
.contact-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr 1fr; align-items: start; }
.info-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.2rem);
}
.info-list { display: grid; gap: 1.35rem; margin-top: 1.5rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list svg { width: 22px; height: 22px; flex: none; color: var(--hv); margin-top: .3rem; }
.info-list b { display: block; font-size: .75rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; margin-bottom: .15rem; }
.info-list a, .info-list span { color: var(--text); text-decoration: none; font-size: 1.05rem; }
.info-list a:hover { color: var(--hv); }

.map-frame {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 4 / 3; background: var(--surface);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* Réseaux sociaux (page News) */
.social-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; align-items: start; }

.feed-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.feed-card__hd {
  display: flex; align-items: center; gap: .9rem;
  padding: 1.25rem 1.4rem; border-bottom: 1px solid var(--line);
}
.feed-card__hd .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.feed-card__hd .ico svg { width: 24px; height: 24px; color: #fff; }
.ico--fb { background: #1877f2; }
.ico--ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); }
.feed-card__hd b { display: block; font-size: 1.02rem; }
.feed-card__hd span { display: block; font-size: .82rem; color: var(--muted-2); }
.feed-card__hd .btn { margin-left: auto; }
.feed-card__body { padding: 1.4rem; }
.feed-card__body > iframe { margin-inline: auto; border-radius: 10px; overflow: hidden; }

/* Écran de consentement pour les intégrations sociales */
.consent {
  display: grid; place-items: center; text-align: center; gap: 1rem;
  min-height: 380px; padding: 2rem 1.5rem;
  background:
    linear-gradient(rgba(8, 10, 16, .82), rgba(8, 10, 16, .93)),
    var(--surface-2);
  border-radius: 12px;
}
.consent p { color: var(--muted); max-width: 42ch; font-size: .95rem; }
.consent svg { width: 34px; height: 34px; color: var(--muted-2); }

.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.ig-grid a { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; }
.ig-grid a:hover img { transform: scale(1.07); filter: brightness(1.1); }

/* ---------------------------------------------------------- 9. PIED DE PAGE */
.ftr { background: #05070c; border-top: 1px solid var(--line); padding-top: clamp(3.5rem, 7vw, 5rem); }
.ftr__grid {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  padding-bottom: 3rem;
}
.ftr h4 {
  font-size: .82rem; letter-spacing: .14em; color: var(--muted-2);
  font-family: var(--font-sans); font-weight: 700; margin-bottom: 1.2rem;
}
.ftr ul { display: grid; gap: .7rem; }
.ftr a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.ftr a:hover { color: var(--hv); }
.ftr p { color: var(--muted); font-size: .95rem; }
.ftr .brand { margin-bottom: 1.2rem; }
.socials { display: flex; gap: .6rem; margin-top: 1.3rem; }
.socials a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
  transition: background-color .2s, border-color .2s, transform .2s var(--ease);
}
.socials a:hover { border-color: var(--hv); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; }
.ftr__btm {
  border-top: 1px solid var(--line); padding-block: 1.6rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .85rem; color: var(--muted-2);
}
.ftr__btm ul { display: flex; gap: 1.4rem; }
.ftr__btm a { font-size: .85rem; }

/* Bandeau cookies */
.cookiebar {
  position: fixed; z-index: 300; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 560px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem;
  transform: translateY(140%); transition: transform .45s var(--ease);
}
.cookiebar.is-in { transform: none; }
.cookiebar p { font-size: .9rem; color: var(--muted); }
.cookiebar .row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.cookiebar .btn { padding: .7rem 1.3rem; font-size: .88rem; }

/* Page intérieure : bandeau de titre */
.pagehead { position: relative; isolation: isolate; margin-top: -5rem; padding-top: 5rem; }
.pagehead__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.pagehead__media img { width: 100%; height: 100%; object-fit: cover; }
.pagehead__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,10,16,.9), rgba(8,10,16,.72) 45%, var(--bg) 100%);
}
.pagehead__in { padding-block: clamp(4.5rem, 10vw, 8rem) clamp(2.5rem, 5vw, 4rem); }
.crumbs { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin-bottom: 1rem; }
.crumbs a { text-decoration: none; color: var(--muted-2); }
.crumbs a:hover { color: var(--hv); }

/* ------------------------------------------------------------ 10. RESPONSIVE */
@media (max-width: 1080px) {
  .ftr__grid { grid-template-columns: 1fr 1fr; }
}

/* Le menu passe en tiroir dès 1080 px : avec cinq entrées plus le bouton
   de devis, la barre ne tient plus sur une seule ligne en dessous. */
@media (max-width: 1080px) {
  .hdr__in { min-height: 4.5rem; }
  .hero, .pagehead { margin-top: -4.5rem; }
  .pagehead { padding-top: 4.5rem; }
  html { scroll-padding-top: 5rem; }

  .burger { display: flex; }
  .hdr .btn--primary { display: none; }

  .nav {
    position: fixed; inset: 4.5rem 0 auto 0;
    background: rgba(8, 10, 16, .98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gut) 1.6rem;
    transform: translateY(-115%); visibility: hidden;
    transition: transform .35s var(--ease), visibility .35s;
    max-height: calc(100svh - 4.5rem); overflow-y: auto;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav ul { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav a { padding: .95rem .6rem; font-size: 1.15rem; font-family: var(--font-display); text-transform: uppercase; }
  .nav .btn { display: inline-flex; margin-top: .8rem; width: 100%; font-family: var(--font-sans); text-transform: none; font-size: .95rem; }

  .split, .contact-grid, .social-grid { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .split__media img, .split__media--tall img { aspect-ratio: 16 / 10; }

  /* Le bandeau de chiffres a ses propres paliers, plus bas — indépendants du
     menu, pour rester en 5 colonnes le plus longtemps possible. */
}

@media (max-width: 640px) {
  .hero__in { min-height: min(88svh, 720px); padding-top: 7rem; }
  /* 140px (au lieu de 155) pour que 2 colonnes tiennent dès ~300px de large :
     à 360px, 2×155+gap dépassait de peu et retombait à 1 seule colonne. */
  .grid-gal { grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: .5rem; }
  .grid-gal figcaption { display: none; }
  /* Cibles tactiles : 44 px minimum, recommandation WCAG */
  .filters button { min-height: 44px; padding-inline: 1rem; }
  /* Deux photos côte à côte tomberaient à ~145 px de large : on les empile
     pour qu'elles restent lisibles. */
  .duo { grid-template-columns: 1fr; gap: 1.1rem; }
  .form-grid { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr; }
  .ftr__btm { flex-direction: column; }
  .ftr__btm ul { flex-wrap: wrap; gap: 1rem; }
  .lb__prev { left: .5rem; }
  .lb__next { right: .5rem; }
  .lb button { width: 44px; height: 44px; }
  .brand span span { display: none; }
  .brand b { font-size: 1.3rem; }
}

/* Bandeau de chiffres — 4 colonnes, puis 2 colonnes sous 860px.
   Le séparateur gauche est retiré sur la première colonne de chaque rangée,
   et une ligne sépare les rangées à partir de la deuxième. */
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }   /* rangées de 2 */
  .stats div:nth-child(4n+1) { border-left: 1px solid var(--line-soft); } /* on annule la règle 4-col */
  .stats div:nth-child(odd) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line-soft); padding-top: 1.4rem; }
}

@media print {
  .hdr, .ftr, .cookiebar, .lb, .hero__media { display: none !important; }
  body { background: #fff; color: #000; }
}
