/* Site du cabinet - Aïda Sebaa, neuropsychologue
   Polices système (aucun appel à un service extérieur), texte aligné à gauche,
   contrastes AA vérifiés sur les couleurs ci-dessous. */

:root {
  --fond: #fffdf9;
  --fond-doux: #f6efe7;
  --texte: #24211f;
  --texte-doux: #5a524c;
  --accent: #a3461b;        /* terracotta : 5,9:1 sur blanc */
  --accent-fonce: #7d3412;
  --vert: #3f5f3a;          /* rappel des plantes */
  --bord: #e4d9cd;
  --largeur: 68rem;
  --rayon: 14px;
}

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

html { font-size: 100%; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  text-align: left;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-fonce); }

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

.evitement {
  position: absolute; left: -9999px; top: 0;
  background: var(--texte); color: #fff; padding: 0.6rem 1rem; z-index: 10;
}
.evitement:focus { left: 1rem; top: 1rem; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 1rem; }

/* En-tête */
.entete { border-bottom: 1px solid var(--bord); background: var(--fond); }
.entete .conteneur {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem;
}
.marque { text-decoration: none; color: var(--texte); line-height: 1.25; }
.marque strong { display: block; font-size: 1.25rem; }
.marque span { color: var(--texte-doux); font-size: 0.95rem; }

.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; }
.menu a { color: var(--texte); text-decoration: none; font-size: 1rem; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.menu a:hover { border-bottom-color: var(--bord); }
.menu a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 600; }

/* Boutons */
.bouton {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; padding: 0.8rem 1.4rem; border-radius: 999px; line-height: 1.3;
}
.bouton:hover { background: var(--accent-fonce); color: #fff; }
.bouton.secondaire { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.bouton.secondaire:hover { background: var(--fond-doux); color: var(--accent-fonce); }

/* Accueil */
.accroche { padding: 3rem 0; }
.accroche .conteneur { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; }
.accroche h1 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.15; margin: 0 0 1rem; }
.accroche .chapeau { font-size: 1.25rem; color: var(--texte-doux); margin: 0 0 1.75rem; }
.accroche .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.accroche figure { margin: 0; }
.accroche img { border-radius: var(--rayon); box-shadow: 0 10px 30px rgba(60, 40, 20, 0.12); }

/* Titres de page intérieure */
.titre-page { background: var(--fond-doux); padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--bord); }
.titre-page h1 { margin: 0; font-size: clamp(1.9rem, 3.5vw, 2.5rem); line-height: 1.2; }
.titre-page p { margin: 0.6rem 0 0; color: var(--texte-doux); font-size: 1.2rem; max-width: 46rem; }

/* Contenu */
main { padding-bottom: 3rem; }
.section { padding-top: 2.5rem; padding-bottom: 0.5rem; }
.texte { max-width: 46rem; }
.conteneur.texte { max-width: var(--largeur); }
.conteneur.texte > * { max-width: 46rem; }
h2 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 0.9rem; }
h3 { font-size: 1.25rem; line-height: 1.3; margin: 1.6rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: 0.35rem; }

.bande { background: var(--fond-doux); margin-top: 2.5rem; padding: 0.5rem 0 1.5rem; }

.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; margin-top: 1rem; }
.cartes.quatre { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.carte { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.4rem 1.5rem; }
.carte h3 { margin-top: 0; }
.carte p:last-child { margin-bottom: 0; }

.etapes { list-style: none; padding: 0; }
.etapes li { position: relative; padding: 0 0 1.1rem 4rem; margin: 0; }
.etapes li::before {
  content: attr(data-rdv); position: absolute; left: 0; top: 0;
  min-width: 2.4rem; height: 2.4rem; padding: 0 0.5rem; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}
.etapes li.sans-numero::before { content: "✎"; background: var(--vert); }

.encadre {
  border-left: 5px solid var(--vert); background: #fff; padding: 1rem 1.25rem;
  border-radius: 0 var(--rayon) var(--rayon) 0; margin: 1.25rem 0;
}
.encadre p:last-child { margin-bottom: 0; }

.prix { font-size: 1.5rem; font-weight: 700; color: var(--accent-fonce); }

.liste-formation { list-style: none; padding: 0; }
.liste-formation li { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--bord); margin: 0; }
.liste-formation .annee { font-weight: 700; color: var(--accent-fonce); }

.petit { font-size: 0.95rem; color: var(--texte-doux); }

.a-venir { color: var(--texte-doux); font-style: italic; }

.coordonnees { list-style: none; padding: 0; }
.coordonnees li { margin-bottom: 0.6rem; }

/* Pied de page */
.pied { border-top: 1px solid var(--bord); background: var(--fond-doux); padding: 2rem 0; font-size: 0.95rem; color: var(--texte-doux); }
.pied .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.pied p { margin: 0 0 0.3rem; }
.pied ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; }
.pied a { color: var(--texte); }

/* Téléphone */
@media (max-width: 760px) {
  body { font-size: 1.0625rem; }
  .accroche { padding: 1.75rem 0; }
  .accroche .conteneur { grid-template-columns: 1fr; gap: 1.5rem; }
  .accroche figure { order: -1; }
  .accroche img { max-height: 22rem; width: 100%; object-fit: cover; object-position: center 30%; }
  .menu ul { gap: 0.15rem 0.9rem; }
  .liste-formation li { grid-template-columns: 3.4rem 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
