/* ==========================================================================
   Agendapp — feuille de style du site
   La charte reprend celle de l'application : même violet, mêmes rayons,
   mêmes couleurs de catégories. Référence visuelle : /charte/
   ========================================================================== */

/* ---- Polices, auto-hébergées (aucune requête vers un tiers) ------------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ---- Jetons ------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Violet de l'application (AppColors.primary) et ses déclinaisons */
  --violet: #6B3AFF;
  --violet-fonce: #5527E0;
  --violet-nuit: #1E1147;
  --lavande: #F1ECFF;
  --lavande-vif: #E2D8FF;

  /* Neutres de l'application */
  --encre: #1F1F1F;
  --encre-2: #4A4A4A;
  --encre-3: #6B6B6B;
  --papier: #FFFFFF;
  --brume: #F8F9FB;
  --filet: #E3E3E8;

  /* Couleurs de sens, telles que l'application les emploie */
  --vert: #16923D;
  --orange: #F06D12;
  --rouge: #D92D20;

  /* Couleurs de catégories (CategoryColor) */
  --cat-bleu: #2196F3;
  --cat-orange: #F97316;
  --cat-vert: #4CAF50;
  --cat-rose: #F472B6;
  --cat-cyan: #06B6D4;
  --cat-violet: #673AB7;

  /* Rayons de l'application (AppRadius) */
  --r-petit: 8px;
  --r-moyen: 12px;
  --r-grand: 16px;
  --r-tres-grand: 24px;

  --titres: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --texte: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --largeur: 1160px;
  --marge: clamp(20px, 4vw, 40px);
  --entete: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--entete) + 16px);
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, h1, h2, h3, h4, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

.lien-evitement {
  position: absolute; left: 16px; top: -80px; z-index: 200;
  background: var(--encre); color: #fff; font-weight: 600;
  padding: 10px 18px; border-radius: 0 0 var(--r-petit) var(--r-petit);
}
.lien-evitement:focus { top: 0; }

.visuellement-masque {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---- Typographie -------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--titres);
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.3rem, 3.4vw + 1rem, 3.5rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -.022em;
}
h2 {
  font-size: clamp(1.85rem, 2.4vw + 1rem, 2.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.018em;
}
h3 {
  font-size: 1.3rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.008em;
}
.chapo {
  font-size: clamp(1.1rem, .5vw + 1rem, 1.25rem);
  line-height: 1.55;
  color: var(--encre-2);
  max-width: 40em;
  text-wrap: pretty;
}
.texte a, .lien {
  color: var(--violet);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.texte a:hover, .lien:hover { color: var(--violet-fonce); }

/* ---- Ossature ----------------------------------------------------------- */
.cadre {
  width: 100%;
  max-width: calc(var(--largeur) + 2 * var(--marge));
  margin-inline: auto;
  padding-inline: var(--marge);
}
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--brume { background: var(--brume); }
.section--lavande { background: var(--lavande); }
.section-tete { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-tete h2 { max-width: 18em; }

/* ---- Boutons ------------------------------------------------------------ */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  border: 2px solid transparent; border-radius: var(--r-moyen);
  font-weight: 650; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.bouton:active { transform: translateY(1px); }
.bouton--plein { background: var(--violet); color: #fff; }
.bouton--plein:hover { background: var(--violet-fonce); }
.bouton--contour { border-color: var(--violet); color: var(--violet); background: transparent; }
.bouton--contour:hover { background: var(--lavande); }
.bouton--blanc { background: #fff; color: var(--violet); }
.bouton--blanc:hover { background: var(--lavande); }
.bouton--clair { border-color: rgba(255,255,255,.55); color: #fff; }
.bouton--clair:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.bouton--petit { min-height: 44px; padding: 8px 18px; font-size: 1rem; }
.bouton svg { width: 20px; height: 20px; flex: none; }

/* ---- Logo --------------------------------------------------------------- */
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--titres); font-weight: 700; font-size: 1.4rem;
  letter-spacing: -.02em; text-decoration: none; color: inherit;
}
.logo svg { width: 34px; height: 34px; flex: none; }
.logo .logo-fond { fill: var(--violet); }
.logo .logo-bloc { fill: #fff; }

/* ---- En-tête ------------------------------------------------------------ */
.entete {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--filet);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.entete .cadre { display: flex; align-items: center; gap: 28px; height: var(--entete); }
.entete .logo { margin-right: auto; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a:not(.bouton) {
  text-decoration: none; font-weight: 550; color: var(--encre-2);
  padding-block: 6px; border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.menu a:not(.bouton):hover { color: var(--violet); border-bottom-color: currentColor; }
.menu-bascule { display: none; }

/* Sur la page d'accueil, l'en-tête se fond dans le bandeau violet tant
   qu'on n'a pas défilé. */
.entete--sur-violet {
  background: var(--violet); border-bottom-color: transparent; color: #fff;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.entete--sur-violet .logo .logo-fond { fill: #fff; }
.entete--sur-violet .logo .logo-bloc { fill: var(--violet); }
.entete--sur-violet .menu a:not(.bouton) { color: rgba(255,255,255,.88); }
.entete--sur-violet .menu a:not(.bouton):hover { color: #fff; }
.entete--sur-violet .bouton--plein { background: #fff; color: var(--violet); }
.entete--sur-violet .bouton--plein:hover { background: var(--lavande); }

@media (max-width: 900px) {
  .menu-bascule {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border: 0; background: transparent; cursor: pointer; border-radius: var(--r-petit);
  }
  .menu-bascule svg { width: 26px; height: 26px; }
  .menu-bascule .croix { display: none; }
  .menu-bascule[aria-expanded="true"] .croix { display: block; }
  .menu-bascule[aria-expanded="true"] .barres { display: none; }
  .menu {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px var(--marge) 24px;
    background: #fff; color: var(--encre);
    border-bottom: 1px solid var(--filet);
    box-shadow: 0 24px 40px -24px rgba(30,17,71,.35);
  }
  .menu.est-ouvert { display: flex; }
  .menu a:not(.bouton), .entete--sur-violet .menu a:not(.bouton) {
    color: var(--encre); padding: 14px 4px; font-size: 1.15rem;
    border-bottom: 1px solid var(--filet);
  }
  .menu .bouton, .entete--sur-violet .menu .bouton {
    margin-top: 16px; background: var(--violet); color: #fff;
  }
}

/* ==========================================================================
   Accueil — bandeau d'ouverture
   ========================================================================== */
.ouverture {
  background: var(--violet);
  color: #fff;
  overflow: hidden;
}
.ouverture .cadre {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(28px, 4vw, 48px) clamp(48px, 6vw, 72px);
}
.ouverture-texte { display: grid; gap: 26px; max-width: 39rem; }
.ouverture .chapo { color: rgba(255,255,255,.92); }
.ouverture-actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }
.ouverture-note { font-size: .98rem; color: rgba(255,255,255,.82); }

/* Le récit en quatre écrans */
.recit { display: flex; align-items: center; gap: 28px; }
.recit-etapes { display: grid; gap: 8px; width: 252px; }
.recit-etape {
  display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; row-gap: 4px;
  align-items: start; text-align: left; width: 100%;
  padding: 12px 14px; border: 0; border-radius: var(--r-moyen);
  background: transparent; color: rgba(255,255,255,.86); cursor: pointer;
  position: relative; overflow: hidden;
  transition: background-color .2s ease, color .2s ease;
}
.recit-etape:hover { background: rgba(255,255,255,.12); color: #fff; }
.recit-etape .num {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid currentColor; font-weight: 700; font-size: .95rem;
  font-variant-numeric: tabular-nums;
}
.recit-etape .nom { font-weight: 650; line-height: 1.25; padding-top: 4px; }
.recit-etape .detail {
  grid-column: 2; font-size: .95rem; line-height: 1.4; display: none;
}
.recit-etape[aria-selected="true"] { background: #fff; color: var(--encre); cursor: default; }
.recit-etape[aria-selected="true"] .num { background: var(--violet); border-color: var(--violet); color: #fff; }
.recit-etape[aria-selected="true"] .nom { color: var(--violet); }
.recit-etape[aria-selected="true"] .detail { display: block; color: var(--encre-2); }
.recit-etape .jauge {
  position: absolute; left: 0; bottom: 0; height: 4px; width: 100%;
  background: var(--lavande-vif); transform: scaleX(0); transform-origin: left;
}
.recit.en-lecture .recit-etape[aria-selected="true"] .jauge {
  animation: jauge var(--duree-etape, 5s) linear forwards;
}
@keyframes jauge { to { transform: scaleX(1); } }

/* ---- Téléphone ---------------------------------------------------------- */
.telephone {
  --largeur-tel: 290px;
  position: relative; flex: none;
  width: var(--largeur-tel); max-width: 100%;
  padding: 9px; border-radius: 46px;
  background: #121214;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.14) inset, 0 36px 70px -28px rgba(30,17,71,.7);
}
.telephone-ecran {
  position: relative; overflow: hidden; border-radius: 37px;
  aspect-ratio: 720 / 1564; background: #fff;
}
/* Fondu enchaîné : la capture qui arrive apparaît par-dessus la précédente,
   qui reste entièrement visible en dessous. Faire disparaître l'ancienne en
   même temps laisserait voir le fond blanc à mi-parcours, d'où un « saut ». */
.telephone-ecran img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; z-index: 0; transition: opacity .8s ease-in-out;
}
.telephone-ecran img.est-dessous { opacity: 1; z-index: 1; transition: none; }
.telephone-ecran img.est-visible { opacity: 1; z-index: 2; }

@media (max-width: 1080px) {
  .ouverture .cadre { grid-template-columns: minmax(0, 1fr); }
  .recit { justify-content: center; }
}
@media (max-width: 620px) {
  .recit { flex-direction: column; gap: 20px; }
  .recit .telephone { --largeur-tel: 250px; border-radius: 40px; padding: 8px; }
  .recit .telephone-ecran { border-radius: 32px; }
  .recit-etapes { width: 100%; max-width: 420px; }
  .ouverture-actions .bouton { flex: 1 1 100%; }
}

/* ==========================================================================
   Avant / avec Agendapp
   ========================================================================== */
.bascule { display: grid; gap: 14px; }
.bascule-tete, .bascule-ligne {
  display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  align-items: stretch;
}
.bascule-tete { font-family: var(--titres); font-weight: 650; font-size: 1.15rem; padding-inline: 4px; }
.bascule-tete span:last-child { grid-column: 3; color: var(--violet); }
.bascule-avant, .bascule-apres {
  padding: 22px 26px; border-radius: var(--r-grand);
  text-wrap: pretty;
}
.bascule-avant { background: #fff; border: 1px solid var(--filet); color: var(--encre-2); }
.bascule-avant strong { color: var(--encre); font-weight: 650; }
.bascule-apres {
  background: var(--lavande); color: var(--encre);
  border-left: 5px solid var(--violet); font-weight: 500;
}
.bascule-fleche { display: grid; place-items: center; color: var(--encre-3); }
.bascule-fleche svg { width: 22px; height: 22px; }
.bascule-etiquette { display: none; }
@media (max-width: 760px) {
  .bascule { gap: 28px; }
  .bascule-tete { display: none; }
  .bascule-ligne { grid-template-columns: 1fr; gap: 6px; }
  .bascule-fleche { justify-content: start; padding-left: 26px; }
  .bascule-fleche svg { transform: rotate(90deg); }
  .bascule-etiquette {
    display: block; font-size: .9rem; font-weight: 650; margin-bottom: 4px;
    color: var(--encre-3);
  }
  .bascule-apres .bascule-etiquette { color: var(--violet); }
}

/* ==========================================================================
   Fonctionnalités
   ========================================================================== */
.fonction {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px clamp(32px, 6vw, 96px); align-items: center;
}
.fonction + .fonction { margin-top: clamp(56px, 8vw, 104px); }
.fonction-texte { display: grid; gap: 18px; max-width: 32rem; }
.fonction-texte h3 { font-size: clamp(1.5rem, 1.2vw + 1.1rem, 1.9rem); line-height: 1.12; }
.fonction-texte > p { color: var(--encre-2); text-wrap: pretty; }
.fonction:nth-of-type(even) .fonction-texte { order: 2; }

.points { display: grid; gap: 10px; padding-top: 4px; }
.points li {
  position: relative; padding-left: 30px; color: var(--encre-2); line-height: 1.45;
}
.points li::before {
  content: ""; position: absolute; left: 3px; top: .32em;
  width: 15px; height: 8px;
  border-left: 2.5px solid var(--teinte, var(--violet));
  border-bottom: 2.5px solid var(--teinte, var(--violet));
  transform: rotate(-45deg);
}

/* Panneau teinté où le téléphone dépasse par le bas, comme une séance dans
   le planning : fond pastel, bord gauche saturé. */
.vitrine {
  --teinte: var(--violet);
  position: relative; overflow: hidden;
  height: clamp(380px, 38vw, 470px);
  border-radius: var(--r-tres-grand);
  border-left: 8px solid var(--teinte);
  background: color-mix(in srgb, var(--teinte) 16%, #fff);
  display: grid; justify-items: center; padding-top: 44px;
}
.vitrine .telephone {
  --largeur-tel: 300px;
  box-shadow: none;
}
.vitrine .telephone-ecran img { position: static; opacity: 1; }
.fonction--planning { --teinte: var(--cat-bleu); }
.fonction--remplacements { --teinte: var(--orange); }
.fonction--heures { --teinte: var(--vert); }
.fonction .vitrine { --teinte: inherit; }

@media (max-width: 820px) {
  .fonction { grid-template-columns: 1fr; }
  .fonction:nth-of-type(even) .fonction-texte { order: 0; }
  .vitrine { height: 400px; }
  .vitrine .telephone { --largeur-tel: 270px; }
}

/* Et aussi : la liste des autres fonctions */
.aussi { margin-top: clamp(64px, 9vw, 120px); }
.aussi h3 { font-size: clamp(1.5rem, 1.2vw + 1.1rem, 1.9rem); margin-bottom: 32px; }
.aussi-grille {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px clamp(28px, 4vw, 56px);
}
.aussi-grille li { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto 1fr; gap: 4px 16px; align-items: start; }
.aussi-grille .icone {
  grid-row: 1 / 3; width: 44px; height: 44px; border-radius: var(--r-moyen);
  display: grid; place-items: center; background: var(--lavande); color: var(--violet);
}
.aussi-grille .icone svg { width: 22px; height: 22px; }
.aussi-grille h4 { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; padding-top: 2px; }
.aussi-grille p { color: var(--encre-2); font-size: 1rem; line-height: 1.5; }
@media (max-width: 940px) { .aussi-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .aussi-grille { grid-template-columns: 1fr; gap: 26px; } }

/* ==========================================================================
   Téléphone et ordinateur
   Deux usages côte à côte, reliés par les mêmes données.
   ========================================================================== */
.postes {
  display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  align-items: stretch;
}
.poste {
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(24px, 3vw, 40px);
  background: #fff; border: 1px solid var(--filet); border-radius: var(--r-tres-grand);
}
.poste-tete { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.poste-tete .icone {
  width: 52px; height: 52px; border-radius: var(--r-grand);
  display: grid; place-items: center; background: var(--lavande); color: var(--violet);
}
.poste-tete .icone svg { width: 26px; height: 26px; }
.poste-public { font-size: .98rem; font-weight: 650; color: var(--violet); margin-bottom: 2px; }
.poste h3 { font-size: clamp(1.35rem, .8vw + 1.1rem, 1.6rem); line-height: 1.15; }
.poste > p { color: var(--encre-2); text-wrap: pretty; }
.poste .points { padding-top: 0; }
.poste-support {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--filet);
  font-size: .98rem; font-weight: 600; color: var(--encre) !important;
}
.postes-lien {
  align-self: center; justify-self: center;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--filet); color: var(--violet);
}
.postes-lien svg { width: 22px; height: 22px; }
.postes-note {
  margin: clamp(28px, 4vw, 44px) auto 0; max-width: 46em;
  text-align: center; color: var(--encre-2); text-wrap: balance;
}
@media (max-width: 820px) {
  .postes { grid-template-columns: 1fr; gap: 12px; }
  .postes-lien svg { transform: rotate(90deg); }
}

/* ==========================================================================
   Démonstration
   ========================================================================== */
.demo .cadre {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px clamp(32px, 6vw, 88px); align-items: center;
}
.demo-texte { display: grid; gap: 22px; max-width: 33rem; }
.demo-essais { display: grid; gap: 0; margin-top: 6px; }
.demo-essais li {
  padding: 14px 0; border-top: 1px solid var(--lavande-vif); color: var(--encre-2);
}
.demo-essais li:last-child { border-bottom: 1px solid var(--lavande-vif); }
.demo-essais b { color: var(--encre); font-weight: 650; }
.demo-note { font-size: .98rem; color: var(--encre-3); }

.demo-scene { display: grid; justify-items: center; gap: 16px; }
.telephone--demo { --largeur-tel: 444px; padding: 12px; border-radius: 50px; }
.telephone--demo .telephone-ecran { border-radius: 39px; aspect-ratio: auto; height: 780px; }
.telephone--demo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-affiche {
  position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center; background: #fff; width: 100%; text-align: center;
}
.demo-affiche img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  opacity: 1; filter: saturate(.9);
}
.demo-affiche::after {
  content: ""; position: absolute; inset: 0; background: rgba(30,17,71,.68);
  transition: background-color .2s ease;
}
.demo-affiche:hover::after { background: rgba(30,17,71,.6); }
.demo-affiche-contenu {
  position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px;
  color: #fff; padding: 24px;
}
.demo-affiche .lecture {
  width: 84px; height: 84px; border-radius: 50%; background: #fff; color: var(--violet);
  display: grid; place-items: center; box-shadow: 0 16px 40px -12px rgba(0,0,0,.5);
  transition: transform .2s ease;
}
.demo-affiche:hover .lecture { transform: scale(1.06); }
.demo-affiche .lecture svg { width: 34px; height: 34px; margin-left: 5px; }
.demo-affiche .titre { font-family: var(--titres); font-weight: 700; font-size: 1.5rem; }
.demo-affiche .poids { font-size: .98rem; color: rgba(255,255,255,.9); }
.demo-plein { font-size: 1rem; color: var(--encre-2); }

@media (max-width: 1000px) {
  .demo .cadre { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .telephone--demo { --largeur-tel: 100%; padding: 9px; border-radius: 40px; }
  .telephone--demo .telephone-ecran { border-radius: 32px; height: 560px; }
}

/* ==========================================================================
   Sur mesure
   ========================================================================== */
.mesure .cadre {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 40px clamp(32px, 6vw, 96px); align-items: center;
}
.mesure-texte { display: grid; gap: 20px; }
.mesure-liste { display: grid; gap: 14px; margin-top: 12px; }
.mesure-liste li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; }
.mesure-liste .icone {
  width: 44px; height: 44px; border-radius: var(--r-moyen);
  display: grid; place-items: center; background: var(--lavande); color: var(--violet);
}
.mesure-liste .icone svg { width: 22px; height: 22px; }
.mesure-liste p { color: var(--encre-2); line-height: 1.4; }
.mesure-liste b { display: block; color: var(--encre); font-weight: 700; }

.vocabulaire {
  background: var(--lavande); border-radius: var(--r-tres-grand);
  padding: clamp(22px, 3.4vw, 44px); display: grid; gap: 22px;
}
.vocabulaire-legende { font-family: var(--titres); font-weight: 650; font-size: 1.2rem; line-height: 1.25; }
.segments {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  background: var(--lavande-vif); border-radius: var(--r-moyen);
}
.segments button {
  min-height: 44px; padding: 8px 14px; border: 0; cursor: pointer;
  background: transparent; border-radius: var(--r-petit);
  font-weight: 600; color: var(--violet-nuit);
  transition: background-color .15s ease, color .15s ease;
}
.segments button:hover { background: rgba(255,255,255,.5); }
.segments button[aria-pressed="true"] { background: var(--violet); color: #fff; }

/* Une carte de demande, telle que l'application l'affiche */
.carte-app {
  background: #fff; border-radius: var(--r-grand); padding: 18px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 10px 30px -16px rgba(30,17,71,.35);
  display: grid; gap: 14px;
}
.carte-app-tete { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.carte-app-tete p { font-weight: 500; line-height: 1.35; }
.pastille {
  flex: none; font-size: .88rem; font-weight: 650; line-height: 1.2;
  padding: 5px 9px; border-radius: var(--r-petit);
  background: color-mix(in srgb, var(--orange) 14%, #fff); color: #B4500A;
}
.seance {
  --teinte: var(--cat-bleu);
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: var(--r-moyen);
  border-left: 6px solid var(--teinte);
  background: color-mix(in srgb, var(--teinte) 22%, #fff);
}
.seance b { display: block; font-weight: 650; line-height: 1.25; }
.seance span { font-size: .93rem; color: var(--encre-2); }
.seance .heures { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.3; white-space: nowrap; }
.seance .heures small { display: block; font-size: 1em; color: var(--encre-3); font-weight: 500; }
.carte-app-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.carte-app-actions span {
  display: grid; place-items: center; min-height: 44px; border-radius: var(--r-moyen);
  color: #fff; font-weight: 650; font-size: 1rem;
}
.carte-app-actions .oui { background: var(--vert); }
.carte-app-actions .non { background: var(--rouge); }
.vocabulaire-mots { font-size: .98rem; color: var(--violet-nuit); }
.vocabulaire-mots b { font-weight: 700; }

@media (max-width: 900px) { .mesure .cadre { grid-template-columns: 1fr; } }

/* ==========================================================================
   Questions
   ========================================================================== */
.questions .cadre {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 32px clamp(32px, 6vw, 96px); align-items: start;
}
/* L'invitation à écrire vient avant la liste : c'est le chemin le plus court. */
.questions-tete { display: grid; gap: 18px; position: sticky; top: calc(var(--entete) + 32px); }
/* Deux boutons de même largeur : le texte de l'un s'aligne sur celui de l'autre. */
.questions-actions { display: inline-grid; gap: 10px; justify-self: start; margin-top: 8px; }
.questions-liste { border-top: 1px solid var(--filet); }
.questions-liste details { border-bottom: 1px solid var(--filet); }
.questions-liste summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 4px; cursor: pointer; list-style: none;
  font-family: var(--titres); font-weight: 650; font-size: 1.2rem; line-height: 1.25;
}
.questions-liste summary::-webkit-details-marker { display: none; }
.questions-liste summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 6px;
  border-right: 2.5px solid var(--violet); border-bottom: 2.5px solid var(--violet);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s ease;
}
.questions-liste details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.questions-liste summary:hover { color: var(--violet); }
.questions-liste .reponse { padding: 0 44px 24px 4px; color: var(--encre-2); max-width: 44em; display: grid; gap: 12px; }
@media (max-width: 860px) {
  .questions .cadre { grid-template-columns: 1fr; }
  .questions-tete { position: static; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-panneau {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  border-radius: var(--r-tres-grand); overflow: hidden;
  border: 1.5px solid var(--lavande-vif);
}
.contact-texte {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: clamp(28px, 4vw, 56px); background: var(--lavande);
}
.contact-tete { display: grid; gap: 18px; }
.suite { display: grid; gap: 0; counter-reset: suite; }
.suite li {
  counter-increment: suite; position: relative;
  padding: 0 0 30px 56px; color: var(--encre-2);
}
.suite li:last-child { padding-bottom: 0; }
.suite li::before {
  content: counter(suite); position: absolute; left: 0; top: -4px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--violet); font-weight: 700;
}
.suite li:not(:last-child)::after {
  content: ""; position: absolute; left: 18px; top: 38px; bottom: 4px;
  width: 2px; background: var(--lavande-vif);
}
.suite b { display: block; color: var(--encre); font-weight: 650; }
.contact-direct { color: var(--encre-2); }
.contact-direct a { font-weight: 650; }

.formulaire {
  background: #fff; padding: clamp(24px, 4vw, 56px);
  display: grid; gap: 20px; align-content: center;
}
.formulaire .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .formulaire .duo { grid-template-columns: 1fr; } }
.champ { display: grid; gap: 7px; }
.champ label, .champ legend { font-weight: 650; font-size: 1rem; }
.champ .facultatif { font-weight: 400; color: var(--encre-3); }
.champ input:not([type="radio"]), .champ select, .champ textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: #fff; border: 1.5px solid #C9C9D2; border-radius: var(--r-moyen);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.champ textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.champ select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B3AFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.champ input:hover, .champ select:hover, .champ textarea:hover { border-color: var(--encre-3); }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--lavande-vif);
}
.champ input[aria-invalid="true"], .champ textarea[aria-invalid="true"] { border-color: var(--rouge); }
.champ .erreur { color: var(--rouge); font-size: .95rem; font-weight: 550; }
.motifs { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 9px; }
.motifs legend { padding: 0; margin-bottom: 9px; }
.motifs-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.motifs-choix label {
  position: relative;
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  background: #fff; border: 1.5px solid #C9C9D2; border-radius: var(--r-moyen);
  font-weight: 550; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.motifs-choix input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.motifs-choix label:hover { border-color: var(--violet); }
.motifs-choix label:has(input:checked) { background: var(--violet); border-color: var(--violet); color: #fff; }
.motifs-choix label:has(input:focus-visible) { outline: 3px solid var(--violet); outline-offset: 3px; }
.pot-de-miel { position: absolute; left: -9999px; }
.formulaire-pied { display: grid; gap: 12px; }
.formulaire-pied .bouton { justify-self: start; }
.formulaire-note { font-size: .95rem; color: var(--encre-3); }
.formulaire-etat { font-weight: 600; padding: 14px 16px; border-radius: var(--r-moyen); }
.formulaire-etat:empty { display: none; }
.formulaire-etat[data-etat="ok"] { background: color-mix(in srgb, var(--vert) 12%, #fff); color: #0E6A2B; }
.formulaire-etat[data-etat="erreur"] { background: color-mix(in srgb, var(--rouge) 10%, #fff); color: #A32018; }
@media (max-width: 900px) { .contact-panneau { grid-template-columns: 1fr; } }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.pied { background: var(--violet-nuit); color: rgba(255,255,255,.82); }
.pied .cadre { padding-block: 56px 28px; }
.pied-haut {
  display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr));
  gap: 36px 40px; padding-bottom: 44px;
}
.pied .logo { color: #fff; }
.pied-marque { display: grid; gap: 14px; align-content: start; max-width: 24rem; }
.pied nav { display: grid; gap: 10px; align-content: start; }
.pied nav h2 {
  font-family: var(--texte); font-size: 1rem; font-weight: 700; color: #fff;
  letter-spacing: 0; margin-bottom: 4px;
}
.pied nav a { text-decoration: none; width: fit-content; }
.pied nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pied-bas {
  display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between;
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16);
  font-size: .95rem; color: rgba(255,255,255,.7);
}
@media (max-width: 860px) {
  .pied-haut { grid-template-columns: 1fr 1fr; }
  .pied-marque { grid-column: 1 / -1; }
}

/* ==========================================================================
   Pages annexes (support, confidentialité, charte)
   ========================================================================== */
.page-tete { background: var(--lavande); padding-block: clamp(48px, 7vw, 88px); }
.page-tete .cadre { display: grid; gap: 18px; }
.page-tete h1 { font-size: clamp(2.2rem, 3.6vw + .8rem, 3.2rem); }
.page-tete .maj { font-size: .98rem; color: var(--encre-3); }
.page-corps { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 112px); }
.page-corps .cadre { max-width: calc(46rem + 2 * var(--marge)); margin-left: max(0px, calc((100% - var(--largeur) - 2 * var(--marge)) / 2)); }
.texte { display: grid; gap: 16px; }
.texte section { display: grid; gap: 14px; padding-top: 36px; }
.texte section:first-child { padding-top: 0; }
.texte h2 { font-size: clamp(1.5rem, 1vw + 1.2rem, 1.8rem); margin-bottom: 2px; }
.texte h3 { font-size: 1.15rem; margin-top: 10px; }
.texte p, .texte li { color: var(--encre-2); }
.texte ul { display: grid; gap: 8px; padding-left: 0; }
.texte ul li { position: relative; padding-left: 22px; }
.texte ul li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--violet);
}
.texte strong, .texte b { color: var(--encre); font-weight: 650; }
.texte .table-cadre { overflow-x: auto; border: 1px solid var(--filet); border-radius: var(--r-grand); }
.texte table { border-collapse: collapse; width: 100%; font-size: .98rem; min-width: 560px; }
.texte th, .texte td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--filet); }
.texte th { background: var(--brume); font-weight: 650; color: var(--encre); }
.texte tr:last-child td { border-bottom: 0; }
.texte td { color: var(--encre-2); }
.courriel-grand {
  display: inline-flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%;
  padding: 16px 22px; border-radius: var(--r-grand);
  background: var(--lavande); color: var(--violet) !important;
  font-family: var(--titres); font-weight: 650; font-size: clamp(1.15rem, 2vw, 1.5rem);
  text-decoration: none !important; word-break: break-word;
}
.courriel-grand:hover { background: var(--lavande-vif); }
.courriel-grand svg { width: 24px; height: 24px; flex: none; }
.texte .qr { display: grid; gap: 22px; }
.texte .qr > div { display: grid; gap: 6px; }
