/* THRINN — feuille de style principale */

:root {
  --nuit: #0B1E2D;
  --nuit-2: #10283B;
  --nuit-3: #162F44;
  --or: #C9A66F;
  --or-clair: #DDC08F;
  --or-fonce: #9C7A43;
  --ivoire: #F3F1EB;
  --ivoire-2: #ECE8DE;
  --graphite: #4A5561;
  --ligne-claire: rgba(11, 30, 45, .14);
  --ligne-sombre: rgba(243, 241, 235, .14);
  --texte-sombre-doux: rgba(243, 241, 235, .74);
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --wrap: 1200px;
  --radius: 3px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--ivoire);
  color: var(--nuit);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; line-height: 1.3; margin: 0 0 .6em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--or); color: var(--nuit); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }

/* ---------- Éléments communs ---------- */

.eyebrow {
  font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--or); margin-bottom: 1rem;
}
.light .eyebrow, .ivory-2 .eyebrow { color: var(--or-fonce); }

.rule { display: block; width: 64px; height: 2px; background: var(--or); margin: 1.6rem 0; }
.center .rule, .rule.center { margin-left: auto; margin-right: auto; }

.btn {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .06em;
  text-decoration: none; cursor: pointer;
  padding: .95rem 1.6rem;
  background: var(--or); color: var(--nuit);
  border: 1px solid var(--or); border-radius: var(--radius);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn::after { content: "→"; transition: transform .2s; }
.btn:hover { background: var(--or-clair); border-color: var(--or-clair); }
.btn:hover::after { transform: translateX(3px); }
.btn.no-arrow::after { content: none; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: transparent; color: var(--or); border-color: var(--or); }
.btn-sm { padding: .62rem 1.15rem; font-size: .74rem; }

.link-arrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-decoration: none; color: var(--or-fonce);
}
.dark .link-arrow { color: var(--or); }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.light { background: var(--ivoire); }
.ivory-2 { background: var(--ivoire-2); }
.dark { background: var(--nuit); color: var(--ivoire); }

.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p:last-child { margin-bottom: 0; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.head-row .section-head { margin-bottom: 0; }

.muted { color: var(--graphite); }
.dark .muted { color: var(--texte-sombre-doux); }
.lead { font-size: 1.12rem; }

.closing {
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.5;
  text-align: center; max-width: 780px; margin: 3.5rem auto 0; color: var(--graphite);
}
.dark .closing { color: var(--or-clair); }

.fine { font-size: .88rem; color: var(--graphite); max-width: 860px; margin-top: 2.2rem; }
.dark .fine { color: var(--texte-sombre-doux); }
.fine.center { text-align: center; margin-left: auto; margin-right: auto; }

.badge {
  display: inline-block; font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: .3rem .6rem; border: 1px solid var(--or); color: var(--or-fonce); border-radius: 2px;
}
.dark .badge { color: var(--or); }
.badge.solid { background: var(--or); color: var(--nuit); }

.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.two-col.even { grid-template-columns: 1fr 1fr; align-items: center; }

.prose p { color: inherit; }
.prose blockquote {
  margin: 2rem 0; padding-left: 1.4rem; border-left: 2px solid var(--or);
  font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.55;
}
.statement { font-family: var(--serif); font-size: clamp(1.25rem, 2.1vw, 1.55rem); line-height: 1.5; }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 30, 45, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ligne-sombre);
  color: var(--ivoire);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 2rem; }

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; flex-shrink: 0; }
.brand img { width: 38px; }
.brand span { font-weight: 500; letter-spacing: .3em; font-size: 1.1rem; }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a:not(.btn) {
  position: relative;
  font-size: .82rem; font-weight: 500; text-decoration: none;
  color: rgba(243, 241, 235, .8); transition: color .2s;
  padding: .4rem 0;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ivoire); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--or);
}
.nav .btn::after { content: none; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ivoire); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Bandeaux photo ---------- */

.photo-bg { position: relative; color: var(--ivoire); background-color: var(--nuit); isolation: isolate; overflow: hidden; }
.photo-bg > .bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.photo-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.shade-left::before { background: linear-gradient(90deg, rgba(11,30,45,.96) 0%, rgba(11,30,45,.82) 40%, rgba(11,30,45,.35) 75%, rgba(11,30,45,.25) 100%), linear-gradient(0deg, rgba(11,30,45,.9), transparent 45%); }
.shade-full::before { background: rgba(11, 30, 45, .78); }
.shade-bottom::before { background: linear-gradient(0deg, rgba(11,30,45,.95) 10%, rgba(11,30,45,.55) 100%); }

/* ---------- Accueil : hero ---------- */

.hero { padding: clamp(5rem, 12vw, 9rem) 0 0; min-height: min(88vh, 820px); display: flex; flex-direction: column; }
.hero .bg { object-position: 60% 40%; }
.hero-text { max-width: 620px; }
.hero h1 { margin-bottom: 0; }
.hero .lead { color: var(--texte-sombre-doux); max-width: 32rem; margin: 0 0 2.2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.benefits {
  list-style: none; margin: auto 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ligne-sombre);
}
.benefits-wrap { margin-top: clamp(3.5rem, 8vw, 6rem); }
.benefits li {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: 1.8rem 1.2rem 2rem 0;
  font-size: .9rem; font-weight: 600; line-height: 1.35;
}
.benefits li + li { padding-left: 1.4rem; border-left: 1px solid var(--ligne-sombre); }
.benefits li::before { content: "+"; color: var(--or); font-size: 1.3rem; line-height: 1; font-weight: 300; }
.benefits small { display: block; font-weight: 400; color: var(--texte-sombre-doux); font-size: .85rem; }

/* ---------- En-tête de page intérieure ---------- */

.page-hero { padding: clamp(4.5rem, 10vw, 7.5rem) 0 clamp(3.5rem, 7vw, 5rem); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 820px; }
.page-hero .lead { color: var(--texte-sombre-doux); max-width: 640px; margin-bottom: 0; }
.crumbs { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--or); margin-bottom: 1.2rem; }
.crumbs a { text-decoration: none; color: var(--texte-sombre-doux); }
.crumbs a:hover { color: var(--or); }

/* ---------- Icônes ---------- */

.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ico-ring {
  display: grid; place-items: center;
  width: 76px; height: 76px; border-radius: 50%;
  border: 1px solid var(--or); color: var(--or); font-size: 34px;
  margin-bottom: 1.3rem;
}
.ico-ring.sm { width: 54px; height: 54px; font-size: 24px; }
.light .ico-ring, .ivory-2 .ico-ring { color: var(--or-fonce); background: rgba(201,166,111,.08); }

/* ---------- Piliers (4 domaines) ---------- */

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); }
.pillars > * {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1rem 1.8rem; text-decoration: none;
}
.pillars > * + * { border-left: 1px solid var(--ligne-sombre); }
.light .pillars > * + *, .ivory-2 .pillars > * + * { border-left-color: var(--ligne-claire); }
.pillars h3 { font-size: 1.1rem; font-weight: 500; }
.pillars p { font-size: .9rem; margin: 0; color: var(--texte-sombre-doux); }
.light .pillars p, .ivory-2 .pillars p { color: var(--graphite); }
a.pillar .ico-ring { transition: background .25s, color .25s; }
a.pillar:hover .ico-ring { background: var(--or); color: var(--nuit); }

/* ---------- Bandeau scindé (texte + photo) ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; background: var(--nuit); color: var(--ivoire); }
.split-media { position: relative; overflow: hidden; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,30,45,.55), transparent 40%); }
.split.reverse .split-media::after { background: linear-gradient(270deg, rgba(11,30,45,.55), transparent 40%); }
.split-text { padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 6vw, 5rem); display: flex; flex-direction: column; justify-content: center; }
.split-text > *:last-child { margin-bottom: 0; }
.split-text p { color: var(--texte-sombre-doux); max-width: 32rem; }
.split-text .btn { align-self: flex-start; margin-top: .8rem; }
.split.reverse .split-media { order: -1; }
.split.light-split { background: var(--ivoire-2); color: var(--nuit); }
.split.light-split p { color: var(--graphite); }

/* ---------- Étapes de la méthode ---------- */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem;
}
.steps li { position: relative; }
.steps .ico-ring { position: relative; z-index: 1; background: var(--ivoire); }
.ivory-2 .steps .ico-ring { background: var(--ivoire-2); }
.steps li:not(:last-child)::after {
  content: "›"; position: absolute; top: 20px; left: calc(76px + (100% - 76px) / 2 - 6px);
  color: var(--or); font-size: 1.6rem; line-height: 1; opacity: .7;
}
.num { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .12em; color: var(--or-fonce); margin-bottom: .3rem; }
.steps h3 { font-size: 1.1rem; }
.steps p { font-size: .9rem; color: var(--graphite); margin: 0; }

.steps.detailed { grid-template-columns: 1fr; gap: 0; }
.steps.detailed li { display: grid; grid-template-columns: 90px 220px 1fr; gap: 2rem; align-items: start; padding: 2.2rem 0; border-top: 1px solid var(--ligne-claire); }
.steps.detailed li::after { content: none; }
.steps.detailed .ico-ring { margin: 0; }
.steps.detailed h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin-top: .6rem; }
.steps.detailed p { font-size: 1rem; margin-top: .9rem; }
.steps.detailed ul { margin: .8rem 0 0; padding-left: 1.1rem; color: var(--graphite); font-size: .93rem; }

/* ---------- Cartes ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--ligne-claire); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.dark .card { background: var(--nuit-2); border-color: var(--ligne-sombre); }
a.card { text-decoration: none; }
a.card:hover, .card.lift:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(11,30,45,.45); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--nuit); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
a.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.card-body h3 { font-family: var(--serif); font-weight: 400; font-size: 1.22rem; margin: 0; }
.card-body p { font-size: .92rem; color: var(--graphite); margin: 0; }
.dark .card-body p { color: var(--texte-sombre-doux); }
.card-meta { font-size: .72rem; letter-spacing: .08em; color: var(--graphite); text-transform: uppercase; }
.card-body .link-arrow { margin-top: auto; padding-top: .4rem; }

/* ---------- Valeurs / modèles / listes ---------- */

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6rem 3rem; }
.values article { border-top: 2px solid var(--or); padding-top: 1.4rem; }
.values h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; }
.values p { color: var(--graphite); font-size: .95rem; margin: 0; }
.dark .values p { color: var(--texte-sombre-doux); }

.models { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--ligne-claire); border: 1px solid var(--ligne-claire); }
.models article { background: var(--ivoire); padding: 1.8rem 1.5rem; transition: background .2s; }
.ivory-2 .models article { background: var(--ivoire-2); }
.models article:hover { background: #fff; }
.models h3 { font-size: .98rem; }
.models p { font-size: .9rem; color: var(--graphite); margin: 0; }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative; padding: .62rem 0 .62rem 1.6rem;
  border-bottom: 1px solid var(--ligne-claire); font-size: .95rem; line-height: 1.5;
}
.dark .ticks li { border-bottom-color: var(--ligne-sombre); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.18rem; width: 9px; height: 2px; background: var(--or); }
.ticks.cols { columns: 2; column-gap: 2.5rem; }
.ticks.cols li { break-inside: avoid; }

.commitments { margin: 0; padding: 0; list-style: none; counter-reset: c; }
.commitments li {
  counter-increment: c; display: grid; grid-template-columns: 2.6rem 1fr;
  padding: .8rem 0; border-bottom: 1px solid var(--ligne-claire); line-height: 1.5;
}
.commitments li::before { content: counter(c, decimal-leading-zero); font-size: .8rem; font-weight: 600; color: var(--or-fonce); padding-top: .15rem; }

/* ---------- Services détaillés ---------- */

.service {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--ligne-claire);
}
.service:first-child { border-top: 0; padding-top: 0; }
.service-num { font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--or); margin-bottom: 1rem; }
.service h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.service .note {
  margin-top: 1.5rem; padding: 1.1rem 1.3rem; background: rgba(201,166,111,.1);
  border-left: 2px solid var(--or); font-family: var(--serif); font-style: italic; color: var(--nuit);
}
.service-media { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); margin-top: 1.6rem; }
.service-media img { width: 100%; height: 100%; object-fit: cover; }

.subnav { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.2rem; }
.subnav a {
  font-size: .78rem; font-weight: 500; text-decoration: none; color: var(--ivoire);
  padding: .5rem .9rem; border: 1px solid var(--ligne-sombre); border-radius: 40px; transition: border-color .2s, color .2s;
}
.subnav a:hover { border-color: var(--or); color: var(--or); }

/* ---------- Lettres THRINN ---------- */

.letters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--ligne-claire); }
.letters li { padding: 2rem 1.3rem 0 0; }
.letters li + li { border-left: 1px solid var(--ligne-claire); padding-left: 1.3rem; }
.letter { display: block; font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--or); margin-bottom: 1.1rem; }
.letters p { font-size: .9rem; color: var(--graphite); }

/* ---------- Pôles ---------- */

.poles { display: grid; grid-template-columns: repeat(4, 1fr); }
.poles article { text-align: center; padding: 1rem 1.8rem; }
.poles article + article { border-left: 1px solid var(--ligne-claire); }
.poles img { width: 54px; margin: 0 auto 1.2rem; }
.pole-name { font-size: 1.35rem; font-weight: 500; letter-spacing: .28em; margin: 0 -.28em 1rem 0; }
.pole-name span { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--or-fonce); margin-top: .3rem; }
.poles p:last-child { font-size: .9rem; color: var(--graphite); }

/* ---------- Logo composé (centré) ---------- */

.lockup { display: flex; flex-direction: column; align-items: center; }
.lockup img { width: 38%; max-width: 160px; margin: 0 auto 1.4rem; }
.lockup-name { font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; letter-spacing: .28em; margin-right: -.28em; }
.lockup-tag { font-weight: 500; color: var(--or); font-size: clamp(.58rem, 1.1vw, .74rem); letter-spacing: .24em; margin-right: -.24em; text-transform: uppercase; margin-top: 1.1rem; white-space: nowrap; }

/* ---------- THRINN Intelligence ---------- */

.intel-card {
  background: var(--nuit); color: var(--ivoire); border-radius: 10px;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: 0 30px 60px -30px rgba(11,30,45,.6);
}
.intel-inner { background: var(--nuit-3); border-radius: 8px; padding: 1.4rem 1.5rem 1.2rem; }
.intel-inner header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.intel-inner header strong { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.pill { font-size: .72rem; font-weight: 600; background: rgba(243,241,235,.12); padding: .25rem .7rem; border-radius: 30px; }

.bar { margin-bottom: 1rem; }
.bar-label { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: .45rem; }
.bar-label b { color: var(--or); font-weight: 600; }
.bar-track { height: 7px; background: rgba(243,241,235,.12); border-radius: 10px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--or-fonce), var(--or)); border-radius: 10px; transition: width 1s cubic-bezier(.2,.7,.2,1); }
.intel-inner .fine { margin: .4rem 0 0; font-size: .8rem; }

/* Diagnostic */
.diag { background: #fff; border: 1px solid var(--ligne-claire); border-radius: 10px; overflow: hidden; }
.diag-progress { height: 4px; background: var(--ivoire-2); }
.diag-progress span { display: block; height: 100%; width: 0; background: var(--or); transition: width .35s; }
.diag-body { padding: clamp(1.5rem, 4vw, 2.8rem); }
.diag-axis { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--or-fonce); margin-bottom: .4rem; }
.diag-count { font-size: .8rem; color: var(--graphite); margin-bottom: 1.2rem; }
.diag-q { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.4; margin-bottom: 1.8rem; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; border: 0; padding: 0; margin: 0; }
.scale label {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; text-align: center;
  padding: 1rem .5rem; min-height: 88px;
  border: 1px solid var(--ligne-claire); border-radius: var(--radius);
  font-size: .8rem; line-height: 1.3; cursor: pointer; transition: border-color .15s, background .15s;
}
.scale label b { font-size: 1.2rem; font-weight: 500; color: var(--or-fonce); }
.scale label:hover { border-color: var(--or); }
.scale input { position: absolute; opacity: 0; pointer-events: none; }
.scale input:checked + span, .scale label:has(input:checked) { }
.scale label:has(input:checked) { background: var(--nuit); color: var(--ivoire); border-color: var(--nuit); }
.scale label:has(input:checked) b { color: var(--or); }
.scale label:has(input:focus-visible) { outline: 2px solid var(--or); outline-offset: 2px; }
.diag-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; gap: 1rem; }
.btn-text { background: none; border: 0; font: inherit; font-size: .85rem; font-weight: 600; color: var(--graphite); cursor: pointer; padding: .5rem 0; }
.btn-text:hover { color: var(--nuit); }
.btn-text:disabled { opacity: .35; cursor: default; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.diag-result { display: none; }
.diag.done .diag-quiz { display: none; }
.diag.done .diag-result { display: block; }
.result-top { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: center; margin-bottom: 2.4rem; }
.gauge { position: relative; width: 200px; aspect-ratio: 1; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 10; }
.gauge .track { stroke: var(--ivoire-2); }
.gauge .val { stroke: var(--or); stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2,.7,.2,1); }
.gauge-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge-num strong { font-family: var(--serif); font-size: 3rem; font-weight: 400; line-height: 1; }
.gauge-num span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--graphite); margin-top: .3rem; }
.result-level { font-family: var(--serif); font-size: 1.7rem; margin-bottom: .4rem; }
.diag .bar-track { background: var(--ivoire-2); }
.diag .bar-label b { color: var(--or-fonce); }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2rem; }
.result-box { border: 1px solid var(--ligne-claire); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.result-box h3 { display: flex; align-items: center; gap: .5rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.result-box h3 .ico { color: var(--or-fonce); font-size: 1.1rem; }
.result-box ul, .result-box ol { margin: 0; padding-left: 1.1rem; font-size: .9rem; color: var(--graphite); }
.result-box li { margin-bottom: .55rem; }
.result-box li strong { color: var(--nuit); font-weight: 600; }
.result-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 2.2rem; padding-top: 2rem; border-top: 1px solid var(--ligne-claire); }

/* Simulateur */
.sim { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid var(--ligne-claire); border-radius: 10px; overflow: hidden; }
.sim-form { padding: clamp(1.5rem, 4vw, 2.6rem); display: grid; gap: 1.5rem; }
.field label, .field .label { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; font-weight: 600; margin-bottom: .5rem; }
.field label output { color: var(--or-fonce); font-weight: 600; }
.field small { display: block; font-size: .78rem; color: var(--graphite); margin-top: .35rem; line-height: 1.45; }
input[type="number"], input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--nuit);
  padding: .8rem .9rem; background: var(--ivoire); border: 1px solid var(--ligne-claire); border-radius: var(--radius);
  transition: border-color .15s, background .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--or); background: #fff; }
textarea { min-height: 150px; resize: vertical; }
input[type="range"] { width: 100%; accent-color: var(--or); }
.sim-out { background: var(--nuit); color: var(--ivoire); padding: clamp(1.5rem, 4vw, 2.6rem); display: flex; flex-direction: column; gap: 1.4rem; }
.kpi { border-bottom: 1px solid var(--ligne-sombre); padding-bottom: 1.1rem; }
.kpi span { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--texte-sombre-doux); }
.kpi strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.2; margin-top: .2rem; }
.kpi.main strong { color: var(--or); font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
.sim-out .fine { margin: 0; font-size: .8rem; }
.sim-out .btn { align-self: flex-start; }
.hypotheses { font-size: .84rem; color: var(--graphite); margin-top: 1.6rem; }
.hypotheses summary { cursor: pointer; font-weight: 600; color: var(--nuit); }
.hypotheses ul { margin: .8rem 0 0; padding-left: 1.1rem; }

/* Infolettre */
.newsletter { display: flex; gap: .7rem; flex-wrap: wrap; max-width: 520px; }
.newsletter input { flex: 1 1 240px; background: rgba(243,241,235,.08); border-color: var(--ligne-sombre); color: var(--ivoire); }
.newsletter input::placeholder { color: rgba(243,241,235,.5); }
.newsletter input:focus { background: rgba(243,241,235,.12); }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; background: #fff; border: 1px solid var(--ligne-claire); border-radius: 10px; padding: clamp(1.5rem, 4vw, 2.6rem); }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .45rem; }
.form .req { color: var(--or-fonce); }
.form .hp { position: absolute; left: -9999px; }
.form .consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .82rem; font-weight: 400; color: var(--graphite); }
.form .consent input { margin-top: .3rem; accent-color: var(--or); }
.alert { grid-column: 1 / -1; padding: 1rem 1.2rem; border-radius: var(--radius); font-size: .92rem; display: none; }
.alert.show { display: block; }
.alert.ok { background: rgba(201,166,111,.15); border-left: 3px solid var(--or); }
.alert.err { background: #fbeaea; border-left: 3px solid #b44; color: #5a1a1a; }
.cta .alert { margin-top: 1rem; max-width: 520px; }
.contact-points { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.4rem; }
.contact-points li { display: grid; grid-template-columns: 54px 1fr; gap: 1rem; align-items: center; }
.contact-points .ico-ring { margin: 0; }
.contact-points strong { display: block; font-size: .92rem; }
.contact-points span { font-size: .88rem; color: var(--graphite); }

/* ---------- Bandeau d'appel à l'action ---------- */

.cta { padding: clamp(3.5rem, 7vw, 5rem) 0; }
.cta .bg { object-position: center 60%; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta h2 { margin-bottom: .4rem; }
.cta p { color: var(--texte-sombre-doux); margin: 0 0 1.6rem; }
.assurances { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; flex-wrap: wrap; }
.assurances li { display: flex; align-items: center; gap: .55rem; font-size: .85rem; font-weight: 500; }
.assurances .ico { color: var(--or); font-size: 1.2rem; }

/* ---------- Pied de page ---------- */

.site-footer { background: #071420; color: rgba(243, 241, 235, .62); padding: 3.5rem 0 2rem; font-size: .88rem; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--ligne-sombre); }
.footer-top .brand { color: var(--ivoire); margin-bottom: 1rem; }
.footer-top h4 { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--or); margin: 0 0 1rem; font-weight: 600; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-top a { text-decoration: none; }
.footer-top a:hover { color: var(--or); }
.footer-signature { font-family: var(--serif); font-style: italic; color: var(--ivoire); font-size: 1.05rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.6rem; font-size: .78rem; }

/* ---------- Apparition au défilement ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bar-fill, .gauge .val { transition: none; }
}

/* ---------- Adaptatif ---------- */

@media (max-width: 1100px) {
  .nav { gap: 1.3rem; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; }
  .steps li::after { display: none; }
  .models { grid-template-columns: repeat(3, 1fr); }
  .letters { grid-template-columns: repeat(3, 1fr); }
  .letters li:nth-child(4) { border-left: 0; padding-left: 0; }
  .letters li { padding-bottom: 1.5rem; }
  .cards.four { grid-template-columns: repeat(2, 1fr); }
  .result-grid { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--nuit); border-bottom: 1px solid var(--ligne-sombre);
    padding: .5rem 24px 1.5rem; display: none;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .95rem 0; border-bottom: 1px solid var(--ligne-sombre); font-size: .95rem; }
  .nav a[aria-current="page"]::after { content: none; }
  .nav a[aria-current="page"] { color: var(--or); }
  .nav .btn { margin-top: 1.2rem; justify-content: center; }

  .two-col, .two-col.even, .split, .contact-grid, .sim, .service { grid-template-columns: 1fr; }
  .split-media { min-height: 300px; }
  .split.reverse .split-media { order: 0; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .benefits li:nth-child(3) { padding-left: 0; border-left: 0; }
  .benefits li:nth-child(n+3) { border-top: 1px solid var(--ligne-sombre); }
  .pillars, .poles { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .pillars > *:nth-child(3), .poles article:nth-child(3) { border-left: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .models { grid-template-columns: 1fr 1fr; }
  .steps.detailed li { grid-template-columns: 76px 1fr; }
  .steps.detailed li > div:last-child { grid-column: 2; }
  .result-top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  :root { --header-h: 66px; }
  .wrap { padding: 0 16px; }
  .nav { padding-left: 16px; padding-right: 16px; }
  .brand img { width: 32px; }
  .hero { min-height: 0; }
  .benefits { grid-template-columns: 1fr; }
  .benefits li, .benefits li + li { padding: 1.1rem 0; border-left: 0; }
  .benefits li + li { border-top: 1px solid var(--ligne-sombre); }
  .values, .pillars, .poles, .models, .steps, .cards, .cards.four, .cards.two { grid-template-columns: 1fr; }
  .letters { grid-template-columns: 1fr 1fr; }
  .letters li, .letters li + li { border-left: 0; padding-left: 0; }
  .pillars > * + *, .poles article + article { border-left: 0; border-top: 1px solid var(--ligne-sombre); padding-top: 2rem; }
  .light .pillars > * + *, .poles article + article { border-top-color: var(--ligne-claire); }
  .ticks.cols { columns: 1; }
  .scale { grid-template-columns: 1fr; }
  .scale label { flex-direction: row; justify-content: flex-start; min-height: 0; padding: .85rem 1rem; gap: .9rem; text-align: left; }
  .form { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; justify-content: center; }
  .footer-top { grid-template-columns: 1fr; }
  .steps.detailed li { grid-template-columns: 1fr; gap: .6rem; }
  .steps.detailed li > div:last-child { grid-column: auto; }
}
