/* ==========================================================================
   Marie-Laetitia Melliand — Graphothérapeute
   Feuille de style unique. Aucune ressource externe (pas de Google Fonts,
   pas de CDN) : le site ne dépose aucun cookie et n'appelle aucun tiers.
   ========================================================================== */

:root {
  --papier:        #fbf8f3;
  --papier-fonce:  #f2ece1;
  --encre:         #23384f;
  --encre-claire:  #4d637c;
  /* Couleurs vérifiées WCAG AA (>= 4.5:1 sur les fonds papier, crème et blanc). */
  --accent:        #a8502c;   /* terre cuite — 5.15:1 sur papier */
  --accent-fonce:  #8f4522;   /* survol — 6.52:1 */
  --accent-clair:  #f6e6de;
  --sauge:         #6f8b6e;   /* filets décoratifs uniquement, jamais du texte */
  --sauge-fonce:   #4f6b4e;   /* texte — 5.59:1 sur papier */
  --sauge-clair:   #e6ede4;
  --seyes:         #cddced;   /* bleu des lignes de cahier */
  --blanc:         #ffffff;
  --bordure:       #e3dbcd;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --largeur: 68rem;
  --texte:   38rem;
  --rayon:   14px;
  --ombre:   0 1px 2px rgba(35, 56, 79, .05), 0 8px 24px -12px rgba(35, 56, 79, .18);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--encre); }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.015em; margin: 0 0 .6em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 2.6em 0 .7em; }
h3 { font-size: 1.2rem; margin: 2em 0 .4em; }
p, li { max-width: var(--texte); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--encre); }

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

.saut-contenu {
  position: absolute; left: -9999px;
  background: var(--encre); color: var(--papier);
  padding: .7rem 1.1rem; border-radius: 0 0 var(--rayon) 0; z-index: 50;
}
.saut-contenu:focus { left: 0; top: 0; }

.conteneur { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: 1.35rem; }

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

.entete {
  border-bottom: 1px solid var(--bordure);
  background: rgba(251, 248, 243, .92);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 40;
}
.entete__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 2rem;
  padding-block: .85rem;
}
.marque { display: flex; align-items: baseline; gap: .55rem; text-decoration: none; color: inherit; }
.marque__nom { font-family: var(--serif); font-size: 1.16rem; font-weight: 600; letter-spacing: -.01em; }
.marque__role { font-size: .78rem; color: var(--encre-claire); text-transform: uppercase; letter-spacing: .09em; }

.nav { margin-left: auto; }
.nav ul {
  display: flex; flex-wrap: wrap; gap: .15rem .35rem;
  list-style: none; margin: 0; padding: 0;
}
.nav li { max-width: none; }
.nav a {
  display: block; padding: .38rem .68rem; border-radius: 999px;
  color: var(--encre-claire); text-decoration: none; font-size: .94rem;
}
.nav a:hover { background: var(--papier-fonce); color: var(--encre); }
.nav a[aria-current="page"] { background: var(--encre); color: var(--papier); }

@media (max-width: 46rem) {
  .entete { position: static; }
  .entete__inner { padding-block: .9rem .35rem; }
  .marque { flex-direction: column; gap: 0; }
  .nav { margin-left: 0; width: 100%; }
  .nav ul { gap: .1rem; }
  /* Cibles tactiles d'au moins 44 px de haut (WCAG 2.5.8). */
  .nav a {
    display: flex; align-items: center;
    min-height: 44px; padding: .35rem .7rem; font-size: .92rem;
  }
}

/* ------------------------------------------------------------------ Hero */

.hero { padding-block: clamp(2.5rem, 7vw, 4.5rem) 1rem; }
.hero__grille {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
}
@media (max-width: 52rem) { .hero__grille { grid-template-columns: 1fr; } }

.surtitre {
  display: inline-block; margin-bottom: 1.1rem;
  font-size: .8rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--sauge-fonce); font-weight: 600;
}
.chapeau { font-size: 1.16rem; color: var(--encre-claire); max-width: 34rem; }

/* Portrait : cadre organique (jamais un rectangle) */
.portrait { position: relative; margin: 0; }
.portrait::before {
  content: ""; position: absolute; inset: -16px -12px 8px -16px;
  background: var(--sauge-clair);
  border-radius: 54% 46% 38% 62% / 42% 58% 42% 58%;
}
.portrait img {
  position: relative; display: block; width: 100%; height: auto;
  aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 62% 38% 46% 54% / 47% 55% 45% 53%;
  border: 7px solid var(--blanc);
  box-shadow: var(--ombre);
}
@media (max-width: 52rem) {
  .portrait { max-width: 21rem; margin-inline: auto; }
}

/* Logos : formation et fédération */
.logos {
  list-style: none; padding: 0; margin: 1.7rem 0 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem;
}
.logos li { max-width: none; margin: 0; }
.logos img { display: block; width: auto; height: 68px; }
.logos a {
  display: inline-block; padding: .6rem .75rem;
  background: var(--blanc); border: 1px solid var(--bordure);
  border-radius: 12px; box-shadow: var(--ombre);
}
.logos a:hover { border-color: var(--encre-claire); }

/* --------------------------------------------------------------- Boutons */

.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.bouton {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .78rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1.5px solid transparent; transition: transform .15s ease, box-shadow .15s ease;
}
.bouton--plein { background: var(--accent); color: var(--blanc); box-shadow: var(--ombre); }
.bouton--plein:hover { background: var(--accent-fonce); color: var(--blanc); transform: translateY(-1px); }
.bouton--vide { border-color: var(--bordure); color: var(--encre); background: var(--blanc); }
.bouton--vide:hover { border-color: var(--encre-claire); color: var(--encre); transform: translateY(-1px); }

/* --------------------------------------------------------------- Sections */

.section { padding-block: clamp(2.2rem, 6vw, 4rem); }
.section--creme { background: var(--papier-fonce); border-block: 1px solid var(--bordure); }
.section > .conteneur > h2:first-child { margin-top: 0; }

.entete-section { max-width: 42rem; margin-bottom: 2rem; }
.entete-section h2 { margin-top: 0; }
.entete-section p { color: var(--encre-claire); }

/* ------------------------------------------------------------------ Cartes */

.grille { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); }
.grille p, .grille li { max-width: none; }

.carte {
  background: var(--blanc); border: 1px solid var(--bordure);
  border-radius: var(--rayon); padding: 1.4rem 1.35rem;
  box-shadow: var(--ombre);
}
.carte h3 { margin-top: 0; font-size: 1.08rem; }
.carte p:last-child { margin-bottom: 0; }
.carte__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; margin-bottom: .8rem;
  border-radius: 50%; background: var(--accent-clair); color: var(--accent-fonce);
  font-family: var(--serif); font-weight: 700; font-size: 1rem;
}

/* ------------------------------------------------------- Liste de signes */

.signes { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.signes li {
  max-width: none; position: relative; padding: .7rem .9rem .7rem 2.4rem;
  background: var(--blanc); border: 1px solid var(--bordure); border-radius: 10px;
  line-height: 1.5;
}
.signes li::before {
  content: ""; position: absolute; left: .95rem; top: 1.28rem;
  width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--accent);
}

/* Liste à puces classique un peu adoucie */
.liste-cochee { list-style: none; padding-left: 0; }
.liste-cochee li { position: relative; padding-left: 1.7rem; margin-bottom: .5rem; }
.liste-cochee li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: .75rem; height: .42rem; border-left: 2px solid var(--sauge);
  border-bottom: 2px solid var(--sauge); transform: rotate(-45deg);
}

/* ------------------------------------------------------------------ Encart */

.encart {
  border-left: 4px solid var(--sauge);
  background: var(--sauge-clair);
  padding: 1.1rem 1.3rem; border-radius: 0 10px 10px 0;
  margin: 2rem 0; max-width: 42rem;
}
.encart p { margin: 0; max-width: none; }
.encart p + p { margin-top: .7rem; }

.avert {
  border-left-color: var(--accent); background: var(--accent-clair);
}

/* ------------------------------------------------------------------ Tarifs */

.tarifs { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.tarif {
  background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon);
  padding: 1.5rem 1.4rem; box-shadow: var(--ombre); display: flex; flex-direction: column;
}
.tarif h3 { margin: 0 0 .2rem; font-size: 1.1rem; }
.tarif__prix {
  font-family: var(--serif); font-size: 2.4rem; font-weight: 600;
  color: var(--accent); line-height: 1.1; margin: .5rem 0 .1rem;
}
.tarif__unite { font-size: .87rem; color: var(--encre-claire); margin: 0 0 .9rem; max-width: none; }
.tarif p { max-width: none; font-size: .96rem; }
.tarif p:last-child { margin-bottom: 0; }
.tarif--vedette { border-color: var(--accent); border-width: 1.5px; }

/* ------------------------------------------------------------------ Contact */

/* Coordonnées + portrait compact côte à côte : la photo met un visage sur la
   voix qu'on s'apprête à appeler. Sous 34 rem la colonne est trop étroite pour
   deux blocs : le portrait passe alors au-dessus, centré. */
.coordonnees-bloc {
  display: flex; align-items: flex-start; gap: 1.6rem; flex-wrap: wrap;
}
.coordonnees-bloc .coordonnees { flex: 1 1 12rem; }
.portrait--mini { flex: 0 0 8.5rem; width: 8.5rem; margin-top: .3rem; }
@media (max-width: 34rem) {
  .coordonnees-bloc { gap: 1rem; }
  .portrait--mini { flex-basis: 7rem; width: 7rem; margin-inline: auto; }
}

.coordonnees { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.coordonnees li { max-width: none; margin-bottom: .9rem; }
.coordonnees a { font-size: 1.12rem; font-weight: 600; text-decoration: none; }
.coordonnees a:hover { text-decoration: underline; }
.coordonnees span { display: block; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .09em; color: var(--encre-claire); }

/* Utilitaires d'espacement — la CSP (style-src 'self') bloque les attributs style= */
.sans-marge-haut     { margin-top: 0; }
.marge-haut          { margin-top: 1.6rem; }
.marge-haut--petite  { margin-top: 1.2rem; }
.marge-haut--moyenne { margin-top: 2.5rem; }
.marge-haut--grande  { margin-top: 3rem; }
.marge-bas           { margin-bottom: 1.1rem; }
.page-etroite        { padding-block: 3rem 5rem; }
/* valeur de coordonnée en casse normale (le libellé, lui, reste en capitales) */
.coordonnees .valeur-libre {
  text-transform: none; letter-spacing: normal; color: inherit; font-size: 1rem;
}

.carte-lieu {
  display: block; margin: 0; border: 1px solid var(--bordure); border-radius: var(--rayon);
  overflow: hidden; background: var(--blanc); box-shadow: var(--ombre);
}
/* Sous 600 px la carte deviendrait illisible en se réduisant : on la laisse à sa
   taille minimale et on autorise un défilement horizontal sur ce bloc seulement. */
.carte-lieu__cadre { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.carte-lieu iframe { display: block; width: 100%; min-width: 34rem; height: 26rem; border: 0; }
.carte-lieu__adresse {
  font-style: normal; font-weight: 600; color: var(--encre);
  margin-bottom: .5rem; line-height: 1.45;
}
.carte-lieu__legende {
  display: block;
  padding: .8rem 1.1rem; border-top: 1px solid var(--bordure);
  font-size: .9rem; color: var(--encre-claire);
}


/* ------------------------------------------------------------------ Bandeau */

.bandeau {
  background: var(--encre); color: var(--papier);
  border-radius: var(--rayon); padding: clamp(1.8rem, 5vw, 3rem);
  text-align: center;
}
.bandeau h2 { color: var(--papier); margin: 0 0 .5rem; }
.bandeau p { color: #c3d1e0; margin-inline: auto; }
.bandeau .actions { justify-content: center; }
.bandeau .bouton--vide { background: transparent; color: var(--papier); border-color: #52697f; }
.bandeau .bouton--vide:hover { border-color: var(--papier); color: var(--papier); }

/* --------------------------------------------------------------- Pied de page */

.pied {
  margin-top: 3.5rem; border-top: 1px solid var(--bordure);
  background: var(--papier-fonce); padding-block: 2.5rem 1.5rem;
  font-size: .93rem;
}
.pied__grille { display: grid; gap: 1.8rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.pied h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em;
  font-family: var(--sans); color: var(--encre-claire); margin: 0 0 .7rem; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { max-width: none; margin-bottom: .35rem; }
.pied a { color: var(--encre); text-decoration: none; }
.pied a:hover { color: var(--accent); text-decoration: underline; }
.pied p { max-width: none; margin: 0 0 .35rem; color: var(--encre-claire); }
.pied__bas {
  margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid var(--bordure);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  color: var(--encre-claire); font-size: .87rem;
}

/* --------------------------------------------------------------- Divers */

.fil { font-size: .87rem; color: var(--encre-claire); padding-top: 1.6rem; }
.fil a { color: var(--encre-claire); }

.page { padding-block: 1rem clamp(1rem, 4vw, 2rem); }
.page h1 { margin-bottom: .3em; }
.page > .conteneur > .chapeau { margin-bottom: 2rem; }

.note { font-size: .92rem; color: var(--encre-claire); }

.deux-colonnes { display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); align-items: start; }
.deux-colonnes > * { min-width: 0; }

/* --------------------------------------------------- Titre à deux niveaux */

.h1__accroche { display: block; }
.h1__precision {
  display: block; margin-top: .35em;
  font-size: clamp(1rem, 2.1vw, 1.32rem); font-weight: 400;
  line-height: 1.35; letter-spacing: 0; color: var(--encre-claire);
}

/* --------------------------------------------------------------------- FAQ */

.faq { margin-top: 1.5rem; max-width: 44rem; }
.faq > div {
  border-top: 1px solid var(--bordure); padding: 1.2rem 0;
}
.faq > div:last-child { border-bottom: 1px solid var(--bordure); }
.faq h3 { margin: 0 0 .4rem; font-size: 1.12rem; }
.faq p { margin: 0; }
.faq p + p { margin-top: .6rem; }

/* ------------------------------------------------------ Zone d'intervention */

.communes {
  list-style: none; padding: 0; margin: 1.2rem 0 0;
  display: flex; flex-wrap: wrap; gap: .45rem;
}
.communes li {
  max-width: none; padding: .3rem .8rem; border-radius: 999px;
  background: var(--blanc); border: 1px solid var(--bordure);
  font-size: .93rem; color: var(--encre-claire);
}

/* ------------------------------------------------ Utilitaires accessibilité */

/* Visible uniquement pour les lecteurs d'écran. */
.lecteur-ecran-seul {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Marqueur temporaire : tout ce qui reste à compléter avant la mise en ligne.
   Chercher « a-completer » dans le projet, remplir, puis supprimer la balise.
   Voir README.md. */
.a-completer {
  background: #ffe9a8; border-bottom: 2px dotted #b58900;
  padding: 0 .2em; border-radius: 3px; font-style: normal;
}
