/* ==================================================================
   Flavie Hamon — Version 1 « Plaquette »
   Transposition web directe de la plaquette commerciale : fond bleu
   gris, formes flottantes, grandes cartes arrondies, titres condensés.
   ================================================================== */

/* ------------------------------------------------------------ jetons */
:root {
  /* charte (brand book, p. 12-13) */
  --bordeaux: #54194e;
  --bordeaux-fonce: #320f2f;
  --bordeaux-mid: #43143e;
  --creme: #f3ebf7;
  --bleu-gris: #d3d2ff;
  --bleu-gris-clair: #dcdbff;
  --rouge: #f7583e;
  /* Rouge assombri, pour le rouge employé comme TEXTE ou icône sur fond
     clair : la teinte de la charte n'y dépasse pas 2,8:1. */
  --rouge-encre: #a83318;
  --rose: #f7b2b3;
  --rose-clair: #f9c1c2;
  --violet: #9671ea;

  /* Le violet de la charte ne passe pas le contraste AA sous du texte
     courant en blanc (3,6:1). Cette variante assombrie est réservée aux
     aplats porteurs de texte ; --violet reste l'accent décoratif. */
  --violet-fonce: #7a54c9;

  /* Bordeaux atténué pour les mentions secondaires. Une couleur pleine
     plutôt qu'une opacité : l'opacité fait chuter le contraste sans
     qu'on s'en rende compte. 6,6:1 sur le crème. */
  --encre-douce: #6b4566;

  --rayon-s: .75rem;
  --rayon-m: 1.25rem;
  --rayon-l: 2rem;
  --rayon-xl: 2.75rem;

  --ombre: 0 18px 40px -28px rgba(50, 15, 47, .55);
  --ombre-forte: 0 26px 60px -30px rgba(50, 15, 47, .65);

  --gouttiere: clamp(1.25rem, 4vw, 2.5rem);
  --largeur: 1180px;

  --titre: 'Asap Condensed', 'Asap', system-ui, sans-serif;
  --texte: 'Asap', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  /* le header collant ne doit pas masquer la cible d'une ancre */
  scroll-padding-top: 6.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bleu-gris);
  color: var(--bordeaux);
  font-family: var(--texte);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--titre);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 1.4rem + 3.7vw, 4rem); }
h2 { font-size: clamp(1.85rem, 1.25rem + 2.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.6rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* `ol` inclus : la liste des étapes porte ses propres numéros. */
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

/* Le contour reprend la couleur du texte : il contraste donc avec son
   fond par construction, sur les sections claires comme sur les sombres.
   Une couleur fixe échouait forcément sur l'une des deux. */
:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

.conteneur {
  width: min(100% - 2 * var(--gouttiere), var(--largeur));
  margin-inline: auto;
}

.section { padding-block: clamp(3.5rem, 6vw, 6.5rem); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--bordeaux);
  color: var(--creme);
  border-radius: var(--rayon-s);
  font-weight: 600;
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 1rem; }

/* Repère visuel sur les mentions restant à compléter par la cliente. */
.a-completer {
  background: var(--rose-clair);
  color: var(--bordeaux-fonce);
  padding: 0 .3em;
  border-radius: .25rem;
  font-style: italic;
}

/* ------------------------------------------------------------ boutons */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--texte);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.bouton:hover { transform: translateY(-2px); }
.bouton:active { transform: translateY(0); }

.bouton--primaire {
  background: var(--rouge);
  color: var(--bordeaux-fonce);
  box-shadow: var(--ombre);
}
.bouton--primaire:hover { background: #ff7a63; }

.bouton--fantome {
  background: transparent;
  border-color: var(--bordeaux);
  color: var(--bordeaux);
}
.bouton--fantome:hover { background: var(--bordeaux); color: var(--creme); }

.bouton--large { width: 100%; padding-block: 1.1rem; font-size: 1.0625rem; }
.bouton[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ------------------------------------------------------------ badges */
.badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .3rem .9rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.badge--rouge { background: var(--rouge); color: var(--bordeaux-fonce); }
.badge--violet { background: var(--violet-fonce); color: #fff; }
.badge--creme { background: var(--creme); color: var(--bordeaux); }

/* ------------------------------------------------------------ formes */
.formes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.forme {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  transform: rotate(var(--r));
  opacity: .95;
}
.forme--barre { height: calc(var(--w) * .27); border-radius: 999px; }
.forme--pave  { height: var(--w); border-radius: 34%; }
.forme--hexa  { height: var(--w); clip-path: polygon(25% 2%, 75% 2%, 100% 50%, 75% 98%, 25% 98%, 0 50%); }
.forme--demi  { height: calc(var(--w) / 2); border-radius: 999px 999px 0 0; }

.forme--violet   { background: var(--violet); }
.forme--rouge    { background: var(--rouge); }
.forme--rose     { background: var(--rose); }
.forme--bordeaux { background: var(--bordeaux); }
.forme--creme    { background: var(--creme); }

/* Composition libre, reprise des planches du brand book : les formes se
   chevauchent au lieu de s'aligner sagement. */
.formes--statique {
  position: static;
  display: flex;
  align-items: center;
  margin-top: 2.5rem;
}
.formes--statique .forme { position: static; flex: 0 0 auto; }
.formes--statique .forme + .forme { margin-left: -1.1rem; }

/* Positions du décor. Elles vivaient auparavant dans des attributs
   `style` : les sortir du HTML permet une politique de sécurité de
   contenu sans `unsafe-inline`, et regroupe la composition au même
   endroit que le reste de la mise en page. */
.hero .forme:nth-child(1) { --x: -5%; --y: -4%; --r: -24deg; --w: 210px; }
.hero .forme:nth-child(2) { --x: 33%; --y: -1%; --r: 0deg;   --w: 72px; }
.hero .forme:nth-child(3) { --x: 87%; --y: 3%;  --r: 18deg;  --w: 165px; }
.hero .forme:nth-child(4) { --x: 94%; --y: 46%; --r: 12deg;  --w: 92px; }
.hero .forme:nth-child(5) { --x: 64%; --y: 93%; --r: -14deg; --w: 230px; }
.hero .forme:nth-child(6) { --x: 26%; --y: 94%; --r: 0deg;   --w: 56px; }
.hero .forme:nth-child(7) { --x: 4%;  --y: 93%; --r: -8deg;  --w: 72px; }

.formes--statique .forme:nth-child(1) { --r: -18deg; --w: 150px; }
.formes--statique .forme:nth-child(2) { --r: 130deg; --w: 56px; }
.formes--statique .forme:nth-child(3) { --r: -10deg; --w: 120px; }
.formes--statique .forme:nth-child(4) { --r: 0deg;   --w: 48px; }
.formes--statique .forme:nth-child(5) { --r: 16deg;  --w: 70px; }

/* ------------------------------------------------------------ entête */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(211, 210, 255, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(84, 25, 78, .12);
}

.entete__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
}

.entete__logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  margin-right: auto;
}
.entete__logo img { width: 40px; height: 40px; }
.entete__logo-txt { display: flex; flex-direction: column; line-height: 1.15; }
.entete__logo-txt strong { font-family: var(--titre); font-size: 1.2rem; }
.entete__logo-txt span { font-size: .8125rem; opacity: .8; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav__liste { display: flex; gap: clamp(1rem, 2vw, 1.75rem); }
.nav__liste a {
  text-decoration: none;
  font-weight: 600;
  font-size: .9375rem;
  padding-block: .35rem;
  border-bottom: 2px solid transparent;
}
.nav__liste a:hover,
.nav__liste a.est-actif { border-bottom-color: var(--rouge); }
.nav__cta { padding: .6rem 1.2rem; font-size: .9375rem; }

.burger {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .55rem .9rem;
  background: var(--bordeaux);
  color: var(--creme);
  border: 0;
  border-radius: 999px;
  font-family: var(--texte);
  font-weight: 700;
  font-size: .9375rem;
  cursor: pointer;
}
.burger__trait {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.burger__trait::before,
.burger__trait::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease;
}
.burger__trait::before { top: -6px; }
.burger__trait::after { top: 6px; }
.burger[aria-expanded="true"] .burger__trait { background: transparent; }
.burger[aria-expanded="true"] .burger__trait::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__trait::after { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------ héros */
.hero {
  position: relative;
  /* La marge basse généreuse réserve la bande où respirent les formes. */
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(5rem, 11vw, 8.5rem);
  overflow: hidden;
}

.hero__grille {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
}

.hero__texte h1 { margin-bottom: .5em; }

.chapo {
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin: 1.8rem 0 1.2rem;
}

.hero__meta {
  font-size: .9375rem;
  font-weight: 600;
  opacity: .78;
}

.hero__photo {
  margin: 0;
  position: relative;
}
/* Rappel du bloc coloré décalé derrière les photos de la plaquette. */
.hero__photo::before {
  content: '';
  position: absolute;
  inset: 1.75rem -1.75rem -1.75rem 1.75rem;
  background: var(--rose);
  border-radius: var(--rayon-xl) var(--rayon-xl) var(--rayon-xl) var(--rayon-m);
  z-index: -1;
}
.hero__photo img {
  width: 100%;
  border-radius: var(--rayon-xl) var(--rayon-xl) var(--rayon-xl) var(--rayon-m);
  box-shadow: var(--ombre-forte);
}

/* ------------------------------------------------------------ cartes */
.carte {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: var(--rayon-l);
}
.carte--creme { background: var(--creme); }
.carte--violet { background: var(--violet-fonce); color: #fff; }
.carte--rose { background: var(--rose); }
.carte--rouge { background: var(--rouge); color: var(--bordeaux-fonce); }

/* ------------------------------------------------------------ enjeux */
.enjeux {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: start;
}

.enjeux__constat { border-radius: var(--rayon-xl); }

.enjeux__questions {
  position: relative;
  border-radius: var(--rayon-xl);
  margin-top: 3rem;
}
.pastille {
  position: absolute;
  top: -2.1rem;
  right: 2rem;
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  background: var(--rose);
  color: var(--bordeaux);
  border-radius: 50%;
  font-family: var(--titre);
  font-size: 2.2rem;
  font-weight: 800;
}
.liste-questions li {
  padding: .55rem 0 .55rem 1.5rem;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, .25);
}
.liste-questions li:first-child { border-top: 0; }
.liste-questions li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--rose);
}

/* ------------------------------------------------------------ publics */
.publics {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
}

.publics__liste { display: grid; gap: .75rem; }

.rangee {
  display: grid;
  grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
  align-items: stretch;
  border-radius: var(--rayon-m);
  overflow: hidden;
  box-shadow: var(--ombre);
}
.rangee__titre {
  display: flex;
  align-items: center;
  padding: 1.1rem 1.25rem;
  font-family: var(--titre);
  font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}
.rangee__titre--violet { background: var(--violet-fonce); }
.rangee__titre--bordeaux { background: var(--bordeaux); }
.rangee__titre--rouge { background: var(--rouge); color: var(--bordeaux-fonce); }
.rangee__titre--rose { background: var(--rose); color: var(--bordeaux); }
.rangee__texte {
  padding: 1.1rem 1.25rem;
  background: var(--creme);
  font-size: .9375rem;
}

/* --------------------------------------------------------- profils
   Sélecteur d'entrée : le paragraphe qui suit s'adapte au profil choisi.
   Aucune incidence sur le formulaire, qui reste identique pour tous. */
.profils__intro { max-width: 58ch; }

.profils {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 2.5rem;
}

.profil {
  display: grid;
  gap: .5rem;
  align-content: start;
  padding: 1.6rem 1.5rem;
  background: var(--creme);
  border: 2px solid transparent;
  border-radius: var(--rayon-l);
  box-shadow: var(--ombre);
  font-family: var(--texte);
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease;
}
.profil:hover { transform: translateY(-3px); border-color: var(--violet-fonce); }

.profil__icone {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: .35rem;
  border-radius: 50%;
  background: var(--bleu-gris-clair);
}
.profil__icone svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: var(--bordeaux);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profil__titre {
  font-family: var(--titre);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--bordeaux);
}
.profil__desc { font-size: .9375rem; color: var(--encre-douce); }

/* L'état sélectionné se lit au fond, à la bordure ET à la coche : jamais
   à la seule couleur. */
.profil.est-actif {
  border-color: var(--bordeaux);
  background: var(--bordeaux);
  box-shadow: var(--ombre-forte);
}
.profil.est-actif .profil__titre { color: var(--creme); }
.profil.est-actif .profil__desc { color: rgba(243, 235, 247, .88); }
.profil.est-actif .profil__icone { background: var(--rouge); }
.profil.est-actif .profil__icone svg { stroke: var(--bordeaux-fonce); }
.profil.est-actif .profil__titre::after { content: ' ✓'; color: var(--rose); }

.reponse { margin-top: 1.5rem; }
/* Tant qu'aucun profil n'est choisi, la région live existe mais
   n'occupe aucune place. */
.reponse:empty { display: none; }

.reponse__corps {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--creme);
  border-radius: var(--rayon-xl);
  border-left: 6px solid var(--rouge);
  animation: apparition .35s ease both;
}
@keyframes apparition {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.reponse__sur {
  margin: 0 0 .5rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rouge-encre);
}
.reponse__corps h3 { margin-bottom: .4em; }
.reponse__points { display: grid; gap: .55rem; margin: 1.25rem 0 1.75rem; }
.reponse__points li {
  position: relative;
  padding-left: 1.75rem;
  font-size: .9375rem;
}
.reponse__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .5em;
  width: .8rem;
  height: .8rem;
  border-radius: 50% 50% 50% 2px;
  background: var(--violet-fonce);
  transform: rotate(45deg);
}

/* ------------------------------------------------------- interventions */
.interventions__grille {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 2.5rem;
}
/* Six cartes : on force trois colonnes dès qu'il y a la place, sinon
   `auto-fit` en laisserait deux orphelines sur une quatrième colonne. */
@media (min-width: 900px) {
  .interventions__grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.formats {
  margin-top: 2.5rem;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  background: var(--bleu-gris-clair);
  border-radius: var(--rayon-l);
}
.formats > h3 { margin-bottom: .9em; }
.formats__liste {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.formats__liste li {
  display: grid;
  gap: .1rem;
  padding-left: 1.6rem;
  position: relative;
}
.formats__liste li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: .7rem;
  height: .7rem;
  background: var(--rouge);
  border-radius: 3px;
  transform: rotate(12deg);
}
.formats__liste strong { font-family: var(--titre); font-size: 1.2rem; }
.formats__liste span { font-size: .9375rem; color: var(--encre-douce); }
.formats__note {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(84, 25, 78, .16);
  font-size: .9375rem;
  color: var(--encre-douce);
}

/* ------------------------------------------------------------ étapes */
.etapes {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 2.5rem;
  counter-reset: etape;
}
.etapes li {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--creme);
  border-radius: var(--rayon-l);
  box-shadow: var(--ombre);
}
/* Trait de liaison entre les étapes : le parcours se lit d'un coup
   d'œil. Purement décoratif, retiré dès que la grille se replie. */
@media (min-width: 980px) {
  .etapes li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 3.5rem;
    right: -1rem;
    width: 1rem;
    height: 2px;
    background: var(--violet-fonce);
  }
}
.etapes__num {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--rouge);
  color: var(--bordeaux-fonce);
  font-family: var(--titre);
  font-size: 1.3rem;
  font-weight: 800;
}
.etapes h3 { font-size: 1.2rem; margin-bottom: .35em; }
.etapes p { font-size: .9375rem; color: var(--encre-douce); }

/* Bandeau titre coloré + corps crème : c'est la structure de la
   plaquette, et c'est aussi ce qui garantit un contraste suffisant
   (du texte courant blanc sur le rouge de la charte n'y suffirait pas). */
.interventions__grille .carte {
  padding: 0;
  overflow: hidden;
  background: var(--creme);
  color: var(--bordeaux);
  box-shadow: var(--ombre);
  display: flex;
  flex-direction: column;
}
.interventions__grille h3 {
  margin: 0;
  padding: .9rem 1.25rem;
  color: #fff;
  font-size: 1.35rem;
}
.interventions__grille .carte--violet h3 { background: var(--violet-fonce); }
.interventions__grille .carte--rouge h3 { background: var(--rouge); color: var(--bordeaux-fonce); }
.interventions__grille .carte--rose h3 { background: var(--rose); color: var(--bordeaux); }
.interventions__grille p {
  padding: 1.1rem 1.25rem 1.35rem;
  font-size: .9375rem;
  margin: 0;
}

/* ------------------------------------------------------------ impact */
.section--bordeaux {
  background: var(--bordeaux);
  color: var(--creme);
}
.section--bordeaux h2 { color: var(--creme); }

.impact__grille {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2.5rem;
}
/* Trois aplats distincts plutôt que trois cartes translucides toutes
   identiques : la section entière virait au camaïeu de violet. Les trois
   fonds viennent de la charte et portent tous du texte bordeaux, entre
   7,4:1 et 11,1:1. */
.impact__grille li {
  padding: 1.75rem;
  border-radius: var(--rayon-l);
  color: var(--bordeaux);
}
.impact__grille li:nth-child(1) { background: var(--creme); }
.impact__grille li:nth-child(2) { background: var(--rose); }
.impact__grille li:nth-child(3) { background: var(--bleu-gris); }
.impact__grille h3 { color: var(--bordeaux); }
.impact__grille p { font-size: .9375rem; }

.temoignages {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 3rem;
}
.temoignage {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: .35rem 1.25rem;
  align-items: center;
  margin: 0;
  padding: 1.25rem;
  background: var(--creme);
  color: var(--bordeaux);
  border-radius: var(--rayon-l);
}
.temoignage img {
  width: 110px;
  border-radius: var(--rayon-m);
  background: var(--rose);
}
.temoignage blockquote { margin: 0; }
.temoignage blockquote p {
  font-family: var(--titre);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .4rem;
}
.temoignage blockquote p::before { content: '« '; }
.temoignage blockquote p::after { content: ' »'; }
.temoignage figcaption {
  /* Troisième enfant d'une grille à deux colonnes : sans cette
     contrainte, l'attribution retomberait sous la photo. */
  grid-column: 2;
  font-size: .875rem;
  font-weight: 600;
  opacity: .75;
}

/* ------------------------------------------------------------ secteur */
.secteur {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}

.secteur__poles {
  display: grid;
  gap: .6rem;
  margin: 1.5rem 0;
}
.secteur__poles li {
  position: relative;
  padding-left: 1.9rem;
}
.secteur__poles li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .45em;
  width: .85rem;
  height: .85rem;
  border-radius: 50% 50% 50% 2px;
  background: var(--rouge);
  transform: rotate(45deg);
}
.secteur__ouverture {
  padding: 1rem 1.25rem;
  background: var(--creme);
  border-left: 4px solid var(--violet-fonce);
  border-radius: 0 var(--rayon-s) var(--rayon-s) 0;
  font-size: .9375rem;
}

.secteur__carte { margin: 0; }
/* Le viewBox est calé sur les libellés les plus débordants : rien ne
   sort du cadre, donc rien n'est rogné par l'écrêtage horizontal du
   document sur petit écran. */
.secteur__carte svg { width: 100%; height: auto; }
.secteur__carte figcaption {
  margin-top: 1rem;
  font-size: .8125rem;
  opacity: .75;
  text-align: center;
}

.anneau {
  fill: rgba(243, 235, 247, .55);
  stroke: var(--violet-fonce);
  stroke-width: 2;
  stroke-dasharray: 7 7;
}
.anneau--large { fill: rgba(243, 235, 247, .35); }

/* Légende en HTML plutôt qu'en SVG : les libellés d'anneau se
   superposaient aux villes et au tracé. */
.secteur__legende {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.5rem;
  margin-top: 1rem;
  font-size: .875rem;
  font-weight: 600;
}
.secteur__legende li { display: flex; align-items: center; gap: .5rem; }
.jeton {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px dashed var(--violet-fonce);
  border-radius: 50%;
  background: rgba(243, 235, 247, .35);
}
.jeton--proche { background: rgba(243, 235, 247, .8); }
.ville circle { fill: var(--bordeaux); }
.ville text {
  fill: var(--bordeaux);
  font-family: var(--texte);
  font-size: 14px;
  font-weight: 600;
  text-anchor: middle;
}
.centre circle { fill: var(--rouge-encre); stroke: var(--creme); stroke-width: 4; }
.centre text {
  fill: var(--bordeaux);
  font-family: var(--titre);
  font-size: 22px;
  font-weight: 800;
  text-anchor: middle;
}

/* ------------------------------------------------------------ à propos */
.apropos {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  align-items: start;
}

.apropos__photo { margin: 0; position: relative; }
.apropos__photo::before {
  content: '';
  position: absolute;
  inset: -1.5rem 1.5rem 1.5rem -1.5rem;
  background: var(--rose);
  border-radius: var(--rayon-xl) var(--rayon-m) var(--rayon-xl) var(--rayon-xl);
  z-index: -1;
}
.apropos__photo img {
  width: 100%;
  border-radius: var(--rayon-xl) var(--rayon-m) var(--rayon-xl) var(--rayon-xl);
  box-shadow: var(--ombre);
}

.reperes {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 2rem;
}
.reperes li {
  padding: 1rem 1.1rem;
  background: var(--creme);
  border-radius: var(--rayon-m);
  display: grid;
  gap: .15rem;
}
.reperes strong {
  font-family: var(--titre);
  font-size: 1.35rem;
  color: var(--rouge-encre);
}
.reperes span { font-size: .875rem; }

/* ------------------------------------------------------------ contact */
.section--contact {
  background: linear-gradient(180deg, var(--bleu-gris) 0%, var(--bleu-gris-clair) 100%);
}

.contact {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: start;
}

.contact__intro { position: sticky; top: 6.5rem; }
.contact__intro h2 { font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.3rem); }

.coordonnees { display: grid; gap: .75rem; margin-top: 2rem; }
.coordonnees a,
.coordonnees__attente {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 0;
  padding: .9rem 1.15rem;
  background: var(--creme);
  border-radius: var(--rayon-m);
  text-decoration: none;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease;
}
.coordonnees a:hover { transform: translateX(4px); box-shadow: var(--ombre); }

/* Emplacement réservé, et non un lien : rien à focaliser, aucune
   destination annoncée. Le gris est une couleur pleine et non une
   opacité — à 62 % d'opacité le contraste tombait à 3,9:1. */
.coordonnees__attente { font-weight: 600; color: var(--encre-douce); }
.coordonnees__attente .ico { stroke: var(--encre-douce); }
.coordonnees__attente .ico--plein { fill: var(--encre-douce); stroke: none; }

/* Encore une opacité qui coûtait le contraste : à 65 % le bordeaux
   tombait à 4,2:1 sur le crème. Couleur pleine, et 13 px plutôt que 12. */
.coordonnees__lbl {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--encre-douce);
}
.ico {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--rouge-encre);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico--plein { fill: var(--rouge-encre); stroke: none; }

/* ------------------------------------------------------------ formulaire */
.contact__formulaire { border-radius: var(--rayon-xl); }
.contact__formulaire h3 { margin-bottom: .35em; }
.formulaire__chapo { font-size: .9375rem; opacity: .85; margin-bottom: 2rem; }

.bloc {
  border: 0;
  margin: 2.25rem 0 0;
  padding: 0;
}
.bloc:first-of-type { margin-top: 0; }

/* Pastille plutôt que filet : une bordure de fieldset se ferait couper
   par la légende et le rendu serait bancal. */
.bloc__titre {
  padding: .3rem .95rem;
  border-radius: 999px;
  background: var(--rouge);
  color: var(--bordeaux-fonce);
  font-family: var(--texte);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.bloc__aide {
  font-size: .875rem;
  opacity: .75;
  margin: .5rem 0 1.25rem;
}

.champ { margin-top: 1.1rem; }
.champ:first-of-type { margin-top: 1.25rem; }

.champ > label,
.radios legend {
  display: block;
  margin-bottom: .4rem;
  font-weight: 600;
  font-size: .9375rem;
}

.champ .opt { font-weight: 400; color: var(--encre-douce); }
/* Purement visuel : c'est l'attribut `required` qui porte l'information
   pour les technologies d'assistance. */
.champ .requis { color: #c22a0f; font-weight: 700; }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 2px solid rgba(84, 25, 78, .2);
  border-radius: var(--rayon-s);
  background: #fff;
  color: var(--bordeaux);
  font-family: var(--texte);
  /* 16 px minimum : en dessous, iOS zoome à la mise au point. */
  font-size: 1rem;
  line-height: 1.45;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:hover, select:hover, textarea:hover { border-color: rgba(84, 25, 78, .38); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--violet-fonce);
  box-shadow: 0 0 0 4px rgba(122, 84, 201, .22);
}
textarea { resize: vertical; min-height: 8rem; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2354194e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}
::placeholder { color: rgba(84, 25, 78, .45); opacity: 1; }

.champ-duo {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.champ-duo .champ { margin-top: 1.1rem; }

.radios { border: 0; margin: 0; padding: 0; }
.radios legend { padding: 0; }

.choix {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .6rem .85rem;
  margin-bottom: .4rem;
  background: #fff;
  border: 2px solid rgba(84, 25, 78, .16);
  border-radius: var(--rayon-s);
  font-size: .9375rem;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.choix:hover { border-color: var(--violet-fonce); }
.choix input {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin: .18rem 0 0;
  accent-color: var(--violet-fonce);
}
.choix:has(input:checked) {
  border-color: var(--violet-fonce);
  background: rgba(122, 84, 201, .1);
}

.aide {
  margin: .4rem 0 0;
  font-size: .8125rem;
  opacity: .7;
}

.erreur {
  margin: .4rem 0 0;
  font-size: .875rem;
  font-weight: 600;
  color: #b3210a;
}
.erreur::before { content: '⚠ '; }
/* Toujours présent pour rester référencé par aria-describedby, replié
   tant qu'aucun message n'y est écrit. */
.erreur:empty { display: none; }

.is-invalid input,
.is-invalid select,
.is-invalid textarea,
.is-invalid .choix { border-color: #b3210a; }

/* La région live reste en permanence dans le document — une région
   basculée en `hidden` n'annonce pas de façon fiable. Elle se replie
   simplement tant qu'elle est vide. */
.formulaire__statut {
  margin: 1rem 0 0;
  padding: .95rem 1.15rem;
  border-radius: var(--rayon-m);
  font-weight: 600;
  font-size: .9375rem;
}
.formulaire__statut:empty { display: none; }
.formulaire__statut[data-state="pending"] { background: var(--bleu-gris-clair); }
.formulaire__statut[data-state="success"] { background: #d8f0dd; color: #12492a; }
.formulaire__statut[data-state="error"] { background: #fbdcd6; color: #8c1b06; }

.formulaire__rgpd {
  margin-top: 1.25rem;
  font-size: .8125rem;
  opacity: .72;
  line-height: 1.5;
}

/* Pot de miel : masqué à l'œil comme aux lecteurs d'écran, mais
   toujours présent dans le DOM pour piéger les robots. */
.pot-de-miel {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------------------ pied */
.pied {
  background: var(--bordeaux-fonce);
  color: var(--creme);
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
}

.pied__grille {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  padding-bottom: 2.5rem;
}
.pied__marque { display: flex; align-items: flex-start; gap: 1rem; }
.pied__marque img { width: 52px; height: 52px; }
.pied__marque strong { font-family: var(--titre); font-size: 1.25rem; }

.pied__bloc h2 {
  font-size: 1rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: .9rem;
}
.pied__bloc ul { display: grid; gap: .45rem; }
.pied__bloc a { text-decoration: none; border-bottom: 1px solid rgba(243, 235, 247, .3); }
.pied__bloc a:hover { border-bottom-color: var(--rose); }
.pied__bloc p { font-size: .9375rem; line-height: 1.7; }
.pied__bloc--legal p { font-size: .875rem; opacity: .85; }

.pied__bas {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(243, 235, 247, .18);
  font-size: .8125rem;
  opacity: .7;
}
.pied__bas p { margin: 0; }

/* ------------------------------------------------------------ révélation
   `a-masquer` n'est jamais écrit dans le HTML : c'est site.js qui la
   pose, et seulement sur les éléments situés sous la ligne de flottaison.
   Si le script ne se charge pas, rien n'est masqué. */
.a-masquer {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.a-masquer.est-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .hero__grille,
  .enjeux,
  .publics,
  .secteur,
  .apropos,
  .contact { grid-template-columns: minmax(0, 1fr); }

  .hero__photo { order: -1; }
  .apropos__photo { max-width: 320px; }
  .contact__intro { position: static; }
  .enjeux__questions { margin-top: 3.5rem; }
}

@media (max-width: 760px) {
  .burger { display: inline-flex; }

  .nav {
    position: fixed;
    inset: 4.5rem 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gouttiere) 1.75rem;
    background: var(--creme);
    border-bottom: 3px solid var(--bordeaux);
    box-shadow: var(--ombre-forte);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform .28s ease, visibility .28s;
  }
  .nav.est-ouvert { transform: translateY(0); visibility: visible; }
  .nav__liste { flex-direction: column; gap: 0; }
  .nav__liste a {
    display: block;
    padding: .9rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(84, 25, 78, .14);
  }
  .nav__cta { margin-top: 1.25rem; }

  .rangee { grid-template-columns: minmax(0, 1fr); }
  .temoignage { grid-template-columns: 84px minmax(0, 1fr); }
  .temoignage img { width: 84px; }

  .hero__photo::before,
  .apropos__photo::before { inset: 1rem -1rem -1rem 1rem; }
}

@media (max-width: 480px) {
  .hero__actions .bouton { width: 100%; }
  .formes .forme { display: none; }
  .formes .forme:nth-child(-n+3) { display: block; }
}

/* ------------------------------------------------------------ confort */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  /* site.js n'arme même pas les apparitions dans ce mode ; ce filet
     couvre le cas d'un réglage changé après le chargement. */
  .a-masquer { opacity: 1; transform: none; }
}
