/* AlloAccueil — feuille de style unique.
   Palette : bleu de travail, papier, jaune de note, rouille.
   Le jaune ne marque QUE l'appel capté ; la rouille QUE l'appel perdu. */

:root {
  --encre:   #16283F;
  --bleu:    #2C5A8C;
  --papier:  #FBFAF6;
  --creme:   #F2F0E9;
  --jaune:   #F2B705;
  --rouille: #A6402C;
  --gris:    #5E6A78;
  --trait:   #D9D5CA;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --texte:   "Source Serif 4", Georgia, "Times New Roman", serif;

  --t-display: clamp(2.4rem, 5.6vw, 4.25rem);
  --t-h2:      clamp(1.6rem, 3vw, 2.35rem);
  --t-h3:      1.2rem;
  --t-corps:   1.0625rem;
  --t-petit:   0.9rem;

  --bande-y:   clamp(3.5rem, 8vw, 6.5rem);
  --marge-x:   clamp(1.25rem, 5vw, 3rem);
  --largeur:   68rem;
  --mesure:    34rem;
}

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

/* Échelle d'affichage générale.
   Tout le dessin est exprimé en rem : changer cette seule valeur agrandit la
   page entière — corps de texte, titres, colonne de lecture et largeur du
   contenu — dans les mêmes proportions que le zoom du navigateur. Les valeurs
   en vw (marges, tailles de titres) ne bougent pas, exactement comme au zoom.
   100% = taille d'origine. Descendre à 125% si 150% paraît trop gros. */
html {
  font-size: 150%;
  -webkit-text-size-adjust: 100%;
}

/* Sur téléphone et petite tablette, 150% déborderait : le texte y est déjà
   pleine largeur, l'agrandir ne ferait que réduire le nombre de mots visibles. */
@media (max-width: 48rem) {
  html { font-size: 112%; }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--texte);
  font-size: var(--t-corps);
  line-height: 1.65;
  font-synthesis-weight: none;
}

/* ── Ossature ─────────────────────────────────────────── */

.contenu {
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--marge-x);
}

.bande { padding-block: var(--bande-y); }
.bande--ouverture { padding-top: clamp(2.25rem, 4.5vw, 3.75rem); }
.bande + .bande { padding-top: 0; }

.bande--encre {
  background: var(--encre);
  color: var(--papier);
  padding-block: var(--bande-y);
}
.bande--encre + .bande { padding-top: var(--bande-y); }

.mesure { max-width: var(--mesure); }

hr.filet {
  border: 0;
  border-top: 1px solid var(--trait);
  margin-block: var(--bande-y) 0;
}

/* ── Typographie ──────────────────────────────────────── */

h1, h2, h3, .chiffre, .heure, .nav a, .bouton, .prix {
  font-family: var(--display);
  font-variation-settings: "wdth" 100;
}

h1 {
  font-size: var(--t-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.022em;
  margin: 0 0 1.25rem;
  max-width: 13ch;
  text-wrap: balance;
}

h2 {
  font-size: var(--t-h2);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.018em;
  margin: 0 0 1.5rem;
  max-width: 20ch;
  text-wrap: balance;
}

h3 {
  font-size: var(--t-h3);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.4rem;
  letter-spacing: -0.005em;
}

p { margin: 0 0 1.1rem; max-width: var(--mesure); }
p.large { max-width: 44rem; }

a { color: var(--bleu); text-decoration-thickness: 1px; text-underline-offset: 0.14em; }
.bande--encre a { color: var(--jaune); }

.intro { font-size: 1.2rem; line-height: 1.6; }

.appui {
  margin-top: 1.5rem;
  font-size: var(--t-petit);
  color: var(--gris);
  max-width: 40rem;
}
.bande--encre .appui { color: #9DB0C6; }

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

.entete {
  border-bottom: 1px solid var(--trait);
  background: var(--papier);
}
.entete .contenu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
  flex-wrap: wrap;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--encre);
  text-decoration: none;
}
.marque svg { display: block; width: 30px; height: 30px; }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--encre);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.nav a:hover, .nav a:focus-visible { border-bottom-color: var(--jaune); }

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

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.bouton {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  padding: 0.8rem 1.4rem;
  border: 2px solid var(--encre);
  background: var(--encre);
  color: var(--papier);
  text-decoration: none;
  border-radius: 2px;
}
.bouton:hover, .bouton:focus-visible { background: var(--bleu); border-color: var(--bleu); }

.bouton--creux { background: transparent; color: var(--encre); }
.bouton--creux:hover, .bouton--creux:focus-visible { background: var(--encre); color: var(--papier); }

.bande--encre .bouton {
  background: var(--jaune);
  border-color: var(--jaune);
  color: var(--encre);
}
.bande--encre .bouton:hover, .bande--encre .bouton:focus-visible {
  background: var(--papier);
  border-color: var(--papier);
}

/* ── Journal d'appels ─────────────────────────────────── */

.journal {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(251, 250, 246, 0.22);
}

.appel {
  display: grid;
  grid-template-columns: 4.75rem 0.5rem 1fr;
  gap: 0 1rem;
  align-items: start;
  padding-block: 1.1rem;
  border-bottom: 1px solid rgba(251, 250, 246, 0.22);
}

.heure {
  font-weight: 500;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  color: #9DB0C6;
  padding-top: 0.15rem;
}

.marqueur {
  width: 0.5rem;
  align-self: stretch;
  background: var(--rouille);
  transition: background 420ms ease;
}
.appel.repondu .marqueur { background: var(--jaune); }

.pile { display: grid; }
.pile > * { grid-area: 1 / 1; }

.perdu, .pris { transition: opacity 420ms ease, transform 420ms ease; }

.perdu { color: #9DB0C6; font-size: 1.0625rem; }
.perdu .etat { color: #E08E7C; }

.pris { opacity: 0; transform: translateY(0.5rem); }
.pris b { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
.pris .suite {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--t-petit);
  color: #9DB0C6;
}

.appel.repondu .perdu { opacity: 0; transform: translateY(-0.5rem); }
.appel.repondu .pris  { opacity: 1; transform: none; }

/* ── Script d'appel ───────────────────────────────────── */

.script { margin: 0; max-width: 44rem; }

.script > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0 1.25rem;
  padding-block: 0.55rem;
}
.script > div + div { border-top: 1px solid var(--trait); }

.script dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--bleu);
}
.script .voix-appelant { color: var(--gris); }
.script dd { margin: 0; }

/* ── Listes de fond ───────────────────────────────────── */

.points { list-style: none; margin: 0; padding: 0; max-width: 44rem; }
.points li { padding-block: 1.15rem; border-top: 1px solid var(--trait); }
.points li:last-child { border-bottom: 1px solid var(--trait); }
.points p { margin: 0; max-width: 40rem; }

/* ── Feuille de bilan ─────────────────────────────────── */

.bilan {
  background: var(--creme);
  color: var(--encre);
  border-left: 0.5rem solid var(--jaune);
  padding: 1.75rem clamp(1.25rem, 4vw, 2.25rem);
  max-width: 34rem;
}
.bilan dl { margin: 0; }
.bilan div { display: flex; justify-content: space-between; gap: 1.5rem; padding-block: 0.4rem; }
.bilan div + div { border-top: 1px solid var(--trait); }
.bilan + .appui { margin-top: 1rem; }
.bilan dt { margin: 0; }
.bilan dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ── Tarifs ───────────────────────────────────────────── */

.offres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0;
  border-top: 2px solid var(--encre);
}

.offre {
  padding: 1.75rem 1.5rem 2rem;
  border-bottom: 2px solid var(--encre);
}
.offre + .offre { border-left: 1px solid var(--trait); }

.offre--retenue { background: var(--creme); }

.prix {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 1rem 0 0.15rem;
}
.prix .par { font-size: 0.9rem; font-weight: 500; letter-spacing: 0; }

.pose { font-size: var(--t-petit); color: var(--gris); margin: 0 0 1.1rem; min-height: 3.1em; }
.pose s { color: var(--gris); }
.pose b { color: var(--rouille); font-family: var(--display); font-weight: 700; }

.offre ul { list-style: none; margin: 0 0 0.5rem; padding: 0; font-size: 0.98rem; }
.offre li { padding-block: 0.35rem; }
.offre li + li { border-top: 1px solid var(--trait); }

.quota { font-size: var(--t-petit); color: var(--gris); margin: 0.75rem 0 0; }

/* ── Questions ────────────────────────────────────────── */

.questions { max-width: 44rem; }
.questions > div { padding-block: 1.35rem; border-top: 1px solid var(--trait); }
.questions > div:last-child { border-bottom: 1px solid var(--trait); }
.questions p { margin: 0; }

/* ── Pied ─────────────────────────────────────────────── */

.pied {
  background: var(--encre);
  color: var(--papier);
  padding-block: var(--bande-y) 2.5rem;
}
.pied h2 { color: var(--papier); }

.identite {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(251, 250, 246, 0.22);
  font-size: var(--t-petit);
  line-height: 1.55;
}
.identite--seule { margin-top: 0; border-top: 0; padding-top: 0; }
.identite h3 { font-size: 0.85rem; color: #9DB0C6; margin-bottom: 0.5rem; font-weight: 500; }
.identite p { margin: 0; max-width: none; }
.identite ul { list-style: none; margin: 0; padding: 0; }
.identite li { padding-block: 0.12rem; }

/* ── Pages de texte (légales) ─────────────────────────── */

.page-texte { max-width: 42rem; }
.page-texte h1 { max-width: 18ch; }
.page-texte h2 { font-size: 1.45rem; margin-top: 2.75rem; max-width: none; }
.page-texte h3 { margin-top: 1.75rem; }
.page-texte p, .page-texte li { max-width: none; }
.page-texte ul { padding-left: 1.1rem; }
.page-texte li { padding-block: 0.2rem; }
.page-texte table { border-collapse: collapse; width: 100%; margin-bottom: 1.5rem; font-size: 0.95rem; }
.page-texte th, .page-texte td { text-align: left; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--trait); vertical-align: top; }
.page-texte th { font-family: var(--display); font-weight: 700; font-size: 0.85rem; }
.date-maj { color: var(--gris); font-size: var(--t-petit); }

/* ── Accessibilité ────────────────────────────────────── */

:focus-visible {
  outline: 3px solid var(--jaune);
  outline-offset: 2px;
}
.bande--encre :focus-visible, .pied :focus-visible { outline-color: var(--jaune); }

.saut-contenu {
  position: absolute;
  left: -9999px;
  background: var(--jaune);
  color: var(--encre);
  padding: 0.75rem 1rem;
  font-family: var(--display);
  font-weight: 700;
  z-index: 10;
}
.saut-contenu:focus { left: var(--marge-x); top: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  .perdu, .pris, .marqueur { transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; }
}

@media (max-width: 34rem) {
  .appel { grid-template-columns: 3.6rem 0.4rem 1fr; gap: 0 0.75rem; }
  .script > div { grid-template-columns: 1fr; gap: 0.1rem; }
  .bilan div { flex-direction: column; gap: 0; }
  .offre + .offre { border-left: 0; }
}
