/* Étude de cas (FR /etude-de-cas/, EN /en/case-study/), loaded after
   style.css on those two pages only. Same system: the five colours, Archivo,
   no radius, 2px rules, no shadows, no gradients. The page is built by
   scripts/build_etude_de_cas.py; edit the numbers and the copy there.

   Most visitors arrive from the QR code on the prospect card, on a phone, so
   everything is laid out for 360–430px first and widened from there. */

.ec { --pad: clamp(16px, 4vw, 48px); --max: 1200px; }
.ec-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.ec-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.ec .tnum, .ec-num { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- hero ---------- */

.ec-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-bottom: var(--rule) solid var(--bleu-nuit);
}
@media (min-width: 960px) {
  .ec-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); min-height: min(720px, calc(100svh - 64px)); }
}

.ec-hero__main {
  padding: clamp(28px, 6vw, 72px) var(--pad) clamp(32px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 960px) { .ec-hero__main { padding-left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); } }

.ec-kicker {
  position: relative;
  margin: 0 0 20px;
  padding-left: 40px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--bleu-chouette);
  max-width: 34rem;
}
.ec-kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 28px;
  height: 4px;
  background: var(--ambre);
}
.ec-kicker b { font-weight: 600; color: var(--bleu-nuit); margin-left: 6px; }

.ec-hero h1 {
  font-size: clamp(2.05rem, 6.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 15ch;
  margin: 0 0 22px;
}
.ec-hero h1 span { display: block; }
.ec-hero h1 span:last-child { color: var(--bleu-chouette); }

.ec-lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.55;
  max-width: 34rem;
  margin: 0 0 28px;
}

.ec-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.ec-ctas .ac-btn { min-height: 56px; justify-content: center; gap: 10px; }
@media (max-width: 479px) { .ec-ctas .ac-btn { flex: 1 1 100%; } }
.ec-ctas__note { margin: 14px 0 0; font-size: 14px; color: var(--bleu-chouette); }

.ec .ac-btn { gap: 10px; letter-spacing: 0.03em; font-size: 15px; line-height: 1.3; }
.ec .ac-btn .icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.ec .ac-btn .icon-fill { fill: currentColor; stroke: none; }

/* The scoreboard: navy, the ten requests as ten squares. */
.ec-score {
  background: var(--bleu-nuit);
  color: var(--blanc-neige);
  padding: clamp(28px, 5vw, 56px) var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}
@media (min-width: 960px) { .ec-score { padding-right: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); } }

.ec-score__top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 20px; align-items: end; }
.ec-score__n {
  font-size: clamp(5.5rem, 16vw, 9rem);
  line-height: 0.82;
  font-weight: 600;
  letter-spacing: -0.06em;
  color: var(--ambre);
  font-variant-numeric: tabular-nums lining-nums;
}
.ec-score__label { font-size: clamp(1.0625rem, 2vw, 1.25rem); line-height: 1.35; padding-bottom: 6px; max-width: 16rem; }

.ec-tally {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: none;
}
.ec-tally li { aspect-ratio: 1; background: var(--ambre); }

@media (prefers-reduced-motion: no-preference) {
  .ec-tally li { animation: ec-tally 420ms var(--ease-soft) both; }
  .ec-tally li:nth-child(1) { animation-delay: 300ms; }
  .ec-tally li:nth-child(2) { animation-delay: 380ms; }
  .ec-tally li:nth-child(3) { animation-delay: 460ms; }
  .ec-tally li:nth-child(4) { animation-delay: 540ms; }
  .ec-tally li:nth-child(5) { animation-delay: 620ms; }
  .ec-tally li:nth-child(6) { animation-delay: 700ms; }
  .ec-tally li:nth-child(7) { animation-delay: 780ms; }
  .ec-tally li:nth-child(8) { animation-delay: 860ms; }
  .ec-tally li:nth-child(9) { animation-delay: 940ms; }
  .ec-tally li:nth-child(10) { animation-delay: 1020ms; }
}
@keyframes ec-tally {
  from { transform: scale(0.2); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.ec-score__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: var(--bleu-chouette);
  border: var(--rule) solid var(--bleu-chouette);
  margin: 0;
}
.ec-score__cell { background: var(--bleu-nuit); padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.ec-score__cell dt { order: 2; font-size: 14px; line-height: 1.35; color: var(--bleu-givre); }
.ec-score__cell dd { order: 1; margin: 0; font-size: clamp(1.75rem, 4.4vw, 2.375rem); line-height: 1; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums lining-nums; }
.ec-score__when { margin: 0; font-size: 14px; color: var(--bleu-givre); }

/* ---------- sections ---------- */

.ec-section { padding: clamp(48px, 8vw, 104px) 0; border-bottom: var(--rule) solid var(--bleu-nuit); }
.ec-section--givre { background: var(--bleu-givre); }
.ec-section--givre .ec-note,
.ec-section--givre .ec-q__query small,
.ec-section--givre .ec-q__n small { color: var(--bleu-nuit); }

.ec-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.ec-head h2 { font-size: clamp(1.625rem, 4vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 16px; }
.ec-head p { margin: 0; font-size: clamp(1.0625rem, 1.5vw, 1.125rem); max-width: 40rem; }
.ec-head p + p { margin-top: 12px; }

.ec-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 900px) { .ec-split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }

.ec-note { font-size: 14px; line-height: 1.5; color: var(--bleu-chouette); margin: 14px 0 0; max-width: 40rem; }

/* ---------- monthly chart ---------- */

.ec-chart { margin: 0; }
.ec-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 2.4vw, 28px);
  height: clamp(220px, 42vw, 340px);
  align-items: end;
  padding: 0 2px;
}
.ec-bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; }
.ec-bar__val { font-size: clamp(1rem, 2.4vw, 1.375rem); font-weight: 600; line-height: 1; margin-bottom: 8px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; }
.ec-bar__fill { height: var(--h); background: var(--bleu-givre); border: var(--rule) solid var(--bleu-chouette); border-bottom: 0; }
.ec-bar--hi .ec-bar__fill { background: var(--ambre); border-color: var(--bleu-nuit); }

/* The baseline is drawn as a ruler: it is a cabinetmaker's story. */
.ec-ruler { display: block; width: 100%; height: 14px; border-top: var(--rule) solid var(--bleu-nuit); }
.ec-ruler line { stroke: var(--bleu-nuit); stroke-width: 1; }

.ec-bars__x {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 2.4vw, 28px);
  padding: 6px 2px 0;
  margin: 0;
  list-style: none;
  max-width: none;
}
.ec-bars__x li { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.3; }
.ec-bars__x b { font-weight: 600; font-size: 15px; }
.ec-bars__x span { color: var(--bleu-chouette); }

.ec-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0 0; font-size: 14px; }
.ec-legend span { display: inline-flex; align-items: center; gap: 8px; }
.ec-legend i { width: 14px; height: 14px; flex: 0 0 auto; border: var(--rule) solid var(--bleu-nuit); }
.ec-legend .is-hi i { background: var(--ambre); }
.ec-legend .is-base i { background: var(--bleu-givre); border-color: var(--bleu-chouette); }

.ec-big { border-top: 4px solid var(--ambre); padding-top: 18px; }
.ec-big__n { display: block; font-size: clamp(3.5rem, 10vw, 5.5rem); line-height: 0.9; font-weight: 600; letter-spacing: -0.05em; font-variant-numeric: tabular-nums lining-nums; margin-bottom: 14px; }
.ec-big p { margin: 0 0 14px; font-size: 1.0625rem; max-width: 26rem; }
.ec-big p:last-child { margin-bottom: 0; }

/* ---------- who searched ---------- */

.ec-stack { margin: 0 0 8px; }
.ec-stack__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.ec-stack__pct { font-size: clamp(3rem, 9vw, 4.75rem); line-height: 0.9; font-weight: 600; letter-spacing: -0.05em; font-variant-numeric: tabular-nums lining-nums; }
.ec-stack__txt { font-size: 1.0625rem; max-width: 22rem; line-height: 1.4; }
.ec-stack__bar { display: flex; gap: 2px; height: 44px; background: var(--blanc-neige); border: var(--rule) solid var(--bleu-nuit); }
.ec-stack__bar span { display: block; height: 100%; }
.ec-stack__bar .s1 { background: var(--ambre); }
.ec-stack__bar .s2 { background: var(--bleu-chouette); }
.ec-stack__bar .s3 { background: var(--bleu-givre); }
.ec-stack__keys { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; max-width: none; }
@media (min-width: 640px) { .ec-stack__keys { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.ec-stack__keys li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 2px 10px; font-size: 14px; line-height: 1.35; align-items: start; }
.ec-stack__keys i { width: 14px; height: 14px; margin-top: 3px; border: var(--rule) solid var(--bleu-nuit); }
.ec-stack__keys .k1 i { background: var(--ambre); }
.ec-stack__keys .k2 i { background: var(--bleu-chouette); }
.ec-stack__keys .k3 i { background: var(--bleu-givre); }
.ec-stack__keys b { display: block; font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }

.ec-city { margin: 24px 0 0; font-size: 1.0625rem; max-width: 40rem; }

.ec-queries { margin-top: clamp(36px, 5vw, 56px); }
.ec-queries h3 { font-size: 1.25rem; margin: 0 0 14px; }
.ec-q { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: none; }
.ec-q li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "query n" "bar bar";
  gap: 8px 16px;
  padding: 14px 16px;
  background: var(--blanc-neige);
  border: var(--rule) solid var(--bleu-nuit);
}
.ec-q__query { grid-area: query; display: flex; gap: 10px; align-items: flex-start; font-size: 1.0625rem; line-height: 1.35; min-width: 0; }
.ec-q__query .icon { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto; fill: none; stroke: var(--bleu-chouette); stroke-width: 2.4; }
.ec-q__query small { display: block; font-size: 13px; color: var(--bleu-chouette); }
.ec-q__n { grid-area: n; font-weight: 600; font-size: 1.125rem; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; align-self: start; }
.ec-q__n small { font-weight: 400; font-size: 13px; color: var(--bleu-chouette); margin-left: 4px; }
.ec-q__bar { grid-area: bar; height: 8px; background: var(--bleu-givre); }
.ec-q__bar span { display: block; height: 100%; width: var(--w); background: var(--bleu-chouette); }
.ec-q li:first-child .ec-q__bar span { background: var(--ambre); }

.ec-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 24px;
  padding: 20px;
  background: var(--bleu-nuit);
  color: var(--blanc-neige);
}
@media (min-width: 640px) { .ec-callout { grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; } }
.ec-callout b { font-size: clamp(2.5rem, 7vw, 3.5rem); line-height: 0.9; font-weight: 600; color: var(--ambre); letter-spacing: -0.04em; font-variant-numeric: tabular-nums lining-nums; }
.ec-callout p { margin: 0; font-size: 1.0625rem; max-width: 34rem; }

/* ---------- what we built ---------- */

.ec-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2.4vw, 28px);
  align-items: end;
  margin: 0 0 clamp(32px, 5vw, 56px);
}
@media (min-width: 900px) { .ec-shots { grid-template-columns: minmax(0, 0.62fr) minmax(0, 0.62fr) minmax(0, 2fr); } }
.ec-shot { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ec-shot__frame { background: var(--bleu-nuit); padding: 10px 6px 14px; }
.ec-shot--desk { grid-column: 1 / -1; }
@media (min-width: 900px) { .ec-shot--desk { grid-column: auto; } }
.ec-shot--desk .ec-shot__frame { padding: 22px 8px 8px; position: relative; }
.ec-shot--desk .ec-shot__frame::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 10px;
  width: 30px;
  height: 6px;
  border-left: 6px solid var(--bleu-givre);
  border-right: 6px solid var(--bleu-givre);
  box-sizing: border-box;
}
.ec-shot img { display: block; width: 100%; height: auto; background: var(--blanc-neige); }
.ec-shot figcaption { font-size: 14px; line-height: 1.35; color: var(--bleu-chouette); }

.ec-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; max-width: none; border-top: var(--rule) solid var(--bleu-nuit); }
@media (min-width: 900px) { .ec-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ec-steps li { padding: 22px 0; border-bottom: var(--rule) solid var(--bleu-nuit); }
@media (min-width: 900px) {
  .ec-steps li { padding: 24px 28px 28px 0; border-bottom: 0; }
  .ec-steps li + li { padding-left: 28px; border-left: var(--rule) solid var(--bleu-nuit); }
}
.ec-steps time { display: inline-block; font-weight: 600; font-size: 14px; padding: 4px 10px; background: var(--ambre); color: var(--bleu-nuit); margin-bottom: 12px; }
.ec-steps h3 { font-size: 1.25rem; margin: 0 0 8px; }
.ec-steps p { margin: 0; font-size: 1rem; line-height: 1.55; }
.ec-speed { margin-top: 18px; padding-top: 14px; border-top: var(--rule) solid var(--bleu-givre); }
.ec-speed p { margin: 0 0 8px; font-size: 14px; color: var(--bleu-chouette); }
.ec-speed__row { display: flex; align-items: center; gap: 16px; }
.ec-speed__row span { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--bleu-chouette); }
.ec-speed__row small { font-size: 14px; }
.ec-speed__row b { font-size: 2.25rem; line-height: 1; font-weight: 600; color: var(--bleu-nuit); letter-spacing: -0.03em; font-variant-numeric: tabular-nums lining-nums; }
.ec-speed__row span:last-child b { border-bottom: 4px solid var(--ambre); padding-bottom: 2px; }
.ec-speed__row .icon { width: 22px; height: 22px; fill: none; stroke: var(--bleu-nuit); stroke-width: 2; flex: 0 0 auto; }

.ec-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-weight: 600;
  color: var(--bleu-nuit);
  text-decoration: none;
  border-bottom: var(--rule) solid var(--ambre);
  padding-bottom: 2px;
  min-height: 44px;
}
.ec-link .icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; }
@media (hover: hover) { .ec-link:hover { color: var(--bleu-chouette); } }

/* ---------- the listing ---------- */

.ec-kpi {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: var(--bleu-nuit);
  border: var(--rule) solid var(--bleu-nuit);
  margin: 0;
}
@media (min-width: 900px) { .ec-kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ec-kpi div { background: var(--blanc-neige); padding: 20px 18px 22px; display: flex; flex-direction: column; gap: 6px; }
.ec-kpi dt { order: 2; font-size: 15px; line-height: 1.35; }
.ec-kpi dd { order: 1; margin: 0; font-size: clamp(2rem, 5vw, 3rem); line-height: 1; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums lining-nums; }

/* ---------- calculator ---------- */

.ec-calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; background: var(--bleu-nuit); border: var(--rule) solid var(--bleu-nuit); }
@media (min-width: 900px) { .ec-calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ec-calc__in, .ec-calc__out { padding: clamp(20px, 3vw, 36px); }
.ec-calc__in { background: var(--blanc-neige); display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-content: start; }
.ec-calc__in > *, .ec-field > * { min-width: 0; }
.ec-calc__out { background: var(--bleu-nuit); color: var(--blanc-neige); display: flex; flex-direction: column; justify-content: center; gap: 14px; }

.ec-field { display: grid; gap: 10px; }
.ec-field label, .ec-field__label { font-weight: 600; font-size: 1.0625rem; margin: 0; }
.ec-field__row { display: flex; align-items: stretch; border: var(--rule) solid var(--bleu-nuit); background: transparent; }
.ec-field__row input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--bleu-nuit);
  background: var(--blanc-neige);
  border: 0;
  padding: 12px 14px;
  min-height: 56px;
  font-variant-numeric: tabular-nums lining-nums;
  -moz-appearance: textfield;
}
.ec-field__row input::-webkit-outer-spin-button,
.ec-field__row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ec-field__row input:focus-visible { outline: 2px solid var(--ambre); outline-offset: -4px; }
.ec-field__unit { display: flex; align-items: center; padding: 0 16px; font-weight: 600; background: var(--bleu-nuit); color: var(--blanc-neige); }

.ec-steppers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 560px) { .ec-steppers { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; } }
.ec-steppers button {
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  min-height: 48px;
  padding: 0;
  background: var(--blanc-neige);
  color: var(--bleu-nuit);
  border: var(--rule) solid var(--bleu-nuit);
  cursor: pointer;
  font-variant-numeric: tabular-nums lining-nums;
}
.ec-steppers button[aria-pressed="true"] { background: var(--ambre); }
@media (hover: hover) { .ec-steppers button:hover { background: var(--bleu-givre); } .ec-steppers button[aria-pressed="true"]:hover { background: var(--ambre); } }
.ec-field__help { font-size: 14px; color: var(--bleu-chouette); margin: 0; }

.ec-calc__line { margin: 0; font-size: 1.125rem; color: var(--bleu-givre); }
.ec-calc__line b { color: var(--blanc-neige); font-weight: 600; }
.ec-calc__total { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.ec-calc__total output { font-size: clamp(2.75rem, 8vw, 4.5rem); line-height: 0.95; font-weight: 600; color: var(--ambre); letter-spacing: -0.05em; font-variant-numeric: tabular-nums lining-nums; }
.ec-calc__total span { font-size: 1.125rem; }
.ec-calc__fine { margin: 0; font-size: 14px; color: var(--bleu-givre); max-width: 30rem; }
.ec-calc__out .ac-btn { align-self: flex-start; margin-top: 6px; }

/* ---------- final call ---------- */

.ec-final { background: var(--bleu-nuit); color: var(--blanc-neige); padding: clamp(56px, 9vw, 112px) 0; }
.ec-final__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
@media (min-width: 960px) { .ec-final__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; } }
.ec-final h2 { color: var(--blanc-neige); font-size: clamp(1.875rem, 5vw, 3.25rem); line-height: 1.05; letter-spacing: -0.035em; max-width: 18ch; margin: 0 0 18px; }
.ec-final p { margin: 0 0 28px; font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); max-width: 34rem; color: var(--blanc-neige); }
.ec-final .ac-btn--amber:hover { background: var(--blanc-neige); color: var(--bleu-nuit); border-color: var(--blanc-neige); }
.ec-btn-light { background: transparent; color: var(--blanc-neige); border-color: var(--blanc-neige); }
@media (hover: hover) and (pointer: fine) { .ec-btn-light:hover { background: var(--blanc-neige); color: var(--bleu-nuit); } }
.ec-final__sign { border-top: var(--rule) solid var(--bleu-chouette); padding-top: 20px; display: grid; gap: 6px; font-size: 1rem; }
.ec-final__sign sup, .ec sup { font-size: 0.65em; line-height: 0; }
.ec-final__sign a { color: var(--blanc-neige); text-decoration: none; border-bottom: 1px solid var(--bleu-givre); justify-self: start; min-height: 32px; display: inline-flex; align-items: center; }
.ec-final__mark { width: 72px; height: auto; margin-bottom: 14px; }
.ec-final__sign .tag { color: var(--ambre); font-weight: 600; margin-top: 8px; }
.ec-final__sign span { color: var(--bleu-givre); }

/* ---------- sources ---------- */

.ec-sources { padding-top: 28px; padding-bottom: 32px; font-size: 13px; line-height: 1.55; color: var(--bleu-chouette); }
.ec-sources p { margin: 0 0 6px; max-width: 60rem; }
.ec-sources a { color: var(--bleu-nuit); }

/* ---------- sticky call bar (phones) ---------- */

.ec-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2px;
  background: var(--bleu-nuit);
  border-top: var(--rule) solid var(--bleu-nuit);
  padding-bottom: env(safe-area-inset-bottom, 0);
  transform: translateY(110%);
  transition: transform 260ms var(--ease-ui);
}
.ec-sticky.is-on { transform: none; }
.ec-sticky a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.ec-sticky .icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.ec-sticky__book { background: var(--ambre); color: var(--bleu-nuit); }
.ec-sticky__call { background: var(--bleu-nuit); color: var(--blanc-neige); }
@media (min-width: 900px) { .ec-sticky { display: none; } }
@media (max-width: 899px) { .ec-has-sticky .ac-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0)); } }
@media (prefers-reduced-motion: reduce) { .ec-sticky { transition: none; } }

/* ---------- call-back questionnaire ----------
   A banner first (one question, five buttons, a small slice of the screen),
   so it never covers the page uninvited. It only grows into a panel once
   the visitor taps an answer. Google's page-experience guidance allows the
   banner; the panel is the visitor's own doing. */

.ec-pop {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  pointer-events: none;
  /* A floating card, not a strip glued to the edge: 12px clear of the sides
     and 16px above the bottom (plus the phone's home-bar area), so a thumb
     reaching for Safari's toolbar or the home gesture never lands on it. */
  padding: 0 12px calc(16px + env(safe-area-inset-bottom, 0px));
}
.ec-pop[hidden] { display: none; }
.ec-pop__form {
  pointer-events: auto;
  width: 100%;
  max-width: 1200px;
  background: var(--bleu-nuit);
  color: var(--blanc-neige);
  border: var(--rule) solid var(--blanc-neige);
  border-top: 4px solid var(--ambre);
  padding: 12px 16px 16px;
  max-height: min(84svh, 700px);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(110%);
  transition: transform 340ms var(--ease-soft);
}
.ec-pop.is-shown .ec-pop__form { transform: none; }
@media (min-width: 900px) {
  .ec-pop { padding: 0 24px 24px; }
  .ec-pop:not(.is-open) .ec-pop__form { max-width: 980px; }
  .ec-pop__form { padding: 16px 28px 22px; }
  .ec-pop.is-open .ec-pop__form { max-width: 620px; }
}
@media (prefers-reduced-motion: reduce) { .ec-pop__form { transition: none; } }
body.ec-pop-on .ec-sticky.is-on { transform: translateY(110%); }

.ec-pop__top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ec-pop__kicker { font-size: 14px; font-weight: 600; color: var(--ambre); }
.ec-pop__count { font-size: 13px; color: var(--bleu-givre); font-variant-numeric: tabular-nums lining-nums; }
.ec-pop__close {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: var(--rule) solid var(--bleu-chouette);
  color: var(--blanc-neige);
  cursor: pointer;
  flex: 0 0 auto;
}
.ec-pop__close .icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; }
@media (hover: hover) { .ec-pop__close:hover { border-color: var(--blanc-neige); } }

.ec-pop__progress { height: 4px; background: var(--bleu-chouette); margin-bottom: 14px; }
.ec-pop__progress span { display: block; height: 100%; width: 15%; background: var(--ambre); transition: width 300ms var(--ease-ui); }

.ec-pop__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.ec-pop__step[hidden] { display: none; }
.ec-pop__q { display: block; padding: 0; font-size: clamp(1.125rem, 2.6vw, 1.375rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; margin: 0 0 12px; color: var(--blanc-neige); }
.ec-pop__note { margin: 10px 0 0; font-size: 13px; color: var(--bleu-givre); }

.ec-chips { display: flex; gap: 8px; flex-wrap: wrap; }
/* In the banner, one row that scrolls sideways on a phone, so the banner
   stays short. */
.ec-pop:not(.is-open) .ec-chips {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  margin-right: -16px;
  padding-right: 16px;
}
.ec-pop:not(.is-open) .ec-chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .ec-pop:not(.is-open) .ec-chips { flex-wrap: wrap; overflow: visible; margin-right: 0; padding-right: 0; } }
.ec-chips--stack { flex-direction: column; }
.ec-chip {
  flex: 0 0 auto;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  min-height: 48px;
  padding: 10px 16px;
  background: var(--blanc-neige);
  color: var(--bleu-nuit);
  border: var(--rule) solid var(--blanc-neige);
  cursor: pointer;
}
.ec-chip[aria-pressed="true"] { background: var(--ambre); border-color: var(--ambre); }
@media (hover: hover) { .ec-chip:hover { background: var(--ambre); border-color: var(--ambre); } }
.ec-chip:focus-visible { outline: 2px solid var(--ambre); outline-offset: 2px; }

.ec-pop__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  min-height: 40px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--bleu-givre);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.ec-pop__back .icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.ec-flip { transform: scaleX(-1); }

.ec-pop__why { margin: 0 0 8px; font-size: 1rem; line-height: 1.45; color: var(--blanc-neige); }
.ec-pop__offer { margin: 0 0 16px; font-size: 1rem; line-height: 1.45; color: var(--bleu-givre); }
.ec-pop__fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 12px; }
@media (min-width: 560px) { .ec-pop__fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ec-pop__field { display: grid; gap: 6px; font-size: 14px; color: var(--bleu-givre); }
.ec-pop__field input {
  font: inherit;
  font-size: 1.0625rem;
  min-height: 52px;
  padding: 10px 14px;
  background: var(--blanc-neige);
  color: var(--bleu-nuit);
  border: var(--rule) solid var(--blanc-neige);
  min-width: 0;
}
.ec-pop__field input:focus-visible { outline: 2px solid var(--ambre); outline-offset: 2px; }
.ec-pop__field input[aria-invalid="true"] { border-color: var(--ambre); }
.ec-pop__err { margin: 0 0 12px; padding: 8px 12px; background: var(--ambre); color: var(--bleu-nuit); font-size: 15px; font-weight: 600; }
.ec-pop__err a { color: var(--bleu-nuit); }
.ec-pop__submit { width: 100%; justify-content: center; min-height: 56px; }
.ec-pop__submit[disabled] { opacity: 0.7; cursor: wait; }
.ec-pop__promise { margin: 10px 0 0; font-size: 14px; color: var(--blanc-neige); }
.ec-pop__alt { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 12px 0 0; font-size: 15px; align-items: center; }
.ec-pop__alt span { color: var(--bleu-givre); }
.ec-pop__alt a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--blanc-neige); text-decoration: none; border-bottom: 1px solid var(--bleu-givre); }
.ec-pop__alt .icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.ec-pop__legal { margin: 12px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--bleu-givre); }
.ec-pop__legal a { color: var(--blanc-neige); }
.ec-pop__done p { margin: 0 0 8px; font-size: 1.0625rem; }
.ec-pop__done .ec-pop__q { font-size: clamp(1.375rem, 3vw, 1.75rem); }
.ec-pop__done:focus { outline: none; }
/* The banner stays short: no progress bar or note until it is opened. */
.ec-pop:not(.is-open) .ec-pop__progress,
.ec-pop:not(.is-open) .ec-pop__count { display: none; }
.ec-pop:not(.is-open) .ec-pop__top { margin-bottom: 2px; }
.ec-pop:not(.is-open) .ec-pop__q { margin-bottom: 10px; }
.ec-pop:not(.is-open) .ec-pop__close { width: 40px; height: 40px; }
@media (max-width: 899px) { .ec-pop:not(.is-open) .ec-pop__note { display: none; } }
.ec-pop .ac-btn--amber:hover { background: var(--blanc-neige); color: var(--bleu-nuit); border-color: var(--blanc-neige); }
