/* ============================================================
   OLAËMA — additions.css
   À charger APRÈS main.css. Rien à modifier dans main.css.
   Ne contient que les blocs qui n'existaient pas encore :
   accroche du hero, ligne de séance, direct Twitch, inscription,
   auteur, partenaires, marqueurs « à remplir ».
   Reprend les variables et les polices déjà définies.
   ============================================================ */

/* === HERO — accroche et actions === */
.hero-lede {
  max-width: 34em;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
  opacity: 0;
  animation: fadeIn 2s ease 2.2s forwards;
}
.hero-lede p {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  margin-bottom: 1rem;
  color: var(--parchment);
}
.hero-lede p:last-child { margin-bottom: 0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 2.5rem;
  opacity: 0;
  animation: fadeIn 2s ease 2.6s forwards;
}
.hero-actions .hero-button { padding: 0.9rem 2.2rem; }

.next-session {
  margin-top: 2rem;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  opacity: 0;
  animation: fadeIn 2s ease 3s forwards;
}
.next-session em { font-style: normal; }

/* === Marqueurs « à remplir » — à supprimer une fois le site complété === */
.todo,
.todo-box {
  border: 1px dashed rgba(201, 168, 76, 0.55);
  background: rgba(201, 168, 76, 0.07);
  color: var(--gold-light);
  font-style: normal;
}
.todo {
  display: inline-block;
  padding: 0.05em 0.5em;
  border-radius: 2px;
  font-family: 'Cinzel', serif;
  font-size: 0.85em;
  letter-spacing: 0.08em;
}
.todo-box { padding: 1.5rem; border-radius: 2px; }
.todo-box p:last-child { margin-bottom: 0; }

/* === DIRECT TWITCH === */
.stream-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  margin: 2.5rem 0 0;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 2px;
  overflow: hidden;
  background: #000;
}
.stream-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.stream-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  background: var(--dark);
  color: var(--gold-light);
  font-size: 0.95rem;
}
.stream-placeholder strong {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}
.stream-placeholder code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.85em;
  color: var(--gold);
}
.stream-actions { margin-top: 2rem; }

/* === INSCRIPTION === */
.signup-block {
  margin-top: 3rem;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
}
.signup-block h3 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}
.signup-block > p { color: var(--gold-light); opacity: 0.85; }

.signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin: 1.8rem 0 0;
}
.signup-form input[type="email"] {
  flex: 1 1 260px;
  max-width: 360px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(200, 160, 80, 0.2);
  border-radius: 2px;
  color: #e8e3da;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.signup-form input[type="email"]::placeholder { color: rgba(200, 180, 140, 0.3); }
.signup-form input[type="email"]:focus {
  border-color: rgba(200, 160, 80, 0.6);
  box-shadow: 0 0 0 3px rgba(200, 160, 80, 0.08);
}
.signup-fine {
  margin: 1.2rem 0 0;
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(200, 160, 80, 0.45);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* === LABELS DE LA JAUGE DE FLÉTRINE === */
/* main.css positionne 4 libellés sous 6 paliers : on répartit proprement */
.fletrine-labels { max-width: 360px; }

/* === AUTEUR === */
.author-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}
@media (min-width: 720px) {
  .author-grid { grid-template-columns: 200px 1fr; gap: 2.5rem; }
}
.author-portrait {
  aspect-ratio: 1;
  border: 1px dashed rgba(201, 168, 76, 0.5);
  border-radius: 2px;
  background: rgba(201, 168, 76, 0.05);
  color: var(--gold-light);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}
.author-text p:last-child { margin-bottom: 0; }

/* === PARTENAIRES === */
.partners-title {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.08em;
  margin: 3rem 0 1rem;
}

/* === ACCESSIBILITÉ === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nation-tab:focus-visible,
.faction-tab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-title, .hero-subtitle, .hero-tagline,
  .hero-lede, .hero-actions, .next-session, .hero-scroll { opacity: 1 !important; }
  section { opacity: 1 !important; transform: none !important; }
}

/* === MOBILE === */
@media (max-width: 700px) {
  .hero-actions { flex-direction: column; align-items: stretch; padding: 0 1.5rem; }
  .hero-actions .hero-button { text-align: center; }
  .next-session { padding: 0 1.5rem; line-height: 2; }
  .signup-form input[type="email"] { max-width: none; }
  .signup-form .cf-btn-submit { width: 100%; }
}

/* ============================================================
   AUDIT DU 25/09/2026 — ajouts pour l'accessibilité, la CSP et
   l'homogénéité. Aucun style n'est plus écrit dans les pages.
   ============================================================ */

/* L'attribut hidden l'emporte toujours (des boutons ont un display propre) */
[hidden] { display: none !important; }

/* Accès rapide au contenu, visible au clavier seulement */
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10000;
  padding: .7rem 1.2rem; background: var(--dark); color: var(--gold);
  font-family: 'Cinzel', serif; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase;
  border: 1px solid var(--gold); border-radius: 2px; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* Sans script, rien ne reste caché : l'apparition au défilement n'est qu'un plus */
html:not(.js) section { opacity: 1 !important; transform: none !important; }
html.modal-open { overflow: hidden; }

/* Couleurs des peuples et des branches (anciens styles en ligne) */
.accent-4a7c8f{background:#4a7c8f}
.accent-6a6a72{background:#6a6a72}
.accent-6e8b4a{background:#6e8b4a}
.accent-6e8b7a{background:#6e8b7a}
.accent-6fb5c9{background:#6fb5c9}
.accent-7a4a8f{background:#7a4a8f}
.accent-7c9f8f{background:#7c9f8f}
.accent-8a7a5a{background:#8a7a5a}
.accent-8a9a6e{background:#8a9a6e}
.accent-8b2020{background:#8b2020}
.accent-9b6fb5{background:#9b6fb5}
.accent-a08a6e{background:#a08a6e}
.accent-a8c8d8{background:#a8c8d8}
.accent-c45a2d{background:#c45a2d}
.accent-c9a84c{background:#c9a84c}
.accent-d8e0e8{background:#d8e0e8}
.accent-f0e6d2{background:#f0e6d2}

/* Espacements (anciens styles en ligne) */
.flush-bottom { margin-bottom: 0 !important; }
.space-top { margin-top: 2.5rem; }
.space-top-sm { margin-top: 2rem; }

/* Éléments en attente d'une adresse : visibles, mais ni cliquables ni trompeurs */
.hero-button.is-pending { opacity: .45; cursor: default; }
.hero-button.is-pending:hover { box-shadow: none; }
.hero-button.is-pending:hover::before { left: -100%; right: 100%; }
.download-card.is-pending { cursor: default; }
.download-card.is-pending:hover { transform: none; border-color: rgba(201,168,76,0.12); box-shadow: none; }
.download-card.is-pending::after { content: none; }

/* Direct Twitch : lecteur chargé à la demande */
.stream-placeholder .stream-consent { max-width: 34em; color: var(--gold-light); opacity: .8; }
.stream-placeholder .stream-load { margin-top: .6rem; cursor: pointer; font-size: .7rem; padding: .6rem 1.6rem; }

/* Anti-robot du formulaire */
.cf-turnstile-slot:empty { display: none; }
.cf-turnstile-slot { min-height: 65px; }

/* Pied de page */
footer p { margin-bottom: .8rem; }
.footer-links a { color: var(--gold-dim); text-decoration: none; border-bottom: 1px solid rgba(201,168,76,.3); }
.footer-links a:hover { color: var(--gold); }
.footer-fate {
  max-width: 62em; margin: 1rem auto 0; font-size: .66rem; line-height: 1.8;
  letter-spacing: .1em; opacity: .75;
}

/* ============================================================
   PAGES LÉGALES (mentions légales, confidentialité)
   ============================================================ */
.page-legale { max-width: 860px; margin: 0 auto; padding: 7rem 1.5rem 3rem; }
.page-legale .section-ornament { padding: 2.5rem clamp(1.2rem, 4vw, 3rem); }
.page-legale section { opacity: 1; transform: none; }
.legal-back {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 2.5rem;
  font-family: 'Cinzel', serif; font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold-dim); text-decoration: none; border: 1px solid rgba(201,168,76,.2);
  padding: .6rem 1.2rem; border-radius: 2px; transition: color .2s, border-color .2s;
}
.legal-back:hover { color: var(--gold); border-color: rgba(201,168,76,.5); }
.legal-header { text-align: center; margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(201,168,76,.2); }
.legal-header h1 {
  font-family: 'Cinzel Decorative', serif; font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--gold); margin-bottom: .6rem; letter-spacing: .05em;
}
.legal-meta { font-style: italic; font-size: .95rem; color: var(--gold-light); opacity: .6; margin: 0; }
.legal-section { margin-bottom: 2.5rem; }
.legal-section h2 {
  font-family: 'Cinzel', serif; font-size: .85rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; text-align: left; color: var(--gold);
  margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid rgba(201,168,76,.15);
}
.legal-section h3 { font-family: 'Cinzel', serif; font-size: .8rem; letter-spacing: .1em; color: var(--gold-light); margin: 1.5rem 0 .6rem; }
.legal-section p, .legal-section li { font-size: 1.05rem; line-height: 1.8; margin-bottom: .7rem; }
.legal-section ul { list-style: none; padding: 0; }
.legal-section ul li::before { content: '—'; color: var(--gold-dim); margin-right: .6rem; }
.legal-section a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(201,168,76,.3); }
.legal-section a:hover { border-bottom-color: var(--gold); }
.legal-table-wrap { overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 1rem; }
.legal-table th {
  font-family: 'Cinzel', serif; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); padding: .7rem 1rem; text-align: left;
  border-bottom: 1px solid rgba(201,168,76,.25); background: rgba(201,168,76,.05);
}
.legal-table td { padding: .65rem 1rem; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: top; line-height: 1.6; }
.legal-highlight { background: rgba(201,168,76,.06); border: 1px solid rgba(201,168,76,.18); border-radius: 2px; padding: 1.1rem 1.4rem; margin: 1rem 0; }
.legal-highlight p { margin-bottom: 0 !important; }
@media (max-width: 600px) {
  .legal-table { font-size: .92rem; }
  .legal-table th, .legal-table td { padding: .5rem .6rem; }
}

/* Case de consentement : la règle générale des champs (appearance: none, padding, largeur 100 %)
   la rendait muette — cochée ou non, elle avait la même allure */
.cf-form input[type="checkbox"] {
  -webkit-appearance: auto; appearance: auto;
  width: 1.1rem; height: 1.1rem; padding: 0; flex: 0 0 auto;
  accent-color: var(--gold); background: none;
}
.cf-form input[type="checkbox"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.footer-fate a { color: var(--gold-dim); text-decoration: none; border-bottom: 1px solid rgba(201,168,76,.3); }
.footer-fate a:hover { color: var(--gold); }

/* Partenaires : même carte que les ressources, flèche « sortante » */
.partners-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.partner-card h4 { font-family: 'Cinzel', serif; color: var(--gold); font-size: 1rem; letter-spacing: .06em; margin-bottom: .6rem; }
.partner-card::after { content: '↗'; }
@media (max-width: 700px) { .partners-grid { grid-template-columns: 1fr; } }

/* Liens dans le texte : main.css n'en définit aucun, le navigateur les affichait en bleu */
.section-ornament p a:not([class]), .section-ornament li a:not([class]) {
  color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(201,168,76,.35); transition: color .2s, border-color .2s;
}
.section-ornament p a:not([class]):hover, .section-ornament li a:not([class]):hover { color: var(--gold-light); border-bottom-color: var(--gold); }

/* Fond de page sombre même au-delà du défilement */
html { background: var(--dark); }

/* Cartes-liens : sans couleur propre, les pictogrammes prenaient le bleu des liens du navigateur */
a.download-card { color: var(--gold-light); }
.download-card .download-icon { color: var(--gold); }
