/* Palette « Clair et bleu » (src/palettes.mjs). */
:root {
  --fond: #ffffff;
  --bande: #eef3fb;
  --encre: #172033;
  --encre-douce: #4b5870;
  --fort: #0f2147;
  --lien: #1c4fd3;
  --trait: #d5ddea;
  --trait-bande: rgba(15, 33, 71, 0.18);
  --trait-champ: #7c8aa3;
  --bloc: #f2f5fb;
  --sur-bloc: #0f2147;
  --sur-bloc-doux: #44516b;
  --trait-bloc: rgba(15, 33, 71, 0.14);
  --trait-bloc-fort: rgba(15, 33, 71, 0.32);
  --voile-bloc: #ffffff;
  --survol: rgba(28, 79, 211, 0.08);
  --focus-bloc: #1c4fd3;
  --barre: #dbe6fb;
  --sur-barre: #0f2147;
  --barre-jour: #1c4fd3;
  --sur-barre-jour: #ffffff;
  --temoin: #1c4fd3;
  --accent: #1c4fd3;
  --accent-appui: #163fa9;
  --sur-accent: #ffffff;
  --sur-selection: #ffffff;
  --sur-selection-doux: #c9d5ee;
  --pied: #0f2147;
  --sur-pied: #f2f5fb;
  --sur-pied-doux: #b9c5dc;
  --trait-pied: rgba(255, 255, 255, 0.14);
}

/* Segaco. Deux familles, celles de wonderoute.com/tours-home : Playfair Display pour les titres
   (graisse 500), Manrope pour le texte. Toutes deux sous licence SIL Open Font License 1.1,
   servies par le site lui-même.
   Les couleurs sont des rôles (fond, bloc, accent…) : la palette choisie dans src/site.mjs et
   décrite dans src/palettes.mjs leur donne leur valeur, la construction l'écrit en tête de ce fichier. */

@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-display.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --titre: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --texte: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --marge: clamp(1.25rem, 4.5vw, 3rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1,
h2,
h3 {
  font-family: var(--titre);
  font-weight: 500;
  font-variant-numeric: lining-nums;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
dd,
address,
table,
fieldset,
legend {
  margin: 0;
  padding: 0;
}

address {
  font-style: normal;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--lien);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 0.16em;
}

:focus-visible {
  outline: 3px solid var(--lien);
  outline-offset: 3px;
  border-radius: 2px;
}
.entete :focus-visible,
.hero :focus-visible,
.tete :focus-visible,
.bloc--contraste :focus-visible,
.pied :focus-visible {
  outline-color: var(--focus-bloc);
}

.cadre {
  width: min(100% - 2 * var(--marge), 72rem);
  margin-inline: auto;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.evitement {
  position: absolute;
  left: var(--marge);
  top: -5rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--sur-accent);
  font-weight: 700;
  border-radius: 0 0 0.4rem 0.4rem;
}
.evitement:focus {
  top: 0;
}

/* ── Boutons ── */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.3rem;
  border: 2px solid transparent;
  border-radius: 0.4rem;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.bouton--plein {
  background: var(--accent);
  color: var(--sur-accent);
}
.bouton--plein:hover {
  background: var(--accent-appui);
}
.bouton--plein:disabled {
  opacity: 0.6;
  cursor: progress;
}
.bouton--trait {
  border-color: currentColor;
  color: inherit;
}
.bouton--trait:hover {
  background: var(--survol);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

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

.entete {
  background: var(--bloc);
  color: var(--sur-bloc);
}
.entete__grille {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.6rem 1.5rem;
  padding-block: 1rem 0.75rem;
}
.marque {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.75rem;
  color: inherit;
  text-decoration: none;
}
.marque__nom {
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0;
  line-height: 1;
}
.marque__metier {
  font-size: 0.95rem;
  color: var(--sur-bloc-doux);
}
.entete__tel {
  grid-row: 1;
  grid-column: 2;
  min-height: 2.6rem;
  padding: 0.45rem 0.95rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.entete__nav {
  grid-row: 2;
  grid-column: 1 / -1;
  margin-inline: calc(-1 * var(--marge));
  padding-inline: var(--marge);
  overflow-x: auto;
  scrollbar-width: none;
}
.entete__nav::-webkit-scrollbar {
  display: none;
}
.entete__nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  white-space: nowrap;
}
.entete__nav li:last-child {
  padding-right: var(--marge);
}
.entete__nav a {
  display: inline-block;
  padding-block: 0.4rem;
  color: var(--sur-bloc);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.entete__nav a:hover {
  border-bottom-color: var(--sur-bloc-doux);
}
.entete__nav a[aria-current='page'] {
  border-bottom-color: var(--accent);
}

@media (max-width: 25rem) {
  .marque__metier {
    display: none;
  }
}
@media (min-width: 66rem) {
  .entete__grille {
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    padding-block: 1.25rem;
  }
  .entete__tel {
    grid-row: auto;
    grid-column: auto;
  }
  .entete__nav {
    grid-row: auto;
    grid-column: auto;
    margin-inline: 0;
    padding-inline: 0;
    justify-self: end;
    overflow: visible;
  }
  .entete__nav li:last-child {
    padding-right: 0;
  }
  .marque__metier {
    display: none;
  }
}
@media (min-width: 80rem) {
  .marque__metier {
    display: inline;
  }
}

/* ── Accueil : la bannière ── */

.banniere {
  position: relative;
  /* La hauteur suit la largeur : la photo, calée en haut, montre toujours les visages des enfants
     au-dessus de la phrase. */
  height: clamp(15rem, 24vw + 5.5rem, 34rem);
  overflow: hidden;
  background: var(--pied);
  color: var(--sur-pied);
}
.banniere__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Les visages sont en haut de la photo : c'est le haut qui reste visible. */
  object-position: center top;
}
.banniere .cadre {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding-bottom: clamp(1.1rem, 3vw, 2.1rem);
}
/* La phrase tient sur une ligne dès que la largeur le permet, sous les personnages. */
.banniere__texte {
  position: relative;
  max-width: none;
  font-family: var(--titre);
  font-weight: 500;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem);
  line-height: 1.15;
  text-wrap: balance;
}
/* Un voile sombre accompagne la phrase, sur toute la largeur : dense derrière le texte, quelle que
   soit sa hauteur, il s'efface juste au-dessus et laisse le reste de la photo intact. */
.banniere__texte::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: calc(-1 * clamp(2.5rem, 5vw, 4rem)) -100vw -2.1rem;
  /* Pour un navigateur sans color-mix(), puis le voile voulu. */
  background: linear-gradient(to top, var(--pied) 0%, var(--pied) 40%, transparent 100%);
  background: linear-gradient(
    to top,
    var(--pied) 0%,
    color-mix(in srgb, var(--pied) 72%, transparent) calc(100% - clamp(2.5rem, 5vw, 4rem)),
    transparent 100%
  );
  opacity: 0.9;
}
.banniere__attente {
  position: absolute;
  inset: 1rem;
  display: grid;
  place-items: center;
  border: 2px dashed var(--trait-pied);
  border-radius: 0.9rem;
  color: var(--sur-pied-doux);
  text-align: center;
}

/* ── Accueil : premier écran ── */

.hero {
  background: var(--bloc);
  color: var(--sur-bloc);
  padding-block: clamp(2rem, 5vw, 3.75rem) clamp(2.75rem, 7vw, 5rem);
}
.hero__grille {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}
.hero h1 {
  font-weight: 500;
  font-size: clamp(2.4rem, 1.2rem + 4.6vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
}
.chapo {
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
  line-height: 1.5;
  color: var(--sur-bloc-doux);
}
.hero .actions {
  margin-top: 2.25rem;
}

@media (min-width: 62rem) {
  .hero__grille {
    grid-template-columns: minmax(0, 1.2fr) minmax(23rem, 0.8fr);
  }
}

/* ── Les horaires : un tableau, une colonne pour le matin, une pour l'après-midi ── */

.semaine {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--trait-bloc);
  border-radius: 1rem;
  background: var(--voile-bloc);
}
.semaine h2 {
  font-size: 1.3rem;
  font-weight: 600;
}
.etat {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-weight: 700;
}
.semaine .etat {
  margin-top: 0.5rem;
}
.etat::before {
  content: '';
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 2px solid currentColor;
}
.etat[data-ouvert='oui']::before {
  background: var(--temoin);
  border-color: var(--temoin);
}

/* Le même tableau sert à l'accueil (sur le bloc) et sur la page Contact (sur le fond). */
.horaires {
  --h-doux: var(--encre-douce);
  --h-fort: var(--fort);
  width: 100%;
  max-width: 30rem;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.semaine .horaires {
  --h-doux: var(--sur-bloc-doux);
  --h-fort: var(--sur-bloc);
  max-width: none;
  margin-top: 1rem;
}
.horaires th,
.horaires td {
  padding: 0.32rem 0;
  text-align: left;
  font-weight: 400;
  vertical-align: middle;
  white-space: nowrap;
}
/* Les deux colonnes d'heures prennent la largeur de leur contenu ; le jour prend le reste. */
.horaires td,
.horaires thead th + th {
  width: 1%;
  padding-left: 0.5rem;
}
.horaires thead th {
  padding-bottom: 0.15rem;
  font-size: 0.85rem;
  color: var(--h-doux);
}
.horaires tbody th {
  padding-right: 0.75rem;
  color: var(--h-doux);
}
.horaires__ferme,
.horaires__note {
  color: var(--h-doux);
}
.horaires__note {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  line-height: 1.2;
  text-align: center;
}
.plage {
  display: block;
  padding: 0.3rem 0.7rem;
  border-radius: 0.4rem;
  background: var(--barre);
  color: var(--sur-barre);
  line-height: 1.3;
  text-align: center;
}
/* Sur rendez-vous : la pastille est seulement cernée. */
.plage + .plage {
  margin-top: 0.25rem;
}
.plage--rdv {
  background: none;
  box-shadow: inset 0 0 0 1.5px var(--h-doux);
  color: var(--h-fort);
}
.jour--aujourdhui th {
  color: var(--h-fort);
  font-weight: 700;
}
.jour--aujourdhui .plage {
  box-shadow: inset 0 0 0 2px var(--barre-jour);
}
.jour--aujourdhui .plage--encours {
  background: var(--barre-jour);
  box-shadow: none;
  color: var(--sur-barre-jour);
}
.semaine__note {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--trait-bloc);
  font-size: 0.95rem;
  color: var(--sur-bloc-doux);
}
.texte .horaires + .etat {
  margin-top: 1rem;
}
@media (max-width: 26rem) {
  .horaires {
    font-size: 0.9rem;
  }
  .plage {
    padding: 0.25rem 0.45rem;
  }
}
/* Très petit écran : le jour passe au-dessus de ses deux plages. */
@media (max-width: 22rem) {
  .horaires thead {
    display: none;
  }
  .horaires tbody tr {
    display: grid;
    grid-template-columns: max-content max-content;
    justify-content: start;
    gap: 0.1rem 0.5rem;
    padding-block: 0.3rem;
  }
  .horaires tbody th {
    grid-column: 1 / -1;
  }
  .horaires td {
    width: auto;
    padding-left: 0;
  }
}
.semaine a,
.bloc--contraste a:not(.bouton),
.tete a:not(.bouton) {
  color: var(--sur-bloc);
}
.pied a {
  color: var(--sur-pied);
}

/* ── Sections de l'accueil ── */

.bloc {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.bloc--bande {
  background: var(--bande);
}
.bloc--contraste {
  background: var(--bloc);
  color: var(--sur-bloc);
}
.bloc h2 {
  font-weight: 500;
  font-size: clamp(1.8rem, 1.35rem + 1.9vw, 2.75rem);
  letter-spacing: -0.008em;
  color: var(--fort);
}
.bloc--contraste h2 {
  color: inherit;
}
.bloc h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--fort);
}
.bloc__tete {
  max-width: 40rem;
}
.bloc__tete p {
  margin-top: 1rem;
}
.bloc__tete .actions {
  margin-top: 2rem;
}
.bloc--contraste .bloc__tete p:not(.actions) {
  color: var(--sur-bloc-doux);
}

.duo {
  display: grid;
  gap: 3rem clamp(2.5rem, 6vw, 5rem);
  margin-top: 3rem;
}
@media (min-width: 48rem) {
  .duo {
    grid-template-columns: 1fr 1fr;
  }
}

.contrats {
  margin-top: 1rem;
}
.contrats > div {
  padding-block: 1rem;
  border-top: 1px solid var(--trait);
}
.contrats > div:last-child {
  border-bottom: 1px solid var(--trait);
}
.contrats dt {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.25;
}
.contrats dt a {
  color: var(--fort);
  text-decoration-color: var(--trait);
}
.contrats dt a:hover {
  text-decoration-color: currentColor;
}
.contrats dd {
  margin-top: 0.3rem;
  color: var(--encre-douce);
}

.role,
.cabinet,
.appel {
  display: grid;
  gap: 2.5rem clamp(2.5rem, 6vw, 5rem);
}
@media (min-width: 56rem) {
  .role,
  .cabinet,
  .appel {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }
}

.etapes {
  list-style: none;
  counter-reset: etape;
}
.etapes li {
  counter-increment: etape;
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  column-gap: 0.5rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--trait-bande);
}
.etapes li:last-child {
  border-bottom: 1px solid var(--trait-bande);
}
.etapes li::before {
  content: counter(etape);
  grid-row: span 2;
  font-family: var(--titre);
  font-weight: 500;
  font-size: 2.6rem;
  line-height: 0.95;
  color: var(--lien);
}
.etapes h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--fort);
}
.etapes p {
  grid-column: 2;
  margin-top: 0.3rem;
  color: var(--encre-douce);
}

.fiche > div,
.coordonnees > div {
  display: grid;
  gap: 0.1rem 1.5rem;
  padding-block: 0.8rem;
  border-top: 1px solid var(--trait);
}
.fiche > div:last-child,
.coordonnees > div:last-child {
  border-bottom: 1px solid var(--trait);
}
.fiche dt {
  color: var(--encre-douce);
}
.fiche dd {
  font-weight: 600;
}
@media (min-width: 34rem) {
  .fiche > div {
    grid-template-columns: 12.5rem minmax(0, 1fr);
  }
  .coordonnees > div {
    grid-template-columns: 7.5rem minmax(0, 1fr);
  }
}

/* La partie Contact de l'accueil : le téléphone d'abord, en grand. */
.coordonnees > div {
  border-color: var(--trait-bloc);
  padding-block: 1rem;
}
.coordonnees dt {
  color: var(--sur-bloc-doux);
}
.coordonnees__tel {
  font-family: var(--titre);
  font-weight: 500;
  font-size: clamp(2rem, 1.5rem + 2.2vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}
.coordonnees__tel:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
}

/* ── Pages intérieures ── */

.tete {
  background: var(--bloc);
  color: var(--sur-bloc);
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4rem);
}
.tete--seule {
  padding-block: clamp(4rem, 12vw, 9rem);
}
.tete h1 {
  max-width: 48rem;
  font-weight: 500;
  font-size: clamp(2.2rem, 1.3rem + 3.9vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.tete .chapo {
  max-width: 40rem;
}
.tete .actions {
  margin-top: 2rem;
}

.sommaire {
  margin-top: 1.75rem;
}
.sommaire ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}
.sommaire a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--trait-bloc-fort);
  border-radius: 2rem;
  text-decoration: none;
}
.sommaire a:hover {
  background: var(--survol);
  border-color: var(--sur-bloc);
}

.corps {
  display: grid;
  gap: 3.5rem;
  padding-block: clamp(3rem, 7vw, 5rem) clamp(3.5rem, 8vw, 6rem);
}
@media (min-width: 62rem) {
  .corps {
    grid-template-columns: minmax(0, 42rem) 20rem;
    justify-content: space-between;
    align-items: start;
  }
  .corps--seul {
    grid-template-columns: minmax(0, 46rem);
    justify-content: start;
  }
}

.texte > * + * {
  margin-top: 1.1rem;
}
.texte h2 {
  font-weight: 500;
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  letter-spacing: -0.005em;
  color: var(--fort);
}
.texte > h2 {
  margin-top: 3.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--trait);
}
.texte > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.texte p,
.texte .liste {
  max-width: 40rem;
}
.texte strong {
  color: var(--fort);
}
.liste {
  padding-left: 1.2rem;
}
.liste li + li {
  margin-top: 0.4rem;
}
.liste li::marker {
  color: var(--lien);
}

.question {
  padding-block: 1.6rem;
  border-top: 1px solid var(--trait);
}
.question:first-child {
  padding-top: 0;
  border-top: 0;
}
.question h2 {
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.25;
  letter-spacing: 0;
}
.question p {
  margin-top: 0.75rem;
}

.texte .etat,
.joindre .etat {
  color: var(--fort);
}
.texte .etat[data-ouvert='oui']::before,
.joindre .etat[data-ouvert='oui']::before {
  background: var(--lien);
  border-color: var(--lien);
}

.joindre {
  padding: 1.6rem;
  border-radius: 0.9rem;
  background: var(--bande);
}
.joindre h2 {
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--fort);
}
.joindre > * + * {
  margin-top: 1rem;
}
.joindre .bouton {
  width: 100%;
}
.joindre__tel {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--fort);
  text-decoration: none;
  white-space: nowrap;
}
.joindre__tel:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
}
.joindre__horaires {
  font-size: 1rem;
  color: var(--encre-douce);
}
@media (min-width: 62rem) {
  .joindre {
    position: sticky;
    top: 2rem;
  }
}

.todo {
  padding: 0.1em 0.4em;
  border-radius: 0.25em;
  background: #fdeeb5;
  color: var(--encre);
  outline: 1px dashed #a47a00;
  font-weight: 400;
}
.todo::before {
  content: 'À compléter : ';
  font-weight: 700;
}

/* ── Prise de rendez-vous ── */

.rdv fieldset {
  border: 0;
  padding-top: 1.75rem;
  margin-top: 1.75rem;
  border-top: 1px solid var(--trait);
}
.rdv fieldset:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.rdv legend {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  float: left;
  width: 100%;
  margin-bottom: 1.25rem;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--fort);
}
.rdv legend + * {
  clear: both;
}
.rdv__num {
  font-weight: 500;
  font-size: 2rem;
  line-height: 1;
  color: var(--lien);
}
.champ + .champ {
  margin-top: 1.25rem;
}
.champ label,
.champ__nom {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.facultatif {
  font-weight: 400;
  color: var(--encre-douce);
}
.champ input[type='text'],
.champ input[type='tel'],
.champ input[type='email'],
.champ select,
.champ textarea {
  display: block;
  width: 100%;
  max-width: 28rem;
  min-height: 3rem;
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--trait-champ);
  border-radius: 0.4rem;
  background: #fff;
  color: var(--encre);
  font: inherit;
}
.champ textarea {
  max-width: 40rem;
  resize: vertical;
}
.champ input:focus-visible,
.champ select:focus-visible,
.champ textarea:focus-visible {
  outline-offset: 1px;
  border-color: var(--fort);
}
.champ--piege {
  position: absolute;
  left: -200vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.choix,
.jours {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.choix__item,
.jours__item {
  position: relative;
  margin: 0 !important;
  font-weight: 400 !important;
  cursor: pointer;
}
.choix__item input,
.jours__item input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.choix__item > span,
.jours__item > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.5rem 1.1rem;
  border: 2px solid var(--trait-champ);
  border-radius: 0.4rem;
  background: #fff;
  font-variant-numeric: tabular-nums;
}
.choix--heures .choix__item > span {
  min-width: 5.6rem;
}
.jours__item > span {
  flex-direction: column;
  min-width: 6.8rem;
  padding-block: 0.55rem;
  line-height: 1.25;
}
.jours__sem {
  font-weight: 700;
  text-transform: capitalize;
}
.jours__num {
  font-size: 0.95rem;
  color: var(--encre-douce);
}
.choix__item input:hover + span,
.jours__item input:hover + span {
  border-color: var(--fort);
}
.choix__item input:checked + span,
.jours__item input:checked + span {
  background: var(--fort);
  border-color: var(--fort);
  color: var(--sur-selection);
  font-weight: 700;
}
.jours__item input:checked + span .jours__num {
  color: var(--sur-selection-doux);
}
.choix__item input:focus-visible + span,
.jours__item input:focus-visible + span {
  outline: 3px solid var(--lien);
  outline-offset: 3px;
}

.rdv__mention {
  margin-top: 1.75rem;
  font-size: 1rem;
  color: var(--encre-douce);
}
.rdv__erreur {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-left: 4px solid #a3341f;
  background: #fbeae5;
  color: #6f1f10;
  font-weight: 700;
}
.rdv__form > p:last-child {
  margin-top: 1.25rem;
}
.rdv__fait {
  padding: clamp(1.4rem, 4vw, 2rem);
  border-radius: 0.9rem;
  background: var(--bande);
}
.rdv__fait > * + * {
  margin-top: 0.9rem;
}
.rdv__quand {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--fort);
}
.rdv__secours {
  padding: 1rem 1.25rem;
  border-radius: 0.6rem;
  background: var(--bande);
  font-weight: 700;
}

/* ── Pied de page ── */

.pied {
  background: var(--pied);
  color: var(--sur-pied-doux);
  padding-block: clamp(2.75rem, 6vw, 4rem) 2rem;
  font-size: 1rem;
}
.pied__grille {
  display: grid;
  gap: 2.25rem;
}
.pied .marque__nom {
  color: var(--sur-pied);
}
.pied .marque + p {
  margin-top: 0.6rem;
  max-width: 18rem;
}
.pied ul {
  list-style: none;
  columns: 2;
  column-gap: 2rem;
}
.pied li {
  padding-block: 0.2rem;
  break-inside: avoid;
}
.pied address {
  line-height: 1.75;
}
.pied__legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--trait-pied);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 58rem;
}
.pied__credit {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
@media (min-width: 52rem) {
  .pied__grille {
    grid-template-columns: 1fr 1.6fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .entete__nav,
  .evitement,
  .actions,
  .sommaire,
  .rdv,
  .carte__itineraires,
  .joindre .bouton {
    display: none;
  }
  .entete,
  .hero,
  .tete,
  .bloc--contraste,
  .pied {
    background: none;
    color: #000;
  }
}

/* Sur téléphone, les jours proposés défilent sur une ligne. */
@media (max-width: 40rem) {
  .jours {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(-1 * var(--marge));
    padding: 6px var(--marge) 0.75rem;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--marge);
  }
  .jours__item {
    flex: none;
    scroll-snap-align: start;
  }
}

/* ── Photos d'illustration (public/photos/, prompts dans photos/README.md) ── */

/* La marge du haut reste celle du texte qui précède. */
.photo {
  margin-inline: 0;
  margin-bottom: 0;
}
.photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.9rem;
  background: var(--bande);
}
/* En maquette, un cadre marque l'emplacement d'une photo qui manque encore. */
.photo--attente {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: 1rem;
  border: 2px dashed var(--trait-champ);
  border-radius: 0.9rem;
  color: var(--encre-douce);
  text-align: center;
}
.texte .photo--attente {
  max-width: none;
}
.cabinet .photo {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* Les chiffres des titres restent alignés (téléphone, numéros d'étape). */
.marque__nom,
.contrats dt,
.etapes li::before,
.coordonnees__tel,
.joindre__tel,
.rdv legend,
.rdv__num,
.rdv__quand {
  font-variant-numeric: lining-nums;
}

/* ── Carte du quartier et itinéraires ── */

.carte {
  margin-inline: 0;
  margin-bottom: 0;
}
.carte img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--trait);
  border-radius: 0.9rem;
}
.carte figcaption {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--encre-douce);
}
.itineraires {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  max-width: none !important;
}
.itineraires__nom {
  flex-basis: 100%;
  font-weight: 700;
}
.itineraires .bouton {
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
}
.icone {
  flex: none;
  fill: currentColor;
}

/* Les applications d'itinéraire, posées sur la carte : une barre de trois cases sur téléphone,
   un cartouche en bas à gauche sur un écran plus large. */
.carte__vue {
  position: relative;
}
.carte__itineraires {
  position: absolute;
  inset: auto 0.5rem 0.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25rem;
  margin: 0;
  max-width: none !important;
  padding: 0.3rem;
  border: 1px solid var(--trait);
  border-radius: 0.8rem;
  background: var(--fond);
  box-shadow:
    0 1px 2px var(--trait-bande),
    0 8px 20px var(--trait-bande);
}
.carte__titre {
  display: none;
}
.carte__itineraires a.itineraire {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 3rem;
  padding: 0.35rem 0.25rem;
  border-radius: 0.55rem;
  color: var(--fort);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}
.carte__itineraires a.itineraire:hover {
  background: var(--bande);
}
/* Sur téléphone, la carte est plus haute et resserrée autour du cabinet (même repère que
   CARTE.position, src/render.mjs) : les rues restent lisibles et la barre ne masque pas le repère. */
@media (max-width: 39.99rem) {
  .carte img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 56% 50%;
  }
}
@media (min-width: 40rem) {
  .carte__itineraires {
    inset: auto auto 1rem 1rem;
    display: flex;
    align-items: center;
    padding-left: 0.95rem;
  }
  .carte__titre {
    display: block;
    margin-right: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--encre-douce);
  }
  .carte__itineraires a.itineraire {
    flex-direction: row;
    gap: 0.45rem;
    min-height: 2.75rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.95rem;
  }
}
/* À l'accueil, la carte prend toute la largeur sous les coordonnées. */
.appel__carte {
  grid-column: 1 / -1;
}
.appel__carte .carte {
  margin-top: 0;
}
.bloc--contraste .carte figcaption {
  color: var(--sur-bloc-doux);
}
.bloc--contraste .carte figcaption a {
  color: inherit;
}
/* À l'accueil, sur grand écran, la carte est un bandeau plus bas que large. */
@media (min-width: 56rem) {
  .appel__carte .carte img {
    aspect-ratio: 21 / 8;
    object-fit: cover;
  }
}
