/* Qurba · site public · v6
   Direction « L'objet, en grand » : la vraie borne remplit le premier écran. La page est faite comme
   le panneau de la borne : un fond clair, une seule forme arrondie (le panneau), un écran réel et vivant,
   et la ligne « Qu'Allah accepte votre don » pour fermer la page. */

:root {
  color-scheme: light;
  /* Couleurs : vert, ivoire, or de la marque ; blanc du panneau */
  --bg: #fbfaf7;          /* le blanc chaud du panneau */
  --surface: #f6f3ec;     /* ivoire de la marque : sections secondaires */
  --sage: #dde6df;        /* sauge pâle : le champ du ticket, le cadre de la borne à l'accueil */
  --sand: #f1e8d2;        /* sable : une des quatre fiches du cheminement */
  --ink: #10261f;
  --muted: #4b5a54;
  --green: #0b3d30;       /* le Q : titres, champs pleins */
  --green-2: #11503f;
  --on-green: #f6f3ec;
  --on-green-2: #b9cbc2;
  --gold: #c9a24a;        /* la queue du Q : l'action, une seule fois par écran */
  --gold-2: #d6b35e;
  --paper: #ffffff;

  /* Type : Newsreader pour les titres, Jost pour le texte et les commandes, Amiri pour l'arabe. Cinq tailles. */
  --font: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --font-head: "Newsreader", "Iowan Old Style", "Palatino", Georgia, serif;
  --font-ar: "Amiri", "Scheherazade New", "Noto Naskh Arabic", serif;
  --t-small: 0.9rem;                                        /* 14,4 px */
  --t-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);     /* 17–19 */
  --t-lead: clamp(1.2rem, 1.05rem + 0.75vw, 1.5rem);        /* 19–24 */
  --t-mid: clamp(1.5rem, 1.15rem + 1.5vw, 2.5rem);          /* 24–40 : les noms de réglages, les lignes du reçu */
  --t-head: clamp(2rem, 1.15rem + 3.4vw, 4.25rem);          /* 32–68 : h1 et h2 */

  /* Cadre */
  --m: clamp(16px, 2.2vw, 32px);
  --gutter: clamp(12px, 1.4vw, 24px);
  --section: clamp(96px, 11vw, 190px);
  --pad: clamp(64px, 6.6vw, 112px);       /* haut et bas de chaque section : deux fois --pad ≈ un écart de section */
  --bar-h: 72px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms; --t-hover: 180ms; --t-ui: 240ms; --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); }
/* Liens du menu : « La borne » et « Le cheminement » visent l'en-tête de leur section (titre + texte), qui arrive
   12 px sous la barre ; « Le prix » et « Demander une borne » visent déjà le haut de leur bloc. */
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--t-body); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, h1, h2, h3, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button, .btn, [role="button"] { cursor: pointer; touch-action: manipulation; }
p { text-wrap: pretty; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.foot :focus-visible { outline-color: var(--on-green); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.defs { position: absolute; }
[hidden] { display: none !important; }
.skip { position: absolute; left: var(--m); top: -80px; z-index: 50; padding: 10px 18px; background: var(--ink); color: var(--on-green); border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; outline-color: var(--on-green); }

.head { font-family: var(--font-head); font-size: var(--t-head); font-weight: 500; line-height: 1.02; letter-spacing: -0.015em; color: var(--green); text-wrap: balance; }
.lead { font-size: var(--t-lead); line-height: 1.35; max-width: 34ch; }
h3 { font-family: var(--font-head); font-size: var(--t-lead); font-weight: 500; line-height: 1.2; }

/* Le bouton : une seule forme, pleine, ronde */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 1.6em; border: 0; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: var(--t-body); font-weight: 500; line-height: 1.1; text-decoration: none; white-space: nowrap; transition: background-color var(--t-hover) ease, transform 150ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--gold-2); } }
.btn:active { transform: scale(.96); }
.btn--small { min-height: 46px; padding: 0 1.2em; }

/* ───────── Barre ───────── */
.bar { position: sticky; top: 0; z-index: 40; background: var(--bg); }
.bar__in { height: var(--bar-h); display: flex; align-items: center; gap: 32px; padding-inline: var(--m); }
.logo { display: block; margin-right: auto; text-decoration: none; }
.logo svg { height: 32px; width: auto; }
.logo__q, .logo use { fill: var(--green); }
.logo__tail { fill: var(--gold); }
.bar__links { display: flex; gap: 28px; }
.bar__links a { white-space: nowrap; text-decoration: none; padding: 8px 0; text-underline-offset: 7px; text-decoration-thickness: 2px; transition: color 300ms ease; }
.bar__links a.is-active { text-decoration: underline; text-decoration-color: var(--gold); }
@media (hover: hover) and (pointer: fine) { .bar__links a:hover { text-decoration: underline; text-decoration-color: var(--gold); } }
.bar__menu { display: none; min-height: 44px; padding: 0 4px; border: 0; background: none; font-weight: 500; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.menu { display: none; }

/* ───────── Sélecteur de langue : FR EN DE TR, la langue de la page soulignée d'or ─────────
   Dans la barre (ordinateur), en bas du menu (téléphone) et au pied de page. */
.langs { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.langs a { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 40px; padding: 0 5px; font-size: var(--t-small); font-weight: 500; letter-spacing: .06em; color: var(--muted); text-decoration: none; text-underline-offset: 7px; text-decoration-thickness: 2px; transition: color 200ms ease; }
.langs a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); }
@media (hover: hover) and (pointer: fine) { .langs a:hover { color: var(--ink); } }
.bar__langs { margin-left: -12px; }
.menu__langs { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--sage); }
.menu__langs .langs a { min-width: 48px; min-height: 48px; font-size: var(--t-body); }
.foot__langs .langs a { color: var(--on-green-2); }
.foot__langs .langs a[aria-current] { color: var(--on-green); }
@media (hover: hover) and (pointer: fine) { .foot__langs .langs a:hover { color: var(--on-green); } }

/* ───────── Accueil : un grand cadre vert arrondi qui prend tout le premier écran ─────────
   Le titre à gauche, la vraie borne debout à droite. */
.hero { position: relative; margin: 8px var(--m) 0; height: calc(100svh - var(--bar-h) - 40px); min-height: 640px; max-height: 980px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; padding: 40px max(56px, calc((100vw - 2 * var(--m) - 1400px) / 2)) 0; border-radius: 32px; background: var(--green); color: var(--on-green); overflow: clip; }
.hero .head { color: var(--on-green); }
.hero :focus-visible { outline-color: var(--on-green); }
/* Le titre mène le premier écran : il grandit avec l'écran (6vw, plafond 104 px pour rester sur deux lignes),
   texte et borne restent groupés dans 1 400 px au plus (padding de .hero). Retour de Samy, 5 nov. 2026 : « ça fait vide ». */
@media (min-width: 1101px) { .hero h1 { font-size: min(6vw, 6.5rem); line-height: .98; letter-spacing: -0.02em; } }
/* L'allemand est plus long (« Bargeldlos spenden ») : un peu plus petit pour rester sur deux lignes. */
@media (min-width: 1101px) { :lang(de) .hero h1 { font-size: min(5.2vw, 5.6rem); } }
.hero__copy { grid-column: 1 / 8; padding: 0 0 40px; }
.hero__lead { margin-top: 32px; max-width: 32ch; }
.hero__act { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero__photo { grid-column: 8 / 13; position: relative; height: 100%; }
/* La vraie borne, détourée (son ombre est dans l'image), debout sur le bord bas du cadre. */
.hero__borne { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 94%; width: auto; max-width: none; }


/* ───────── On la voit de loin, on donne en un geste ───────── */
.quick { padding: var(--pad) var(--m) calc(var(--pad) * 0.4); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.quick .head { grid-column: 1 / 8; }
.quick__copy { grid-column: 8 / 13; display: grid; gap: 16px; }
.quick__copy p { max-width: 44ch; }

/* ───────── Le vendredi, et les autres prières : la journée en une ligne ───────── */
.week { padding: var(--pad) var(--m); display: grid; gap: 72px; }
.week__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
/* Le paragraphe d'introduction sous le titre, à gauche : les deux colonnes finissent à peu près au même niveau. */
.week__side { grid-column: 1 / 7; display: grid; gap: 32px; align-content: start; }
.week__side .lead { max-width: 30ch; }
.week__copy { grid-column: 8 / 13; display: grid; gap: 20px; }
.week__copy p { max-width: 46ch; }
/* La semaine : sept jours × cinq prières. Sans script, elle est pleine. Avec script : d'abord la seule Jumu‘a (1),
   puis la semaine se remplit et le second chiffre monte à 35 ; les deux chiffres restent pour comparer (5 nov. 2026). */
.wk { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.wk__count { grid-column: 1 / 5; display: grid; gap: 28px; align-content: center; }
.wk__stat { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: center; margin: 0; }
.wk__num { font-family: var(--font-head); font-size: min(5vw, 5.5rem); font-weight: 500; line-height: 1; letter-spacing: -0.02em; color: var(--green); font-variant-numeric: tabular-nums; min-width: 1.3em; } /* « 1 » et « 35 » sur la même largeur : les phrases s'alignent */
.wk__say { max-width: 20ch; font-size: var(--t-lead); line-height: 1.3; color: var(--ink); }
.wk__key { display: inline-block; width: .62em; height: .62em; margin-right: .45em; border-radius: 50%; background: var(--green); vertical-align: .04em; }
.wk__stat--before .wk__key { background: var(--gold); }
.wk__grid { grid-column: 5 / 13; display: grid; }
.wk__heads, .wk__row { display: grid; grid-template-columns: 7rem 1fr; align-items: center; }
.wk__heads { padding-bottom: 14px; }
.wk__names { position: relative; height: 1.4em; }
.wk__names span { position: absolute; left: calc(10% + var(--p) * 20%); top: 0; transform: translateX(-50%); font-family: var(--font-head); font-size: var(--t-lead); font-weight: 500; color: var(--green); white-space: nowrap; }
.wk__row { height: 52px; }
.wk__day { font-size: var(--t-body); color: var(--ink); }
.wk__row.is-friday .wk__day { color: var(--green); font-weight: 600; }
.wk__short { display: none; }
.wk__line { position: relative; height: 8px; border-radius: 4px; background: var(--sage); }
.wk__line::before { content: ""; position: absolute; inset: 0; border-radius: 4px; background: var(--green-2); transform-origin: left; }
.wk__dot { position: absolute; left: calc(10% + var(--p) * 20%); top: 50%; width: 20px; height: 20px; border-radius: 50%; background: var(--green); outline: 4px solid var(--bg); transform: translate(-50%, -50%); }
.wk__dot.is-jumua { width: 26px; height: 26px; background: var(--gold); z-index: 1; }
.wk__dot b { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 0 4px; background: var(--bg); font-size: var(--t-small); font-weight: 600; color: var(--ink); white-space: nowrap; }
.wk--js:not(.is-full) .wk__line::before { transform: scaleX(0); }
.wk--js:not(.is-full) .wk__dot:not(.is-jumua) { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
.wk--js:not(.is-full) .wk__stat--after { opacity: 0; transform: translateY(12px); }

/* ───────── Vous la réglez de chez vous : à gauche l'exemple, à droite les quatre décisions sur un panneau sable ───────── */
.live { padding: var(--pad) var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.live__copy { grid-column: 1 / 6; display: grid; gap: 28px; }
.live__copy .lead { max-width: 34ch; }
/* Les applications : une ligne d'introduction, puis les trois accès (iPhone, Android, ordinateur). */
.apps { display: grid; gap: 12px; }
.apps__t { font-size: var(--t-small); font-weight: 500; color: var(--ink); max-width: 38ch; }
.apps__list { display: flex; flex-wrap: wrap; gap: 8px; }
.apps__list span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--sage); color: var(--green); font-size: var(--t-small); font-weight: 500; }
.apps__list svg { width: 16px; height: 16px; flex: none; }
.decide { grid-column: 6 / 13; margin: 0; padding: 44px 48px 48px; border-radius: 32px; background: var(--sand); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.decide__item { display: grid; gap: 10px; align-content: start; }
.decide__item h3 { font-family: var(--font-head); font-size: var(--t-mid); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; color: var(--green); text-wrap: balance; }
.decide__item p { max-width: 30ch; }

/* ───────── Le cheminement : quatre bornes, côte à côte ───────── */
.story { padding: var(--pad) var(--m); display: grid; gap: 56px; }
.story__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.story__head .head { grid-column: 1 / 7; }
.story__head .lead { grid-column: 7 / 13; max-width: 46ch; }
.story__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px var(--gutter); }
.step { display: grid; gap: 10px; align-content: start; min-width: 0; }
.step__photo { margin: 0; overflow: clip; border-radius: 20px; aspect-ratio: 9 / 13; background: var(--surface); }
.step__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-expo); }
@media (hover: hover) and (pointer: fine) { .step:hover .step__photo img { transform: scale(1.04); } }
.step h3 { margin-top: 8px; color: var(--green); }
.step p { max-width: 30ch; }

/* ───────── Le reçu fiscal : quatre lignes ───────── */
.recu { padding: var(--pad) var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 48px; }
.recu .head { grid-column: 1 / 8; }
.recu__lines { grid-column: 1 / 13; display: grid; gap: .25em; font-family: var(--font-head); font-size: var(--t-head); font-weight: 500; line-height: 1.08; letter-spacing: -0.015em; color: var(--ink); }
.recu__lines li:nth-child(2) { padding-left: 8%; }
.recu__lines li:nth-child(3) { padding-left: 16%; }
.recu__lines li:nth-child(4) { padding-left: 24%; color: var(--green); }
.recu__note { grid-column: 7 / 13; max-width: 46ch; }

/* ───────── Le prix : le ticket ───────── */
.prix { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin: 0 var(--m); padding: 0 48px var(--pad); border-radius: 32px; background: var(--sage); color: var(--ink); overflow: clip; }
/* align-content: start : la colonne prend la hauteur du ticket ; sans cela, quand le ticket est plus haut
   (site allemand sans la case des reçus), ses lignes s'étirent et le bouton grandit. */
.prix__copy { grid-column: 1 / 7; padding-top: var(--pad); display: grid; gap: 28px; justify-items: start; align-content: start; }
.prix__copy .head { color: var(--green); }
.prix__copy p { max-width: 44ch; }
/* align-self: start : le ticket fait la hauteur de son contenu ; étiré à la hauteur de la colonne de texte,
   ses lignes s'écartaient (constaté le 6/11/2026 après le retrait de la note et de la TVA). */
.slip { grid-column: 8 / 12; width: min(100%, 400px); justify-self: center; align-self: start; background: var(--paper); color: var(--ink); padding: 40px 36px 44px; display: grid; gap: 20px; border-radius: 0 0 24px 24px; }
.slip__name { text-align: center; font-family: var(--font-head); font-size: var(--t-mid); font-weight: 500; color: var(--green); }
.slip__rows { display: grid; gap: 12px; }
.slip__rows div { display: flex; justify-content: space-between; gap: 16px; }
.slip__rows div[hidden] { display: none; }
.slip__rows dt small { display: block; margin-top: 2px; font-size: var(--t-small); color: var(--muted); text-wrap: balance; } /* ce que comprend la ligne */
.slip__rows dd { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; } /* « 50 € » ne se coupe jamais */
.slip__total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; border-top: 4px solid var(--ink); }
.slip__total b { font-size: var(--t-mid); font-weight: 600; font-variant-numeric: tabular-nums; }


/* ───────── Vos questions : des tuiles pleines, une seule ouverte à la fois ───────── */
/* Plan « Accordion of filled tiles » (design-taste-frontend). <details name="faq"> : sans script, une seule ouverte. */
.faq { padding: var(--pad) var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.faq__side { grid-column: 1 / 5; position: sticky; top: calc(var(--bar-h) + 24px); display: grid; gap: 24px; }
.faq .head { color: var(--green); }
.faq__side p { max-width: 28ch; font-size: var(--t-lead); line-height: 1.35; }
.faq__side a { color: var(--green); }
.faq__list { grid-column: 5 / 13; display: grid; gap: 8px; }
.faq__item { border-radius: 20px; background: var(--surface); color: var(--ink); transition: background-color 240ms var(--ease-out), color 240ms var(--ease-out); }
.faq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; padding: 18px 24px; cursor: pointer; font-size: 1.25rem; font-weight: 500; line-height: 1.3; border-radius: 20px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { position: relative; flex: none; width: 16px; height: 16px; }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; border-radius: 2px; background: currentColor; transition: transform 240ms var(--ease-out); }
.faq__plus::after { transform: rotate(90deg); }
.faq__item[open] { background: var(--green); color: var(--on-green); }
.faq__item[open] .faq__plus::after { transform: rotate(0deg); }
.faq__item p { max-width: 68ch; text-wrap: pretty; padding: 0 24px 26px; font-size: 1.0625rem; line-height: 1.55; } /* 68ch : environ 64 caractères par ligne, la tuile est large (Samy) ; couleur héritée de la tuile : crème sur vert quand elle est ouverte */
.faq__item summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .faq__item:not([open]) summary:hover { background: #efe9dd; } }
@media (max-width: 1100px) {
  .faq__side { grid-column: 1 / 13; position: static; margin-bottom: 28px; gap: 16px; }
  .faq__side p { max-width: 40ch; }
  .faq__list { grid-column: 1 / 13; }
}
@media (max-width: 860px) {
  .faq__list { gap: 6px; }
  .faq__item summary { min-height: 64px; padding: 16px 20px; font-size: 1.125rem; }
  .faq__item p { padding: 0 20px 22px; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .faq__item, .faq__plus::before, .faq__plus::after { transition: none; } }

/* ───────── Demander une borne ───────── */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: var(--pad) var(--m); }
.contact__photo { grid-column: 1 / 6; position: relative; align-self: stretch; min-height: 520px; overflow: clip; border-radius: 28px; background: var(--surface); }
.contact__photo img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; object-position: 50% 30%; }
.contact__photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; background: rgba(16, 38, 31, .55); color: var(--on-green); font-size: var(--t-body); max-width: none; }
.contact__form { grid-column: 7 / 13; display: grid; gap: 24px; align-content: start; }
.form__alt a { text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.form { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 4px; padding: 9px 15px 9px; min-height: 68px; background: var(--surface); border: 1px solid rgb(16 38 31 / .42); cursor: text; transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease; } /* taste-skill-ignore : champ de formulaire, sa bordure doit tenir 3:1 (WCAG 1.4.11) */
.field:focus-within { background: #ebe6db; border-color: var(--ink); }
.field--wide { grid-column: 1 / -1; }
.field span { font-size: var(--t-small); color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; border: 0; padding: 0; background: transparent; outline: none; resize: vertical; }
.field--select { cursor: pointer; }
.field select { appearance: none; cursor: pointer; padding-right: 28px; background: no-repeat right 2px center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2310261f' stroke-width='2'/%3E%3C/svg%3E"); }
.field:has(.is-invalid) { background: #f3dcc0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* taste-skill-ignore : champ piège invisible pour les robots, pas un filet */
.form__send { grid-column: 1 / -1; justify-self: start; }
.form__alt { grid-column: 1 / -1; margin: 4px 0 0; }
.form__send:disabled { opacity: .7; cursor: progress; }
.form__status { grid-column: 1 / -1; min-height: 1.5em; }
.form__status.is-err { color: #8a3a12; }

/* ───────── Fin de page ───────── */
.foot { padding: 36px var(--m) 32px; background: var(--green); color: var(--on-green); display: grid; justify-items: center; }
.foot__row { width: 100%; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 24px 40px; }
.foot__logo svg { height: 36px; }
.foot__logo .logo__q, .foot__logo use { fill: var(--on-green); }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; }
.foot__links a { text-decoration: none; padding: 4px 0; }
@media (hover: hover) and (pointer: fine) { .foot__links a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; } }
.foot__copy { color: var(--on-green-2); font-size: var(--t-small); text-align: right; }

/* ───────── Mentions légales ───────── */
.legal { padding: 64px var(--m) var(--pad); display: grid; gap: 20px; max-width: 72ch; }
.legal h2 { margin-top: 24px; font-family: var(--font-head); font-size: var(--t-lead); font-weight: 500; color: var(--green); }
.legal .todo { background: var(--surface); padding: 0 .3em; font-weight: 500; }
.legal.introuvable { min-height: calc(100vh - var(--bar-h) - 160px); align-content: center; } /* page 404 */

/* ───────── Tablette ───────── */
@media (max-width: 1100px) {
  .hero { display: grid; grid-template-columns: 1fr; height: auto; min-height: 0; max-height: none; margin: 8px var(--m) 0; padding: 36px 32px 0; border-radius: 28px; }
  .hero__copy, .hero__photo { grid-column: 1 / -1; }
  .hero__copy { padding: 0; }
  .hero h1 { font-size: clamp(2rem, 1rem + 3.4vw, 3.6rem); }
  .hero__lead { margin-top: 20px; max-width: 40ch; }
  .hero__act { margin-top: 24px; gap: 12px 20px; }
  .hero__photo { height: auto; margin-top: 28px; }
  .hero__borne { position: relative; left: auto; bottom: auto; transform: none; margin: 0 auto; height: auto; width: min(52%, 380px); }
  .live { grid-template-columns: 1fr; row-gap: 32px; }
  .live__copy, .decide { grid-column: 1 / -1; }
  .decide { padding: 36px; gap: 32px; }
  .story__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--gutter); }
  .bar__links { gap: 18px; }
  .quick .head { grid-column: 1 / 13; }
  .quick__copy { grid-column: 1 / 13; margin-top: 20px; }
  .week__head .head { grid-column: 1 / 13; }
  /* Une seule colonne : titre, introduction, suite, comme avant le déplacement de l'introduction. */
  .week__side { display: contents; }
  .week__side .lead { grid-column: 1 / 13; margin-top: 20px; max-width: 46ch; }
  .week__copy { grid-column: 1 / 13; margin-top: 20px; }
  .wk__count { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 20px var(--gutter); margin-bottom: 36px; }
  .wk__grid { grid-column: 1 / -1; }
  .live__head .head { grid-column: 1 / 13; }
  .live__head .lead { grid-column: 1 / 13; margin-top: 20px; }
  .story__head .head { grid-column: 1 / 13; }
  .story__head .lead { grid-column: 1 / 13; margin-top: 24px; }
  .recu__note { grid-column: 1 / 13; }
  .prix__copy { grid-column: 1 / 7; }
  .slip { grid-column: 7 / 13; }
  .contact__photo { grid-column: 1 / 5; }
  .contact__form { grid-column: 5 / 13; }
}

/* ───────── Barre repliée : tablette et téléphone ─────────
   Avec le sélecteur de langue, les liens ne tiennent plus sur une ligne sous 1 040 px (en français) :
   la barre passe au bouton « Menu ». Le bouton « Demander une borne » reste visible jusqu'au téléphone. */
@media (max-width: 1040px) {
  .bar__links, .bar__langs { display: none; }
  .bar__menu { display: block; }
  .menu { display: none; flex-direction: column; gap: 2px; padding: 4px var(--m) 20px; background: var(--bg); transition: background-color 300ms ease; }
  .menu.is-open { display: flex; }
  .menu a:not(.btn) { padding: 12px 0; font-size: var(--t-lead); text-decoration: none; }
  .menu .btn { margin-top: 12px; align-self: start; }
}
@media (min-width: 861px) and (max-width: 1040px) { .menu .btn { display: none; } }

/* ───────── Téléphone ───────── */
@media (max-width: 860px) {
  :root { --bar-h: 60px; --section: 88px; --pad: 56px; }
  .bar__in > .btn { display: none; }

  .hero { padding: 28px 20px 0; border-radius: 24px; }
  .hero h1 { font-size: clamp(2rem, 8.6vw, 2.6rem); }
  .hero__lead { font-size: var(--t-body); }

  .week { gap: 44px; }
  .week__head { display: grid; gap: 16px; }
  .week__copy { margin-top: 4px; } /* 16 px d'écart + 4 = 20 px entre l'introduction et la suite */
  .wk__heads, .wk__row { grid-template-columns: 3rem 1fr; }
  .wk__long { display: none; }
  .wk__short { display: inline; }
  .wk__names span { font-family: var(--font); font-size: var(--t-small); }
  .wk__row { height: 46px; }
  .wk__dot { width: 16px; height: 16px; outline-width: 3px; }
  .wk__dot.is-jumua { width: 22px; height: 22px; }
  .wk__count { grid-template-columns: 1fr; gap: 16px; }
  .wk__num { font-size: 3rem; }

  .live { gap: 36px; }
  .live__head { grid-template-columns: 1fr; gap: 16px; }
  .live__head .head, .live__head .lead { grid-column: 1 / -1; margin-top: 0; }
  .live { row-gap: 24px; }
  .decide { grid-template-columns: 1fr; gap: 28px; padding: 28px 22px 30px; border-radius: 24px; }
  .decide__item { gap: 8px; }
  .story__row { gap: 28px 12px; }
  .step p { max-width: none; }
  .hero__borne { width: 68%; }

  .story { gap: 36px; }
  .story__head { display: grid; gap: 18px; }
  .story__steps { gap: 16px; }

  .recu { display: grid; grid-template-columns: 1fr; gap: 32px; }
  .recu .head, .recu__lines, .recu__note { grid-column: 1 / -1; }
  .recu__lines { font-size: clamp(1.35rem, 6vw, 2rem); gap: .5em; }
  .recu__lines li:nth-child(n) { padding-left: 0; }

  .prix { display: block; padding: 0 20px 56px; border-radius: 24px; }
  .prix__copy { padding-top: 72px; gap: 22px; }
  .slip { width: min(100%, 420px); margin: 48px auto 0; padding: 32px 24px 36px; }

  /* Le formulaire d'abord : « Demander une borne » arrive sur le titre et les champs, pas sur la photo. */
  .contact { display: flex; flex-direction: column; }
  .contact__form { order: -1; }
  .contact__photo { aspect-ratio: 4 / 5; min-height: 0; margin: 48px 0 0; border-radius: 24px; }
  .form { grid-template-columns: 1fr; }
  .field { min-height: 62px; }
  .form__send { width: 100%; }

  .foot__row { grid-template-columns: 1fr; justify-items: center; gap: 20px; }
  .foot__copy { text-align: center; }
}

/* ───────── Mouvement ─────────
   Rien n'est caché sans script, ni pour qui réduit les animations. */
.lines .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.lines [data-line] { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero { opacity: 0; transform: scale(.985); animation: load-frame 900ms var(--ease-expo) forwards; }
  @keyframes load-frame { to { opacity: 1; transform: none; } }
  .js .hero [data-line] { transform: translateY(105%); animation: load-line 900ms var(--ease-expo) forwards; animation-delay: calc(160ms + var(--i) * 110ms); }
  .js .hero [data-load] { opacity: 0; transform: translateY(14px); animation: load-rise 600ms var(--ease-out) forwards; animation-delay: var(--d); }
  .js .hero__borne { opacity: 0; transform: translateX(-50%) translateY(24px); animation: load-settle 1300ms var(--ease-expo) 260ms forwards; }
  @keyframes load-line { to { transform: none; } }
  @keyframes load-rise { to { opacity: 1; transform: none; } }
  @keyframes load-settle { to { opacity: 1; transform: translateX(-50%); } }

  .js [data-reveal] { opacity: 0; transform: translateY(24px); filter: blur(4px); transition: opacity 700ms var(--ease-expo), transform 700ms var(--ease-expo), filter 700ms var(--ease-expo); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
  .js .lines[data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .js .lines[data-reveal] [data-line] { transform: translateY(105%); transition: transform 1000ms var(--ease-expo); transition-delay: calc(var(--i, 0) * 110ms); }
  .js .lines[data-reveal].is-in [data-line] { transform: none; }
  .js .slip[data-reveal] { transform: translateY(-24px); }

  /* La semaine se remplit en vague, jour après jour ; les points s'allument quand la ligne les atteint */
  .wk--js.is-full .wk__line::before { transition: transform 700ms var(--ease-in-out) calc(var(--d) * 70ms); }
  .wk--js.is-full .wk__dot { transition: opacity 300ms var(--ease-out), transform 400ms var(--ease-out); transition-delay: calc(var(--d) * 70ms + 80ms + var(--p) * 120ms); }
  .wk__stat--after { transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out); }


}
@media (max-width: 1100px) and (prefers-reduced-motion: no-preference) {
  .js .hero__borne { transform: translateY(24px); animation-name: load-settle-phone; }
  @keyframes load-settle-phone { to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Moins de mouvement : la semaine apparaît en fondu, sans vague ni déplacement */
  .wk--js:not(.is-full) .wk__line::before { transform: none; opacity: 0; }
  .wk--js:not(.is-full) .wk__dot:not(.is-jumua) { transform: translate(-50%, -50%); }
  .wk--js:not(.is-full) .wk__stat--after { transform: none; }
  .wk__line::before, .wk__dot, .wk__stat--after { transition: opacity 400ms ease; }
  .btn, .step__photo img { transition: none; }
}
