/* ==========================================================================
   Roses Informatique : feuille de style unique
   Direction : éditoriale et sobre. Blanc dominant, bleu #162D63 pour la
   structure, rose en petites touches (sur-lignes, bouton principal, détails).
   Filets fins et espaces plutôt que cadres. Coins à 4 px au maximum.
   Sommaire : 1 Variables · 2 Base · 3 Mise en page · 4 Boutons · 5 En-tête
   6 Accueil · 7 Services · 8 Tarifs · 10 Parcours et bandeau
   11 Pages internes · 12 Formulaires · 13 Devis en étapes · 14 Pied de page
   ========================================================================== */


/* 1 ─ Variables ───────────────────────────────────────────────────────── */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bleu:        #162D63;   /* bleu Roses : titres, boutons, sections */
  --bleu-clair:  #2F5DB5;   /* secondaire : liens, tracés, repères */
  --bleu-pale:   #EDF2FB;   /* fonds de sélection */
  --rose:        #C0275A;   /* accent de marque : à utiliser avec parcimonie */
  --rose-fonce:  #A31F4B;

  --blanc:       #FFFFFF;
  --gris-fond:   #F5F7FA;   /* sections alternées */
  --ligne:       #DDE2EC;   /* filets discrets */
  --ligne-forte: #B7C0D1;   /* contours de champs */
  --texte:       #232B3B;
  --sourdine:    #586073;

  --ok: #17653f;  --ok-teinte: #e8f4ed;
  --err: #a1211f; --err-teinte: #fdeeee;

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --r: 4px;
  --pad: clamp(20px, 4vw, 40px);
  --max: 1200px;
  --header-h: 72px;
}


/* 2 ─ Base ────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  color: var(--texte); background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
p { margin: 0; }
a { color: var(--bleu-clair); }

h1, h2, h3 { margin: 0; color: var(--bleu); text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 740; letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.75rem); font-weight: 700; letter-spacing: -0.022em; line-height: 1.1; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.005em; line-height: 1.3; }

.lead    { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.6; color: var(--sourdine); max-width: 56ch; }
.lead-sm { font-size: 1.1rem; color: var(--sourdine); max-width: 46ch; margin-top: 18px; }
.muted   { color: var(--sourdine); }
.fine    { margin-top: 20px; font-size: .92rem; color: var(--sourdine); max-width: 70ch; }
.nb      { white-space: nowrap; }

.eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
  font-size: .8rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--bleu-clair);
}
.eyebrow::before { content: ""; flex: none; width: 28px; height: 2px; background: var(--rose); }
.eyebrow--light { color: #AFC2EA; }

::selection { background: var(--bleu); color: #fff; }
:focus-visible { outline: 3px solid var(--bleu-clair); outline-offset: 3px; border-radius: 2px; }
a:not([class]) { text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
a:not([class]):hover { color: var(--bleu); }

.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; background: #fff; color: var(--bleu); font-weight: 650; border: 2px solid var(--bleu); border-radius: var(--r); }
.skip:focus { left: 8px; }


/* 3 ─ Mise en page ────────────────────────────────────────────────────── */

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.section        { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(24px, 4vw, 48px) clamp(64px, 9vw, 112px); }
.section--grey  { background: var(--gris-fond); }
.section--line  { border-top: 1px solid var(--ligne); }
.section-title  { max-width: 26ch; margin-bottom: clamp(28px, 4.5vw, 52px); }
.section-lead   { margin-top: calc(-1 * clamp(16px, 3vw, 32px)); margin-bottom: clamp(28px, 4vw, 44px); max-width: 58ch; color: var(--sourdine); }
.wrap > .notice { margin-top: 24px; }

.sec-head { display: grid; gap: 20px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head > .muted { max-width: 38ch; }
.sec-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(32px, 5vw, 52px); color: var(--sourdine); font-size: .95rem; }
@media (min-width: 860px) { .sec-head { grid-template-columns: 1fr auto; gap: 48px; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.split-head .muted { margin-top: 18px; max-width: 34ch; }
.split-head .actions { margin-top: 28px; }
@media (min-width: 980px) {
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 96px; align-items: start; }
  .split-head { position: sticky; top: calc(var(--header-h) + 32px); }
}


/* 4 ─ Boutons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .7em 1.4em;
  font: inherit; font-size: .98rem; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none;
  border: 1.5px solid transparent; border-radius: var(--r); cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--lg { min-height: 52px; padding: .8em 1.7em; font-size: 1.02rem; }
.btn--rose   { background: var(--rose); color: #fff; }
.btn--rose:hover   { background: var(--rose-fonce); color: #fff; }
.btn--bleu   { background: var(--bleu); color: #fff; }
.btn--bleu:hover   { background: #0E1F47; color: #fff; }
.btn--outline { border-color: var(--bleu); color: var(--bleu); background: transparent; }
.btn--outline:hover { background: var(--bleu); color: #fff; }
.btn--ghost  { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn--ghost:hover  { background: #fff; color: var(--bleu); }


/* 5 ─ En-tête ─────────────────────────────────────────────────────────── */

.util { background: var(--gris-fond); border-bottom: 1px solid var(--ligne); font-size: .85rem; color: var(--sourdine); }
.util-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.util a { color: inherit; text-decoration: none; }
.util-mail:hover, .util-shop:hover strong { color: var(--bleu); text-decoration: underline; text-underline-offset: .2em; }
.util-shop strong { font-weight: 650; color: var(--bleu); }
.util-shop::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 9px; vertical-align: 1px;
  border-top: 1.5px solid var(--bleu); border-right: 1.5px solid var(--bleu); transform: rotate(45deg);
}
@media (max-width: 639.98px) { .util-mail { display: none; } .util-in { justify-content: center; } }

.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--ligne); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; color: var(--bleu); text-decoration: none; white-space: nowrap; font-weight: 720; font-size: 1.22rem; letter-spacing: -.015em; }
.brand-mark {
  position: relative; width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--bleu); color: #fff; border-radius: var(--r); font-weight: 800; font-size: 1.15rem; line-height: 1; letter-spacing: 0;
}
.brand-mark::after { content: ""; position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--rose); border: 2px solid #fff; }

.menu-btn { display: none; align-items: center; gap: 10px; padding: .5em .85em; font: inherit; font-weight: 600; color: var(--bleu); background: #fff; border: 1.5px solid var(--bleu); border-radius: var(--r); cursor: pointer; }
.menu-btn-bars { width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }

.menu { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 24px; margin-left: 32px; }
.menu-list { display: flex; align-items: stretch; gap: 2px; margin: 0; padding: 0; list-style: none; }
.menu-list a {
  display: flex; align-items: center; height: var(--header-h); padding: 0 .7em; white-space: nowrap;
  font-size: .97rem; font-weight: 550; color: var(--texte); text-decoration: none; border-bottom: 2px solid transparent;
}
.menu-list a:hover { color: var(--bleu); border-bottom-color: var(--ligne-forte); }
.menu-list a[aria-current="page"] { color: var(--bleu); font-weight: 650; border-bottom-color: var(--bleu); }
.menu-end { flex: none; }
.menu-end .btn { white-space: nowrap; }

@media (max-width: 479.98px) {
  .brand { gap: 9px; font-size: 1.08rem; }
  .brand-mark { width: 30px; height: 30px; font-size: 1rem; }
  .menu-btn { padding: .55em .65em; }
  .menu-btn-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 1279.98px) {
  .menu-btn { display: inline-flex; }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 8px var(--pad) 28px; background: #fff; border-bottom: 1px solid var(--ligne);
  }
  .menu.is-open { display: flex; }
  .menu-list { flex-direction: column; gap: 0; }
  .menu-list a { height: auto; padding: 15px 0; border-bottom: 1px solid var(--ligne); font-size: 1.08rem; }
  .menu-list a[aria-current="page"] { border-bottom-color: var(--ligne); color: var(--bleu-clair); }
  .menu-end .btn { width: 100%; }
}


/* 6 ─ Accueil : hero ──────────────────────────────────────────────────── */

.hero { padding-block: clamp(48px, 7vw, 104px) clamp(56px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 4.9vw, 4.1rem); }
.hero .lead { margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; margin: 40px 0 0; padding: 0; list-style: none; color: var(--sourdine); font-size: .95rem; }
.hero-meta li + li::before { content: "\2022"; margin: 0 14px; color: var(--ligne-forte); }
.hero-visual { width: 100%; max-width: 600px; margin-inline: auto; }
.hv { width: 100%; height: auto; overflow: visible; }
.hv text { font-family: var(--font); }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 72px; }
  .hero-visual { margin-inline: 0 0; }
}
@media (max-width: 519.98px) { .hv text { display: none; } }
@media (max-width: 559.98px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-meta { display: grid; gap: 6px; }
  .hero-meta li + li::before { content: none; }
}


/* 7 ─ Accueil : services ──────────────────────────────────────────────── */

.svc-list { list-style: none; margin: 0; padding: 0; }
.svc { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; align-items: start; gap: 8px 20px; padding: 28px 0; border-top: 1px solid var(--ligne); transition: background-color .15s; }
.svc-n { padding-top: 6px; font-size: .9rem; font-weight: 650; letter-spacing: .06em; color: var(--bleu-clair); font-variant-numeric: tabular-nums; }
.svc h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 680; letter-spacing: -.015em; line-height: 1.15; }
.svc h3 a { color: var(--bleu); text-decoration: none; }
.svc h3 a::after { content: ""; position: absolute; inset: 0; }
.svc-body p { margin-top: 6px; max-width: 56ch; color: var(--sourdine); }
.svc-go { align-self: center; width: 9px; height: 9px; border-top: 2px solid var(--ligne-forte); border-right: 2px solid var(--ligne-forte); transform: rotate(45deg); transition: transform .15s, border-color .15s; }
.svc:last-child { border-bottom: 1px solid var(--ligne); }
.svc:hover { background: var(--gris-fond); box-shadow: -12px 0 0 var(--gris-fond), 12px 0 0 var(--gris-fond); }
.svc:hover .svc-go { border-color: var(--bleu); transform: translateX(4px) rotate(45deg); }
.svc:focus-within { background: var(--gris-fond); box-shadow: -12px 0 0 var(--gris-fond), 12px 0 0 var(--gris-fond); }
@media (min-width: 720px) { .svc { grid-template-columns: 64px minmax(0, 1fr) 24px; } }


/* 8 ─ Accueil : tarifs ────────────────────────────────────────────────── */

.pgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px 72px; }
@media (min-width: 860px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pgroup-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 2px solid var(--bleu); margin-bottom: 4px; }
.pgroup-head h3 { font-size: .86rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bleu); }
.pgroup-head a { font-size: .9rem; color: var(--sourdine); text-underline-offset: .2em; }
.pgroup-head a:hover { color: var(--bleu); }

.prow {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 14px 0;
  border-bottom: 1px solid var(--ligne); color: var(--texte); text-decoration: none; transition: background-color .15s;
}
.prow:hover { background: #fff; box-shadow: -12px 0 0 #fff, 12px 0 0 #fff; }
.prow-name { display: grid; gap: 1px; font-weight: 600; color: var(--bleu); }
.prow-name small { font-size: .86rem; font-weight: 400; color: var(--sourdine); }
.prow-price { flex: none; display: flex; align-items: baseline; flex-wrap: wrap; justify-content: flex-end; gap: 0 6px; text-align: right; font-variant-numeric: tabular-nums; }
.prow-price small { font-size: .82rem; color: var(--sourdine); }
.prow-price strong { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; color: var(--bleu); }
.prow-price em { font-style: normal; font-size: .92rem; color: var(--sourdine); }


/* 10 ─ Approche, parcours, bandeau ────────────────────────── */

.approach { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.approach > div { padding-top: 18px; border-top: 1px solid var(--ligne-forte); }
.approach h3 { margin-bottom: 8px; }
.approach p { color: var(--sourdine); }
@media (min-width: 640px) { .approach { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; } }
@media (min-width: 1000px) { .approach { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; } }

.journey { background: var(--bleu); color: #fff; padding-block: clamp(64px, 9vw, 112px); }
.journey h2 { color: #fff; }
.jsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.jsteps li { position: relative; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.28); }
.jsteps li::before { content: ""; position: absolute; top: -1px; left: 0; width: 36px; height: 3px; background: var(--rose); }
.jn { display: block; margin-bottom: 12px; font-size: .9rem; font-weight: 650; letter-spacing: .08em; color: #AFC2EA; }
.jsteps h3 { color: #fff; margin-bottom: 8px; }
.jsteps p { color: #C9D5EE; max-width: 30ch; }
@media (min-width: 640px)  { .jsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; } }
@media (min-width: 1000px) { .jsteps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; } }

.band { background: var(--bleu); color: #fff; }
.band-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; padding-block: clamp(52px, 7vw, 92px); }
.band h2 { color: #fff; font-size: clamp(1.85rem, 3.4vw, 2.7rem); max-width: 22ch; }
.band p { margin-top: 14px; max-width: 54ch; color: #C9D5EE; }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.band :focus-visible, .journey :focus-visible { outline-color: #fff; }
@media (min-width: 900px) { .band-in { grid-template-columns: minmax(0, 1fr) auto; gap: 64px; } }


/* 11 ─ Pages internes ─────────────────────────────────────────────────── */

.phead { padding-block: clamp(28px, 4vw, 48px) clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--ligne); }
.phead--compact { padding-bottom: clamp(32px, 5vw, 56px); }
.phead h1 { max-width: 17ch; font-size: clamp(2.4rem, 4.8vw, 3.9rem); }
.phead .lead { margin-top: 22px; }
.phead-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
@media (min-width: 1000px) { .phead-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 72px; } }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 28px; font-size: .9rem; color: var(--sourdine); }
.crumbs a { color: var(--sourdine); text-decoration: none; }
.crumbs a:hover { color: var(--bleu); text-decoration: underline; text-underline-offset: .2em; }
.crumbs [aria-current] { color: var(--bleu); font-weight: 600; }

/* Formules : lignes séparées par de fins filets */
.formules { border-top: 1px solid var(--ligne-forte); }
.formule { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 36px 0; border-bottom: 1px solid var(--ligne); }
.formule--reco { background: var(--bleu-pale); margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); }
.formule h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -.015em; margin-bottom: 8px; }
.formule-id p { color: var(--sourdine); max-width: 32ch; }
.tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bleu); }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }
.formule-buy { display: grid; gap: 18px; align-content: start; justify-items: start; }

.price { display: grid; }
.price-from   { font-size: .88rem; color: var(--sourdine); }
.price-amount { font-size: clamp(2.3rem, 3.8vw, 3rem); font-weight: 720; letter-spacing: -.03em; line-height: 1.05; color: var(--bleu); font-variant-numeric: tabular-nums; }
.price-amount--quote { font-size: clamp(1.7rem, 2.6vw, 2.1rem); }
.price-unit   { margin-top: 4px; font-size: .9rem; color: var(--sourdine); }
@media (min-width: 900px) {
  .formule { grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr) minmax(190px, .7fr); gap: 48px; align-items: start; }
  .formule-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .formule-buy { justify-items: end; text-align: right; }
}

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; background: var(--bleu-clair);
  -webkit-mask: var(--ico-check) center / contain no-repeat; mask: var(--ico-check) center / contain no-repeat;
}
.ticks li.no { color: var(--sourdine); }
.ticks li.no::before { background: var(--sourdine); -webkit-mask-image: var(--ico-cross); mask-image: var(--ico-cross); }
:root {
  --ico-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3 9.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='square'/%3E%3C/svg%3E");
  --ico-cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 4l10 10M14 4L4 14' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='square'/%3E%3C/svg%3E");
}

/* Exemple de devis (page logiciel) */
.doc { margin: 0; padding: 26px 26px 20px; background: #fff; border: 1px solid var(--ligne-forte); border-radius: 6px; font-size: .94rem; }
.doc-tag { display: inline-block; margin-bottom: 16px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bleu-clair); }
.doc-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--bleu); }
.doc-head strong { font-size: 1.1rem; color: var(--bleu); }
.doc-head span { color: var(--sourdine); }
.doc table { width: 100%; border-collapse: collapse; }
.doc th, .doc td { padding: 8px 0; text-align: left; border-bottom: 1px solid var(--ligne); font-weight: 400; }
.doc thead th { font-size: .84rem; font-weight: 650; color: var(--sourdine); }
.doc .num { text-align: right; padding-left: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc thead .num { white-space: normal; }
.doc tfoot th { text-align: right; font-weight: 500; color: var(--sourdine); }
.doc .doc-total th, .doc .doc-total td { border-bottom: 0; padding-top: 12px; font-weight: 720; color: var(--bleu); font-size: 1.12rem; }
@media (max-width: 420px) { .doc { padding: 20px 14px 16px; font-size: .88rem; } .doc .num { padding-left: 8px; } }

.defs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.defs > div { padding-top: 16px; border-top: 1px solid var(--ligne-forte); }
.defs h3 { margin-bottom: 4px; font-size: 1.3rem; }
.defs p { color: var(--sourdine); }
@media (min-width: 760px) { .defs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; } }

.scope { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--ligne-forte); }
.scope li { padding: 16px 0; border-bottom: 1px solid var(--ligne-forte); font-size: 1.15rem; font-weight: 600; color: var(--bleu); }
@media (min-width: 720px) { .scope { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; } }


/* 12 ─ Formulaires ────────────────────────────────────────────────────── */

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 980px) { .form-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 88px; align-items: start; } }

.row-2 { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 20px; }
@media (min-width: 640px) { .row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 7px; margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field > label { font-size: .96rem; font-weight: 600; color: var(--bleu); }
.req { font-weight: 400; color: var(--sourdine); font-size: .86rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 48px; padding: .65em .85em; font: inherit; color: var(--texte); background: #fff;
  border: 1px solid var(--ligne-forte); border-radius: var(--r);
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(47,93,181,.25); outline-offset: 0; border-color: var(--bleu-clair); }
.field ::placeholder { color: #7b859b; }
.form-note { margin-top: 14px; font-size: .9rem; color: var(--sourdine); }

.notice { padding: 14px 16px; border-left: 4px solid; border-radius: 2px; margin: 0 0 24px; }
.notice ul { margin: 6px 0 0 1.1em; padding: 0; }
.notice--ok    { background: var(--ok-teinte);  border-color: var(--ok);  color: #10472c; }
.notice--error { background: var(--err-teinte); border-color: var(--err); color: #6f1614; }

.aside-block { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--ligne); }
.aside-block--first { margin-top: 0; border-top: 2px solid var(--bleu); }
.aside h2 { font-size: 1.5rem; margin-bottom: 10px; }
.aside h3 { margin-bottom: 6px; }
.aside p { color: var(--sourdine); }


/* 13 ─ Devis en étapes ────────────────────────────────────────────────── */

.qsteps { display: flex; align-items: center; list-style: none; margin: 0 0 clamp(28px, 4vw, 44px); padding: 0; }
.qsteps li { flex: 1; display: flex; align-items: center; gap: 12px; color: var(--sourdine); font-size: .95rem; font-weight: 550; }
.qsteps li:last-child { flex: none; }
.qsteps li:not(:last-child)::after { content: ""; flex: 1; height: 1px; margin: 0 16px; background: var(--ligne-forte); }
.qn { flex: none; width: 30px; height: 30px; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--ligne-forte); border-radius: var(--r); font-size: .88rem; font-weight: 700; }
.qsteps .is-current { color: var(--bleu); font-weight: 650; }
.qsteps .is-current .qn { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.qsteps .is-done .qn { background: var(--bleu-pale); border-color: var(--bleu); color: var(--bleu); }
.qsteps .is-done { color: var(--bleu); }
html:not(.js) .qsteps:not(.qsteps--static) { display: none; }
@media (max-width: 719.98px) {
  .qlbl { display: none; }
  .qsteps .is-current .qlbl { display: inline; }
  .qsteps li:not(:last-child)::after { margin: 0 10px; }
}

.quote { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 980px) { .quote { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 80px; align-items: start; } }
html:not(.js) .qsummary { display: none; }
@media (min-width: 980px) { html:not(.js) .quote { grid-template-columns: minmax(0, 1fr); } }

.qpanel { margin-bottom: 40px; }
.qpanel h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 6px; }
.qpanel h2:focus { outline: none; }
.qpanel > .muted { margin-bottom: 4px; }
.qerr { margin-top: 16px; padding: 12px 14px; background: var(--err-teinte); border-left: 4px solid var(--err); color: #6f1614; border-radius: 2px; }
.qgroup { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--ligne); border-inline: 0; border-bottom: 0; min-width: 0; }
.qgroup > h3, .qgroup > legend { padding: 0; margin-bottom: 4px; font-size: 1.12rem; font-weight: 650; color: var(--bleu); }
.qsub { margin: 20px 0 0; padding: 0; border: 0; min-width: 0; }
.qsub legend { padding: 0; font-size: .92rem; font-weight: 600; color: var(--sourdine); }

.opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 18px; }
@media (min-width: 560px) { .opts--2, .opts--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.opt { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); cursor: pointer; transition: border-color .15s, background-color .15s; }
.opt:hover { border-color: var(--ligne-forte); }
.opt:has(.tick:checked) { border-color: var(--bleu); background: var(--bleu-pale); }
.opt--sm { align-items: center; padding: 12px 14px; }
.opt-body { flex: 1; display: grid; gap: 2px; min-width: 0; }
.opt-t { font-weight: 620; color: var(--bleu); }
.opt-d { font-size: .92rem; color: var(--sourdine); }
.opt-p { flex: none; text-align: right; color: var(--bleu); font-variant-numeric: tabular-nums; }
.opt-p small { display: block; font-size: .78rem; color: var(--sourdine); }
.opt-p strong { font-weight: 700; }

.tick {
  appearance: none; -webkit-appearance: none; flex: none; align-self: center;
  width: 20px; height: 20px; margin: 0; display: grid; place-content: center;
  background: #fff; border: 1.5px solid var(--ligne-forte); border-radius: 3px; cursor: pointer;
  transition: background-color .12s, border-color .12s;
}
.opt:not(.opt--sm) .tick { align-self: flex-start; margin-top: 2px; }
.tick::after { content: ""; width: 10px; height: 5.5px; margin-top: -2px; border-left: 2.25px solid #fff; border-bottom: 2.25px solid #fff; transform: rotate(-45deg) scale(0); transition: transform .12s; }
.tick:checked { background: var(--bleu); border-color: var(--bleu); }
.tick:checked::after { transform: rotate(-45deg) scale(1); }
.tick--radio { border-radius: 50%; }
.tick--radio::after { width: 8px; height: 8px; margin: 0; border: 0; border-radius: 50%; background: #fff; transform: scale(0); }
.tick--radio:checked::after { transform: scale(1); }

.qnav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.qnav .btn[data-submit] { margin-left: auto; }
.is-stepped .qnav .btn[data-submit] { margin-left: 0; }
.qsummary { padding-top: 18px; border-top: 2px solid var(--bleu); }
@media (min-width: 980px) { .qsummary { position: sticky; top: calc(var(--header-h) + 28px); } }
.qsummary h2 { font-size: 1.4rem; margin-bottom: 12px; }
.sum-list { list-style: none; margin: 0; padding: 0; }
.sum-list > li { padding: 10px 0; border-bottom: 1px solid var(--ligne); }
.sum-list strong { color: var(--bleu); }
.sum-list ul { list-style: none; margin: 4px 0 0; padding: 0; color: var(--sourdine); font-size: .94rem; }
.sum-list ul li { position: relative; padding-left: 14px; }
.sum-list ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 1.5px; background: var(--rose); }
.qsummary .fine { margin-top: 16px; }

.qdone { max-width: 680px; }
.qdone h2 { margin-bottom: 14px; }
.qdone h3 { margin: 28px 0 12px; }
.qdone p + p { margin-top: 12px; }
.ref { padding: 12px 16px; background: var(--gris-fond); border-left: 4px solid var(--bleu); }
.qdone-actions { margin-top: 32px; }


/* 14 ─ Pied de page ───────────────────────────────────────────────────── */

.foot { background: #fff; border-top: 1px solid var(--ligne); padding-block: 60px 28px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.foot-brand p { margin-top: 16px; max-width: 36ch; color: var(--sourdine); font-size: .96rem; }
.foot-col h2 { margin-bottom: 14px; font-size: .84rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bleu); line-height: 1.3; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-col a, .foot-brand a:not(.brand) { color: var(--texte); text-decoration: none; }
.foot-col a:hover, .foot-brand a:not(.brand):hover { color: var(--bleu-clair); text-decoration: underline; text-underline-offset: .2em; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--ligne); font-size: .9rem; color: var(--sourdine); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-legal a { color: inherit; text-decoration: none; }
.foot-legal a:hover { color: var(--bleu); text-decoration: underline; }
@media (min-width: 620px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 56px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
