/* Tech & Foi France — feuille de style
   Palette échantillonnée sur le logo (à remplacer par les codes officiels CNEF/Tech & Foi si disponibles) */
:root {
  --magenta: #c80068;
  --orange: #f85814;
  --rouge: #e00824;
  --vert: #1f7a4d;
  --encre: #2b1527;        /* aubergine très foncé, texte */
  --encre-doux: #5d4a5a;
  --papier: #ffffff;
  --voile: #fbf2f6;        /* fond rosé très pâle */
  --trait: #e8d6df;

  --titre: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --texte: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --mesure: 66ch;
  --largeur: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--encre);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--magenta); text-underline-offset: 3px; }
a:hover { color: var(--rouge); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--encre); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

.wrap { width: min(var(--largeur), 100% - 2.5rem); margin-inline: auto; }

h1, h2, h3 { font-family: var(--titre); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; max-width: var(--mesure); }
.chapo { font-size: 1.25rem; color: var(--encre-doux); max-width: 56ch; }

/* ---------- En-tête ---------- */
.entete { background: var(--papier); border-bottom: 1px solid var(--trait); position: sticky; top: 0; z-index: 50; }
.entete .wrap { display: flex; align-items: center; gap: 2rem; min-height: 88px; }
.marque { display: flex; align-items: center; text-decoration: none; }
.marque img { height: 68px; width: auto; mix-blend-mode: multiply; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--encre); text-decoration: none; font-weight: 500; padding: .35rem 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--orange); color: var(--encre); }
.nav a[aria-current="page"] { border-bottom-color: var(--magenta); }
.nav a.bouton { border-bottom: 2px solid var(--magenta); color: #fff; padding: .6rem 1.2rem; }
.nav a.bouton:hover { background: var(--encre); border-color: var(--encre); color: #fff; }
.menu-btn { display: none; margin-left: auto; background: none; border: 2px solid var(--encre); padding: .45rem .8rem; font: inherit; font-weight: 600; color: var(--encre); cursor: pointer; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-block; background: var(--magenta); color: #fff; text-decoration: none;
  padding: .85rem 1.5rem; font-weight: 600; border: 2px solid var(--magenta); cursor: pointer; font-family: inherit; font-size: 1rem;
  transition: background .15s, color .15s;
}
.bouton:hover { background: var(--encre); border-color: var(--encre); color: #fff; }
.bouton.contour { background: transparent; color: var(--magenta); }
.bouton.contour:hover { background: var(--magenta); color: #fff; border-color: var(--magenta); }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.voile { background: var(--voile); }
.entete-page { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); }
.entete-page h1 { max-width: 18ch; }

/* ---------- Accueil : héros ---------- */
.heros { padding: clamp(3rem, 7vw, 5.5rem) 0; overflow: hidden; }
.heros .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.heros h1 { max-width: 17ch; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }

/* Carrés superposés : le seul moment graphique du site (écho au logo) */
.carres { position: relative; width: min(100%, 420px); aspect-ratio: 1; justify-self: end; }
.carres span { position: absolute; width: 36%; aspect-ratio: 1; mix-blend-mode: multiply; }
.carres .c1 { left: 32%; top: 0; background: var(--magenta); }
.carres .c2 { left: 14%; top: 22%; background: var(--orange); }
.carres .c3 { left: 32%; top: 22%; background: var(--rouge); opacity: .9; }
.carres .c4 { left: 50%; top: 22%; background: var(--magenta); opacity: .85; }
.carres .c5 { left: 32%; top: 44%; background: var(--orange); }
.carres .c6 { left: 32%; top: 66%; background: var(--rouge); }
.carres .c7 { left: 68%; top: 6%; width: 22%; background: var(--magenta); opacity: .0; border: 3px solid var(--magenta); mix-blend-mode: normal; }

/* ---------- Piliers ---------- */
.piliers { list-style: none; margin: 2.2rem 0 0; padding: 0; border-top: 2px solid var(--encre); }
.piliers li { display: grid; grid-template-columns: 220px 1fr auto; gap: 1.5rem; align-items: baseline; padding: 1.6rem 0; border-bottom: 1px solid var(--trait); }
.piliers h3 { margin: 0; display: flex; align-items: center; gap: .8rem; }
.piliers h3::before { content: ""; width: 18px; height: 18px; background: var(--c, var(--magenta)); flex: none; }
.piliers p { margin: 0; }
.piliers li:nth-child(1) { --c: var(--magenta); }
.piliers li:nth-child(2) { --c: var(--orange); }
.piliers li:nth-child(3) { --c: var(--rouge); }
.lien-fleche { font-weight: 600; text-decoration: none; white-space: nowrap; }
.lien-fleche:hover { text-decoration: underline; }

/* ---------- Colonnes de texte ---------- */
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.questions { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.questions li { padding: 1rem 0 1rem 1.4rem; border-left: 4px solid var(--orange); margin-bottom: 1rem; font-family: var(--titre); font-size: 1.25rem; line-height: 1.3; font-weight: 600; max-width: 34ch; }
.questions li:nth-child(2) { border-left-color: var(--magenta); }
.questions li:nth-child(3) { border-left-color: var(--rouge); }

/* ---------- Encart ---------- */
.encart { background: var(--voile); border-left: 6px solid var(--magenta); padding: 1.6rem 1.8rem; max-width: 62ch; }
.voile .encart { background: #fff; }
.encart h3 { margin-bottom: .4rem; }
.encart p:last-child { margin-bottom: 0; }

/* ---------- Lab ---------- */
.projet-vedette { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; border: 2px solid var(--encre); padding: 2rem; }
.projet-vedette h3 { font-size: 2rem; }
.etiquette { display: inline-block; font-size: .9rem; font-weight: 600; padding: .2rem .7rem; background: var(--orange); color: var(--encre); margin-bottom: .8rem; }
.etiquette.magenta { background: var(--magenta); color: #fff; }
.finalistes { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 2px solid var(--encre); }
.finalistes li { padding: 1.4rem 1.2rem 1.4rem 0; border-bottom: 1px solid var(--trait); }
.finalistes strong { font-family: var(--titre); font-size: 1.45rem; display: block; }
.finalistes span { color: var(--encre-doux); }
.finalistes strong a { color: var(--encre); text-decoration: none; display: inline-block; padding: .2rem 0; }
.finalistes strong a::after { content: " ↗"; color: var(--magenta); font-size: .8em; }
.finalistes strong a:hover { color: var(--magenta); text-decoration: underline; }
.finalistes .laureat strong::after { content: " · lauréat"; color: var(--magenta); font-size: 1rem; font-family: var(--texte); font-weight: 600; }

/* ---------- Réseau : carte ---------- */
.carte-bloc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
#carte { width: 100%; background: var(--voile); }
#carte .pays { fill: #fff; stroke: var(--encre); stroke-width: 1.5; stroke-linejoin: round; }
#carte .ville-point { cursor: pointer; }
#carte .ville-nom { font-family: var(--titre); font-weight: 600; font-size: 15px; fill: var(--encre); paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.niveau-complet { fill: var(--magenta); stroke: var(--magenta); }
.niveau-partiel { fill: var(--orange); stroke: var(--orange); }
.niveau-preparation { fill: #fff; stroke: var(--rouge); stroke-dasharray: 3 2.5; }
.legende { list-style: none; padding: 0; margin: 0 0 2rem; }
.legende li { display: flex; gap: .9rem; align-items: flex-start; padding: .9rem 0; border-bottom: 1px solid var(--trait); }
.legende svg { flex: none; margin-top: .35rem; }
.legende strong { display: block; font-family: var(--titre); font-size: 1.15rem; }
.legende .villes { color: var(--encre-doux); }

/* ---------- Ressources ---------- */
.ressources { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 2px solid var(--encre); }
.ressources li { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; padding: 1.7rem 0; border-bottom: 1px solid var(--trait); align-items: start; }
.ressources h3 { margin-bottom: .3rem; }
.ressources p { margin: 0; }

/* ---------- Formulaires ---------- */
.form-news { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; max-width: 560px; }
.form-news input[type="email"] { flex: 1 1 260px; font: inherit; padding: .85rem 1rem; border: 2px solid var(--encre); background: #fff; color: var(--encre); }
.form-msg { flex-basis: 100%; margin: 0; font-weight: 500; min-height: 1.5em; }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: #f3e5ee; padding: 3rem 0 2.2rem; }
.pied a { color: #fff; }
.pied .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.pied h2 { font-size: 1.1rem; color: #fff; margin-bottom: .8rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: .4rem; }
.pied .mention { grid-column: 1 / -1; border-top: 1px solid #5a3f55; padding-top: 1.2rem; font-size: .92rem; color: #d5bfcc; margin: 0; max-width: none; }

/* ---------- Une seule entrée animée : le héros ---------- */
@media (prefers-reduced-motion: no-preference) {
  .carres span { animation: pose .9s cubic-bezier(.2,.8,.2,1) both; }
  .carres .c2 { animation-delay: .08s; } .carres .c3 { animation-delay: .16s; } .carres .c4 { animation-delay: .24s; }
  .carres .c5 { animation-delay: .32s; } .carres .c6 { animation-delay: .4s; }
  @keyframes pose { from { opacity: 0; transform: translate(-14px, 14px); } }
}

/* ---------- Mobile ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-wrap: break-word; -webkit-tap-highlight-color: rgba(200, 0, 104, .15); }

@media (max-width: 860px) {
  .entete .wrap { min-height: 64px; gap: 1rem; }
  .marque img { height: 48px; }
  .menu-btn { display: block; min-height: 44px; min-width: 76px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.5rem; border-bottom: 1px solid var(--trait); box-shadow: 0 12px 24px rgba(43, 21, 39, .12); max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; }
  .nav.ouvert { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--trait); font-size: 1.15rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--trait); color: var(--magenta); font-weight: 600; }
  .nav a.bouton { margin-top: 1rem; text-align: center; padding: .9rem 1.2rem; }
  .heros .wrap, .deux, .carte-bloc, .pied .wrap { grid-template-columns: minmax(0, 1fr); }
  .heros .wrap { gap: 1.5rem; }
  .carres { justify-self: start; width: min(42%, 180px); order: -1; }
  .piliers li { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .projet-vedette, .ressources li { grid-template-columns: minmax(0, 1fr); }
  .finalistes { grid-template-columns: minmax(0, 1fr); }
  .projet-vedette, .encart, .fiche { padding: 1.3rem 1.2rem; }
  .projet-vedette h3 { font-size: 1.6rem; }
  .laureat-bloc h3 { font-size: 1.9rem; }
  .chapo { font-size: 1.125rem; }
  /* Liens et cibles tactiles : au moins 44 px */
  .lien-fleche { white-space: normal; display: inline-block; padding: .6rem 0; }
  .pied li { margin-bottom: 0; }
  .pied li a { display: inline-block; padding: .55rem 0; }
  .consent input[type="checkbox"] { width: 1.5rem; height: 1.5rem; margin-top: .1rem; }
  .consent { gap: .9rem; }
  .champ input, .champ select, .champ textarea { font-size: 1rem; min-height: 48px; }
}

@media (max-width: 520px) {
  .wrap { width: min(var(--largeur), 100% - 2rem); }
  h1 { font-size: clamp(2rem, 9vw, 2.4rem); }
  .heros h1 { font-size: clamp(1.95rem, 8.6vw, 2.3rem); }
  h2 { font-size: clamp(1.55rem, 7vw, 1.8rem); }
  .actions .bouton { flex: 1 1 100%; text-align: center; }
  .form-news .bouton { flex: 1 1 100%; }
  .questions li { font-size: 1.1rem; }
  .citation { padding-left: 1.1rem; }
  .citation p { font-size: 1.15rem; }
  .pied { padding-top: 2.5rem; }
}

/* ---------- Fiche de ville ---------- */
.fiche { border: 2px solid var(--encre); padding: 1.6rem 1.8rem; background: #fff; }
.fiche-vide { margin: 0; color: var(--encre-doux); }
.fiche h3 { margin-bottom: .5rem; }
.fiche h3:focus { outline: none; }
.fiche .actions { margin-top: 1rem; }
.fiche-form { margin-top: 1.4rem; }
.fiche-form:empty { display: none; }
.etiquette.complet { background: var(--magenta); color: #fff; }
.etiquette.partiel { background: var(--orange); color: var(--encre); }
.etiquette.preparation { background: #fff; color: var(--rouge); border: 2px dashed var(--rouge); padding: 0 .6rem; }
#carte .ville-point:hover rect, #carte .ville-point:focus rect { stroke: var(--encre); }
#carte .ville-point.actif rect { stroke: var(--encre); stroke-width: 4; }
#carte .ville-point:focus { outline: none; }
#carte .ville-point:focus-visible .ville-nom { text-decoration: underline; }

/* ---------- Formulaires de demande ---------- */
.form-demande { max-width: 760px; margin-top: 1.5rem; }
.form-fiche { margin-top: 0; border-top: 1px solid var(--trait); padding-top: 1.2rem; }
.form-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; margin-bottom: 1.2rem; }
.champ { display: flex; flex-direction: column; gap: .3rem; }
.champ[hidden] { display: none; }
.champ-large { grid-column: 1 / -1; }
.champ label { font-weight: 600; font-size: .95rem; }
.champ input, .champ select {
  font: inherit; padding: .75rem .9rem; border: 2px solid var(--encre); background: #fff; color: var(--encre); border-radius: 0; width: 100%;
}
.consent { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: 1.2rem; font-size: .95rem; max-width: 60ch; }
.consent input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--magenta); flex: none; }
.form-demande .form-msg { margin-top: 1rem; }
@media (max-width: 860px) { .form-grille { grid-template-columns: 1fr; } }

/* ---------- Lauréat du concours ---------- */
.laureat-bloc { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin: 2rem 0 2.5rem; }
.laureat-photo { margin: 0; }
.laureat-photo img { width: 100%; height: auto; }
.laureat-photo figcaption { font-size: .9rem; color: var(--encre-doux); margin-top: .6rem; }
.laureat-bloc h3 { font-size: 2.4rem; }
.sous-titre { margin-top: 1rem; }
@media (max-width: 860px) { .laureat-bloc { grid-template-columns: 1fr; } .laureat-photo { max-width: 340px; } }

/* ---------- Champ ville avec suggestions, zones de texte, aides ---------- */
.combo { position: relative; }
.combo-liste { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: #fff; border: 2px solid var(--encre); border-top: 0; max-height: 280px; overflow-y: auto; }
.combo-liste li { padding: .7rem .9rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.combo-liste li[aria-selected="true"], .combo-liste li:hover { background: var(--voile); }
.combo-liste li.libre { border-top: 1px solid var(--trait); color: var(--magenta); font-weight: 600; justify-content: flex-start; }
.combo-badge { font-size: .85rem; font-weight: 600; padding: .1rem .55rem; flex: none; }
.combo-badge.complet { background: var(--magenta); color: #fff; }
.combo-badge.partiel { background: var(--orange); color: var(--encre); }
.combo-badge.preparation { border: 2px dashed var(--rouge); color: var(--rouge); padding: 0 .5rem; }
.aide { margin: .2rem 0 0; font-size: .9rem; color: var(--encre-doux); max-width: none; }
.aide:empty { display: none; }
.champ textarea { font: inherit; padding: .75rem .9rem; border: 2px solid var(--encre); background: #fff; color: var(--encre); border-radius: 0; width: 100%; resize: vertical; }

/* ---------- Galerie de villes ---------- */
.galerie { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2rem; }
.galerie-item { margin: 0; }
.galerie-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 6px solid var(--magenta); }
.galerie-item:nth-child(2) img { border-bottom-color: var(--orange); }
.galerie-item:nth-child(3) img { border-bottom-color: var(--rouge); }
.galerie-item:nth-child(4) img { border-bottom-color: var(--encre); }
.galerie-item figcaption { padding-top: .7rem; display: flex; flex-direction: column; gap: .15rem; }
.galerie-item strong { font-family: var(--titre); font-size: 1.15rem; }
.galerie-credit, .galerie-credit a { font-size: .85rem; color: var(--encre-doux); }
@media (max-width: 640px) { .galerie { grid-template-columns: 1fr; } }

/* ---------- Notre histoire : slider horizontal ---------- */
.jalon { flex: 0 0 min(340px, 84%); scroll-snap-align: start; background: #fff; border-top: 6px solid var(--magenta); padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; }
.jalon:nth-child(4n+2) { border-top-color: var(--orange); }
.jalon:nth-child(4n+3) { border-top-color: var(--rouge); }
.jalon:nth-child(4n) { border-top-color: var(--encre); }
.jalon time { font-family: var(--titre); font-weight: 700; font-size: 1.05rem; color: var(--encre-doux); }
.jalon h3 { margin: .3rem 0; font-size: 1.15rem; line-height: 1.3; }
.jalon p { margin-bottom: .6rem; }
.jalon.a-venir { border-top-style: dashed; }

/* ---------- Fondement spirituel, citation, frise à six jalons ---------- */
.trois { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2rem; }
.trois > div { border-top: 4px solid var(--magenta); padding-top: 1rem; }
.trois > div:nth-child(2) { border-top-color: var(--orange); }
.trois > div:nth-child(3) { border-top-color: var(--rouge); }
.citation { margin: 3rem 0 0; padding: 1.4rem 0 1.4rem 1.6rem; border-left: 6px solid var(--magenta); max-width: 70ch; }
.citation p { font-family: var(--titre); font-size: 1.3rem; line-height: 1.4; font-weight: 500; margin-bottom: .7rem; }
.citation cite { font-style: normal; color: var(--encre-doux); font-size: .95rem; }
@media (max-width: 860px) { .trois { grid-template-columns: 1fr; } }

/* ---------- Focus conférence, revue de presse ---------- */
.focus { margin-top: 1rem; padding: 1.1rem 1.3rem; background: var(--voile); border-left: 5px solid var(--orange); max-width: 66ch; }
.focus h4 { font-family: var(--titre); font-size: 1.1rem; margin: 0 0 .4rem; }
.focus p { margin-bottom: .6rem; }
.presse { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 2px solid var(--encre); }
.presse li { display: grid; grid-template-columns: 190px 150px 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--trait); align-items: baseline; }
.presse .src { font-family: var(--titre); font-weight: 700; }
.presse time { color: var(--encre-doux); font-size: .95rem; }
.presse li > a:only-of-type:nth-child(2) { grid-column: 2 / -1; }
@media (max-width: 860px) { .presse li { grid-template-columns: minmax(0, 1fr); gap: .2rem; } .presse li > a:only-of-type:nth-child(2) { grid-column: auto; } }

/* ---------- Slider « Ils parlent du mouvement » ---------- */
.slider { margin-top: 2rem; }
.slider-piste { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: var(--magenta) transparent; }
.slider-piste:focus-visible { outline-offset: 4px; }
.slide { position: relative; flex: 0 0 min(360px, 84%); scroll-snap-align: start; background: #fff; padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; }
.slide .src { font-family: var(--titre); font-weight: 700; font-size: 1.1rem; }
.slide time { color: var(--encre-doux); font-size: .92rem; }
.slide h3 { font-size: 1.15rem; line-height: 1.3; margin: .5rem 0 auto; letter-spacing: -0.01em; }
.slide h3 a { color: var(--encre); text-decoration: none; }
.slide h3 a:hover { color: var(--magenta); text-decoration: underline; }
.slide .lien-fleche { margin-top: 1rem; }
.slider-nav { display: flex; align-items: center; gap: 1rem; margin-top: .5rem; }
.slider-btn { width: 48px; height: 48px; border: 2px solid var(--encre); background: #fff; color: var(--encre); font-size: 1.3rem; cursor: pointer; font-family: inherit; }
.slider-btn:hover:not(:disabled) { background: var(--encre); color: #fff; }
.slider-btn:disabled { opacity: .35; cursor: default; }
.slider-compteur { font-size: .95rem; color: var(--encre-doux); min-width: 5.5rem; text-align: center; }

/* ---------- Logos des médias dans le slider ---------- */
.slide-logo { display: block; height: 40px; width: auto; max-width: 180px; object-fit: contain; object-position: left center; margin-bottom: .3rem; }
.slide.avec-logo .src { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Sliders horizontaux -> empilement vertical sur mobile ---------- */
@media (max-width: 860px) {
  .slider-piste { flex-direction: column; overflow-x: visible; scroll-snap-type: none; }
  .jalon, .slide { flex: 1 1 auto; width: 100%; min-width: 0; }
  .slider-nav { display: none; }
}

/* ---------- Alignement IA : chat d'auto-évaluation ---------- */
.ia-chat { max-width: 760px; margin-top: 1.8rem; border: 2px solid var(--encre); background: #fff; }
.ia-messages { padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 1.1rem; max-height: 480px; overflow-y: auto; }
.ia-messages:empty { display: none; }
.ia-msg { max-width: 85%; padding: .9rem 1.1rem; }
.ia-msg p { margin: 0 0 .7em; }
.ia-msg p:last-child { margin-bottom: 0; }
.ia-msg-utilisateur { align-self: flex-end; background: var(--voile); }
.ia-msg-assistant { align-self: flex-start; background: #fff; border: 2px solid var(--trait); }
.verdict { display: inline-block; font-weight: 700; font-family: var(--titre); letter-spacing: .02em; text-transform: uppercase; font-size: .85rem; padding: .3rem .8rem; margin-bottom: .6rem; }
.verdict.vert { background: var(--vert); color: #fff; }
.verdict.orange { background: var(--orange); color: var(--encre); }
.verdict.rouge { background: var(--rouge); color: #fff; }
.ia-saisie { display: flex; flex-direction: column; gap: .8rem; padding: 1.2rem 1.4rem; border-top: 1px solid var(--trait); }
.ia-saisie textarea { font: inherit; padding: .75rem .9rem; border: 2px solid var(--encre); background: #fff; color: var(--encre); width: 100%; resize: vertical; }
.ia-maj { margin: 0; padding: .8rem 1.4rem; background: var(--voile); font-size: .92rem; color: var(--encre-doux); }
.ia-maj[hidden] { display: none; }
.ia-secours { margin: 0 1.4rem 1.4rem; font-size: .95rem; color: var(--encre-doux); }
.ia-secours[hidden] { display: none; }
.ia-soumission { margin-top: 2.2rem; max-width: 760px; }
.ia-soumission[hidden] { display: none; }
@media (max-width: 860px) { .ia-msg { max-width: 100%; } }

/* ---------- V2 : accueil orienté message ---------- */
.surtitre { font-family: var(--titre); font-weight: 700; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; color: var(--magenta); margin-bottom: .9rem; }
.heros h1 { max-width: 20ch; }

/* Bande de preuves */
.preuves { padding: 0 0 clamp(2.5rem, 5vw, 3.5rem); }
.chiffres { list-style: none; margin: 0; padding: 1.8rem 0 0; border-top: 2px solid var(--encre); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.chiffres strong { display: block; font-family: var(--titre); font-weight: 700; font-size: clamp(2.4rem, 4.5vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; color: var(--magenta); font-variant-numeric: tabular-nums; }
.chiffres li:nth-child(2) strong { color: var(--orange); }
.chiffres li:nth-child(3) strong { color: var(--rouge); }
.chiffres li:nth-child(4) strong { color: var(--encre); }
.chiffres span { display: block; margin-top: .5rem; color: var(--encre-doux); font-size: .98rem; line-height: 1.45; max-width: 24ch; }
.medias-bande { margin-top: 2.2rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem 1.6rem; }
.medias-bande p { margin: 0; font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-doux); }
.medias-bande { align-items: center; }
.medias-bande ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 2.2rem; }
.medias-bande li { display: flex; align-items: center; height: 40px; }
.medias-bande img { height: 28px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .7; mix-blend-mode: multiply; transition: filter .2s ease, opacity .2s ease; }
.medias-bande img:hover { filter: none; opacity: 1; }
.medias-bande li { height: 52px; }
.medias-bande img[src*="reforme"] { height: 38px; }
.medias-bande img[src*="regards"] { height: 52px; }
.medias-bande img[src*="presse-agence"] { height: 40px; }

/* Vous êtes… */
.portes { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.portes a { display: flex; flex-direction: column; gap: .7rem; height: 100%; padding: 1.6rem 1.5rem 1.5rem; border: 2px solid var(--encre); color: var(--encre); text-decoration: none; background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.portes li:nth-child(1) a { border-top: 8px solid var(--magenta); }
.portes li:nth-child(2) a { border-top: 8px solid var(--orange); }
.portes li:nth-child(3) a { border-top: 8px solid var(--rouge); }
.porte-titre { font-family: var(--titre); font-weight: 700; font-size: 1.35rem; line-height: 1.15; }
.porte-texte { color: var(--encre-doux); flex: 1; }
.porte-action { font-weight: 600; color: var(--magenta); }
.porte-action::after { content: " →"; display: inline-block; transition: transform .2s ease; }
.portes a:hover { color: var(--encre); transform: translateY(-4px); box-shadow: 0 14px 28px rgba(43, 21, 39, .12); }
.portes a:hover .porte-action::after { transform: translateX(4px); }

/* Photo pleine largeur */
.photo-large { margin: 0; }
.photo-large img { width: 100%; height: clamp(260px, 42vw, 560px); object-fit: cover; object-position: center 35%; }
.photo-large figcaption { padding-top: .7rem; font-size: .9rem; color: var(--encre-doux); }

/* Témoin : Pat Gelsinger */
.temoin { background: var(--encre); color: #f3e5ee; }
.temoin h2 { color: #fff; }
.temoin a { color: #fff; }
.temoin-grille { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.temoin-photo { margin: 0; }
.temoin-photo img { width: 100%; height: auto; }
.temoin-photo figcaption { margin-top: .6rem; font-size: .88rem; color: #d5bfcc; }
.citation-verset { margin: 1.5rem 0; border-left-color: var(--orange); }
.citation-verset p { color: #fff; font-size: 1.45rem; }
.citation-verset cite { color: #d5bfcc; }

/* Prochain rendez-vous */
.rendez-vous { background: var(--voile); border-bottom: 1px solid var(--trait); }
.rendez-vous-grille { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.rendez-vous-grille h2 { margin-bottom: .5em; }
.rendez-vous-form .form-news { margin-top: 0; }

/* Cartes : survol et 3 par ligne sur grand écran */
.slide, .jalon { transition: transform .2s ease, box-shadow .2s ease; }
@media (hover: hover) { .slide:hover, .jalon:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(43, 21, 39, .10); } }
@media (min-width: 1000px) {
  .slide, .jalon { flex-basis: calc((100% - 2 * 1.25rem) / 3); }
}

@media (max-width: 860px) {
  .chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portes, .temoin-grille, .rendez-vous-grille { grid-template-columns: minmax(0, 1fr); }
  .citation-verset p { font-size: 1.2rem; }
}

/* ---------- Animations (désactivées si l'utilisateur réduit les animations) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Les pixels s'assemblent en croix */
  .carres span { animation: assembler 1.1s cubic-bezier(.2, .8, .2, 1) both; }
  .carres .c1 { --dx: 60%; --dy: -90%; --r: 25deg; }
  .carres .c2 { --dx: -120%; --dy: -40%; --r: -30deg; }
  .carres .c3 { --dx: 30%; --dy: 70%; --r: 40deg; }
  .carres .c4 { --dx: 140%; --dy: 10%; --r: -20deg; }
  .carres .c5 { --dx: -90%; --dy: 80%; --r: 35deg; }
  .carres .c6 { --dx: 80%; --dy: 110%; --r: -45deg; }
  @keyframes assembler { from { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.6); } }

  /* Apparition au défilement */
  .anim .revele { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--delai, 0s); }
  .anim .revele.visible { opacity: 1; transform: none; }
}

/* Partenariat FaithTech (page Réseau) */
.partenaire-grille { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.partenaire-photo { margin: 0; }
.partenaire-photo img { width: 100%; height: auto; border-bottom: 6px solid var(--orange); }
.partenaire-photo figcaption { margin-top: .6rem; font-size: .9rem; color: var(--encre-doux); }
.partenaire-logo { height: 36px; width: auto; margin: 0 0 1.2rem; }
@media (max-width: 860px) {
  .partenaire-grille { grid-template-columns: minmax(0, 1fr); }
  .partenaire-photo { max-width: 420px; }
}

/* Photos de Grenoble */
.photo-fondement, .photo-concours { margin: 2.5rem 0 0; }
.photo-fondement img, .photo-concours img { width: 100%; height: auto; max-height: 560px; object-fit: cover; object-position: center 30%; }
.photo-fondement figcaption, .photo-concours figcaption, .mosaique figcaption { margin-top: .6rem; font-size: .9rem; color: var(--encre-doux); }
.mosaique { display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: auto auto; gap: 1.25rem; margin-top: 2rem; }
.mosaique figure { margin: 0; min-width: 0; }
.mosaique img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.mosaique .m-large { grid-row: span 2; display: flex; flex-direction: column; }
.mosaique .m-large img { flex: 1; aspect-ratio: auto; min-height: 0; }
.mosaique figure:nth-child(4) { grid-column: 2 / 4; }
.mosaique figure:nth-child(4) img { aspect-ratio: 2 / 1; object-position: center 12%; }
@media (max-width: 860px) {
  .mosaique { grid-template-columns: minmax(0, 1fr); }
  .mosaique .m-large { grid-row: auto; }
  .mosaique .m-large img { aspect-ratio: 3 / 2; }
  .mosaique figure:nth-child(4) { grid-column: auto; }
  .mosaique figure:nth-child(4) img { aspect-ratio: 3 / 2; }
}

/* Sélecteur de langue FR / EN */
.entete .nav { order: 2; }
.langue { order: 3; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 44px; padding: 0 .6rem; border: 2px solid var(--trait); color: var(--encre); text-decoration: none; font-weight: 700; font-size: .9rem; letter-spacing: .04em; }
.langue:hover { border-color: var(--magenta); color: var(--magenta); }
.fr-indic { font-weight: 400; color: var(--encre-doux); font-size: .9em; }
.temoin .fr-indic { color: #d5bfcc; }
@media (max-width: 860px) {
  .langue { order: 2; margin-left: auto; min-height: 44px; }
  .menu-btn { order: 3; margin-left: 0; }
}

/* Champ piège anti-robots, invisible */
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Pages légales */
.texte-legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.texte-legal h2:first-child { margin-top: 0; }
.texte-legal ul { max-width: var(--mesure); padding-left: 1.2rem; }
.texte-legal li { margin-bottom: .4rem; }
.tableau-legal { overflow-x: auto; margin: 1.2rem 0 1.4rem; }
.tableau-legal table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .97rem; }
.tableau-legal th, .tableau-legal td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--trait); }
.tableau-legal th { border-bottom: 2px solid var(--encre); font-family: var(--titre); }
.a-completer { background: #fff1a8; color: var(--encre); padding: 0 .2em; font-weight: 600; }
.maj-legal { margin-top: 2.5rem; color: var(--encre-doux); font-size: .95rem; }
.form-info { flex-basis: 100%; margin: .2rem 0 0; font-size: .88rem; color: var(--encre-doux); }
.pied .mention a { color: #fff; }

/* ---------- Ressources : veille mise en avant ---------- */
.veille-vedette { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); background: var(--encre); color: #fff; padding: clamp(1.5rem, 4vw, 3rem); border-top: 6px solid var(--magenta); margin-top: 1rem; }
.veille-vedette h2 { color: #fff; margin: 0 0 .8rem; }
.veille-vedette p { color: #f3e6ee; }
.veille-vedette .bouton:hover { background: #fff; border-color: #fff; color: var(--encre); }
.veille-vedette .bouton:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.veille-chiffres { font-weight: 600; color: #fff !important; }
.veille-chiffres strong { font-family: var(--titre); font-size: 1.6rem; color: #ff7ab8; margin-right: .2rem; }
.pulse { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: #fff; margin-right: .5rem; vertical-align: .05rem; }
@media (prefers-reduced-motion: no-preference) { .pulse { animation: pulse 2s ease-in-out infinite; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.veille-apercu { background: #fff; color: var(--encre); padding: 1.3rem 1.4rem; align-self: start; }
.veille-apercu h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--magenta); margin: 0 0 .4rem; }
.veille-apercu ol { list-style: none; padding: 0; margin: 0; }
.veille-apercu li { padding: .8rem 0; border-bottom: 1px solid var(--trait); }
.veille-apercu li:last-child { border-bottom: 0; padding-bottom: 0; }
.veille-apercu a { color: var(--encre); text-decoration: none; font-weight: 600; line-height: 1.35; display: block; }
.veille-apercu a:hover { color: var(--magenta); text-decoration: underline; }
.veille-meta { display: block; font-size: .85rem; color: var(--encre-doux); margin-top: .25rem; }
.veille-theme { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--magenta); border: 1px solid currentColor; padding: 0 .4rem; margin-right: .4rem; }
.sous-titre-ressources { margin: 3.5rem 0 0; font-size: 1.6rem; }
@media (max-width: 860px) { .veille-vedette { grid-template-columns: minmax(0, 1fr); } }

/* ---------- CNEF (accueil et pied de page) ---------- */
.bloc-cnef { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.bloc-cnef-logo img { display: block; width: 216px; height: auto; background: #fff; border-radius: 6px; }
.pied-cnef { display: flex; gap: 1rem; align-items: center; text-decoration: none; margin-top: 1.2rem; }
.pied-cnef img { width: 108px; height: auto; background: #fff; border-radius: 4px; flex: none; }
.pied-cnef span { font-size: .92rem; color: #d5bfcc; }
.pied-cnef:hover span { color: #fff; }
@media (max-width: 760px) {
  .bloc-cnef { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .bloc-cnef-logo img { width: 160px; }
}
a.etiquette { text-decoration: none; white-space: nowrap; }
.jalon-photo { display: block; width: calc(100% + 3rem); max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: -1.4rem -1.5rem .6rem; }

/* Ressources : ce qui est disponible en rouge, ce qui est à paraître en orange (étiquette par défaut) */
.ressources a.etiquette { background: var(--rouge); color: #fff; }
.ressources a.etiquette:hover { background: var(--encre); color: #fff; }
.veille-vedette .bouton { background: var(--rouge); border-color: var(--rouge); }

/* Boutons d'envoi pendant l'attente : grisés et inactifs */
.bouton:disabled, .bouton[aria-busy="true"],
.bouton:disabled:hover, .bouton[aria-busy="true"]:hover { background: #b8adb5; border-color: #b8adb5; color: #fff; cursor: not-allowed; }
.bouton[aria-busy="true"] { cursor: progress; }

/* ---------- Ressources : Benchmark chrétien de l'IA (Évangile 21) ---------- */
.benchmark { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); background: var(--voile); border-top: 6px solid var(--orange); padding: clamp(1.5rem, 4vw, 3rem); margin-top: 2.5rem; }
.benchmark h2 { margin: 0 0 .8rem; }
.bm-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.4rem 0 1.6rem; padding: 1.1rem 0; border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.bm-chiffres div { margin: 0; }
.bm-chiffres dt { font-family: var(--titre); font-weight: 700; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1; color: var(--rouge); }
.bm-chiffres dd { margin: .35rem 0 0; font-size: .92rem; color: var(--encre-doux); line-height: 1.3; }
.bouton-rouge { background: var(--rouge); border-color: var(--rouge); }
.bm-source { font-size: .88rem; color: var(--encre-doux); margin: 1rem 0 0; }
.bm-detail { background: #fff; padding: 1.4rem 1.5rem; align-self: start; }
.bm-detail h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--rouge); margin: 0 0 .8rem; }
.bm-detail h3 + * { margin-bottom: 1.6rem; }
.bm-criteres { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.bm-criteres li { display: flex; align-items: center; gap: .6rem; font-weight: 600; line-height: 1.25; }
.bm-num { flex: none; display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; background: var(--orange); color: var(--encre); font-family: var(--titre); font-weight: 700; }
.bm-constats { padding: 0; list-style: none; margin-bottom: 0 !important; }
.bm-constats li { padding: .7rem 0 .7rem 1rem; border-left: 3px solid var(--orange); margin-bottom: .7rem; line-height: 1.45; }
.bm-constats li:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
  .benchmark { grid-template-columns: minmax(0, 1fr); }
  .bm-criteres { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Ressources : menus dépliants ---------- */
.depliants { margin-top: 1.5rem; border-bottom: 1px solid var(--encre); }
.depliant { border-top: 1px solid var(--encre); }
.depliant > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tag chevron" "titre chevron" "desc chevron"; column-gap: 1.5rem; padding: 1.4rem 0; }
.depliant > summary::-webkit-details-marker { display: none; }
.depliant > summary::after { content: ""; grid-area: chevron; align-self: center; width: .8rem; height: .8rem; border-right: 3px solid var(--encre); border-bottom: 3px solid var(--encre); transform: rotate(45deg); margin: 0 .4rem .4rem 0; transition: transform .2s; }
.depliant[open] > summary::after { transform: rotate(-135deg); margin: .4rem .4rem 0 0; }
.depliant > summary:hover .depliant-titre { color: var(--rouge); }
.depliant-tag { grid-area: tag; justify-self: start; font-size: .82rem; font-weight: 600; padding: .15rem .6rem; background: var(--rouge); color: #fff; margin-bottom: .5rem; }
.depliant-tag.bientot { background: var(--orange); color: var(--encre); }
.depliant-titre { grid-area: titre; font-family: var(--titre); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.15; letter-spacing: -0.02em; }
.depliant-desc { grid-area: desc; color: var(--encre-doux); margin-top: .35rem; max-width: 60ch; }
.depliant-corps { padding: 0 0 1.8rem; }
.depliant-corps > .veille-vedette, .depliant-corps > .benchmark { margin-top: 0; }
.depliant-corps .veille-intro > .etiquette:first-child, .depliant-corps .bm-intro > .etiquette:first-child,
.depliant-corps #veille-titre, .depliant-corps #benchmark-titre { display: none; }
@media (prefers-reduced-motion: reduce) { .depliant > summary::after { transition: none; } }

/* ---------- Fenêtre d'accueil : grande enquête sur l'IA ---------- */
.enquete { width: min(560px, calc(100% - 2rem)); max-height: calc(100% - 2rem); border: 0; border-top: 6px solid var(--rouge); padding: clamp(1.5rem, 5vw, 2.5rem); background: #fff; color: var(--encre); box-shadow: 0 24px 60px rgba(43, 21, 39, .35); }
.enquete::backdrop { background: rgba(43, 21, 39, .6); }
.enquete h2 { font-size: clamp(1.6rem, 5vw, 2.1rem); margin: .3rem 0 .8rem; padding-right: 1.5rem; }
.enquete p { color: var(--encre-doux); }
.enquete-fermer { position: absolute; top: .6rem; right: .8rem; background: none; border: 0; font-size: 2rem; line-height: 1; color: var(--encre); cursor: pointer; padding: .2rem .5rem; }
.enquete-fermer:hover { color: var(--rouge); }
.enquete-infos { list-style: none; padding: 0; margin: 0 0 1.6rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.enquete-infos li { font-size: .88rem; font-weight: 600; padding: .3rem .7rem; background: var(--voile); border: 1px solid var(--trait); }
.enquete-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.enquete-plus { background: none; border: 0; padding: .5rem 0; font: inherit; font-weight: 600; color: var(--encre-doux); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.enquete-plus:hover { color: var(--encre); }
@media (max-width: 480px) { .enquete-actions .bouton { width: 100%; text-align: center; } .enquete-plus { width: 100%; } }
@media (prefers-reduced-motion: no-preference) { .enquete[open] { animation: enquete-entree .25s ease-out; } }
@keyframes enquete-entree { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.enquete:focus { outline: none; }
.enquete .etiquette { margin-right: 2.2rem; }
.enquete p { margin-bottom: 1.6rem; }
.insecable { white-space: nowrap; }

/* ---------- Déclaration : sablier et date (écho aux carrés du logo) ---------- */
.rendez-vous-grille { grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1fr); }
.rdv-visuel { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; }
.rdv-quand { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.sablier { width: clamp(92px, 11vw, 126px); height: auto; overflow: visible; }
.sablier .sv { fill: #fff; stroke: var(--trait); stroke-width: 1; }
.sablier .cadre { fill: var(--encre); }
.sablier .s-magenta { fill: var(--magenta); }
.sablier .s-orange { fill: var(--orange); }
.sablier .s-rouge { fill: var(--rouge); }
.sablier [class^="s-"] { mix-blend-mode: multiply; }
@media (prefers-reduced-motion: no-preference) { .sablier .filet { animation: filet 1.6s ease-in-out infinite; } }
@keyframes filet { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.rdv-date { margin: .3rem 0 0; font-family: var(--titre); line-height: 1; color: var(--encre); }
.rdv-jour { display: block; font-size: 3.4rem; font-weight: 700; color: var(--rouge); letter-spacing: -0.03em; }
.rdv-mois { display: block; font-size: 1.05rem; font-weight: 700; margin-top: .2rem; }
.rdv-compte { margin: .2rem 0 0; font-size: .85rem; font-weight: 600; color: #fff; background: var(--encre); padding: .2rem .6rem; }
@media (max-width: 860px) {
  .rendez-vous-grille { grid-template-columns: minmax(0, 1fr); }
  .rdv-visuel { flex-direction: row; justify-content: flex-start; gap: 1.4rem; text-align: left; }
  .sablier { width: 78px; }
  .rdv-date { margin: 0; }
  .rdv-quand { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
}

/* Frise : visuel du sablier pour l'étape de la Déclaration */
.jalon-visuel { display: flex; align-items: center; justify-content: center; gap: 1.6rem; aspect-ratio: 16 / 9; width: calc(100% + 3rem); margin: -1.4rem -1.5rem .6rem; background: var(--voile); }
.jalon-visuel .sablier { width: 72px; }
.jalon-visuel .rdv-date { text-align: left; }
.jalon-visuel .rdv-jour { font-size: 3rem; }

/* En-tête : lien temporaire vers l'enquête */
.lien-enquete { order: 1; display: inline-flex; align-items: center; gap: .1rem; background: var(--rouge); color: #fff; text-decoration: none; font-weight: 700; font-size: .88rem; padding: .45rem .8rem; white-space: nowrap; }
.lien-enquete:hover { background: var(--encre); color: #fff; }
.lien-enquete .pulse { background: #fff; }
@media (max-width: 860px) { .lien-enquete { font-size: .8rem; padding: .4rem .6rem; margin-right: auto; } }

/* ---------- Lab : bêta-testeurs ---------- */
.beta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2.5rem; margin-top: 2rem; padding: 2rem; background: var(--voile); border-left: 6px solid var(--magenta); }
.beta h3 { font-size: 1.75rem; margin-bottom: .6rem; }
.beta-liste { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.beta-liste li { position: relative; padding: .35rem 0 .35rem 1.6rem; }
.beta-liste li::before { content: ""; position: absolute; left: 0; top: .78rem; width: .7rem; height: .7rem; background: var(--magenta); }
.beta .form-grille { margin-top: 0; }
.beta .champ input, .beta .champ select { background: #fff; }
@media (max-width: 860px) {
  .beta { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding: 1.4rem 1.2rem; }
  .beta h3 { font-size: 1.45rem; }
}
