:root {
  --papier: #f5f7f6;
  --blanc: #ffffff;
  --encre: #10262b;
  --encre-douce: #4a5d61;
  --filet: #d5dddb;
  --grand-livre: #1e7b5c;
  --grand-livre-fonce: #165c45;
  --lavis: #e5f0eb;
  --cachet: #b42a2a;
  --focus: #1e7b5c;
  --rayon-petit: 6px;
  --rayon: 14px;
  --mesure: 34rem;
  --police: "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 350;
  font-feature-settings: "tnum" 1;
}

:lang(ar) body,
html[lang="ar"] body { line-height: 1.85; font-size: 1.125rem; }

a { color: inherit; }

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

.visuellement-cache {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.evitement {
  position: absolute; inset-inline-start: 1rem; top: -4rem;
  background: var(--encre); color: var(--blanc); padding: .6rem 1rem; border-radius: var(--rayon-petit);
  z-index: 10; text-decoration: none;
}
.evitement:focus { top: 1rem; }

/* ── header ─────────────────────────────────────────────────────────── */
.bandeau {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 72rem; margin: 0 auto; padding: 1.25rem clamp(1rem, 4vw, 2.5rem);
}
.marque {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em;
}
.marque-signe { width: 1.75rem; height: 1.75rem; color: var(--grand-livre); }
.bandeau-actions { display: flex; align-items: center; gap: 1.25rem; }
.langues {
  display: inline-flex; padding: 3px; border: 1px solid var(--filet); border-radius: 999px; background: var(--blanc);
}
.langue {
  font: inherit; font-size: .875rem; font-weight: 450; color: var(--encre-douce);
  background: none; border: 0; border-radius: 999px; padding: .3rem .8rem; cursor: pointer; min-height: 2rem;
}
.langue[aria-pressed="true"] { background: var(--encre); color: var(--blanc); }
.lien-discret { font-size: .95rem; text-decoration: none; border-bottom: 1px solid var(--filet); padding-bottom: 1px; }
.lien-discret:hover { border-color: var(--encre); }

/* ── hero ───────────────────────────────────────────────────────────── */
main { max-width: 72rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }

.ouverture {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
  padding: clamp(2.5rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem);
}
h1 {
  margin: 0;
  font-size: clamp(2.75rem, 7.2vw, 5.4rem);
  line-height: .98;
  font-weight: 250;
  letter-spacing: -.035em;
}
html[lang="ar"] h1 { letter-spacing: 0; line-height: 1.2; font-weight: 300; }
.chapeau { max-width: var(--mesure); margin: 1.5rem 0 0; font-size: 1.15rem; color: var(--encre-douce); }
.ouverture-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .75rem 1.4rem;
  background: var(--grand-livre); color: var(--blanc);
  font: inherit; font-weight: 500; text-decoration: none;
  border: 0; border-radius: var(--rayon-petit); cursor: pointer;
  transition: background-color .15s ease;
}
.bouton:hover { background: var(--grand-livre-fonce); }
.bouton[disabled] { opacity: .65; cursor: progress; }
.lien-fleche { font-weight: 450; text-decoration: underline; text-decoration-color: var(--filet); text-underline-offset: .3em; text-decoration-thickness: 2px; }
.lien-fleche:hover { text-decoration-color: var(--grand-livre); }

/* ── the deadline register: the page's one bold element ────────────── */
.echeancier {
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-inline-start: 6px solid var(--encre);
  border-radius: var(--rayon);
  padding: 1.5rem 1.5rem 1.25rem;
}
.echeancier-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.echeancier h2 { margin: 0; font-size: 1.05rem; font-weight: 500; }
.echeancier-date { margin: 0; font-size: .9rem; color: var(--encre-douce); }
.echeancier-liste { list-style: none; margin: 1rem 0 0; padding: 0; }
.echeance {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) auto;
  grid-template-areas: "jour libelle reste" "mois libelle reste";
  column-gap: 1rem; align-items: center;
  padding: .85rem 0;
  border-top: 1px solid var(--filet);
}
.echeance-jour { grid-area: jour; font-size: 2rem; line-height: 1; font-weight: 250; letter-spacing: -.03em; }
.echeance-mois { grid-area: mois; font-size: .8rem; color: var(--encre-douce); }
.echeance-libelle { grid-area: libelle; font-weight: 450; line-height: 1.35; }
.echeance-libelle small { display: block; font-weight: 350; font-size: .85rem; color: var(--encre-douce); }
.echeance-reste {
  grid-area: reste; text-align: end; white-space: nowrap;
  font-size: 1.6rem; font-weight: 200; letter-spacing: -.02em; color: var(--encre);
}
.echeance-reste small { display: block; font-size: .75rem; font-weight: 400; letter-spacing: 0; color: var(--encre-douce); }
.echeance[data-proche="true"] .echeance-reste { color: var(--cachet); font-weight: 400; }
.echeance[data-proche="true"] .echeance-reste small { color: var(--cachet); }
.echeancier-note { margin: .75rem 0 0; padding-top: .85rem; border-top: 1px solid var(--filet); font-size: .82rem; color: var(--encre-douce); line-height: 1.5; }

@media (prefers-reduced-motion: no-preference) {
  .echeancier[data-pret="true"] .echeance { animation: inscrire .5s cubic-bezier(.2, .7, .2, 1) both; }
  .echeancier[data-pret="true"] .echeance:nth-child(2) { animation-delay: .08s; }
  .echeancier[data-pret="true"] .echeance:nth-child(3) { animation-delay: .16s; }
  .echeancier[data-pret="true"] .echeance:nth-child(4) { animation-delay: .24s; }
  @keyframes inscrire { from { opacity: 0; transform: translateY(.4rem); } to { opacity: 1; transform: none; } }
}

/* ── capabilities ───────────────────────────────────────────────────── */
.capacites {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2.5rem, 6vw, 4rem) 0; border-top: 1px solid var(--filet);
}
.capacite h3 { margin: 0 0 .5rem; font-size: 1.2rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.capacite p { margin: 0; color: var(--encre-douce); max-width: 30rem; }
.cabinets {
  grid-column: 1 / -1; margin: 0; padding: 1.1rem 1.25rem;
  background: var(--lavis); border-radius: var(--rayon-petit); color: var(--encre);
}

/* ── waitlist ───────────────────────────────────────────────────────── */
.liste {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(3rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--filet);
  scroll-margin-top: 1rem;
}
.liste h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 300; letter-spacing: -.025em; line-height: 1.1; }
html[lang="ar"] .liste h2 { letter-spacing: 0; line-height: 1.35; }
.liste-texte p { margin: 1rem 0 0; color: var(--encre-douce); max-width: 26rem; }

.formulaire { display: grid; gap: 1.15rem; }
.champ { display: grid; gap: .4rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.champ > label, .champ legend { font-weight: 450; font-size: .95rem; padding: 0; }
.facultatif { font-weight: 350; color: var(--encre-douce); font-size: .85rem; }
.champs-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
input[type="email"], input[type="text"] {
  font: inherit; color: var(--encre); width: 100%;
  min-height: 3rem; padding: .7rem .9rem;
  background: var(--blanc); border: 1px solid #b9c5c2; border-radius: var(--rayon-petit);
}
input[type="email"]:focus-visible, input[type="text"]:focus-visible { outline-offset: 0; border-color: var(--focus); }
input[aria-invalid="true"] { border-color: var(--cachet); }

.profils-choix { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.profil { position: relative; }
.profil input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.profil span {
  display: inline-flex; align-items: center; min-height: 2.6rem; padding: .45rem 1rem;
  background: var(--blanc); border: 1px solid #b9c5c2; border-radius: 999px; font-size: .95rem; cursor: pointer;
}
.profil input:checked + span { background: var(--encre); border-color: var(--encre); color: var(--blanc); }
.profil input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.case { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-weight: 400 !important; cursor: pointer; }
.case input { width: 1.25rem; height: 1.25rem; margin: .2rem 0 0; accent-color: var(--grand-livre); }
.notice { margin: -.25rem 0 0; font-size: .82rem; color: var(--encre-douce); line-height: 1.55; }
.champ-erreur { margin: 0; color: var(--cachet); font-size: .875rem; font-weight: 450; }
.formulaire .bouton { justify-self: start; margin-top: .25rem; }
.formulaire-etat { margin: 0; font-weight: 450; }
.formulaire-etat[data-ton="succes"] {
  padding: 1rem 1.1rem; background: var(--lavis); border-inline-start: 4px solid var(--grand-livre); border-radius: var(--rayon-petit);
}
.formulaire-etat[data-ton="erreur"] { color: var(--cachet); }
.pot { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── footer ─────────────────────────────────────────────────────────── */
.pied {
  max-width: 72rem; margin: 0 auto; padding: 1.75rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem;
  border-top: 1px solid var(--filet); font-size: .875rem; color: var(--encre-douce);
}
.pied p { margin: 0; }

/* ── small screens ──────────────────────────────────────────────────── */
@media (max-width: 56rem) {
  .ouverture, .liste { grid-template-columns: 1fr; }
  .capacites { grid-template-columns: 1fr; gap: 1.75rem; }
}
@media (max-width: 30rem) {
  .champs-duo { grid-template-columns: 1fr; }
  .lien-discret { display: none; }
  .echeance { grid-template-columns: 2.8rem minmax(0, 1fr) auto; column-gap: .75rem; }
  .echeance-reste { font-size: 1.3rem; }
}
