/* Débat IA : la page d'accueil, vitrine du jeu. Une page qui se lit seule ou se présente en rendez-vous : chaque partie tient
   un écran sur un ordinateur, et Page suivante (ou flèche droite) passe à la suivante (js/accueil.js). Couleurs et polices du jeu. */
.v-corps { background: var(--papier); overflow-wrap: normal; }
.v-barre { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px max(20px, calc((100% - 1120px) / 2 + 20px)); background: color-mix(in srgb, var(--papier) 92%, transparent); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--trait); }
.v-logo { font-family: var(--f-titre); font-weight: 800; font-size: 22px; color: var(--encre); text-decoration: none; white-space: nowrap; }
.v-liens { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.v-lien { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 10px; border: 1.5px solid var(--trait);
  color: var(--encre); font-weight: 700; font-size: 15px; text-decoration: none; background: var(--carte); }
.v-lien-plein { background: var(--action); color: var(--action-t); border-color: var(--action); }
.v-lien:focus-visible, .v-pied a:focus-visible, .v-pratique a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

main { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.v-section { padding-block: 56px; border-top: 1px solid var(--trait); scroll-margin-top: 66px; display: flex; flex-direction: column; gap: 22px; }
.v-hero { border-top: 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 48px 56px; }
.v-hero-texte { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.v-hero-acces { display: flex; flex-direction: column; gap: 16px; min-width: 0; scroll-margin-top: 80px; }

/* La signature du jeu : la jauge Pour contre Contre. */
.v-jauge { display: flex; width: min(100%, 380px); height: 38px; border-radius: 10px; overflow: hidden; font-family: var(--f-titre); font-weight: 800; font-size: 15px; }
.v-jauge span { display: flex; align-items: center; padding-inline: 14px; color: #FFFFFF; }
.v-pour { flex: 1.15; background: #187A4F; }
.v-contre { flex: 1; background: #C2410C; justify-content: flex-end; }
.v-titre { font-family: var(--f-titre); font-weight: 800; font-size: clamp(2.2rem, 4.6vw, 3.7rem); line-height: 1.04; color: var(--encre); text-wrap: balance; margin: 0; }
.v-chapeau { font-size: 1.25rem; line-height: 1.45; color: var(--texte); max-width: 34em; margin: 0; }
.v-chiffres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.v-chiffres li { display: flex; flex-direction: column; gap: 2px; border-left: 3px solid var(--trait); padding-left: 12px; }
.v-chiffres b { font-family: var(--f-titre); font-weight: 800; font-size: 1.35rem; color: var(--encre); font-variant-numeric: tabular-nums; }
.v-chiffres span { color: var(--doux); font-size: 15px; }

.v-h2 { font-family: var(--f-titre); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; color: var(--encre); text-wrap: balance; margin: 0; }
.v-h2-petit { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-top: 18px; }
.v-intro { font-size: 1.15rem; color: var(--texte); max-width: 40em; margin: 0; }

/* Une partie en 4 temps : les étapes, puis 2 téléphones. */
.v-deroule { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.v-etapes { list-style: none; counter-reset: etape; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.v-etapes li { counter-increment: etape; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; font-size: 1.08rem; line-height: 1.45; }
.v-etapes li::before { content: counter(etape); grid-row: 1 / span 3; width: 40px; height: 40px; border-radius: 50%; background: var(--encre); color: var(--papier);
  display: flex; align-items: center; justify-content: center; font-family: var(--f-titre); font-weight: 800; font-size: 1.15rem; }
.v-etapes b { color: var(--encre); }
.v-telephones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
figure { margin: 0; display: flex; flex-direction: column; gap: 8px; align-items: center; min-width: 0; }
figcaption { color: var(--doux); font-size: 14px; text-align: center; }
.v-telephones img, .v-un-telephone img { width: 100%; max-width: 250px; height: auto; border-radius: 22px; border: 6px solid var(--encre); box-shadow: var(--ombre); background: #FFFFFF; }
.v-ecrans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.v-ecrans img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--trait); box-shadow: var(--ombre); background: #FFFFFF; }

/* Pour le groupe : 4 apports, chacun avec un trait de couleur (Pour, Contre en alternance). */
.v-apports { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 36px; }
.v-apports li { font-size: 1.08rem; line-height: 1.45; padding-top: 12px; border-top: 4px solid #187A4F; }
.v-apports li:nth-child(even) { border-top-color: #C2410C; }
.v-apports b { display: block; font-family: var(--f-titre); font-weight: 800; font-size: 1.25rem; color: var(--encre); margin-bottom: 4px; }

.v-formateur { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.v-formateur > div { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.v-liste, .v-pratique { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; font-size: 1.08rem; line-height: 1.45; }
.v-liste li::marker, .v-pratique li::marker { color: var(--encre); }
.v-pratique a { color: var(--encre); font-weight: 700; }

.v-themes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.v-themes li { border: 1.5px solid var(--trait); border-radius: 999px; padding: 6px 14px; font-weight: 700; color: var(--encre); background: var(--carte); }
.v-exemples { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.v-exemples li { font-family: var(--f-titre); font-weight: 600; font-size: 1.2rem; line-height: 1.3; color: var(--encre); padding-left: 14px; border-left: 3px solid var(--trait); }

.v-publics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 32px; }
.v-public h3 { font-family: var(--f-titre); font-weight: 800; font-size: 1.3rem; color: var(--encre); margin: 0 0 6px; }
.v-public p { margin: 0; font-size: 1.08rem; line-height: 1.45; }

.v-pied { border-top: 1px solid var(--trait); padding: 28px max(20px, calc((100% - 1120px) / 2 + 20px)) 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  color: var(--doux); }
.v-pied p { margin: 0; }
.v-pied b { color: var(--encre); }
.v-contact { user-select: all; color: var(--encre); font-weight: 700; }
.v-pied-liens { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.v-pied a { color: var(--encre); font-weight: 700; }

/* Sur un ordinateur : chaque partie tient un écran (présentation en rendez-vous). */
@media (min-width: 900px) and (min-height: 640px) {
  html { scroll-snap-type: y proximity; }
  .v-section { min-height: calc(100vh - 66px); justify-content: center; scroll-snap-align: start; }
}
@media (max-width: 860px) {
  .v-hero, .v-deroule, .v-formateur { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  main { display: flex; flex-direction: column; }
  .v-rejoindre { order: -1; margin-top: 8px; border-top: 0; }   /* sur téléphone, un étudiant qui tape l'adresse trouve le code tout de suite */
  .v-ecrans, .v-apports, .v-exemples, .v-publics { grid-template-columns: minmax(0, 1fr); }
  .v-un-telephone img { max-width: 220px; }
}
@media (max-width: 480px) {
  .v-barre { padding-inline: 16px; }
  .v-lien { min-height: 36px; padding: 4px 10px; font-size: 14px; }
  .v-lien-cache { display: none; }
  main { padding-inline: 16px; }
  .v-section { padding-block: 40px; }
  .v-chiffres { grid-template-columns: minmax(0, 1fr); }
  .v-telephones { gap: 10px; }
  .v-telephones img { border-width: 4px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Les boutons d'action (Organiser une partie, Voir une partie, Écrire). */
.v-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.v-bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 10px 20px; border-radius: 12px; border: 2px solid var(--encre);
  color: var(--encre); background: var(--carte); font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.v-bouton-plein { background: var(--action); color: var(--action-t); border-color: var(--action); }
.v-bouton:focus-visible, .v-demo-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* La démonstration du héros : une vraie phrase du jeu, d'accord ou pas, et le fait qui vous appuie. */
.v-demo { background: var(--carte); border: 1px solid var(--trait); border-radius: 18px; box-shadow: var(--ombre); padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.v-demo-sur { margin: 0; font-weight: 700; color: var(--doux); font-size: .95rem; letter-spacing: .02em; }
.v-demo-phrase { margin: 0; font-family: var(--f-titre); font-weight: 800; font-size: 1.45rem; line-height: 1.2; color: var(--encre); text-wrap: balance; }
.v-demo-choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.v-demo-btn { min-height: 52px; border-radius: 12px; border: 2px solid; background: var(--carte); font-family: var(--f-texte); font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.v-demo-pour { border-color: #187A4F; color: var(--encre); }
.v-demo-contre { border-color: #C2410C; color: var(--encre); }
.v-demo-pour[aria-pressed="true"] { background: #187A4F; color: #FFFFFF; }
.v-demo-contre[aria-pressed="true"] { background: #C2410C; color: #FFFFFF; }
.v-demo-fait { display: flex; flex-direction: column; gap: 6px; border-radius: 12px; padding: 14px; background: var(--carte2); }
.v-demo-fait p { margin: 0; }
.v-demo-etiquette { font-weight: 700; color: var(--encre); }
.v-demo-source { color: var(--doux); font-size: .9rem; }
.v-demo-face { font-size: .95rem; color: var(--texte); border-top: 1px solid var(--trait); padding-top: 8px; margin-top: 2px; }
.v-demo-pied { margin: 0; color: var(--doux); font-size: .95rem; }

/* Le bandeau Rejoindre une partie (les joueurs). */
.v-rejoindre { border-top: 1px solid var(--trait); padding-block: 22px; scroll-margin-top: 80px; }
.v-rejoindre-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.v-rejoindre-label { font-weight: 700; color: var(--encre); font-size: 1.05rem; }
.v-rejoindre-ligne { display: flex; gap: 10px; flex: 1 1 320px; max-width: 460px; }
.v-rejoindre-ligne .a-code { flex: 1; min-width: 0; font-size: 24px; padding: 8px 12px; }
.v-rejoindre-ligne .a-principal { min-height: 52px; padding: 0 22px; }
.v-rejoindre .a-erreur { flex-basis: 100%; margin: 0; }

.v-cadre { border-top: 1px solid var(--trait); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.v-cadre h3 { font-family: var(--f-titre); font-weight: 800; font-size: 1.3rem; color: var(--encre); margin: 0; }
@media (max-width: 860px) { .v-publics { grid-template-columns: minmax(0, 1fr); } .v-demo-phrase { font-size: 1.25rem; } }
/* L'appel final : un encadré compact aux couleurs du jeu (et non un écran entier). */
.v-section.v-appel { min-height: auto; border-top: 0; padding-block: 16px 56px; scroll-snap-align: none; }
.v-appel-carte { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px 40px; align-items: center; padding: 30px 36px 34px; border-radius: 20px;
  background: var(--action); color: var(--action-t); box-shadow: var(--ombre); }
.v-appel-jauge { grid-column: 1 / -1; display: flex; height: 8px; border-radius: 999px; overflow: hidden; margin: 0; }
.v-appel-jauge span:first-child { flex: 1.15; background: #187A4F; }
.v-appel-jauge span:last-child { flex: 1; background: #C2410C; }
.v-appel-texte { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.v-appel-titre { font-family: var(--f-titre); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.12; color: inherit; margin: 0; text-wrap: balance; }
.v-appel-texte p { margin: 0; font-size: 1.1rem; line-height: 1.45; }
.v-appel-action { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.v-appel-bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 34px; border-radius: 12px; background: #F2B705; color: #1A2632;
  font-weight: 800; font-size: 1.15rem; text-decoration: none; white-space: nowrap; }
.v-appel-bouton:hover { background: #FFC61A; }
.v-appel-bouton:focus-visible { outline: 3px solid #F2B705; outline-offset: 3px; }
.v-appel-mail { font-size: .95rem; user-select: all; }
@media (max-width: 700px) { .v-appel-carte { grid-template-columns: minmax(0, 1fr); padding: 24px 20px 26px; } .v-appel-action { align-items: flex-start; } }
