/* ReTexto · accueil « atelier » v6 (19 nov. 2026)
   Demande de Quentin : moins « site fait à la chaîne ». Référence : un grand nom en fond derrière l'objet
   (comme une voiture devant le nom de la marque). Ici : « ReTexto » en très grand derrière le téléphone.
   Chargé APRÈS v5.css et warm.css, seulement sur l'accueil. Charte stricte : 10 couleurs, Geist 400/500/600.
   Couleurs : bleu nuit #14243d · ardoise #46536a · gris bleu #5d6779 · bleu acier #3d5a80 · bleu clair #dfe6ee
   beige #f3ece1 · beige soutenu #ebe2d3 · crème #fbf7f0 · orange #ff6b1a · orange foncé #b8400b. */

/* ---------- En-tête : navigation groupée dans une pilule ---------- */
.hdr-nav { gap: 2px; padding: 4px; border-radius: 999px; background: #fbf7f0; border: 1px solid rgba(20, 36, 61, .12); }
.hdr-nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #46536a; transition: background-color .2s, color .2s; }
.hdr-nav a:hover { background: #ebe2d3; color: #14243d; }

/* ---------- Hero ---------- */
.hx { position: relative; isolation: isolate; overflow: hidden; padding-top: calc(var(--hdr) + 28px); }
/* Ciel bleu clair qui descend vers un sol beige : le téléphone est posé dessus */
.hx-bg { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, #dfe6ee 0%, #dfe6ee 40%, #f3ece1 80%, #f3ece1 100%); }
.hx-bg::before { content: ""; position: absolute; left: 50%; top: 30%; width: 70vmax; height: 46vmax; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(251, 247, 240, .9), rgba(251, 247, 240, 0)); }

.hx-top { display: grid; gap: 20px; }
.hx .tag { background: #fbf7f0; }
.hx-title { margin-top: 18px; font-size: clamp(38px, 10.4vw, 46px); line-height: 1.02; font-weight: 600; letter-spacing: -.045em; color: #14243d; text-wrap: balance; max-width: 9em; }
.hx-sub { font-size: 17px; line-height: 1.5; color: #46536a; max-width: 30em; }
.hx-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 22px; }
.hx-cta { display: none; }
.hx-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 44px; padding: 0 2px; min-width: 240px;
  font-size: 15.5px; font-weight: 500; color: #14243d; text-decoration: none; border-bottom: 1.5px solid #14243d; }
.hx-link .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
@media (hover: hover) and (pointer: fine) { .hx-link:hover .icon { transform: rotate(45deg); } }

/* La scène : le nom en très grand, le téléphone devant */
.hx-stage { position: relative; display: grid; justify-items: center; margin-top: 30px; padding-top: calc((100vw - 2 * var(--gutter)) * .135); padding-bottom: 110px; }
.hx-word { position: absolute; left: 50%; top: 16%; width: calc(100% - 2 * var(--gutter)); max-width: 1360px; height: auto; transform: translateX(-50%); z-index: -1;
  --wm-texto: #fbf7f0; overflow: visible; filter: drop-shadow(0 18px 30px rgba(20, 36, 61, .07)); }
@media (max-width: 599px) { .hx-word { top: 0; } }
.hx-phone { position: relative; width: min(64vw, 270px); }
.hx-phone .tilt { width: 100%; }
.hx-phone .tilt::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -22px; height: 40px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(20, 36, 61, .42), rgba(20, 36, 61, 0)); filter: blur(4px); }

@media (min-width: 600px) {
  .hx-title { font-size: 54px; }
  .hx-phone { width: 300px; }
  .hx-word { top: 22%; }
  .hx-stage { padding-top: 0; }
}
@media (min-width: 1024px) {
  .hx { padding-top: calc(var(--hdr) + 64px); }
  .hx-top { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 48px; }
  .hx-title { font-size: 64px; max-width: 8.6em; }
  .hx-r { justify-self: end; text-align: right; display: flex; flex-direction: column; align-items: flex-end; padding-bottom: 6px; }
  .hx-sub { font-size: 18px; max-width: 24em; }
  .hx-act { flex-direction: column; align-items: flex-end; gap: 14px; margin-top: 28px; }
  .hx-cta { display: inline-flex; }
  .hx-stage { margin-top: 24px; padding-bottom: 130px; }
  .hx-word { top: 20%; }
  .hx-phone { width: auto; }
  .hx-phone .ph { height: clamp(520px, calc(100svh - 300px), 640px); width: auto; }
}

/* ---------- Métiers : rangée de cartes à faire glisser (comme une appli), sans conteneur ---------- */
.tr { padding-top: calc(var(--sec) * .2); --side: max(var(--gutter), calc((100% - var(--wrap)) / 2)); }
.tr-head { display: grid; gap: 16px; margin-bottom: 28px; }
.tr-side { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.tr-sub { color: #46536a; font-size: 16px; max-width: 26em; }
.rail-nav { display: none; gap: 10px; flex: none; }
.rail-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fbf7f0; color: #14243d; border: 1px solid rgba(20, 36, 61, .16); font-size: 20px; transition: background-color .2s, border-color .2s, opacity .2s, transform .2s var(--ease); }
.rail-btn:active { transform: scale(.94); }
.rail-btn:disabled { opacity: .35; cursor: default; }
.rail-next-ico { transform: scaleX(-1); }
@media (hover: hover) and (pointer: fine) { .rail-btn:not(:disabled):hover { background: #ebe2d3; border-color: rgba(20, 36, 61, .3); } }

.rail { display: flex; gap: 14px; margin: 0; padding: 4px var(--side) 24px; list-style: none; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--side); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail-item { flex: 0 0 auto; width: min(72vw, 290px); scroll-snap-align: start; }
.rail-card { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; text-decoration: none; color: #fbf7f0; background: #ebe2d3; isolation: isolate;
  box-shadow: 0 22px 40px -28px rgba(20, 36, 61, .55); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.rail-card picture, .rail-card img { position: absolute; inset: 0; width: 100%; height: 100%; }
.rail-card img { object-fit: cover; transition: transform .7s var(--ease); }
.rail-card::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(20, 36, 61, 0) 45%, rgba(20, 36, 61, .78)); pointer-events: none; }
.rail-txt { position: absolute; z-index: 1; left: 20px; right: 72px; bottom: 20px; display: grid; gap: 4px; }
.rail-name { font-size: 22px; line-height: 1.1; font-weight: 600; letter-spacing: -.025em; color: #fbf7f0; }
.rail-sub { font-size: 13.5px; line-height: 1.35; color: #dfe6ee; }
.rail-go { position: absolute; z-index: 1; right: 18px; bottom: 18px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #ff6b1a; color: #14243d; font-size: 18px; transition: transform .35s var(--ease); }
.rail-go .icon { stroke-width: 2.4; }
.rail-more { background: #14243d; }
.rail-more::after { content: none; }
.rail-plus { position: absolute; left: 50%; top: 40%; width: 34%; transform: translate(-50%, -50%); fill: none; stroke: #ff6b1a; stroke-width: 3; stroke-linecap: round; }
.rail-card:focus-visible { outline: 3px solid #b8400b; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .rail-card:hover { transform: translateY(-6px); box-shadow: 0 32px 50px -30px rgba(20, 36, 61, .6); }
  .rail-card:hover img { transform: scale(1.05); }
  .rail-card:hover .rail-go { transform: rotate(45deg); }
}
@media (min-width: 1024px) {
  .tr { padding-top: calc(var(--sec) * .15); }
  .tr-head { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 48px; margin-bottom: 44px; }
  .tr-side { flex-direction: column; align-items: flex-end; text-align: right; gap: 24px; }
  .rail-nav:not([hidden]) { display: flex; }
  .rail { gap: 20px; }
  .rail-item { width: 300px; }
}
@media (prefers-reduced-motion: reduce) { .rail-card, .rail-card img, .rail-go, .rail-btn { transition: none; } }

/* ---------- Le problème : 76 % en grand, texte à côté ---------- */
.pb-grid { display: grid; gap: 40px; }
.pb-big { display: flex; align-items: flex-start; font-size: clamp(120px, 38vw, 160px); line-height: .82; font-weight: 600; letter-spacing: -.06em; color: #b8400b; }
.pb-big .pct { font-size: .38em; line-height: 1; margin: .12em 0 0 .06em; letter-spacing: 0; }
.pb-lead { margin-top: 20px; font-size: 20px; line-height: 1.3; font-weight: 500; color: #14243d; max-width: 14em; }
.pb-stat .note { margin-top: 12px; max-width: 24em; }
.pb-p { margin-top: 18px; color: #46536a; max-width: 30em; }
.pb-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.pb-facts li { padding-top: 14px; border-top: 1px solid rgba(20, 36, 61, .16); }
.pb-num { font-size: 26px; font-weight: 600; letter-spacing: -.03em; color: #14243d; line-height: 1.1; }
.pb-facts li:nth-child(3) .pb-num { color: #b8400b; }
.pb-cap { margin-top: 4px; font-size: 14px; line-height: 1.35; color: #46536a; }
@media (min-width: 1024px) {
  .pb { padding-top: calc(var(--sec) * .8); }
  .pb-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 80px; align-items: start; }
  .pb-big { font-size: 220px; }
  .pb-lead { font-size: 24px; }
  .pb-txt { padding-top: 18px; border-left: 1px solid rgba(20, 36, 61, .14); padding-left: 64px; }
  .pb-p { font-size: 18px; }
  .pb-num { font-size: 32px; }
  .pb-facts { gap: 28px; margin-top: 48px; }
}

/* ---------- Comment ça marche : bandeau bleu nuit, frise des 4 étapes ---------- */
/* Sans conteneur : sur le beige, comme la section 76 %. Frise verticale sur mobile, horizontale sur ordinateur. */
.hw { padding-top: calc(var(--sec) * .7); }
.hw-head { display: grid; gap: 24px; }
.hw-sub { margin-top: 10px; color: #46536a; }
.hw-go-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.hw-go { display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 6px 0 22px; border-radius: 999px; background: #14243d; color: #fbf7f0; font-weight: 600; font-size: 15.5px; text-decoration: none; white-space: nowrap; transition: transform .25s var(--ease); }
.hw-go:active { transform: scale(.97); }
.hw-orb { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fbf7f0; color: #14243d; font-size: 17px; transition: transform .35s var(--ease); }
@media (hover: hover) and (pointer: fine) { .hw-go:hover .hw-orb { transform: rotate(45deg); } }
.hw-setup { font-size: 14px; color: #5d6779; }
.hw-steps { position: relative; display: grid; gap: 26px; margin-top: 40px; padding-left: 30px; }
.hw-steps::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: rgba(20, 36, 61, .2); }
.hw-steps li { position: relative; display: grid; gap: 4px; }
.hw-steps li::before { content: ""; position: absolute; left: -30px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: #f3ece1; border: 2px solid #ff6b1a; }
.hw-steps li:last-child::before { background: #ff6b1a; }
.hw-time { font-size: 14.5px; font-weight: 600; color: #b8400b; font-variant-numeric: tabular-nums; }
.hw-txt { font-size: 18px; line-height: 1.35; font-weight: 500; color: #14243d; }
@media (min-width: 1024px) {
  .hw { padding-top: var(--sec); }
  .hw-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; }
  .hw-go-wrap { flex-direction: column; align-items: flex-end; text-align: right; }
  .hw-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 72px; padding-left: 0; }
  .hw-steps::before { left: 0; right: 0; top: 7px; bottom: auto; width: auto; height: 1px; }
  .hw-steps li { gap: 12px; padding-top: 36px; }
  .hw-steps li::before { left: 0; top: 2px; }
  .hw-txt { font-size: 22px; letter-spacing: -.015em; max-width: 11em; }
}

/* ---------- Questions : sur le beige, liste dans une carte crème ---------- */
.faq { padding-top: var(--sec); }
.faq-list { background: #fbf7f0; }
@media (max-width: 1023px) { .faq-list { padding: 4px 20px; border-radius: 24px; border: 1px solid rgba(20, 36, 61, .1); } .faq-list details:last-child { border-bottom: 0; } }

/* ---------- Pied de page : le nom en très grand pour finir ---------- */
.foot { overflow: hidden; padding-bottom: 0; }
.hx-word { fill: #fbf7f0; }
/* Le symbole du logo en très grand, d'une seule couleur (beige soutenu) pour se fondre dans le fond (demande de Quentin, 19 nov.) */

@media (prefers-reduced-motion: reduce) { .hx-link .icon, .hw-orb { transition: none; } }

/* ---------- « Comment ça marche » : bandeau bleu nuit pleine largeur, sans coins arrondis (choix de Quentin, 19 nov.) ---------- */
.hw--band { margin-top: calc(var(--sec) * .7); padding: 72px 0 80px; background: #14243d; position: relative; isolation: isolate; overflow: hidden; }
.hw--band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 100% 0%, rgba(61, 90, 128, .55), rgba(61, 90, 128, 0) 70%); }
.hw--band .h2, .hw--band .hw-txt { color: #fbf7f0; }
.hw--band .hw-sub, .hw--band .hw-setup { color: #dfe6ee; }
.hw--band .hw-time { color: #ff6b1a; }
.hw--band .hw-go { background: #fbf7f0; color: #14243d; }
.hw--band .hw-orb { background: #14243d; color: #fbf7f0; }
.hw--band .hw-steps::before { background: rgba(251, 247, 240, .22); }
.hw--band .hw-steps li::before { background: #14243d; }
.hw--band .hw-steps li:last-child::before { background: #ff6b1a; }
@media (min-width: 1024px) { .hw--band { padding: 112px 0 120px; } }

/* ---------- Appel final : même bandeau bleu nuit pleine largeur que « Comment ça marche » (19 nov.) ---------- */
/* Bandeau : PAS positionné (position: static), pour que le symbole qu'il contient se place par rapport au pied de page,
   exactement au même endroit que le symbole beige ; clip-path le découpe aux bords du bandeau. */
.foot { position: relative; overflow: hidden; padding-bottom: 0; }
.foot-band { position: static; clip-path: inset(0); color: #fbf7f0; margin-bottom: 0;
  background: radial-gradient(60% 90% at 100% 0%, rgba(61, 90, 128, .55), rgba(61, 90, 128, 0) 70%), radial-gradient(50% 80% at 0% 100%, rgba(255, 107, 26, .14), rgba(255, 107, 26, 0) 70%), #14243d; }
.foot-band .foot-cta { position: relative; z-index: 1; margin: 0 auto; padding-top: 72px; padding-bottom: 80px; border-radius: 0; border: 0; background: none; box-shadow: none; animation: none; }
.foot-band .foot-cta::before { content: none; }
.foot-links { position: relative; z-index: 1; padding-top: 48px; padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) {
  .foot-band .foot-cta { padding-top: 112px; padding-bottom: 120px; padding-left: var(--gutter); padding-right: var(--gutter); }
  .foot-links { padding-top: 64px; padding-bottom: 56px; }
}
/* Le symbole : aussi large que possible, coupé à mi-hauteur par le bas de la page */
.foot-mark { position: absolute; left: 50%; bottom: 0; width: calc(100% - 2 * var(--gutter)); max-width: 1360px; height: auto; transform: translate(-50%, 50%); pointer-events: none; }
.foot-mark--light { --logo-ink: #ebe2d3; --logo-accent: #ebe2d3; }
.foot-mark--dark { --logo-ink: rgba(61, 90, 128, .4); --logo-accent: rgba(61, 90, 128, .4); } /* bleu acier en voile : visible mais fondu dans le bleu nuit */

/* ---------- Pourquoi ReTexto (19 nov., v2) : bandeau bleu clair, calcul interactif + graphique, 5 raisons en tuiles ---------- */
.why { margin-top: calc(var(--sec) * .7); padding: 72px 0 80px; background: #dfe6ee; }
.why-head { display: grid; gap: 16px; }
.why-intro { color: #46536a; font-size: 16.5px; max-width: 30em; }
.why-grid { display: grid; gap: 16px; margin-top: 36px; }

.calc { background: #fbf7f0; border-radius: 28px; padding: 24px 20px; box-shadow: 0 30px 60px -44px rgba(20, 36, 61, .55); }
.calc-title { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid rgba(20, 36, 61, .12); font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; color: #14243d; }
@media (min-width: 1024px) { .calc-title { font-size: 24px; margin-bottom: 22px; } }
.calc-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.calc-label { font-size: 15px; font-weight: 500; color: #46536a; max-width: 15em; line-height: 1.35; }
.calc-out { font-size: 34px; line-height: 1; font-weight: 600; letter-spacing: -.04em; color: #14243d; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Curseur aux couleurs de la charte (partie remplie orange foncé via --p, réglé par home.js) */
.calc-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 8px 0 0; background: transparent; cursor: pointer; --p: 12%; }
.calc-range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, #b8400b var(--p), #ebe2d3 var(--p)); }
.calc-range::-moz-range-track { height: 6px; border-radius: 99px; background: #ebe2d3; }
.calc-range::-moz-range-progress { height: 6px; border-radius: 99px; background: #b8400b; }
.calc-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fbf7f0; border: 6px solid #14243d; box-shadow: 0 4px 10px -4px rgba(20, 36, 61, .5); }
.calc-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fbf7f0; border: 6px solid #14243d; box-shadow: 0 4px 10px -4px rgba(20, 36, 61, .5); }
.calc-range:focus-visible { outline: 2px solid #b8400b; outline-offset: 2px; border-radius: 8px; }
.calc-scale { display: flex; justify-content: space-between; font-size: 12.5px; color: #5d6779; }

.chart { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(20, 36, 61, .12); }
.chart-title { font-size: 14px; font-weight: 600; color: #14243d; }
.chart-plot { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; height: 210px; margin-top: 16px; border-bottom: 1px solid rgba(20, 36, 61, .3); }
.chart-col { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.chart-bar { display: block; width: min(100%, 72px); height: var(--h); min-height: 4px; border-radius: 4px 4px 0 0; background: #ff6b1a; transition: height .5s var(--ease); }
.chart-val { margin-bottom: 6px; font-size: 14px; font-weight: 600; color: #14243d; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart-ref { position: absolute; left: 0; right: 0; bottom: var(--y); z-index: 2; border-top: 2px dashed #14243d; pointer-events: none; transition: bottom .5s var(--ease); }
.chart-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.chart-key { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #14243d; }
.chart-key-line { width: 22px; border-top: 2px dashed #14243d; }
.chart-x { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 8px; text-align: center; font-size: 13px; line-height: 1.3; color: #46536a; }
.calc-sum { margin-top: 20px; font-size: 17px; line-height: 1.4; font-weight: 500; color: #14243d; }
.calc .note { margin-top: 8px; }

/* Les 4 raisons : en accordéon (titres seuls, une seule ouverte à la fois), puis la tuile bleu nuit */
.why-side { display: flex; flex-direction: column; gap: 12px; }
.why-acc { background: #fbf7f0; border-radius: 22px; padding: 4px 20px; box-shadow: 0 20px 40px -34px rgba(20, 36, 61, .5); }
.why-item { border-bottom: 1px solid rgba(20, 36, 61, .12); }
.why-item:last-child { border-bottom: 0; }
.why-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 0; cursor: pointer; list-style: none;
  font-size: 18px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; color: #14243d; }
.why-item summary::-webkit-details-marker { display: none; }
.why-qi { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(20, 36, 61, .2); color: #14243d; font-size: 15px; transition: transform .3s var(--ease), background-color .2s; }
.why-item[open] .why-qi { transform: rotate(45deg); background: #ebe2d3; }
.why-item p { padding: 0 44px 18px 0; font-size: 15.5px; line-height: 1.5; color: #46536a; }
.why-item summary:focus-visible { outline: 2px solid #b8400b; outline-offset: 2px; border-radius: 8px; }
.why-item::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
.why-item[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: reduce) { .why-item::details-content { transition: none; } .why-qi { transition: none; } }
.why-me { position: relative; overflow: hidden; isolation: isolate; background: #14243d; border-radius: 22px; padding: 22px 22px 24px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; box-shadow: 0 20px 40px -34px rgba(20, 36, 61, .5); }
.why-me h3 { font-size: 18px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; color: #fbf7f0; }
.why-me p { margin-top: 8px; font-size: 15.5px; line-height: 1.45; color: #dfe6ee; }
.why-me-mark { position: absolute; right: -24px; top: -30px; width: 150px; height: auto; z-index: -1; --logo-ink: rgba(61, 90, 128, .45); --logo-accent: rgba(61, 90, 128, .45); }
@media (min-width: 1024px) {
  .why { margin-top: 0; padding: 112px 0 120px; }
  .why-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 48px; }
  .why-intro { justify-self: end; text-align: right; font-size: 17px; }
  .why-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; margin-top: 56px; align-items: stretch; }
  .calc { padding: 36px 36px 32px; }
  .calc-out { font-size: 44px; }
  .chart-plot { height: 240px; gap: 28px; }
  .chart-x { gap: 28px; }
  .why-side { gap: 16px; }
  .why-me { flex: 1; padding: 26px 26px 28px; }
  .why-acc { padding: 6px 26px; }
  .why-item summary { min-height: 68px; font-size: 19px; }
  .why-me-mark { width: 210px; right: -30px; top: -40px; }
  }
@media (prefers-reduced-motion: reduce) { .chart-bar, .chart-ref { transition: none; } }

/* ---------- Mobile (19 nov., demande de Quentin) ---------- */
/* Calcul plus compact : toute la carte tient à l'écran sur un téléphone */
@media (max-width: 1023px) {
  .calc { padding: 18px 16px 16px; border-radius: 22px; }
  .calc-title { font-size: 18px; margin-bottom: 12px; padding-bottom: 10px; }
  .calc-label { font-size: 13.5px; }
  .calc-out { font-size: 28px; }
  .calc-range { height: 36px; margin-top: 4px; }
  .calc-scale { font-size: 11.5px; }
  .chart { margin-top: 12px; padding-top: 12px; }
  .chart-title { font-size: 13px; }
  .chart-key { font-size: 12px; }
  .chart-plot { height: 128px; margin-top: 10px; gap: 12px; }
  .chart-bar { width: min(100%, 56px); }
  .chart-val { font-size: 12.5px; margin-bottom: 4px; }
  .chart-x { font-size: 11.5px; gap: 12px; margin-top: 6px; }
  .calc-sum { margin-top: 12px; font-size: 15px; }
  .calc .note { margin-top: 6px; font-size: 12px; }
}

/* Barre « Réserver ma place » : petite pilule en bas à droite au lieu d'une barre pleine largeur,
   et elle s'efface quand on fait défiler vers le bas (réapparaît en remontant : html.bar-hide, assets/js/bar.js) */
@media (max-width: 1023px) {
  .mbar { left: auto; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateY(calc(100% + 40px)); }
  .mbar.show { transform: none; }
  html.bar-hide .mbar.show { transform: translateY(calc(100% + 40px)); }
  .mbar .btn-block { width: auto; min-height: 46px; padding: 0 5px 0 18px; gap: 12px; border-radius: 999px; font-size: 15px; box-shadow: 0 12px 26px -14px rgba(20, 36, 61, .55); }
  .mbar .btn-orb { width: 36px; height: 36px; font-size: 15px; }
}

/* ---------- Menu mobile (19 nov.) : bouton rond dans l'en-tête, liste des liens sous l'en-tête ---------- */
.hdr-act { display: flex; align-items: center; gap: 8px; }
.mnav-btn { display: grid; place-content: center; gap: 5px; width: 42px; height: 42px; flex: none; border-radius: 50%; background: #fbf7f0; border: 1px solid rgba(20, 36, 61, .2); cursor: pointer; }
.mnav-btn span { display: block; width: 16px; height: 2px; border-radius: 2px; background: #14243d; transition: transform .25s var(--ease); }
.mnav-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.mnav-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mnav { position: absolute; left: 0; right: 0; top: 100%; padding: 4px var(--gutter) 14px; background: #f3ece1; border-bottom: 1px solid rgba(20, 36, 61, .12); box-shadow: 0 24px 40px -30px rgba(20, 36, 61, .5); }
.mnav[hidden] { display: none; }
.mnav a { display: flex; align-items: center; min-height: 54px; border-bottom: 1px solid rgba(20, 36, 61, .12); font-size: 17px; font-weight: 500; color: #14243d; text-decoration: none; }
.mnav a:last-child { border-bottom: 0; }
.mnav a[aria-current="page"] { color: #b8400b; }
html.mnav-open .hdr { background: #f3ece1; border-bottom-color: rgba(20, 36, 61, .12); }
@media (max-width: 380px) { .mnav-btn { width: 40px; height: 40px; } .hdr-act { gap: 6px; } }
@media (min-width: 900px) { .mnav-btn, .mnav { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .mnav-btn span { transition: none; } }

/* ---------- Calcul simplifié (19 nov., v3) : question + curseur, deux barres, une phrase ---------- */
.cmp { display: grid; gap: 16px; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(20, 36, 61, .12); }
.cmp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 15px; color: #46536a; }
.cmp-head b { font-size: 17px; font-weight: 600; color: #14243d; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cmp-track { display: block; height: 14px; margin-top: 8px; border-radius: 99px; background: #ebe2d3; overflow: hidden; }
.cmp-bar { display: block; height: 100%; width: var(--w); border-radius: 99px; transition: width .45s var(--ease); }
.cmp-gain { background: #ff6b1a; }
.cmp-cost { background: #14243d; }
.calc .calc-sum { margin-top: 22px; padding: 16px 18px; border-radius: 16px; background: #dfe6ee; font-size: 17px; line-height: 1.4; font-weight: 500; color: #14243d; }
.calc-sum strong { font-weight: 600; color: #14243d; text-decoration: underline; text-decoration-color: #ff6b1a; text-decoration-thickness: 3px; text-underline-offset: 4px; }
@media (min-width: 1024px) {
  .cmp { gap: 22px; margin-top: 30px; padding-top: 28px; }
  .cmp-head { font-size: 16px; }
  .cmp-head b { font-size: 19px; }
  .cmp-track { height: 18px; }
  .calc .calc-sum { margin-top: 30px; padding: 20px 22px; font-size: 20px; }
}
@media (max-width: 1023px) {
  .cmp { gap: 12px; margin-top: 14px; padding-top: 14px; }
  .cmp-head { font-size: 13.5px; }
  .cmp-head b { font-size: 15px; }
  .cmp-track { height: 12px; margin-top: 6px; }
  .calc .calc-sum { margin-top: 14px; padding: 12px 14px; font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) { .cmp-bar { transition: none; } }
