/* Léa Hayoun, psychologue — feuille de style */

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --brume: #eef3f7;     /* fond de page, bleu très pâle */
  --papier: #ffffff;    /* surfaces */
  --ciel: #d6e3ed;      /* teintes, filets */
  --lac: #4a6e8c;       /* bleu doux : liens, boutons */
  --lac-fonce: #3a5a75; /* survol */
  --encre: #1f3347;     /* texte */
  --encre-douce: #4b5d6e;
  --lin: #f1e9de;       /* bande chaude, infos pratiques */

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --mesure: 66ch;
  --large: 1120px;
  --gouttiere: clamp(1rem, 4vw, 2.5rem);
  --rythme: clamp(4rem, 9vw, 7.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--brume);
  color: var(--encre);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 0.3vw + 1rem, 1.15rem);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--lac); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--lac-fonce); text-decoration-thickness: 2px; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 420;
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 2.4vw + 1rem, 2.75rem); }
h3 { font-size: clamp(1.3rem, 0.6vw + 1.1rem, 1.55rem); }

p { margin: 0 0 1.1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

.lien-evitement {
  position: absolute; left: -999px; top: 0;
  background: var(--encre); color: var(--papier); padding: 0.6rem 1rem; z-index: 10;
}
.lien-evitement:focus { left: 1rem; top: 1rem; }

.conteneur {
  width: 100%;
  max-width: var(--large);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}
.mesure { max-width: var(--mesure); }

/* ---------- En-tête ---------- */
.entete {
  padding-block: 1.25rem;
}
.entete .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}
.marque {
  text-decoration: none;
  color: var(--encre);
  display: grid;
  line-height: 1.2;
}
.marque:hover { color: var(--encre); }
.marque-nom { font-family: var(--serif); font-size: 1.45rem; font-weight: 450; }
.marque-titre { font-size: 0.86rem; color: var(--encre-douce); }

.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1.6rem;
}
.nav a {
  color: var(--encre);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding-block: 0.3rem;
  border-bottom: 1.5px solid transparent;
}
.nav a:hover { border-bottom-color: var(--lac); color: var(--encre); }
.nav a[aria-current="page"] { border-bottom-color: var(--encre); }
.nav .bouton { border-bottom: 0; }

@media (max-width: 720px) {
  .entete .conteneur { flex-direction: column; align-items: flex-start; }
  .nav ul { gap: 0.35rem 1.2rem; }
  .nav .nav-rdv { display: none; } /* le bouton reste dans le contenu de chaque page */
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-block;
  background: var(--lac);
  color: var(--papier);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.bouton:hover { background: var(--lac-fonce); color: var(--papier); }
.nav .bouton { padding: 0.65rem 1.2rem; font-size: 0.95rem; color: var(--papier); }
.nav .bouton:hover { color: var(--papier); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}
.lien-secondaire { font-weight: 500; }

/* ---------- Accueil : seuil ---------- */
.seuil {
  position: relative;
  padding-block: clamp(2rem, 6vw, 4.5rem) var(--rythme);
  overflow: hidden;
  isolation: isolate;
}
.seuil-grille {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}
.seuil h1 { margin-bottom: 1.4rem; }
.h1-nom {
  display: block;
  font-size: clamp(2.9rem, 5.5vw + 0.8rem, 5rem);
  font-weight: 380;
  letter-spacing: -0.022em;
  line-height: 1;
}
.h1-titre {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--sans);
  font-size: clamp(1.05rem, 0.4vw + 0.95rem, 1.2rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--lac);
}
.chapeau {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 1.2vw + 1.1rem, 1.95rem);
  font-weight: 360;
  line-height: 1.32;
  letter-spacing: -0.005em;
  max-width: 30ch;
  margin-bottom: 1.1rem;
}
.seuil-texte > p:not(.chapeau) { max-width: 46ch; color: var(--encre-douce); }

.reperes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ciel);
  font-size: 0.95rem;
  color: var(--encre-douce);
}
.reperes strong { color: var(--encre); font-weight: 600; }

/* Portrait en forme d'arche : un seuil, un passage */
.arche {
  margin: 0;
  position: relative;
  justify-self: end;
  width: min(100%, 420px);
  isolation: isolate;
}
.arche img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 50% 50% 1.25rem 1.25rem / 40% 40% 1.25rem 1.25rem;
  background: var(--ciel);
}
.arche::before {
  content: "";
  position: absolute;
  inset: -0.9rem -0.9rem auto auto;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1.5px solid var(--lac);
  opacity: 0.35;
  border-radius: 50% 50% 1.25rem 1.25rem / 40% 40% 1.25rem 1.25rem;
  z-index: -1;
}

/* La ligne de passage, tracée une seule fois au chargement */
.trace {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}
.trace path {
  fill: none;
  stroke: var(--ciel);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;
  animation: tracer 2.8s cubic-bezier(.45,.05,.25,1) 0.3s forwards;
}
@keyframes tracer { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .trace path { animation: none; stroke-dashoffset: 0; }
}

@media (max-width: 820px) {
  .seuil-grille { grid-template-columns: 1fr; }
  .arche { order: -1; justify-self: start; width: min(62vw, 280px); margin-left: 0.9rem; margin-top: 0.9rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--rythme); }
.section + .section { padding-top: 0; }
.section-intro { max-width: 58ch; color: var(--encre-douce); font-size: 1.08em; }

.bande-papier { background: var(--papier); }
.bande-lin { background: var(--lin); }
.section.bande-papier, .section.bande-lin,
.bande-papier + .section, .bande-lin + .section { padding-top: var(--rythme); }

/* Motifs de consultation : trois familles */
.motifs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem clamp(1.5rem, 3.5vw, 3rem);
  margin-top: 3rem;
}
.motif {
  border-top: 1.5px solid var(--encre);
  padding-top: 1.25rem;
}
.motif h3 { margin-bottom: 0.9rem; }
.motif ul { list-style: none; }
.motif li {
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--ciel);
  color: var(--encre-douce);
  line-height: 1.45;
}
.motif li:last-child { border-bottom: 0; }
@media (max-width: 860px) { .motifs { grid-template-columns: 1fr; } }

/* Deux colonnes : titre / texte */
.deux-colonnes {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1.5rem clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.deux-colonnes h2 { margin-bottom: 0; }
@media (max-width: 820px) { .deux-colonnes { grid-template-columns: 1fr; } }

.citation {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 0.8vw + 1.05rem, 1.6rem);
  line-height: 1.4;
  font-weight: 380;
  margin: 0 0 1.25rem;
}

/* Étapes : une vraie séquence */
.etapes {
  list-style: none;
  counter-reset: etape;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem clamp(1.25rem, 3vw, 2.5rem);
  margin-top: 3rem;
}
.etapes li { counter-increment: etape; }
.etapes li::before {
  content: counter(etape);
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1.5px solid var(--lac);
  color: var(--lac);
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.etapes h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.etapes p { color: var(--encre-douce); font-size: 0.98rem; margin: 0; }
@media (max-width: 960px) { .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .etapes { grid-template-columns: 1fr; } }

/* Infos pratiques */
.infos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0;
  margin: 2.5rem 0 1.5rem;
  border-top: 1px solid rgba(31, 51, 71, 0.18);
}
.infos div {
  padding: 1.1rem 1.5rem 1.1rem 0;
  border-bottom: 1px solid rgba(31, 51, 71, 0.18);
}
.infos dt { font-size: 0.92rem; color: var(--encre-douce); }
.infos dd { margin: 0.15rem 0 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; }

/* Appel final */
.appel { text-align: left; }
.appel .conteneur > * { max-width: 40rem; }
.appel p { color: var(--encre-douce); }

/* ---------- Pages intérieures ---------- */
.page-tete { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-tete h1 { font-size: clamp(2.5rem, 4vw + 1rem, 4rem); font-weight: 380; }
.page-tete .chapeau { max-width: 38ch; }

.texte { max-width: var(--mesure); }
.texte h2 { margin-top: 0; }
.texte p, .texte li { color: var(--encre); }
.texte ul.liste { list-style: none; margin: 0 0 1.5em; }
.texte ul.liste li {
  padding: 0.7rem 0 0.7rem 1.4rem;
  border-bottom: 1px solid var(--ciel);
  position: relative;
}
.texte ul.liste li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.35rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--lac);
  opacity: 0.6;
}
.texte ul.liste li strong { font-weight: 600; }
.bloc + .bloc { margin-top: clamp(3rem, 6vw, 4.5rem); }

.parcours-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.parcours-grille .arche { justify-self: start; width: 100%; position: sticky; top: 2rem; }
@media (max-width: 860px) {
  .parcours-grille { grid-template-columns: 1fr; }
  .parcours-grille .arche { order: -1; width: min(60vw, 240px); position: relative; margin: 0.9rem 0 1rem 0.9rem; }
}

/* Tarifs */
.tarifs { margin: 1.5rem 0; border-top: 1.5px solid var(--encre); }
.tarifs div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--ciel);
}
.tarifs dt { color: var(--encre-douce); }
.tarifs dd { margin: 0; font-weight: 600; text-align: right; }

/* Questions fréquentes */
.faq { border-top: 1.5px solid var(--encre); }
.faq details { border-bottom: 1px solid var(--ciel); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.35;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 1rem;
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--lac);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 1.25rem; }
.faq details p:last-child { margin-bottom: 0; }

/* Urgence */
.urgence {
  background: var(--papier);
  border-left: 3px solid var(--lac);
  padding: 1.25rem 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
}
.urgence h2, .urgence h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.urgence p { margin: 0; color: var(--encre-douce); }
.urgence strong { color: var(--encre); }

/* ---------- Formulaire ---------- */
.contact-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 860px) { .contact-grille { grid-template-columns: 1fr; } }

.formulaire {
  background: var(--papier);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 1rem;
}
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.champ { display: grid; gap: 0.4rem; }
.champ-large { grid-column: 1 / -1; }
@media (max-width: 560px) { .champs { grid-template-columns: 1fr; } }

.champ label { font-weight: 500; font-size: 0.97rem; }
.champ .aide { font-weight: 400; color: var(--encre-douce); }
.champ input, .champ textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--encre);
  background: var(--brume);
  border: 1.5px solid transparent;
  border-radius: 0.6rem;
  padding: 0.8rem 0.9rem;
  width: 100%;
}
.champ textarea { min-height: 9rem; resize: vertical; }
.champ input:focus, .champ textarea:focus {
  outline: none;
  border-color: var(--lac);
  background: var(--papier);
}
.formulaire .bouton { margin-top: 1.5rem; }
.mention { font-size: 0.88rem; color: var(--encre-douce); margin: 1rem 0 0; }
.cache { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.coordonnees h2 { font-size: 1.5rem; }
.coordonnees p { color: var(--encre-douce); }
.coordonnees .courriel { font-size: 1.1rem; font-weight: 600; word-break: break-word; }
.coordonnees .urgence { margin-top: 2rem; }

/* ---------- Pied de page ---------- */
.pied {
  background: var(--encre);
  color: #d9e3ec;
  padding-block: 3.5rem 2rem;
  font-size: 0.95rem;
}
.pied a { color: #ffffff; }
.pied a:hover { color: #ffffff; }
.pied-grille {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 760px) { .pied-grille { grid-template-columns: 1fr; } }
.pied-nom { font-family: var(--serif); font-size: 1.5rem; color: #ffffff; margin-bottom: 0.3rem; }
.pied p { margin: 0 0 0.35rem; }
.pied ul { list-style: none; display: grid; gap: 0.35rem; }
.pied-bas {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: 0.88rem;
  color: #b6c5d3;
}
.pied-bas p { margin: 0; max-width: 70ch; }
.pied-bas strong { color: #ffffff; font-weight: 600; }

/* Mentions légales */
.legal h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--encre-douce); }
.legal ul { padding-left: 1.2rem; margin-bottom: 1em; }

/* Colonne de texte alignée à gauche sur la grille de la page */
.conteneur.texte { max-width: var(--large); }
.conteneur.texte > * { max-width: var(--mesure); }
.page-tete + .section:not(.bande-papier) { padding-top: 0; }
