/* ============================================================================
 * ggh-legal.css — Habillage des pages légales à la charte GoGoGoHappy
 * ============================================================================
 * Chargé par mentions-legales.html, confidentialite.html et cgu.html,
 * APRÈS leur bloc <style> d'origine (qu'il surcharge volontairement).
 * SOURCE UNIQUE : ne jamais recopier ces règles dans une page.
 *
 * Charte reprise de index.html :
 *   --nuit #0B1623 · --surface #14233B · --eleve #1B2E47
 *   --clair #EAF0F7 · --muted #A9BBD0 · --teal #2DD4BF · --ambre #F5B642
 *   display: Space Grotesk · body: DM Sans
 * ========================================================================== */

:root {
  --nuit: #0B1623;
  --surface: #14233B;
  --eleve: #1B2E47;
  --line: rgba(255, 255, 255, .09);
  --clair: #EAF0F7;
  --muted: #A9BBD0;
  --teal: #2DD4BF;
  --ambre: #F5B642;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color-scheme: dark;
}

/* --- Base --------------------------------------------------------------- */
body {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 22px 96px;
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--clair);
  background:
    radial-gradient(circle at 22% -8%, #10243b, transparent 58%),
    radial-gradient(circle at 88% 4%, #0e2a4d55, transparent 46%),
    var(--nuit);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Le mode sombre du modèle d'origine n'a plus lieu d'être : on est en nuit. */
@media (prefers-color-scheme: light) {
  body { color: var(--clair); background-color: var(--nuit); }
}

/* --- Retour ------------------------------------------------------------- */
.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 26px 0 30px;
  padding: 8px 15px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--teal);
  background: rgba(45, 212, 191, .08);
  border: 1px solid rgba(45, 212, 191, .26);
  border-radius: 30px;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}
.back:hover {
  background: rgba(45, 212, 191, .16);
  border-color: rgba(45, 212, 191, .5);
}

/* --- Titres ------------------------------------------------------------- */
h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.022em;
  margin: 0 0 6px;
  background: linear-gradient(96deg, var(--clair) 18%, var(--teal) 128%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 {
  font-family: var(--display);
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: -.012em;
  color: var(--clair);
  margin: 46px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
h3 {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--teal);
  margin: 28px 0 10px;
}

/* --- Texte -------------------------------------------------------------- */
p { margin: 0 0 15px; }
strong { color: #FFF; font-weight: 600; }
.muted { color: var(--muted); opacity: 1; font-size: .9rem; }

a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 212, 191, .32);
  transition: border-color .18s ease;
}
a:hover { border-bottom-color: var(--teal); }
.back, .liens a, h1 a { border-bottom: none; }

ul { padding-left: 20px; margin: 0 0 16px; }
li { margin-bottom: 9px; }
li::marker { color: var(--teal); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .84em;
  color: var(--teal);
  background: rgba(45, 212, 191, .12);
  border: 1px solid rgba(45, 212, 191, .2);
  padding: 1px 6px;
  border-radius: 6px;
}

/* --- Encadrés ----------------------------------------------------------- */
.tldr {
  background: linear-gradient(150deg, rgba(45, 212, 191, .11), rgba(45, 212, 191, .04));
  border: 1px solid rgba(45, 212, 191, .3);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 26px 0 34px;
}
.tldr strong { color: var(--teal); }
.tldr ul { margin-top: 10px; margin-bottom: 0; }

.avert {
  background: rgba(245, 182, 66, .09);
  border: 1px solid rgba(245, 182, 66, .34);
  border-left-width: 3px;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 22px 0;
}
.avert strong { color: var(--ambre); }

/* --- Bloc identité (mentions légales) ----------------------------------- */
.ident {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 20px 0 8px;
}
.ident dt {
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  opacity: 1;
  margin-top: 16px;
}
.ident dt:first-child { margin-top: 0; }
.ident dd { margin: 3px 0 0; color: var(--clair); }

/* --- Tableaux ----------------------------------------------------------- */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 18px 0 22px;
  font-size: .88rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
th, td {
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--eleve);
  color: var(--teal);
  font-family: var(--display);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
tr:last-child td { border-bottom: none; }
tbody tr:hover td, table tr:hover td { background: rgba(45, 212, 191, .04); }

/* --- Bouton cookies ----------------------------------------------------- */
.btn-cookies {
  font-family: var(--body);
  font-size: .95rem;
  font-weight: 700;
  color: #04201B;
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 12px;
  padding: 11px 20px;
  margin: 8px 0 4px;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.btn-cookies:hover { background: #5FE3D2; transform: translateY(-1px); }
.btn-cookies:active { transform: translateY(0); }

/* --- Pied de page ------------------------------------------------------- */
.liens {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .92rem;
}
.liens a { margin-right: 0; color: var(--muted); font-weight: 500; }
.liens a:hover { color: var(--teal); }

/* --- Accessibilité et mobile -------------------------------------------- */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

@media (max-width: 560px) {
  body { padding: 0 16px 72px; font-size: 16px; }
  h2 { font-size: 1.14rem; margin-top: 36px; }
  table { font-size: .82rem; }
  th, td { padding: 9px 10px; }
  .ident, .tldr { padding: 17px 18px; }
}
/* Identité de l'éditeur — texte simple, sans cadre (mentions légales, §7) */
.ident--plain { font-size: .88rem; margin: 14px 0 0; }
.ident--plain dt { display: inline; font-weight: 600; color: var(--muted); font-size: inherit; text-transform: none; letter-spacing: normal; margin: 0; }
.ident--plain dt::after { content: " : "; }
.ident--plain dd { display: inline; margin: 0; color: var(--clair); }
.ident--plain dd::after { content: ""; display: block; margin-bottom: 7px; }