/* =========================================================
   KORIUM TECH · v4 « version 1 an » · couche commune
   Pages phares (héros de page, sections, marine, chiffres géants,
   icônes de l'anneau, FAQ, appel final), barre d'action téléphone,
   numéro en haut, signature, ouverture du 1 an, mode calme.
   Chargé après v2.css sur toutes les pages v4.
   ========================================================= */

:root {
  --bleu-texte: #1468A8; /* bleu du logo assombri pour le petit texte : 5,5:1 sur le fond */
  --marine-2: #0A3D6B;
  --sur-marine: #CFE2F2;
  --z-barre: 45;
  --z-un-an: 80;
}

/* ---------- Héros de page ---------- */
main > section.ph { padding-block: clamp(128px, 15vw, 196px) clamp(64px, 8vw, 120px); }
.ph__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 6vw, 104px); align-items: center; }
.ph__grid--seul { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.ph__k { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font: 500 0.95rem/1.2 var(--sans); color: var(--bleu-texte); }
.ph__ring { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 26; stroke-linecap: round; }
.ph__h1 { font-size: clamp(2.6rem, 1.3rem + 4.2vw, 5.4rem); line-height: 1.02; letter-spacing: -0.035em; max-width: 15ch; }
.ph__lead { margin-top: clamp(20px, 2.4vw, 30px); max-width: 56ch; font-size: clamp(1.06rem, 1rem + 0.3vw, 1.22rem); }
.ph__cta { margin-top: clamp(26px, 3vw, 38px); }
.ph__vis { position: relative; }
.ph__vis .md > img, .ph__vis .md > video { aspect-ratio: 4 / 5; max-height: 72vh; }

/* ---------- Sections ---------- */
.sx > .wrap { position: relative; }
.tete--centre { text-align: center; display: grid; justify-items: center; gap: 20px; }
.tete--centre h2 { max-width: 20ch; }
.tete--centre p { margin-inline: auto; }

/* ---------- Marine profond (E1) ---------- */
.s--marine { background: var(--marine); color: var(--sur-marine); isolation: isolate; }
.s--marine h2, .s--marine h3, .s--marine strong, .s--marine b { color: #fff; }
.s--marine h1 em, .s--marine h2 em, .s--marine h3 em { color: var(--bleu-2); }
.s--marine a:not(.b) { color: #fff; }
.s--marine .lien { color: #fff; }
.s--marine figcaption, .s--marine .ia { color: #9DBEDA; }
.s--marine .tete p { color: var(--sur-marine); }
.b--verre-sombre { background: rgba(255, 255, 255, 0.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.b--verre-sombre:hover { background: rgba(255, 255, 255, 0.14); }
.s--marine :focus-visible { outline-color: #fff; }

/* ---------- E5 : icônes de l'anneau ---------- */
.ic { width: 48px; height: 48px; flex: none; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ic__ring { stroke: var(--bleu-2); stroke-width: 2.2; }
.ic__g { stroke: var(--marine); stroke-width: 1.6; }
.s--marine .ic__g { stroke: #fff; }
.ic--lg { width: 64px; height: 64px; }

/* ---------- Rangées (lignes à icône, pas des cartes) ---------- */
.rg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 5vw, 80px); }
.rg__it { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; padding: 28px 0; border-top: 1px solid var(--filet); }
.s--marine .rg__it { border-color: rgba(255, 255, 255, 0.14); }
.rg__t { font-size: clamp(1.2rem, 1.08rem + 0.4vw, 1.45rem); margin: 8px 0 8px; }
.rg__d { color: var(--encre); }
.s--marine .rg__d { color: var(--sur-marine); }
.rg--1 { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) { .rg { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Étapes (séquence réelle) ---------- */
.et { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(24px, 3vw, 44px); counter-reset: et; }
.et li { position: relative; padding-top: 26px; border-top: 1.5px solid var(--marine); }
.s--marine .et li { border-color: rgba(255, 255, 255, 0.4); }
.et__n { display: block; margin-bottom: 14px; font: 300 2.6rem/1 var(--serif); color: var(--bleu); letter-spacing: -0.03em; }
.et h3 { font-size: 1.3rem; margin-bottom: 10px; }

/* ---------- Plaques (valeurs sourcées) ---------- */
.pq { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(20px, 3vw, 40px); }
.pq li { padding-top: 18px; border-top: 1px solid var(--filet-2); }
.pq__v { font: 300 clamp(2.6rem, 1.8rem + 2.6vw, 4.2rem)/1 var(--serif); color: var(--marine); letter-spacing: -0.035em; margin-bottom: 12px; }
.pq__v small { font: 400 1rem/1 var(--sans); color: var(--gris); margin-left: 8px; letter-spacing: 0; }
.s--marine .pq__v { color: #fff; } .s--marine .pq__v small { color: #9DBEDA; }

/* ---------- E4 : chiffre plein écran ---------- */
main > section.cg { min-height: 88svh; display: grid; align-items: center; overflow: hidden; padding-block: clamp(80px, 10vw, 140px); }
.cg__in { display: grid; gap: clamp(18px, 2.4vw, 32px); }
.cg__val { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 0.16em; margin: 0; font: 300 clamp(5.5rem, 2rem + 17vw, 17rem)/0.86 var(--serif); letter-spacing: -0.045em; color: var(--marine); font-variant-numeric: tabular-nums; }
.cg__val small { font-size: 0.32em; letter-spacing: -0.02em; color: var(--bleu); }
.s--marine .cg__val { color: #fff; } .s--marine .cg__val small { color: var(--bleu-2); }
.cg__phrase { max-width: 34ch; font: 300 clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem)/1.2 var(--serif); color: var(--marine); letter-spacing: -0.02em; }
.s--marine .cg__phrase { color: #fff; }
.cg__note { max-width: 60ch; color: var(--gris); font-size: 0.95rem; }
.s--marine .cg__note { color: #9DBEDA; }

/* ---------- Médias ---------- */
.md figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.md figcaption .ia { margin-left: 0; }

/* ---------- FAQ ---------- */
.fq { border-top: 1px solid var(--filet-2); }
.fq__it { border-bottom: 1px solid var(--filet-2); }
.fq__it summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; font: 400 clamp(1.1rem, 1rem + 0.4vw, 1.35rem)/1.3 var(--serif); color: var(--marine); letter-spacing: -0.01em; }
.fq__it summary::-webkit-details-marker { display: none; }
.fq__it summary i { position: relative; width: 22px; height: 22px; flex: none; }
.fq__it summary i::before, .fq__it summary i::after { content: ""; position: absolute; left: 3px; right: 3px; top: 10px; height: 1.6px; background: var(--bleu); border-radius: 2px; transition: transform 0.5s var(--ease); }
.fq__it summary i::after { transform: rotate(90deg); }
.fq__it[open] summary i::after { transform: rotate(0); }
.fq__r { padding: 0 0 26px; max-width: 72ch; }

/* ---------- Appel final (marine) ---------- */
.cf { overflow: hidden; }
main > section.cf { padding-block: clamp(110px, 12vw, 190px); }
.cf__anneau { position: absolute; right: -12vw; top: 50%; width: min(70vw, 860px); transform: translateY(-50%); opacity: 0.18; pointer-events: none; }
.cf__ring { width: 100%; height: auto; }
.cf__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.cf__grid--form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); max-width: none; align-items: start; }
.cf__txt h2 { font-size: clamp(2.6rem, 1.4rem + 4vw, 5.2rem); line-height: 1; margin-bottom: 26px; max-width: 14ch; }
.cf__txt > p { max-width: 54ch; font-size: 1.1rem; }
.cf__txt .rangee { margin-top: 30px; }
.cf__coords { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 36px; margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.cf__coords dt { font-size: 0.82rem; color: #9DBEDA; margin-bottom: 4px; }
.cf__coords dd { color: #fff; }
.cf__form { background: #fff; color: var(--encre); border-radius: var(--r); padding: clamp(22px, 3vw, 40px); }
.cf__form strong { color: var(--marine); }
@media (max-width: 900px) { .cf__grid--form { grid-template-columns: minmax(0, 1fr); } .cf__coords { grid-template-columns: minmax(0, 1fr); } }

/* ---------- C4 : numéro en haut (ordinateur) ---------- */
.nv__tel { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; height: 44px; border-radius: 999px; font: 500 0.95rem/1 var(--sans); color: var(--marine); white-space: nowrap; transition: background-color 0.3s var(--ease); }
.nv__tel:hover { background: var(--aqua); }
.nv__tel svg { width: 16px; height: 16px; fill: none; stroke: var(--bleu); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nv__a { white-space: nowrap; }
@media (max-width: 1559px) { .nv__bande { display: none; } }
@media (max-width: 1339px) { .nv__tel span { display: none; } .nv__tel { padding: 0 12px; } }
@media (max-width: 1239px) { .nv__tel { display: none; } }

/* ---------- C4 : barre d'action fixe (téléphone) ---------- */
.ba { display: none; }
@media (max-width: 860px) {
  .ba {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: var(--z-barre);
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: 22px;
    background: rgba(0, 48, 88, 0.94); box-shadow: 0 18px 40px -18px rgba(0, 24, 44, 0.7);
    transform: translateY(calc(100% + 24px)); transition: transform 0.6s var(--ease);
  }
  .ba.is-on { transform: none; }
  .ba a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border-radius: 16px; color: #fff; font: 500 0.8rem/1.1 var(--sans); }
  .ba a:active { background: rgba(255, 255, 255, 0.12); }
  .ba a.ba__plein { background: var(--bleu-texte); }
  .ba svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  body.a-barre .ft { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ---------- Signature (pied de page) ---------- */
.ft__mev { color: var(--gris); font-size: 0.82rem; }
.ft__mev a { text-decoration: underline; text-decoration-color: var(--filet-2); text-underline-offset: 3px; }
.ft__mev a:hover { color: var(--marine); }

/* ---------- W5 : l'ouverture du 1 an ---------- */
.un-an { position: fixed; inset: 0; z-index: var(--z-un-an); display: grid; place-items: center; background: #F4F9FC; overflow: hidden; transition: opacity 0.45s var(--ease), visibility 0.9s; }
.un-an.is-fin { opacity: 0; visibility: hidden; }
.un-an video { transition: opacity 1.1s var(--ease); }
.un-an.is-film-fini video { opacity: 0; }
.un-an video, .un-an .un-an__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.un-an__cerne { position: relative; width: min(72vmin, 540px); aspect-ratio: 1; container-type: inline-size; }
.un-an__cerne svg { width: 100%; height: 100%; overflow: visible; }
.un-an__cerne path { fill: none; stroke-linecap: round; }
.un-an__txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.un-an__n { font: 300 15cqi/0.9 var(--serif); color: var(--marine); letter-spacing: -0.04em; white-space: nowrap; }
.un-an__d { position: absolute; left: -14%; right: -14%; top: calc(100% + 18px); text-align: center; font: 400 clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem)/1.3 var(--sans); color: var(--encre); }
.un-an__passer { position: absolute; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); height: 44px; padding: 0 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); color: var(--marine); font: 500 0.9rem/1 var(--sans); box-shadow: inset 0 0 0 1px var(--filet-2); }
.un-an__ia { position: absolute; left: 18px; bottom: calc(26px + env(safe-area-inset-bottom)); }
@media (max-width: 599px) { .un-an__ia { bottom: calc(76px + env(safe-area-inset-bottom)); } }
.bandeau-an { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 9px 16px; background: var(--marine); color: #fff; font: 500 0.88rem/1.3 var(--sans); text-align: center; }
.bandeau-an a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- F2 : mode calme (mouvement réduit ou appareil qui rame) ---------- */
html.calme *, html.calme *::before, html.calme *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
html.calme .eau__gl { display: none; }
@media (prefers-reduced-motion: reduce) { .ba { transition: none; } }
