/* =========================================================================
   YH DIGITAL — page d'accueil, refonte 2026-11 (démo locale, pas en ligne)
   Même famille visuelle que la page de YH Pointe : noir, rouge rationné,
   papier pour les passages « terrain », Archivo large + IBM Plex Sans.
   Le haut de page (titre en strates + nuage de particules) est celui du site
   d'origine, gardé à la demande de Younes le 12/11 ; tout le reste est refait.
   Feuille à part : styles.css reste intact pour outil-transcripteur.html.
   ========================================================================= */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/plex-latin.woff2") format("woff2");
}

:root {
  --bg: #0e0c0c;
  --bg2: #151212;
  --bg3: #1b1717;
  --rule: #2a2321;
  --rule2: #3e3532;
  --txt: #f2eeec;
  --mute: #b6ada8;
  --rouge: #d6402d;
  --rouge-fonce: #bf3725;
  --rouge-clair: #ec6b57;
  --papier: #e9e2dd;
  --papier-ligne: #cfc5be;
  --encre: #151212;
  --encre2: #51463f;
  --rouge-encre: #a8301f;
  --wrap: 1180px;
  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 0.84, 0.32, 1);
  --ease-snap: cubic-bezier(0.2, 0.9, 0.25, 1.08);
  --rouge-oxyde: #7e4038;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--txt); outline-offset: 3px; }
.papier :focus-visible { outline-color: var(--encre); }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 12px 18px; background: var(--txt); color: var(--bg); font-weight: 500;
}
.skip:focus { top: 12px; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
/* Fond opaque : chaque section recouvre le nuage de particules, visible seulement derrière l'ouverture. */
.bloc { padding: clamp(64px, 9vw, 124px) 0; background: var(--bg); }
.bloc.alt { background: var(--bg2); border-block: 1px solid var(--rule); }

/* ---------- Typographie ---------- */
.h1, .h2, .h3 {
  font-family: var(--font-display); font-weight: 800; font-stretch: 118%;
  letter-spacing: -.012em; text-wrap: balance;
}
.h1 { font-size: clamp(40px, 6.2vw, 86px); line-height: 1; }
.h2 { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.08; max-width: 22ch; }
.h2.large { max-width: 28ch; }
.h3 { font-size: 20px; line-height: 1.25; font-weight: 700; font-stretch: 112%; letter-spacing: 0; }
.sur {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-family: var(--font-display); font-weight: 700; font-stretch: 125%;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--rouge-clair);
}
.sur::before { content: ""; width: 8px; height: 8px; background: var(--rouge); flex: none; }
.lead { margin-top: 24px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--mute); max-width: 60ch; }
.lead strong, .lead b { color: var(--txt); font-weight: 500; }

/* ---------- Boutons : un principal, un secondaire, un lien ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  background: var(--rouge); color: #fff; border: 1px solid var(--rouge);
  font-family: var(--font-display); font-weight: 700; font-stretch: 112%; font-size: 15px; letter-spacing: .02em;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background .18s var(--ease-out), border-color .18s var(--ease-out), transform .18s var(--ease-out);
}
.btn:hover { background: var(--rouge-fonce); border-color: var(--rouge-fonce); }
.btn:active { transform: translateY(1px); }
.btn svg { transition: transform .18s var(--ease-out); flex: none; }
.btn:hover svg { transform: translateX(3px); }
.btn.petit { min-height: 44px; padding: 10px 18px; font-size: 13px; }
.btn.second { background: transparent; color: var(--txt); border-color: var(--rule2); }
.btn.second:hover { background: var(--bg3); border-color: var(--txt); }
.btn[disabled] { opacity: .6; cursor: progress; }
.lien {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--txt); font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--rule2); text-underline-offset: 5px; text-decoration-thickness: 1px;
  transition: text-decoration-color .18s;
}
.lien:hover { text-decoration-color: var(--rouge); }
.lien svg { color: var(--rouge-clair); flex: none; transition: transform .18s var(--ease-out); }
.lien:hover svg { transform: translateX(3px); }

/* ---------- En-tête ---------- */
/* Fixe : l'ouverture passe dessous. En haut de page (.en-haut, posé par le script),
   la barre s'efface pour laisser le nuage de particules ; elle revient dès qu'on défile. */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: linear-gradient(to bottom, rgb(14 12 12 / .94) 0%, rgb(14 12 12 / .82) 55%, rgb(14 12 12 / 0) 100%);
}
.top::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(14, 12, 12, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  transition: opacity .3s var(--ease-out);
}
.en-haut .top::before { opacity: 0; }
.en-haut .nav .btn { background: transparent; border-color: var(--rule2); }
.en-haut .nav .btn:hover { background: var(--bg3); border-color: var(--txt); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.marque {
  display: inline-flex; align-items: center; gap: 5px; min-height: 44px; flex: none;
  font-family: var(--font-display); font-weight: 800; font-stretch: 125%; font-size: 17px; letter-spacing: .14em;
  color: var(--txt); text-decoration: none; white-space: nowrap;
}
.marque i, .pt { width: 7px; height: 7px; background: var(--rouge); display: block; transform: translateY(4px); flex: none; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a.l {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--mute); text-decoration: none; font-size: 15px; white-space: nowrap; transition: color .18s;
}
.nav a.l:hover { color: var(--txt); }
.nav .btn { margin-left: 12px; white-space: nowrap; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary {
  list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--rule2); cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-stretch: 112%; font-size: 14px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary i { width: 16px; height: 2px; background: var(--txt); box-shadow: 0 5px 0 var(--txt), 0 -5px 0 var(--txt); display: block; }
.menu nav {
  position: absolute; right: 0; top: calc(100% + 12px); width: min(86vw, 320px);
  background: var(--bg2); border: 1px solid var(--rule2); padding: 8px; display: grid;
  box-shadow: 0 30px 60px -20px #000;
}
.menu nav a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; text-decoration: none; border-bottom: 1px solid var(--rule); }
.menu nav a:last-child { border-bottom: 0; }
.menu nav a.fort { color: var(--rouge-clair); font-weight: 500; }

/* ---------- 1. Ouverture : le haut de page d'origine ---------- */
.scene-3d { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.scene-3d canvas { display: block; }
.scene-3d.hors-champ { visibility: hidden; }
main, .pied { position: relative; z-index: 1; }

.section--hero {
  position: relative; display: flex; align-items: stretch; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  padding: clamp(96px, 12vh, 136px) clamp(24px, 5vw, 64px) clamp(72px, 9vh, 112px);
  background: rgb(14 12 12 / .58); /* voile : le nuage reste lisible derrière le texte */
}
.section--hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 18% 8%, var(--bg3) 0%, transparent 62%);
}
.hero-content {
  position: relative; z-index: 1; flex: 1; width: 100%; max-width: var(--wrap); margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  will-change: opacity, transform;
}
.logo {
  font-family: var(--font-display); font-weight: 700; font-stretch: 115%; font-size: 1.0625rem;
  letter-spacing: .26em; line-height: 1; color: var(--txt); text-transform: uppercase; white-space: nowrap;
}
.logo-dot { display: inline-block; width: .26em; height: .26em; background: var(--rouge); margin-left: .14em; vertical-align: .06em; }
.logo--hero { display: block; font-size: clamp(1.5rem, 3.3vw, 2.75rem); margin-bottom: clamp(20px, 5vh, 56px); }

.hero-title {
  position: relative; max-width: 18ch; margin-top: auto;
  font-family: var(--font-display); font-size: clamp(2.5rem, 7vw, 5.75rem); font-weight: 800; font-stretch: 125%;
  line-height: .95; letter-spacing: -.03em;
}
.hero-title:has(.hero-strata) { max-width: 10ch; }
.hero-strata { position: absolute; inset: 0; pointer-events: none; -webkit-user-select: none; user-select: none; }
.stratum {
  position: absolute; top: 0; left: 0; width: 100%; color: var(--rouge-oxyde); opacity: 0;
  transform: translate3d(calc(var(--i) * -.15em), calc(var(--i) * .028em), 0);
}
.hero-line { position: relative; display: block; }
.hero-line .tp { color: var(--rouge); display: inline-block; }
.hero-subtitle { margin-top: 32px; max-width: 54ch; color: var(--txt); font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; }

.hero-cta-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 48px; }
.btn-cta {
  display: inline-block; padding: 16px 32px;
  font-family: var(--font-display); font-size: .8125rem; font-weight: 700; font-stretch: 112%;
  letter-spacing: .12em; line-height: 1; text-transform: uppercase; text-decoration: none;
  background: var(--txt); color: var(--bg); border: 1px solid var(--txt); cursor: pointer;
  transition: background .5s var(--ease-out), color .5s var(--ease-out), border-color .5s var(--ease-out), transform .25s var(--ease-out);
}
.btn-cta:hover { background: transparent; color: var(--txt); border-color: var(--rouge); }
.btn-cta:focus-visible { outline-color: var(--txt); outline-offset: 4px; }
.btn-cta--ghost { background: var(--bg); color: var(--txt); border-color: var(--mute); }
.btn-cta--ghost:hover { background: var(--bg); border-color: var(--txt); }

.scroll-cue {
  display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 96px;
  font-family: var(--font-display); font-size: .6875rem; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--mute);
}
.scroll-line { display: block; width: clamp(48px, 8vw, 96px); height: 1px; background: var(--rule2); }
.scroll-cue::after { content: ""; width: 5px; height: 5px; background: var(--rouge); flex-shrink: 0; margin-left: -10px; }

/* Entrée du haut de page : les strates se replient sur le titre, puis le reste monte. */
@keyframes stratum-collapse {
  0% { opacity: 0; transform: translate3d(calc(var(--i) * -.15em), calc(var(--i) * .028em), 0); }
  22% { opacity: var(--o); }
  100% { opacity: 0; transform: translate3d(0, 0, 0); }
}
@keyframes line-settle { from { opacity: 0; transform: translateY(.14em); } to { opacity: 1; transform: none; } }
@keyframes dot-land { 0% { opacity: 0; transform: translateY(-.5em) scale(.7); } 100% { opacity: 1; transform: none; } }
@keyframes soft-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cue-breathe { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.72); } }
.js .stratum { animation: stratum-collapse 1.05s var(--ease-out) both; animation-delay: var(--d); }
.js .hero-line { animation: line-settle .9s var(--ease-out) .24s both; }
.js .hero-line .tp { animation: dot-land .5s var(--ease-snap) 1.02s both; }
.js .logo--hero { animation: soft-rise .6s var(--ease-out) .02s both; }
.js .hero-subtitle { animation: soft-rise .7s var(--ease-out) .86s both; }
.js .hero-cta-group { animation: soft-rise .7s var(--ease-out) .98s both; }
.js .scroll-cue { animation: soft-rise .7s var(--ease-out) 1.12s both; }
.js .scroll-cue::after { animation: cue-breathe 2.4s ease-in-out 1.6s infinite; }

/* ---------- 2. YH Pointe ---------- */
.pointe-carte { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pointe-nom { display: flex; align-items: center; gap: 5px; margin-bottom: 14px; font-size: 15px; font-stretch: 125%; letter-spacing: .14em; color: var(--mute); }
.pointe-nom i { width: 6px; height: 6px; background: var(--rouge); transform: translateY(3px); }
.puces { margin-top: 30px; display: grid; gap: 16px; max-width: 60ch; }
.puces li { position: relative; padding-left: 24px; color: var(--mute); }
.puces li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--rouge); }
.puces strong { color: var(--txt); font-weight: 500; }
.pointe-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 34px; }

.tel { position: relative; justify-self: end; width: min(100%, 300px); aspect-ratio: 9 / 16; padding: 9px; background: #050404; border: 1px solid var(--rule2); border-radius: 36px; box-shadow: 0 50px 90px -40px #000; cursor: pointer; }
.tel video { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; background: var(--bg2); }
.tel button {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 44px; padding: 0 18px; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-stretch: 110%; font-size: 13px;
  transition: opacity .2s, transform .2s var(--ease-out);
}
.tel .pastille { background: var(--txt); color: var(--bg); }
.tel .pastille:hover { transform: translateX(-50%) translateY(-2px); }
.tel .pastille.cache { opacity: 0; pointer-events: none; }
.tel .son { background: rgba(14, 12, 12, .86); color: var(--txt); border: 1px solid var(--rule2); }
.tel .son[hidden] { display: none; }

.secteurs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: clamp(48px, 6vw, 80px); }
.secteur { display: flex; flex-direction: column; background: var(--bg3); border: 1px solid var(--rule); text-decoration: none; transition: border-color .18s, transform .25s var(--ease-out); }
.secteur:hover { border-color: var(--rule2); transform: translateY(-3px); }
.secteur-visuel { position: relative; padding: 26px 26px 0; overflow: hidden; background: var(--bg2); border-bottom: 1px solid var(--rule); }
.secteur-visuel .ecran { width: 100%; height: auto; border: 1px solid var(--rule2); border-bottom: 0; }
.secteur-visuel .mobile { position: absolute; right: 22px; bottom: -34px; width: 24%; height: auto; border: 5px solid #050404; border-radius: 16px; box-shadow: 0 24px 40px -16px #000; }
.secteur-texte { padding: 26px; display: grid; gap: 8px; }
.secteur-nom { font-family: var(--font-display); font-weight: 700; font-stretch: 125%; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--rouge-clair); }
.secteur-texte strong { font-family: var(--font-display); font-weight: 700; font-stretch: 112%; font-size: 21px; line-height: 1.25; }
.secteur-texte .desc { color: var(--mute); }
.secteur .lien { margin-top: 6px; }
.secteur:hover .lien { text-decoration-color: var(--rouge); }
.secteur:hover .lien svg { transform: translateX(3px); }

.fiche { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule2); }
.fiche div { padding: 22px 24px 0 0; }
.fiche div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.fiche dt { font-family: var(--font-display); font-weight: 700; font-stretch: 112%; font-size: 16px; }
.fiche dd { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--mute); }
.fiche a { color: var(--txt); text-underline-offset: 3px; }

/* ---------- 3. La friction (papier) ---------- */
.papier { background: var(--papier); color: var(--encre); }
.papier .sur { color: var(--rouge-encre); }
.friction-grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.definition { font-family: var(--font-display); font-weight: 700; font-stretch: 112%; font-size: clamp(24px, 2.7vw, 36px); line-height: 1.22; letter-spacing: -.005em; text-wrap: pretty; }
.histoire { border-left: 2px solid var(--rouge); padding-left: clamp(20px, 2.4vw, 32px); }
.histoire figcaption { font-family: var(--font-display); font-weight: 700; font-stretch: 125%; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--rouge-encre); margin-bottom: 14px; }
.histoire blockquote { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; }
.histoire p { margin-top: 16px; color: var(--encre2); }
.histoire p.vous { color: var(--encre); font-weight: 500; }
.histoire .lien { margin-top: 12px; color: var(--encre); text-decoration-color: var(--rouge); }
.histoire .lien svg { color: var(--rouge-encre); }

/* ---------- 4. Juste moi ---------- */
.moi-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.signes { display: grid; gap: 0; border-top: 1px solid var(--rule2); }
.signes li { padding: 22px 0; border-bottom: 1px solid var(--rule); font-size: 18px; line-height: 1.5; }
.moi-fin { margin-top: 26px; color: var(--mute); }
.moi-grille .btn { margin-top: 26px; }

/* ---------- 5. Catalogue ---------- */
.cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(36px, 5vw, 56px); }
.cat-card { display: flex; flex-direction: column; padding: 28px; background: var(--bg2); border: 1px solid var(--rule); }
.cat-ico { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--rule2); color: var(--rouge-clair); margin-bottom: 22px; }
.cat-card p { margin-top: 10px; color: var(--mute); flex: 1; }
.cat-card .lien { margin-top: 18px; align-self: flex-start; }

/* ---------- 6. Méthode ---------- */
.compare { width: 100%; margin-top: clamp(36px, 5vw, 56px); border-collapse: collapse; text-align: left; }
.compare th, .compare td { padding: 18px 22px; vertical-align: top; border-bottom: 1px solid var(--rule); font-weight: 400; }
.compare thead th { font-family: var(--font-display); font-weight: 700; font-stretch: 112%; font-size: 18px; border-bottom-color: var(--rule2); }
.compare thead small { display: block; margin-top: 4px; font-family: var(--font-text); font-weight: 400; font-stretch: 100%; font-size: 14px; color: var(--mute); }
.compare tbody th { width: 22%; color: var(--mute); font-size: 15px; padding-left: 0; }
.compare .avant { width: 36%; color: var(--mute); }
.compare .yh { background: var(--bg3); color: var(--txt); border-left: 2px solid var(--rouge); font-weight: 500; }
.compare thead .yh { color: var(--txt); }
.etapes-bloc { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule2); scroll-margin-top: 84px; }
.etapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(32px, 4vw, 48px); }
.etapes li { padding-top: 18px; border-top: 2px solid var(--rule2); }
.etapes li:first-child { border-top-color: var(--rouge); }
.etapes .num { font-family: var(--font-display); font-weight: 800; font-stretch: 125%; font-size: 13px; letter-spacing: .14em; color: var(--rouge-clair); }
.etapes b { display: block; margin-top: 10px; font-family: var(--font-display); font-weight: 700; font-stretch: 112%; font-size: 20px; }
.etapes span.txt { display: block; margin-top: 6px; color: var(--mute); font-size: 16px; }
.methode-fin { margin-top: clamp(36px, 4vw, 52px); }

/* ---------- 7. Défi / contact ---------- */
.defi-grille { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 88px); align-items: start; scroll-margin-top: 84px; }
.defi-mail { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--rule); color: var(--mute); font-size: 16px; }
.defi-mail a { display: inline-flex; align-items: center; min-height: 44px; color: var(--txt); font-family: var(--font-display); font-weight: 700; font-stretch: 112%; font-size: clamp(17px, 1.6vw, 20px); text-decoration: underline; text-decoration-color: var(--rule2); text-underline-offset: 5px; overflow-wrap: anywhere; }
.defi-mail a:hover { text-decoration-color: var(--rouge); }
.contact-form { background: var(--bg); border: 1px solid var(--rule2); padding: clamp(22px, 3vw, 36px); display: grid; gap: 22px; }
.form-titre { font-size: 15px; color: var(--mute); margin-bottom: -8px; }
.defi-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.defi-chip {
  min-height: 44px; padding: 8px 16px; background: transparent; border: 1px solid var(--rule2); color: var(--txt);
  font-size: 15px; cursor: pointer; transition: background .18s, border-color .18s, color .18s;
}
.defi-chip:hover { border-color: var(--txt); }
.defi-chip[aria-pressed="true"] { background: var(--txt); border-color: var(--txt); color: var(--bg); font-weight: 500; }
.field label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 16px; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; background: var(--bg2); border: 1px solid var(--rule2); border-radius: 0;
  font-size: 17px; line-height: 1.5; transition: border-color .18s, background .18s;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--txt); background: var(--bg3); }
.field ::placeholder { color: #8e847f; }
.defi-flash { animation: flash .9s var(--ease-out); }
@keyframes flash { from { border-color: var(--rouge); background: #2a1512; } }
.defi-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-form .btn { justify-self: start; }
.defi-promesse { font-size: 15px; color: var(--mute); margin-top: -6px; }
.form-feedback { padding: 14px 16px; border: 1px solid var(--rule2); font-weight: 500; }
.form-feedback--success { border-color: #5d8f6a; color: #a8d8b4; }
.form-feedback--error { border-color: var(--rouge); color: #ffb3a6; }

/* ---------- Pied ---------- */
.pied { padding: 44px 0 52px; border-top: 1px solid var(--rule); background: var(--bg); }
.pied .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.pied p { color: var(--mute); font-size: 15px; }
.pied .devise { color: var(--txt); margin-right: auto; }
.pied a.lien { font-size: 15px; }
.pied .droits { flex-basis: 100%; }

/* ---------- Réseaux (2026-11-21) ----------
   Même bouton partout (pied, bloc contact, YH Pointe) : pavé sombre au filet,
   icône en gris qui s'allume au survol, trait rouge qui se dessine sous le
   bouton — le rouge reste un marqueur, jamais un fond. */
.reseaux { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.reseaux-titre { font-family: var(--font-display); font-weight: 700; font-stretch: 112%; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.reseaux-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.res {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 6px 14px 6px 12px;
  background: var(--bg2); border: 1px solid var(--rule2); color: var(--txt); text-decoration: none;
  transition: border-color .18s, background-color .18s, transform .18s var(--ease-out);
}
.res::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 2px; background: var(--rouge); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease-out); }
.res > svg { width: 20px; height: 20px; flex: none; fill: currentColor; color: var(--mute); transition: color .18s; }
.res span { display: grid; line-height: 1.15; }
.res b { font-family: var(--font-display); font-weight: 700; font-stretch: 110%; font-size: 14px; letter-spacing: .01em; }
.res small { font-size: 13px; color: var(--mute); }
.res .res-fleche { width: 14px; height: 14px; margin-left: 2px; color: var(--mute); opacity: .55; transition: color .18s, opacity .18s; }
.res:hover { background: var(--bg3); border-color: var(--txt); transform: translateY(-1px); }
.res:hover > svg { color: var(--txt); }
.res:hover .res-fleche { color: var(--rouge-clair); opacity: 1; }
.res:hover::after { transform: scaleX(1); }
.res:focus-visible { outline: 2px solid var(--rouge-clair); outline-offset: 3px; }
.pied .reseaux--pied { flex-basis: 100%; padding-top: 22px; border-top: 1px solid var(--rule); }
.reseaux--defi { margin-top: 22px; }
@media (prefers-reduced-motion: reduce) { .res, .res::after { transition: none; } .res:hover { transform: none; } }

/* ---------- Adaptation ---------- */
@media (max-width: 1040px) {
  .nav { display: none; }
  .menu { display: block; }
  .fiche { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fiche div:nth-child(3) { border-left: 0; padding-left: 0; }
  .fiche div:nth-child(n+3) { border-top: 1px solid var(--rule); margin-top: 22px; }
  .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cartes { grid-template-columns: minmax(0, 1fr); }
  .cat-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 22px; }
  .cat-card > *:not(.cat-ico) { grid-column: 2; }
  .cat-ico { grid-row: 1 / span 3; margin-bottom: 0; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .pointe-carte, .friction-grille, .moi-grille, .defi-grille { grid-template-columns: minmax(0, 1fr); }
  .tel { justify-self: center; }
  .secteurs { grid-template-columns: minmax(0, 1fr); }
  .pointe-actions .btn, .moi-grille .btn, .methode-fin .btn, .contact-form .btn { width: 100%; }

  /* Le comparatif devient une pile de cartes : chaque ligne garde ses deux réponses */
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare tr { padding: 20px 0; border-bottom: 1px solid var(--rule); }
  .compare th, .compare td { border: 0; padding: 0; }
  .compare tbody th { width: auto; font-family: var(--font-display); font-weight: 700; font-stretch: 112%; font-size: 17px; color: var(--txt); margin-bottom: 12px; }
  .compare td::before { content: attr(data-col); display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; color: var(--mute); }
  .compare .avant { width: auto; padding: 0 0 12px 16px; }
  .compare .yh { padding: 14px 16px; }
  .compare .yh::before { color: var(--rouge-clair); }
}
@media (max-width: 768px) {
  .section--hero { min-height: auto; }
  .logo--hero { display: none; }
  .hero-cta-group { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; margin-inline: auto; }
  .hero-cta-group .btn-cta { display: block; width: 100%; padding-block: 24px; text-align: center; }
  .scroll-cue { margin-top: 64px; padding-top: 0; justify-content: center; }
}
@media (max-width: 560px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .fiche, .etapes, .defi-row { grid-template-columns: minmax(0, 1fr); }
  .fiche div, .fiche div + div { border-left: 0; padding: 20px 0 0; margin-top: 20px; border-top: 1px solid var(--rule); }
  .fiche div:first-child { border-top: 0; margin-top: 0; }
  .cat-card { display: flex; }
  .cat-ico { margin-bottom: 20px; }
  .secteur-visuel { padding: 18px 18px 0; }
  .secteur-texte { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scene-3d { display: none; }
  .stratum { opacity: calc(var(--o) * .55); }
}
@media (max-width: 520px) { .reseaux-liste { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; } .res { width: 100%; } .res .res-fleche { margin-left: auto; } }
