/* =====================================================================
   DESIGN DE L'ARTOIS — Maquette
   DA : neutre & sobre, accent doré
   Palette gris · noir · doré · blanc cassé — typographie Inter
   ===================================================================== */

/* -------------------------------- Tokens -------------------------------- */
:root {
  /* Palette NEUTRE : gris · noir · DORÉ · blanc cassé (zéro marron) */
  --plaster:    #f2f2f0;   /* fond principal, blanc cassé */
  --plaster-2:  #e9e9e6;   /* fond secondaire / section alternée (gris clair) */
  --paper:      #fbfbfa;   /* surface claire (cartes, formulaire) */
  --ink:        #1b1b1e;   /* TEXTE principal, presque noir neutre */
  --ink-2:      #1b1b1e;
  --ink-soft:   #6a6a6e;   /* texte adouci, gris neutre */
  --terra:      #c9a23c;   /* OR (aplats : boutons, pastilles) */
  --terra-deep: #9c7c1f;   /* or foncé (texte accent sur fond clair) */
  --terra-pale: #e4cd8a;   /* or clair (sur fond sombre) */
  --sand:       #d7d7d4;   /* gris clair (avatars, fonds image) */
  --olive:      #c9a23c;   /* succès formulaire → doré */
  --line:       rgba(24, 24, 27, .14);
  --line-strong:rgba(24, 24, 27, .26);
  --night:      #1a1b1e;   /* fond des sections sombres (gris-noir neutre) */
  --cream:      #f1f1ee;   /* texte clair sur fond sombre (blanc cassé) */

  /* Typo classique & neutre : Inter partout (titres + texte) */
  --serif: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --shell: 1180px;
  --pad: clamp(1.1rem, 4vw, 2.4rem);
  --r: 16px; /* coins arrondis (boutons, inputs, petites surfaces) */
  --r-lg: 22px; /* grandes surfaces : cartes, formulaire, images */

  --t-fast: .2s cubic-bezier(.2, .6, .3, 1);
  --t: .45s cubic-bezier(.2, .7, .25, 1);
}

/* -------------------------------- Reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--plaster);
  line-height: 1.6;
  font-size: clamp(1rem, .96rem + .25vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* 'clip' n'instaure pas de conteneur de scroll → préserve position:sticky sur iOS */
  /* grain plâtre très discret */
  background-image:
    radial-gradient(circle at 18% 12%, rgba(201, 164, 94, .05), transparent 42%),
    radial-gradient(circle at 88% 78%, rgba(120, 122, 130, .045), transparent 46%);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
[hidden] { display: none !important; } /* sinon .btn{display:inline-flex} écrase l'attribut hidden */

::selection { background: var(--terra); color: #17181b; }

:focus-visible {
  outline: 2.5px solid var(--terra);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; border-radius: var(--r); z-index: 200;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 1rem; }

/* ------------------------------- Layout --------------------------------- */
.shell { width: min(100% - 2 * var(--pad), var(--shell)); margin-inline: auto; }
.section { padding-block: clamp(3.8rem, 6.8vw, 6.8rem); }

/* ----------------------------- Typographie ------------------------------ */
.kicker {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--terra-deep);
  display: inline-flex; align-items: center; gap: .6rem;
  margin-bottom: 1.1rem;
}
.kicker--invert { color: var(--terra-pale); }
.kicker-dot { width: 8px; height: 8px; background: var(--terra); border-radius: 50%; }
.sec-num { font-variant-numeric: tabular-nums; opacity: .7; }

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.7rem);
  line-height: 1.14;
  letter-spacing: -.02em;
}
.section-head--center { max-width: 42rem; margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head--center .section-intro { margin-inline: auto; }
.section-title em {
  font-style: normal;
  font-weight: 600;
  color: var(--terra);
}

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 4.8vw, 4rem); }
.section-intro { color: var(--ink-soft); max-width: 38rem; margin-top: 1.1rem; }
.section-head--split {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem 3rem;
  align-items: end; max-width: none;
}
.section-head--split .section-intro { margin-top: 0; }

/* ------------------------------- Boutons -------------------------------- */
.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .94rem;
  letter-spacing: .01em;
  padding: .85rem 1.5rem;
  border-radius: var(--r);
  text-decoration: none;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}
.btn--solid { background: var(--terra); color: #17181b; box-shadow: 0 1px 0 var(--terra-deep); }
.btn--solid:hover { background: var(--terra-deep); transform: translateY(-2px); box-shadow: 0 8px 22px -10px rgba(173, 135, 66, .8); }
.btn--line { border: 1.5px solid var(--line-strong); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--plaster); border-color: var(--ink); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--invert { border-color: var(--line-strong); color: var(--ink); }
.btn--invert:hover { background: var(--terra); color: #17181b; border-color: var(--terra); }

/* ------------------------------- En-tête -------------------------------- */
.site-header {
  position: relative; z-index: 100;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  color: var(--terra);
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-logo { height: clamp(32px, 3.2vw, 40px); width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-weight: 500; font-size: 1.16rem; letter-spacing: -.01em; }
.brand-tag { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
.nav ul { display: flex; gap: clamp(.8rem, 2vw, 1.9rem); }
.nav ul a {
  text-decoration: none; font-weight: 500; font-size: .95rem;
  display: inline-flex; align-items: baseline; gap: .4rem; padding: .3rem 0;
  position: relative;
}
.nav-num { font-size: .68rem; color: var(--terra-deep); font-variant-numeric: tabular-nums; }
.nav ul a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--terra); transition: width var(--t-fast);
}
.nav ul a:hover::after { width: 100%; }

.burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; padding: 0 10px; }
.burger span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--t-fast), opacity var(--t-fast); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------- Hero --------------------------------- */
.hero { padding-top: clamp(2.8rem, 5.5vw, 4.8rem); position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center;
  padding-bottom: clamp(3rem, 6vw, 5.2rem);
}
.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 1.3rem + 5vw, 5rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  margin: .4rem 0 1.4rem;
}
.hero-title em { font-style: normal; font-weight: 700; color: var(--terra); }
.hero-lede { color: var(--ink-soft); max-width: 34rem; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2.4rem; }

.hero-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .7rem; margin-top: .2rem;
}
.hero-meta li {
  display: flex; align-items: flex-start; gap: .65rem;
  padding: .85rem 1rem; background: rgba(241, 241, 238, .05);
  border: 1px solid var(--line); border-radius: var(--r);
}
.hm-ic {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--terra); color: #17181b;
}
.hm-ic svg { width: 17px; height: 17px; }
.hm-tx { display: flex; flex-direction: column; }
.hero-meta strong { font-size: 1rem; font-weight: 700; color: var(--cream); line-height: 1.2; }
.hero-meta span { font-size: .8rem; color: var(--ink-soft); margin-top: .1rem; }

.hero-figure { position: relative; }
.hero-figure img {
  aspect-ratio: 4 / 5; border-radius: var(--r-lg);
  border: 1px solid rgba(241, 241, 238, .12);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
}
.hero-figure figcaption {
  position: absolute; left: .85rem; bottom: .85rem; z-index: 3; margin: 0;
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .85rem;
  background: rgba(16, 17, 19, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(228, 203, 139, .3); border-radius: 99px;
  font-size: .78rem; letter-spacing: .03em; color: var(--cream);
}
.hero-cap-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--terra-pale); box-shadow: 0 0 0 3px rgba(228, 203, 139, .22); flex: none; }

/* ----------------------------- Frame / photos --------------------------- */
[data-frame] { position: relative; }
[data-frame] img {
  width: 100%; height: 100%; object-fit: cover;
  background: linear-gradient(135deg, var(--sand), var(--plaster-2));
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: transform var(--t), opacity var(--t);
  opacity: 0;
}
[data-frame] img.is-loaded { opacity: 1; }
.frame-tag {
  position: absolute; z-index: 3; top: .7rem; left: .7rem;
  background: rgba(12, 9, 5, .82); color: var(--ink);
  font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .3rem .55rem; border-radius: 4px; pointer-events: none;
}

/* ------------------------------- Marquee -------------------------------- */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden; padding-block: 1.25rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 1.4rem; white-space: nowrap;
  font-family: var(--serif); font-weight: 500; font-size: 1.05rem; letter-spacing: .04em; color: var(--ink-soft);
  animation: marquee 34s linear infinite;
}
.marquee-track .sep { color: var(--terra); font-style: normal; font-size: .9rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ------------------------------- Services ------------------------------- */
.services-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: auto 64px 1fr auto;
  align-items: center; gap: 1.3rem;
  padding: clamp(1.2rem, 3vw, 1.9rem) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left var(--t-fast);
}
.service-row:hover { padding-left: .8rem; }
.service-index {
  font-family: var(--serif); font-size: 1.05rem; color: var(--terra-deep);
  font-variant-numeric: tabular-nums; align-self: start; padding-top: .35rem;
}
.service-icon { width: 54px; height: 54px; color: var(--ink); }
.service-icon svg { width: 100%; height: 100%; }
.service-body h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.3rem, 1rem + 1.4vw, 1.85rem); line-height: 1.12; }
.service-body p { color: var(--ink-soft); margin-top: .25rem; max-width: 44rem; }
.service-link {
  display: inline-block; margin-top: .6rem; font-weight: 600; font-size: .9rem;
  color: var(--terra-deep); text-decoration: none; border-bottom: 1.5px solid var(--terra-pale);
  transition: border-color var(--t-fast);
}
.service-link:hover { border-color: var(--terra-deep); }
.service-arrow { font-size: 1.5rem; color: var(--line-strong); transition: transform var(--t-fast), color var(--t-fast); }
.service-row:hover .service-arrow { transform: translateX(6px); color: var(--terra); }
.service-row.is-featured { background: linear-gradient(90deg, rgba(201, 164, 94, .07), transparent 70%); border-radius: var(--r); }

/* ----------------------------- Réalisations ----------------------------- */
.realisations { background: var(--plaster-2); }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}
.card { overflow: hidden; border-radius: var(--r); cursor: zoom-in; grid-row: span 1; }
.card--tall { grid-row: span 2; }
.card--wide { grid-column: span 2; }
.card img { width: 100%; height: 100%; }
.card:hover img { transform: scale(1.05); }
.card figcaption {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 1.4rem 1rem .9rem; color: var(--cream);
  font-size: .92rem; font-weight: 500;
  background: linear-gradient(0deg, rgba(20, 17, 13, .82), transparent);
}
.card-cat {
  display: inline-block; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--terra-pale); margin-right: .5rem;
}

/* ------------------------------ Simulateur ------------------------------ */
.sim { background: var(--night); color: var(--ink); position: relative; }
.sim .section-title { color: var(--ink); }
.sim .section-title em { color: var(--terra-pale); }
.sim .section-intro { color: rgba(241, 241, 238, .72); }

.sim-grid {
  display: grid; grid-template-columns: 1.35fr .85fr;
  gap: clamp(1.4rem, 3vw, 2.6rem); align-items: start;
}

.sim-form { display: grid; gap: 1.1rem; }
.sim-block {
  border: 1px solid rgba(241, 241, 238, .16);
  border-radius: var(--r);
  padding: 1.3rem 1.3rem 1.45rem;
  background: rgba(244, 244, 242, .03);
}
.sim-block legend {
  display: flex; align-items: center; gap: .65rem;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  padding: 0 .2rem;
}
.step {
  width: 26px; height: 26px; flex: none; display: grid; place-items: center;
  background: var(--terra); color: var(--paper); border-radius: 50%;
  font-size: .82rem; font-weight: 700;
}
.surface-pill {
  margin-left: auto; font-weight: 500; font-size: .8rem;
  color: var(--terra-pale); letter-spacing: .04em;
}

/* choix type — cartes */
.choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; margin-top: 1rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice-ic, .choice-tx { pointer-events: none; }
.choice {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  padding: .85rem .4rem; border: 1px solid rgba(241, 241, 238, .18);
  border-radius: var(--r); text-align: center; transition: all var(--t-fast);
  cursor: pointer;
}
.choice-ic { width: 30px; height: 30px; color: var(--ink); opacity: .85; }
.choice-ic svg { width: 100%; height: 100%; }
.choice-tx { font-size: .76rem; line-height: 1.15; color: rgba(241, 241, 238, .82); }
.choice:hover { border-color: rgba(241, 241, 238, .4); }
.choice:has(input:checked),
.choice.is-checked {
  background: var(--terra); border-color: var(--terra);
}
.choice:has(input:checked) .choice-ic,
.choice.is-checked .choice-ic { opacity: 1; color: #17181b; }
.choice:has(input:checked) .choice-tx,
.choice.is-checked .choice-tx { color: #17181b; font-weight: 600; }
.choice:has(input:focus-visible) { outline: 2.5px solid var(--terra-pale); outline-offset: 2px; }

/* segmented matériau */
.seg { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.seg-item { position: relative; flex: 1 1 auto; }
.seg-item input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-item span {
  display: block; text-align: center; padding: .7rem .9rem;
  border: 1px solid rgba(241, 241, 238, .18); border-radius: var(--r);
  font-size: .9rem; font-weight: 500; transition: all var(--t-fast);
}
.seg-item:hover span { border-color: rgba(241, 241, 238, .4); }
.seg-item:has(input:checked) span,
.seg-item.is-checked span { background: var(--plaster); color: var(--ink); border-color: var(--plaster); font-weight: 600; }
.seg-item:has(input:focus-visible) span { outline: 2.5px solid var(--terra-pale); outline-offset: 2px; }

/* sliders */
.range-row { margin-top: 1.6rem; }
.range-row label {
  display: flex; align-items: baseline; gap: .4rem; font-size: 1rem; margin-bottom: .75rem;
  color: var(--cream); font-weight: 500;
}
.range-row output { font-family: var(--serif); font-size: 1.55rem; color: var(--terra-pale); font-variant-numeric: tabular-nums; margin-left: auto; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px;
  /* le point de bascule suit le CENTRE du curseur (rayon 13px) → alignement parfait */
  --fill: calc(13px + var(--ratio, .5) * (100% - 26px));
  background: linear-gradient(to right, var(--terra) var(--fill), rgba(241, 241, 238, .2) var(--fill));
  border-radius: 99px; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; margin-top: -1px;
  background: var(--terra); border: 3px solid var(--cream);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .55); transition: transform var(--t-fast);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%; background: var(--terra);
  border: 3px solid var(--cream); box-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}
input[type="range"]::-moz-range-track { background: rgba(241, 241, 238, .2); height: 8px; border-radius: 99px; }
input[type="range"]::-moz-range-progress { background: var(--terra); height: 8px; border-radius: 99px; }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(228, 203, 139, .4); }

/* options */
.opt-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1rem; margin-top: 1rem; }
.opt-row label { font-size: .92rem; font-weight: 500; }
.opt-row select { min-width: 0; flex: 1 1 160px; }
.opt-row select, .qty-row { margin-top: 0; }
select {
  background: rgba(244, 244, 242, .06); color: var(--ink);
  border: 1px solid rgba(241, 241, 238, .25); border-radius: var(--r);
  padding: .6rem .9rem; min-width: 180px;
}
select option { color: #1a1712; }

.switch {
  display: flex; align-items: center; gap: .7rem; margin-top: .9rem;
  font-size: .92rem; cursor: pointer; user-select: none;
}
.switch em { color: rgba(241, 241, 238, .74); font-style: normal; font-size: .8rem; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-ui {
  width: 42px; height: 24px; flex: none; border-radius: 99px;
  background: rgba(241, 241, 238, .2); position: relative; transition: background var(--t-fast);
}
.switch-ui::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--plaster); transition: transform var(--t-fast);
}
.switch input:checked + .switch-ui { background: var(--terra); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 2.5px solid var(--terra-pale); outline-offset: 2px; }

.qty-row { display: flex; align-items: center; justify-content: space-between; margin-top: 1.2rem; }
.qty-row > label { font-weight: 500; }
.stepper { display: inline-flex; align-items: center; border: 1px solid rgba(241, 241, 238, .25); border-radius: var(--r); overflow: hidden; }
.stepper button { width: 40px; height: 40px; font-size: 1.3rem; background: rgba(244, 244, 242, .05); transition: background var(--t-fast); }
.stepper button:hover { background: var(--terra); color: #17181b; }
.stepper input { width: 52px; height: 40px; text-align: center; background: transparent; border: 0; border-inline: 1px solid rgba(241, 241, 238, .25); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* hidden rows (options conditionnelles) */
[data-only].is-hidden { display: none; }

/* résultat */
.sim-result {
  position: sticky; top: 90px;
  background: var(--plaster); color: var(--ink);
  border-radius: 10px; padding: 1.6rem 1.5rem;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.result-label { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--terra-deep); font-weight: 600; }
.result-amount {
  font-family: var(--serif); font-weight: 700; line-height: 1.05;
  font-size: clamp(2rem, 1rem + 3.6vw, 3.1rem); margin: .5rem 0 .15rem;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem;
}
.result-sep { font-size: 1rem; font-style: normal; color: var(--ink-soft); font-family: var(--serif); }
.result-unit { font-size: .82rem; color: var(--ink-soft); margin-bottom: 1.1rem; }
.result-breakdown { border-top: 1px solid var(--line); margin-bottom: 1.2rem; }
.result-breakdown li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .88rem;
}
.result-breakdown li span:first-child { color: var(--ink-soft); }
.result-breakdown li span:last-child { font-variant-numeric: tabular-nums; font-weight: 500; }
.result-breakdown li.is-total { font-weight: 700; color: var(--ink); border-bottom: 0; }
.result-breakdown li.is-total span:first-child { color: var(--ink); }
.result-note { font-size: .74rem; color: var(--ink-soft); margin-top: 1rem; line-height: 1.5; }

/* ----------------------- Simulateur : WIZARD ---------------------------- */
.wizard { max-width: 720px; margin: 0 auto; }

/* progression : stepper numéroté */
.wiz-head { margin-bottom: 2.4rem; }
.wiz-steps { display: flex; }
.wiz-steps li {
  flex: 1; position: relative; cursor: default; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .72rem; letter-spacing: .03em; color: rgba(241, 241, 238, .45);
}
/* connecteur reliant les pastilles */
.wiz-steps li::before {
  content: ""; position: absolute; top: 14px; right: 50%; width: 100%; height: 2px;
  background: rgba(241, 241, 238, .16); z-index: 0;
}
.wiz-steps li:first-child::before { display: none; }
.wiz-steps li.is-done::before,
.wiz-steps li.is-active::before { background: var(--terra); }
.wiz-no {
  position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: .85rem; font-weight: 700;
  background: var(--ink); color: rgba(241, 241, 238, .5);
  border: 2px solid rgba(241, 241, 238, .22);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.wiz-lb { line-height: 1.2; transition: color var(--t-fast); }
.wiz-steps li.is-done { color: rgba(241, 241, 238, .72); cursor: pointer; }
.wiz-steps li.is-done .wiz-no { background: var(--terra); border-color: var(--terra); color: #17181b; }
.wiz-steps li.is-active { color: var(--terra-pale); }
.wiz-steps li.is-active .wiz-no { background: var(--terra); border-color: var(--terra); color: #17181b; box-shadow: 0 0 0 4px rgba(201, 162, 60, .25); }

/* étape */
.wiz-step { border: 0; padding: 0; margin: 0; min-height: 220px; }
.wiz-step:not(.is-active) { display: none; }
.wiz-step.is-active { display: block; animation: wizIn .42s cubic-bezier(.2, .7, .25, 1); }
.wiz-step:focus { outline: none; }
@keyframes wizIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wiz-step.is-active { animation: none; } }
.wiz-q {
  display: block; width: 100%; padding: 0;
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.35rem, 1rem + 1.4vw, 1.85rem);
  line-height: 1.15; color: var(--ink);
}
.wiz-help { color: rgba(241, 241, 238, .82); font-size: .95rem; margin: .45rem 0 1.5rem; }
.wiz-help .surface-pill { margin-left: .3rem; }

/* cartes matériau (étape 2) */
.choice-grid--mat { grid-template-columns: repeat(2, 1fr); }
.choice-tx--lg { font-size: 1.02rem; font-weight: 600; }
.choice-sub { font-size: .74rem; color: rgba(241, 241, 238, .55); }
.choice:has(input:checked) .choice-sub,
.choice.is-checked .choice-sub { color: rgba(244, 244, 242, .85); }

/* coordonnées (étape 5) */
.wiz-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.wiz-fields .field input {
  background: rgba(244, 244, 242, .06); border: 1px solid rgba(241, 241, 238, .25);
  color: var(--ink); border-radius: var(--r); padding: .75rem .9rem; width: 100%;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.wiz-fields .field input:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px rgba(201, 164, 94, .25); }
.wiz-fields .field.has-error input { border-color: #e0795c; box-shadow: 0 0 0 3px rgba(224, 121, 92, .2); }
.opt-label { font-weight: 400; color: rgba(241, 241, 238, .5); }
.wiz-consent { font-size: .76rem; color: rgba(241, 241, 238, .5); margin-top: 1rem; }

/* navigation */
.wiz-nav { display: flex; align-items: center; gap: .8rem; margin-top: 2rem; }
.wiz-nav-spacer { flex: 1; }
.btn--ghost { color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn--ghost:hover { background: rgba(241, 241, 238, .1); transform: translateY(-2px); }
.wiz-error { color: #f0a48c; font-size: .9rem; font-weight: 600; margin-top: .9rem; min-height: 1.2em; text-align: right; }

/* masquage une fois terminé */
.wizard.is-done .wiz-head,
.wizard.is-done form,
.wizard.is-done .wiz-nav,
.wizard.is-done .wiz-error { display: none; }

/* résultat révélé */
.wiz-result { text-align: center; max-width: 560px; margin: 0 auto; animation: wizIn .5s; }
.wiz-result:focus { outline: none; }
.wiz-result-check {
  width: 56px; height: 56px; display: inline-grid; place-items: center; margin-bottom: 1rem;
  background: var(--terra); color: #17181b; border-radius: 50%; font-size: 1.6rem;
  box-shadow: 0 12px 28px -12px rgba(201, 164, 94, .9);
}
.wiz-result .result-label { color: var(--terra-pale); }
.wiz-result .result-amount { color: var(--ink); justify-content: center; margin: .4rem 0 .15rem; text-shadow: 0 4px 34px rgba(228, 203, 139, .22); }
.result-ref { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-pale); margin-top: .25rem; opacity: .9; }
.result-ref span { font-variant-numeric: tabular-nums; }
.result-callback {
  display: flex; align-items: center; gap: .9rem; text-align: left;
  max-width: 440px; margin: 1.4rem auto .2rem; padding: .95rem 1.15rem;
  background: rgba(228, 203, 139, .08); border: 1px solid rgba(228, 203, 139, .28); border-radius: var(--r-lg);
}
.cb-icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--terra); color: #17181b; }
.cb-icon svg { width: 21px; height: 21px; }
.result-callback strong { display: block; color: var(--cream); font-weight: 600; font-size: 1rem; line-height: 1.3; }
.cb-sub { display: block; color: rgba(241, 241, 238, .72); font-size: .85rem; margin-top: .15rem; }
.result-demo { display: block; margin-top: .45rem; opacity: .55; font-size: .68rem; }
.wiz-result-check { animation: checkPop .55s cubic-bezier(.2, .9, .3, 1.5) both; }
@keyframes checkPop { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.14); } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wiz-result-check { animation: none; } }
.wiz-result .result-sep { color: rgba(241, 241, 238, .7); }
.wiz-result .result-unit { color: rgba(241, 241, 238, .7); }
.wiz-result .result-note { color: rgba(241, 241, 238, .55); }
.result-recap { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 1.3rem 0; }
.result-recap li {
  font-size: .8rem; padding: .35rem .8rem; border-radius: 99px;
  background: rgba(244, 244, 242, .08); border: 1px solid rgba(241, 241, 238, .18); color: rgba(241, 241, 238, .9);
}
.wiz-result-msg { color: var(--ink); margin-bottom: 1.5rem; line-height: 1.55; }
.wiz-result-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* réassurance */
.wiz-trust {
  display: flex; flex-wrap: wrap; gap: .8rem 1.8rem; justify-content: center;
  margin-top: 2.2rem; padding-top: 1.7rem; border-top: 1px solid rgba(241, 241, 238, .14);
}
.wiz-trust li { display: flex; align-items: center; gap: .5rem; font-size: .86rem; color: rgba(241, 241, 238, .82); }
.wiz-trust [data-icon] { width: 18px; height: 18px; flex: none; color: var(--terra-pale); }
.wiz-trust [data-icon] svg { width: 100%; height: 100%; }

/* -------------------------- Atelier / zone ------------------------------ */
.atelier-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.atelier-copy p { color: var(--ink-soft); margin-top: 1.1rem; max-width: 38rem; }
.values { margin-top: 1.6rem; display: grid; gap: .75rem; }
.values li { display: flex; align-items: center; gap: .7rem; font-weight: 500; }
.values li [data-icon] { width: 22px; height: 22px; flex: none; color: var(--terra); }
.values li [data-icon] svg { width: 100%; height: 100%; }

.zone {
  background: var(--night); color: var(--ink); border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: clamp(1.6rem, 3vw, 2.3rem);
}
.zone-title { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--terra-pale); font-weight: 600; }
.zone-sub { font-family: var(--serif); font-size: 1.5rem; margin: .3rem 0 1.3rem; }
.zone-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.zone-list li {
  font-size: .85rem; padding: .35rem .8rem; border: 1px solid rgba(241, 241, 238, .22);
  border-radius: 99px; transition: all var(--t-fast);
}
.zone-list li:hover { background: var(--terra); border-color: var(--terra); }
.zone-foot { margin-top: 1.5rem; font-size: .9rem; color: rgba(241, 241, 238, .8); }
.zone-foot a { color: var(--terra-pale); font-weight: 600; }

/* -------------------------------- Contact ------------------------------- */
.contact { background: var(--plaster-2); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-coords { margin-top: 1.8rem; display: grid; gap: .9rem; }
.contact-coords li { display: flex; align-items: center; gap: .8rem; }
.contact-coords [data-icon] { width: 22px; height: 22px; flex: none; color: var(--terra-deep); }
.contact-coords [data-icon] svg { width: 100%; height: 100%; }
.contact-coords a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-coords a:hover { border-color: var(--terra); }
.coords-note { margin-top: 1.1rem; font-size: .76rem; color: var(--ink-soft); font-style: italic; }

.contact-form {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.2rem);
  display: grid; gap: 1rem;
}
.field { display: grid; gap: .4rem; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: .82rem; font-weight: 600; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  background: var(--plaster); border: 1px solid var(--line);
  border-radius: var(--r); padding: .75rem .9rem; width: 100%;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px rgba(201, 164, 94, .15);
}
.field textarea { resize: vertical; }
.field.has-error input, .field.has-error select { border-color: #b3402b; box-shadow: 0 0 0 3px rgba(179, 64, 43, .14); }
.form-feedback { font-size: .9rem; min-height: 1.2em; }
.form-feedback.is-ok { color: var(--olive); font-weight: 600; }
.form-feedback.is-err { color: #b3402b; font-weight: 600; }

/* ------------------------------- Footer --------------------------------- */
.site-footer { background: var(--night); color: var(--ink); padding-top: clamp(2.6rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.4rem; align-items: start; }
.footer-brand .brand-mark { margin-bottom: 1rem; }
.footer-name { font-family: var(--serif); font-size: 1.4rem; }
.footer-desc { color: rgba(241, 241, 238, .65); margin-top: .4rem; max-width: 22rem; }
.footer-nav { display: grid; gap: .65rem; align-content: start; }
.footer-nav a { text-decoration: none; color: rgba(241, 241, 238, .82); width: fit-content; transition: color var(--t-fast); }
.footer-nav a:hover { color: var(--terra-pale); }
.footer-cta { display: grid; gap: 1rem; justify-items: start; }
.footer-fb { color: var(--terra-pale); text-decoration: none; font-weight: 600; font-size: .92rem; }
.footer-maquette { font-style: italic; color: var(--terra-pale); border: 1px solid rgba(201, 164, 94, .42); padding: .15rem .55rem; border-radius: 4px; font-size: .72rem; letter-spacing: .03em; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  padding-block: 1.4rem; border-top: 1px solid rgba(241, 241, 238, .14);
  font-size: .8rem; color: rgba(241, 241, 238, .7);
}

/* ------------------------------- Lightbox ------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: rgba(20, 17, 13, .9); padding: 1.5rem;
  opacity: 0; animation: fade .25s forwards;
}
.lightbox[hidden] { display: none; }
.lightbox-inner { max-width: 980px; width: 100%; }
.lightbox-inner img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: var(--r); }
.lightbox-inner figcaption { color: var(--cream); text-align: center; margin-top: .9rem; font-size: .95rem; }
.lightbox-close { position: absolute; top: 1.1rem; right: 1.3rem; color: var(--cream); font-size: 1.6rem; width: 44px; height: 44px; }
@keyframes fade { to { opacity: 1; } }

/* -------------------------------- To-top -------------------------------- */
.to-top {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--terra); color: #17181b; font-size: 1.2rem;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .7);
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity var(--t-fast), transform var(--t-fast), background var(--t-fast);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--terra-pale); }

/* ------------------------------- Reveal --------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.25,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 460px; }
  .hero-figure img { aspect-ratio: 16 / 11; }
  .section-head--split { grid-template-columns: 1fr; }
  .sim-grid { grid-template-columns: 1fr; }
  .sim-result { position: static; }
  .atelier-grid, .contact-grid { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 760px) {
  /* nav mobile */
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--night); border-bottom: 1px solid var(--line);
    padding: .5rem var(--pad) 1.4rem; box-shadow: 0 24px 40px -28px rgba(0,0,0,.7);
    transform: translateY(-130%); transition: transform var(--t); z-index: 95;
  }
  .nav.is-open { transform: translateY(0); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul li { border-bottom: 1px solid var(--line); }
  .nav ul a { padding: .9rem 0; font-size: 1.05rem; }
  .nav-cta { margin-top: 1rem; }

  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .card--wide { grid-column: span 2; }
  .service-row { grid-template-columns: auto 1fr; gap: .5rem 1rem; }
  .service-index { grid-row: 1; grid-column: 1; padding-top: 0; }
  .service-icon { grid-row: 1; grid-column: 2; width: 40px; height: 40px; }
  .service-body { grid-row: 2; grid-column: 1 / -1; }
  .service-arrow { display: none; }
  .field-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}

@media (max-width: 560px) {
  /* progression : on masque les libellés, on garde les pastilles numérotées */
  .wiz-lb { display: none; }
  .wiz-fields { grid-template-columns: 1fr; }
  .wiz-result-actions { flex-direction: column; }
  .wiz-result-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .seg-item { flex-basis: calc(50% - .25rem); }
  .hero-meta { gap: 1.2rem 1.6rem; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .card--wide, .card--tall { grid-column: auto; grid-row: auto; }
}

/* ===================== Blocs sombres « brand » (noir & or) =====================
   Base du site = claire/chaleureuse. Ces sections passent en sombre et on y
   surcharge les tokens pour que tout le texte hérité devienne clair, l'or vif. */
.site-header,
.hero,
.sim,
.site-footer,
.zone {
  --ink: var(--cream);
  --ink-soft: rgba(241, 241, 238, .72);
  --line: rgba(241, 241, 238, .14);
  --line-strong: rgba(241, 241, 238, .26);
  --terra-deep: var(--terra-pale); /* accents texte → or clair sur sombre */
  color: var(--cream);
}
.hero, .sim, .site-footer, .zone { background: var(--night); }
.zone { border-color: var(--line); }
.site-header { background: var(--night); }
/* l'emphase dorée des grands titres reste vive sur fond sombre */
.hero-title em, .sim .section-title em { color: var(--terra-pale); }

/* ============================ Footer (enrichi) ============================ */
.footer-logo { height: 56px; width: auto; display: block; margin-bottom: 1.1rem; }
.footer-col { display: grid; gap: .55rem; align-content: start; }
.footer-h { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--terra-pale); margin-bottom: .35rem; }
.footer-col a, .footer-zone { color: rgba(241, 241, 238, .82); text-decoration: none; width: fit-content; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--terra-pale); }
.footer-zone { color: rgba(241, 241, 238, .58); }
.footer-btn { margin-top: .6rem; }

/* ===================== « Comment ça se passe » (étapes) ===================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: .5rem; }
.step-card {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.5rem 1.3rem 1.4rem;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -24px rgba(20, 20, 24, .5); }
.step-num {
  font-family: var(--serif); font-weight: 600; font-size: 1rem; color: #17181b;
  background: var(--terra); width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
}
.step-ic { width: 30px; height: 30px; color: var(--terra-deep); margin: 1rem 0 .7rem; }
.step-ic svg { width: 100%; height: 100%; }
.step-card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.22rem; }
.step-card p { color: var(--ink-soft); margin-top: .35rem; font-size: .94rem; line-height: 1.5; }

/* ============================ Carte zone (Leaflet) ============================ */
.zone-map { height: 320px; border-radius: var(--r); margin: .2rem 0 1.3rem; overflow: hidden; background: #141517; }
.zone-pin { background: var(--terra); border: 2px solid var(--cream); border-radius: 50%; box-shadow: 0 0 0 3px rgba(201, 162, 60, .4); }
.zone-map .leaflet-control-attribution { background: rgba(20, 16, 10, .75); color: rgba(241, 241, 238, .55); }
.zone-map .leaflet-control-attribution a { color: var(--terra-pale); }
.zone-map .leaflet-bar a { background: #2a2114; color: var(--cream); border-color: rgba(241, 241, 238, .18); }
.zone-map .leaflet-bar a:hover { background: var(--terra); color: #17181b; }
.zone-map .leaflet-tooltip { background: #2a2114; color: var(--cream); border: 1px solid rgba(241, 241, 238, .2); box-shadow: none; }
.zone-map .leaflet-tooltip::before { display: none; }

@media (max-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .steps { grid-template-columns: 1fr; } }

/* Hero : dégradé gris-noir propre (sans glow) */
.hero {
  background: linear-gradient(170deg, #212226 0%, #17181b 62%, #131417 100%);
}

/* Hero v2 : badge pilule + preuve sociale + cartes flottantes */
.hero .kicker {
  display: inline-flex; background: rgba(241, 241, 238, .06);
  border: 1px solid var(--line); padding: .4rem .85rem; border-radius: 99px;
  margin-bottom: 1.3rem;
}
.hero-proof { display: flex; align-items: center; gap: .9rem; margin-top: .2rem; }
.proof-avatars { display: flex; }
.proof-avatars li {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-size: .8rem; font-weight: 700; background: var(--sand); color: #1b1b1e;
  border: 2px solid var(--night); margin-left: -12px;
}
.proof-avatars li:first-child { margin-left: 0; }
.proof-avatars li.more { background: var(--terra); color: #17181b; }
.proof-tx { display: flex; flex-direction: column; line-height: 1.3; }
.proof-stars { color: var(--terra-pale); font-size: .95rem; letter-spacing: 2px; }
.proof-stars strong { color: var(--cream); letter-spacing: 0; margin-left: .35rem; font-weight: 700; }
.proof-sub { font-size: .82rem; color: var(--ink-soft); }

.hero-card {
  position: absolute; z-index: 4; background: var(--paper); color: #1b1b1e;
  border: 1px solid rgba(20, 20, 24, .08); border-radius: 16px;
  padding: .8rem 1rem; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .65);
}
.hero-card--tl { top: 1.2rem; left: -1.4rem; display: inline-flex; align-items: center; gap: .6rem; }
.hero-card--br { bottom: 1.4rem; right: -1.4rem; display: flex; flex-direction: column; min-width: 150px; }
.hc-ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--terra); color: #17181b; }
.hc-ic svg { width: 18px; height: 18px; }
.hc-tx { display: flex; flex-direction: column; line-height: 1.25; }
.hc-tx strong { font-size: .92rem; font-weight: 700; color: #1b1b1e; }
.hc-tx span { font-size: .76rem; color: #6a6a6e; }
.hc-label { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #6a6a6e; }
.hc-big { font-family: var(--serif); font-size: 1.95rem; font-weight: 700; color: #1b1b1e; line-height: 1; margin: .15rem 0; }
.hc-big em { color: #9c7c1f; font-style: normal; }
.hc-up { font-size: .74rem; color: #9c7c1f; font-weight: 600; }

@media (max-width: 760px) {
  .hero-card--tl { left: .7rem; top: .7rem; }
  .hero-card--br { right: .7rem; bottom: .7rem; min-width: 0; }
  .hc-big { font-size: 1.6rem; }
}
@media (max-width: 460px) {
  .hero-card--tl { display: none; }
}

/* ===================== Cas de figure (chat interactif) ===================== */
.cases-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.cases-actions { display: flex; align-items: center; gap: .7rem; margin: 1.7rem 0 1rem; }
.btn-phone {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--line-strong); color: var(--terra-deep); transition: all var(--t-fast);
}
.btn-phone span { width: 20px; height: 20px; display: grid; place-items: center; }
.btn-phone svg { width: 100%; height: 100%; }
.btn-phone:hover { background: var(--terra); color: #17181b; border-color: var(--terra); transform: translateY(-2px); }
.cases-meta { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }

.chat-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.chat-tab {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem;
  border: 1px solid var(--line); border-radius: 99px; background: var(--paper);
  font-size: .88rem; font-weight: 500; color: var(--ink); cursor: pointer; transition: all var(--t-fast);
}
.chat-tab .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terra); flex: none; }
.chat-tab:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.chat-tab.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chat-tab.is-active .dot { background: var(--terra-pale); }

.chat-window {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.4rem 1.45rem 1.2rem; box-shadow: 0 28px 56px -36px rgba(20, 20, 24, .45);
}
.chat-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-bottom: .9rem; border-bottom: 1px solid var(--line);
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
}
.chat-status { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--terra-deep); }
.chat-live { width: 8px; height: 8px; border-radius: 50%; background: var(--terra); animation: chatPulse 2s infinite; flex: none; }
@keyframes chatPulse { 0% { box-shadow: 0 0 0 0 rgba(201, 162, 60, .5); } 70% { box-shadow: 0 0 0 7px rgba(201, 162, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 162, 60, 0); } }
.chat-time { white-space: nowrap; }

.chat-body { min-height: 248px; display: flex; flex-direction: column; gap: .75rem; padding: 1.1rem 0; }
.chat-msg { display: flex; align-items: flex-end; gap: .6rem; max-width: 88%; animation: msgIn .4s ease both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.chat-msg.client { align-self: flex-start; }
.chat-msg.pro { align-self: flex-end; flex-direction: row-reverse; }
.chat-av { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.chat-msg.client .chat-av { background: var(--sand); color: var(--ink); }
.chat-msg.pro .chat-av { background: var(--terra); color: #17181b; }
.chat-bubble { padding: .7rem .95rem; border-radius: 18px; font-size: .95rem; line-height: 1.45; }
.chat-msg.client .chat-bubble { background: var(--plaster-2); color: var(--ink); border-bottom-left-radius: 5px; }
.chat-msg.pro .chat-bubble { background: var(--ink); color: var(--cream); border-bottom-right-radius: 5px; }
.chat-bubble b { font-weight: 600; color: var(--terra-pale); }
.chat-msg.client .chat-bubble b { color: var(--terra-deep); }
.chat-meta { font-size: .68rem; color: var(--ink-soft); margin-top: .25rem; }

.chat-typing { align-self: flex-end; }
.chat-typing .bubble { display: inline-flex; gap: 5px; padding: .85rem 1rem; background: var(--ink); border-radius: 16px; border-bottom-right-radius: 5px; }
.chat-typing .bubble span { width: 7px; height: 7px; border-radius: 50%; background: rgba(241, 241, 238, .6); animation: chatType 1.2s infinite; }
.chat-typing .bubble span:nth-child(2) { animation-delay: .18s; }
.chat-typing .bubble span:nth-child(3) { animation-delay: .36s; }
@keyframes chatType { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

.chat-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-top: .9rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-soft);
}
.chat-badge {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  color: var(--terra-deep); background: rgba(201, 162, 60, .12);
  border: 1px solid rgba(201, 162, 60, .3); padding: .3rem .6rem; border-radius: 99px;
}
@media (prefers-reduced-motion: reduce) {
  .chat-msg { animation: none; }
  .chat-live { animation: none; }
}
@media (max-width: 880px) {
  .cases-grid { grid-template-columns: 1fr; }
}
