/* Site de Lina Languer — accompagnement du langage.
   Idée directrice : la page se lit comme un exercice de lecture. Les syllabes du titre sont colorées
   en alternance et soulignées d'arcs, comme en classe ; tout le reste reste sobre. */

@font-face { font-family: 'Andika'; src: url('polices/andika-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Andika'; src: url('polices/andika-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Literata'; src: url('polices/literata.woff2') format('woff2'); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Literata'; src: url('polices/literata-italique.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --papier: #ffffff;
  --brouillon: #f2f5f9;
  --encre: #1d2433;
  --crayon: #535c6e;
  --trait: #d9dfe8;
  --bleu: #2553c9;
  --bleu-fonce: #1b3f9e;
  --vert: #16865a;
  --surligneur: #ffe066;
  --erreur: #b3261e;
  --titre: 'Andika', 'Trebuchet MS', system-ui, sans-serif;
  --texte: 'Literata', Georgia, 'Times New Roman', serif;
  --mesure: 36rem;
  --page: 70rem;
  --marge: clamp(1rem, 4vw, 2.5rem);
}

*, *::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(--texte); font-size: 1.125rem; line-height: 1.65; font-optical-sizing: auto;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--titre); font-weight: 700; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.005em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--bleu); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--bleu-fonce); }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; box-shadow: 0 0 0 7px var(--surligneur); border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.conteneur { width: min(100% - 2 * var(--marge), var(--page)); margin-inline: auto; }
.mesure { max-width: var(--mesure); }
.discret { color: var(--crayon); }
small, .petit { font-size: .9rem; }

/* ---------- En-tête ---------- */
.entete { border-bottom: 1px solid var(--trait); background: var(--papier); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; }
.marque { font-family: var(--titre); color: var(--encre); text-decoration: none; line-height: 1.2; }
.marque strong { display: block; font-size: 1.2rem; }
.marque span { display: block; font-size: .85rem; color: var(--crayon); }
.navigation { display: flex; align-items: center; gap: 1.4rem; font-family: var(--titre); }
.navigation a:not(.bouton) { color: var(--encre); text-decoration: none; }
.navigation a:not(.bouton):hover { text-decoration: underline; }
@media (max-width: 52rem) { .navigation a:not(.bouton) { display: none; } }
@media (max-width: 30rem) { .entete .bouton { font-size: .92rem; padding: .6em .85em; white-space: nowrap; } .marque strong { font-size: 1.05rem; } }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--titre); font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  padding: .8em 1.25em; border-radius: 10px; border: 2px solid var(--bleu);
  background: var(--bleu); color: #fff; text-decoration: none; cursor: pointer;
}
.bouton:hover { background: var(--bleu-fonce); border-color: var(--bleu-fonce); color: #fff; }
.bouton.second { background: transparent; color: var(--bleu); }
.bouton.second:hover { background: var(--brouillon); color: var(--bleu-fonce); }
.bouton.danger { background: transparent; color: var(--erreur); border-color: var(--erreur); }
.bouton.danger:hover { background: #fbeceb; }
.bouton[disabled] { opacity: .55; cursor: not-allowed; }
.bouton .precision { font-weight: 400; font-size: .9em; opacity: .9; }

/* ---------- Syllabes (l'élément marquant) ---------- */
.syl { position: relative; display: inline-block; padding-bottom: .2em; }
.syl.a { color: var(--bleu); }
.syl.b { color: var(--vert); }
.syl::after {
  content: ''; position: absolute; left: .08em; right: .08em; bottom: 0; height: .24em;
  border: .07em solid currentColor; border-top: 0; border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.titre-syllabes .syl::after { animation: tracer .45s cubic-bezier(.3, .6, .4, 1) both; animation-delay: calc(var(--i, 0) * 110ms + 250ms); }
.titre-syllabes .syl:nth-of-type(2) { --i: 1; } .titre-syllabes .syl:nth-of-type(3) { --i: 2; } .titre-syllabes .syl:nth-of-type(4) { --i: 3; }
.titre-syllabes .syl:nth-of-type(5) { --i: 4; } .titre-syllabes .syl:nth-of-type(6) { --i: 5; } .titre-syllabes .syl:nth-of-type(7) { --i: 6; }
@keyframes tracer { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .titre-syllabes .syl::after { animation: none; }
}

/* ---------- Accueil ---------- */
.ouverture { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.ouverture h1 { font-size: clamp(2.7rem, 1.4rem + 6.2vw, 5.6rem); line-height: 1.08; margin-bottom: .45em; }
.ouverture h1 .suite { display: block; color: var(--encre); font-size: .62em; margin-top: .25em; }
.ouverture .chapeau { font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-block: 1.6rem 1.4rem; }
.titres-lina { font-size: .95rem; color: var(--crayon); max-width: 34rem; }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section.fond { background: var(--brouillon); }
.section > .conteneur > h2 { margin-bottom: .9em; }
.intro { font-size: 1.15rem; max-width: var(--mesure); margin-bottom: 2rem; }

.ages { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 0; padding: 0; list-style: none; }
.ages li { border-left: 3px solid var(--trait); padding-left: 1.2rem; }
.ages li:nth-child(odd) { border-left-color: var(--bleu); }
.ages li:nth-child(even) { border-left-color: var(--vert); }
.age { font-family: var(--titre); font-weight: 700; font-size: 2.3rem; line-height: 1; display: block; }
.domaine { font-family: var(--titre); font-size: 1.15rem; color: var(--crayon); display: block; margin: .35rem 0 .8rem; }

.etapes { list-style: none; margin: 0; padding: 0; counter-reset: etape; display: grid; gap: 1.8rem; max-width: 46rem; }
.etapes li { counter-increment: etape; display: grid; grid-template-columns: 3.2rem 1fr; column-gap: 1rem; }
.etapes li::before {
  content: counter(etape); grid-row: span 2; font-family: var(--titre); font-weight: 700; font-size: 2.2rem; line-height: 1;
  color: var(--bleu); text-align: center; padding-bottom: .3rem; border-bottom: .12em solid var(--bleu);
  border-radius: 0 0 50% 50% / 0 0 30% 30%; height: fit-content;
}
.etapes li:nth-child(even)::before { color: var(--vert); border-color: var(--vert); }
.etapes h3 { margin: .2rem 0 .35rem; }
.etapes p { margin: 0; }

.lina { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; }
@media (max-width: 52rem) { .lina { grid-template-columns: 1fr; } }
.lina .portrait { border-radius: 18px; overflow: hidden; margin: 0 0 1.5rem; max-width: 22rem; }
.parcours { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--trait); }
.parcours li { position: relative; padding: 0 0 1.3rem 1.4rem; }
.parcours li::before { content: ''; position: absolute; left: -7px; top: .55rem; width: 12px; height: 12px; border-radius: 50%; background: var(--papier); border: 2px solid var(--bleu); }
.parcours time, .parcours .annee { display: block; font-family: var(--titre); font-weight: 700; color: var(--bleu); font-size: .95rem; }
.parcours strong { font-family: var(--titre); font-size: 1.05rem; display: block; line-height: 1.3; }
.parcours span.lieu { color: var(--crayon); font-size: .95rem; }

.cadre {
  border-left: 4px solid var(--bleu); background: var(--papier); padding: 1.4rem 1.6rem; border-radius: 0 12px 12px 0;
  max-width: 46rem; margin-top: 2.5rem;
}
.section.fond .cadre { background: var(--papier); }
.section:not(.fond) .cadre { background: var(--brouillon); }
.cadre h3 { margin-bottom: .5rem; }
.cadre p:last-child { margin-bottom: 0; }

.tarifs { list-style: none; margin: 0 0 1.5rem; padding: 0; border-top: 1px solid var(--trait); max-width: 52rem; }
.tarifs li { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1.5rem; align-items: center; padding: 1.4rem 0; border-bottom: 1px solid var(--trait); }
.tarifs h3 { margin: 0; }
.tarifs p { margin: .2rem 0 0; color: var(--crayon); font-size: 1rem; }
.prix { font-family: var(--titre); font-weight: 700; font-size: 1.7rem; text-align: right; line-height: 1.1; }
.prix small { display: block; font-weight: 400; font-size: .85rem; color: var(--crayon); }
.tarifs .bouton { grid-column: 1 / -1; justify-self: start; margin-top: .4rem; }
@media (min-width: 40rem) {
  .tarifs li { grid-template-columns: 1fr auto auto; }
  .tarifs .bouton { grid-column: auto; margin-top: 0; }
}

.communes { max-width: var(--mesure); }

.questions { max-width: 46rem; border-top: 1px solid var(--trait); }
.questions details { border-bottom: 1px solid var(--trait); }
.questions summary {
  cursor: pointer; list-style: none; font-family: var(--titre); font-weight: 700; font-size: 1.15rem;
  padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: '+'; position: absolute; right: .3rem; top: .85rem; font-size: 1.6rem; line-height: 1; color: var(--bleu); }
.questions details[open] summary::after { content: '−'; }
.questions details > div { padding-bottom: 1.1rem; }
.questions details p:last-child { margin-bottom: 0; }

.appel { text-align: left; }
.appel h2 { max-width: 30rem; }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid var(--trait); padding-block: 2.5rem; font-size: .95rem; color: var(--crayon); }
.pied .conteneur { display: grid; gap: 1rem; }
.pied nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-family: var(--titre); }
.pied p { margin: 0; }

/* ---------- Pages de texte ---------- */
.texte { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.texte h1 { font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem); }
.texte h2 { font-size: 1.45rem; margin-top: 2rem; }
.texte .conteneur > * { max-width: 42rem; }
.texte ul { padding-left: 1.2rem; }

/* ---------- Formulaires ---------- */
label, .etiquette { display: block; font-family: var(--titre); font-weight: 700; margin-bottom: .3rem; }
.aide { display: block; font-size: .9rem; color: var(--crayon); font-weight: 400; margin-top: -.1rem; margin-bottom: .4rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=date], input[type=time], textarea, select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--encre); background: var(--papier);
  border: 1.5px solid #aeb7c6; border-radius: 8px; padding: .65rem .75rem; min-height: 2.9rem;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible { border-color: var(--encre); }
.champ { margin-bottom: 1.2rem; }
.champs-deux { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.case { display: flex; gap: .7rem; align-items: flex-start; font-family: var(--texte); font-weight: 400; font-size: 1rem; }
.case input { width: 1.25rem; height: 1.25rem; margin-top: .25rem; flex: none; accent-color: var(--bleu); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.message { padding: .9rem 1.1rem; border-radius: 10px; margin-block: 1rem; font-size: 1rem; }
.message.erreur { background: #fbeceb; color: #7d1a14; border-left: 4px solid var(--erreur); }
.message.ok { background: #e8f5ee; color: #0e5a3c; border-left: 4px solid var(--vert); }
[hidden] { display: none !important; }

/* ---------- Réservation ---------- */
.reservation { padding-block: clamp(2rem, 5vw, 3.5rem) 4rem; }
.reservation h1 { font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem); }
.etape-resa { border-top: 1px solid var(--trait); padding-top: 1.6rem; margin-top: 1.8rem; }
.etape-resa > h2 { font-size: 1.45rem; display: flex; align-items: baseline; gap: .6rem; }
.etape-resa > h2 .num { color: var(--bleu); }
.etape-resa.fermee > *:not(h2) { display: none; }
.etape-resa.fermee > h2 { color: var(--crayon); }
.choix-prestations { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); max-width: 56rem; }
.choix-prestations label {
  display: grid; grid-template-columns: auto 1fr auto; gap: .2rem .8rem; align-items: start; font-weight: 400;
  border: 1.5px solid var(--trait); border-radius: 12px; padding: 1rem; cursor: pointer; background: var(--papier); margin: 0;
}
.choix-prestations input { margin-top: .35rem; accent-color: var(--bleu); width: 1.1rem; height: 1.1rem; }
.choix-prestations .nom { font-family: var(--titre); font-weight: 700; }
.choix-prestations .tarif { font-family: var(--titre); font-weight: 700; }
.choix-prestations .detail { grid-column: 2 / -1; font-family: var(--texte); font-size: .95rem; color: var(--crayon); }
.choix-prestations label:has(input:checked) { border-color: var(--bleu); box-shadow: inset 0 0 0 1px var(--bleu); background: #f5f8ff; }

.calendrier { max-width: 26rem; }
.calendrier-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.calendrier-tete strong { font-family: var(--titre); font-size: 1.15rem; }
.calendrier-tete strong::first-letter, .jour-rdv::first-letter, #jour-titre::first-letter { text-transform: uppercase; }
.calendrier-tete button { background: none; border: 1.5px solid var(--trait); border-radius: 8px; width: 2.6rem; height: 2.6rem; font-size: 1.2rem; cursor: pointer; color: var(--encre); }
.calendrier-tete button[disabled] { opacity: .35; cursor: default; }
.grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; text-align: center; }
.grille .jsem { font-family: var(--titre); font-size: .8rem; color: var(--crayon); padding-bottom: .2rem; }
.grille button, .grille span.vide {
  aspect-ratio: 1; border-radius: 8px; font-family: var(--titre); font-size: 1rem; display: grid; place-items: center;
}
.grille button { border: 1.5px solid var(--bleu); background: #f5f8ff; color: var(--bleu-fonce); font-weight: 700; cursor: pointer; }
.grille button[aria-pressed=true] { background: var(--bleu); color: #fff; }
.grille span.vide { color: #a3abb9; }
.heures { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); gap: .5rem; max-width: 36rem; margin-top: 1rem; }
.heures button { font-family: var(--titre); font-weight: 700; font-size: 1rem; padding: .65rem 0; border-radius: 8px; border: 1.5px solid var(--trait); background: var(--papier); color: var(--encre); cursor: pointer; }
.heures button:hover { border-color: var(--bleu); }
.heures button[aria-pressed=true] { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.choix-creneau { display: grid; gap: 1.5rem 3rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); align-items: start; }
.recap { background: var(--brouillon); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1.4rem; max-width: 40rem; }
.recap strong { font-family: var(--titre); }
.formulaire { max-width: 40rem; }
.confirmation { max-width: 40rem; }
.lien-gestion { display: flex; gap: .5rem; flex-wrap: wrap; }
.lien-gestion input { flex: 1 1 16rem; font-size: .9rem; }

/* ---------- Espace de Lina ---------- */
.espace { padding-block: 2rem 4rem; }
.onglets { display: flex; gap: .4rem; flex-wrap: wrap; border-bottom: 1px solid var(--trait); margin-bottom: 1.6rem; }
.onglets button { font-family: var(--titre); font-weight: 700; font-size: 1rem; background: none; border: 0; border-bottom: 3px solid transparent; padding: .7rem .9rem; cursor: pointer; color: var(--crayon); }
.onglets button[aria-selected=true] { color: var(--encre); border-bottom-color: var(--bleu); }
.bascule { display: inline-flex; border: 1.5px solid var(--trait); border-radius: 10px; overflow: hidden; margin-bottom: 1.2rem; }
.bascule button { font-family: var(--titre); background: var(--papier); border: 0; padding: .55rem 1rem; cursor: pointer; color: var(--encre); }
.bascule button[aria-pressed=true] { background: var(--encre); color: #fff; }
.jour-rdv { font-family: var(--titre); font-size: 1.1rem; margin: 1.6rem 0 .6rem; }
.rdv { border: 1.5px solid var(--trait); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: .8rem; max-width: 46rem; }
.rdv.annule { opacity: .7; background: var(--brouillon); }
.rdv-tete { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; justify-content: space-between; }
.rdv-tete strong { font-family: var(--titre); font-size: 1.1rem; }
.etat { font-family: var(--titre); font-size: .85rem; padding: .1rem .55rem; border-radius: 999px; background: #e8f5ee; color: #0e5a3c; }
.etat.annule { background: #fbeceb; color: #7d1a14; }
.rdv dl { display: grid; grid-template-columns: max-content 1fr; gap: .15rem 1rem; margin: .7rem 0; font-size: 1rem; }
.rdv dt { color: var(--crayon); }
.rdv dd { margin: 0; overflow-wrap: anywhere; }
.rdv .actions-rdv { display: flex; gap: .6rem; flex-wrap: wrap; }
.semaine-type { display: grid; gap: .8rem; max-width: 46rem; }
.jour-dispo { display: grid; grid-template-columns: 7rem 1fr; gap: .6rem 1rem; align-items: start; padding: .8rem 0; border-bottom: 1px solid var(--trait); }
.jour-dispo > strong { font-family: var(--titre); padding-top: .6rem; }
.plages { display: grid; gap: .5rem; }
.plage { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.plage input { width: 8rem; }
.lien-texte { background: none; border: 0; color: var(--bleu); font: inherit; font-family: var(--titre); cursor: pointer; padding: .3rem 0; text-decoration: underline; text-underline-offset: .18em; justify-self: start; }
.lien-texte.danger { color: var(--erreur); }
.bloque { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .5rem; align-items: end; padding: .6rem 0; border-bottom: 1px solid var(--trait); max-width: 46rem; }
@media (max-width: 30rem) { .jour-dispo { grid-template-columns: 1fr; } .jour-dispo > strong { padding-top: 0; } }
