/* 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%; } }
