/* ==========================================================================
   neemo.eu : feuille de style
   Direction visuelle reprise de la charte du site : marine, or et papier
   crème, titres en serif. Aucune police externe, aucun JavaScript.
   ========================================================================== */

:root {
  --gold:       #c9a84c;
  --gold-light: #e8c96a;
  --gold-dark:  #a07c2a;
  --navy:       #1b1b2e;
  --blue-deep:  #1a3a7c;
  --blue-mid:   #2c4fa0;
  --red:        #c41e3a;
  --green:      #1a7c3a;

  --paper:  #f5f4ef;
  --card:   #ffffff;
  --ink:    #2a2a2a;
  --ink-2:  #4a4a4a;
  --ink-3:  #6b7280;
  --line:   #e5e0d5;
  --line-2: #cfc7b4;

  --serif: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 8px;
}

/* ------------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }

body { margin: 0; background: var(--paper); color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif; font-size: 1.02rem; line-height: 1.75; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-mid); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); margin: 0 0 .6em; line-height: 1.25; }
h1 { font-size: clamp(1.6rem, 1.15rem + 2.2vw, 2.35rem); text-align: center; border-bottom: 3px solid var(--gold); padding-bottom: .5em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.75rem); border-bottom: 2px solid var(--gold); padding-bottom: .3em; margin-top: 2.6rem; }
h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); color: var(--blue-deep); margin-top: 1.8rem; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1.1em; }
strong, b { color: var(--navy); font-weight: 700; }

.wrap { max-width: 60rem; margin-inline: auto; padding-inline: 1.25rem; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--navy); color: #fff; padding: .7rem 1.2rem; border-radius: var(--r); font-family: var(--sans); }
.skip:focus { left: .75rem; top: .75rem; }

/* --------------------------------------------------------------- En-tête */
.site-header { background: var(--navy); border-bottom: 3px solid var(--gold); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.brand img { width: 130px; height: 50px; }
.site-nav { margin-left: auto; font-family: var(--sans); }
.site-nav ul { display: flex; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: #c8d8f8; text-decoration: none; font-size: .84rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: .2rem 0; border-bottom: 2px solid transparent; display: block; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-light); border-bottom-color: var(--gold); }
.age { font-family: var(--sans); font-size: .72rem; font-weight: 800; color: var(--navy); background: var(--gold); border-radius: 4px; padding: .15rem .5rem; }
@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-header .wrap { justify-content: space-between; }
  .age { margin-left: auto; }
}

/* ----------------------------------------------------------- Fil d'Ariane */
.crumbs { font-family: var(--sans); font-size: .78rem; color: var(--ink-3); padding: .9rem 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: .4rem; color: var(--line-2); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--blue-deep); text-decoration: underline; }

/* ------------------------------------------------------------- Conteneur */
.paper { background: var(--card); box-shadow: 0 4px 24px rgba(26,58,124,.08); padding: 2.5rem 2rem; margin: 1.5rem 0 3rem; }
@media (max-width: 768px) { .paper { padding: 1.5rem 1rem; } }

.intro-lead { font-family: var(--sans); font-size: 1.02rem; color: #444; line-height: 1.7; }
.meta-info { font-family: var(--sans); text-align: center; color: var(--ink-3); font-size: .84rem; margin: 0 0 2rem; border-top: 1px solid var(--line); padding-top: .9rem; }

/* ------------------------------------------------- Widget des offres */
.widget-offres { margin: 0 0 2.5rem; }
.widget-offres h2 { font-size: 1.1rem; border-bottom: 0; margin: 0 0 .6rem;
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--gold-dark); }
#casino-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 620px;          /* hauteur de depart, ajustee par le message postMessage */
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fdfcf9;
  overflow: hidden;
  color-scheme: light;
}
@media (max-width: 700px) { #casino-frame { height: 900px; } }

/* ---------------------------------------------------------------- Podium */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0 0 2rem; }
@media (max-width: 760px) { .podium { grid-template-columns: 1fr; } }
.podium article { border: 1px solid var(--line); border-top: 4px solid var(--gold); background: #fdfcf9; padding: 1.1rem; text-align: center; }
.podium .rk { font-family: var(--sans); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); }
.podium h3 { font-size: 1.15rem; margin: .3rem 0 .2rem; color: var(--navy); }
.podium .note { font-family: var(--sans); font-weight: 800; color: var(--blue-deep); font-size: 1.4rem; }
.podium p { font-family: var(--sans); font-size: .88rem; color: var(--ink-2); margin: .5rem 0 1rem; }

/* --------------------------------------------------------------- Sommaire */
.toc { background: linear-gradient(135deg, #1b1b2e 0%, #1a3a7c 100%); border-radius: var(--r); padding: 1.6rem 1.8rem; margin: 0 0 2.75rem; border-left: 5px solid var(--gold); }
.toc h2 { font-family: var(--sans); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-light); border: 0; padding: 0; margin: 0 0 1rem; }
.toc ol { list-style: none; padding: 0; margin: 0; font-family: var(--sans); counter-reset: toc; columns: 2; column-gap: 2rem; }
@media (max-width: 700px) { .toc ol { columns: 1; } }
.toc li { counter-increment: toc; margin-bottom: .45rem; break-inside: avoid; }
.toc a { color: #c8d8f8; text-decoration: none; font-size: .9rem; }
.toc a::before { content: counter(toc) ". "; color: var(--gold); font-weight: 700; }
.toc a:hover { color: var(--gold-light); text-decoration: underline; }

/* -------------------------------------------------------------- Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 800; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .05em; text-decoration: none;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--navy); padding: .6rem 1.3rem; border: 0; border-radius: 5px;
  box-shadow: 0 4px 0 var(--gold-dark); transition: filter .1s, transform .1s;
  white-space: nowrap;
}
.btn:hover { filter: brightness(108%); transform: translateY(-1px); color: var(--navy); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--gold-dark); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 4px 0 #0d0d18; }
.btn-navy:hover { background: #262640; color: #fff; }
.btn-wide { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.4rem 0; }

/* ------------------------------------------------- En-tête de fiche casino */
.casino-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin: 2.75rem 0 1rem; border-bottom: 2px solid var(--gold); padding-bottom: .6rem; }
.casino-head h3 { margin: 0; font-size: 1.35rem; color: var(--navy); }
@media (max-width: 640px) { .casino-head { flex-direction: column; align-items: flex-start; } .casino-head .btn { width: 100%; } }

/* ------------------------------------------------------------- Tableaux */
.table-wrap { overflow-x: auto; margin: 1.4rem 0; }
table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .9rem; }
caption { text-align: left; font-family: var(--serif); font-size: 1.05rem; color: var(--navy); padding: 0 0 .5rem; }
th, td { border: 1px solid var(--line); padding: .65rem .8rem; text-align: left; vertical-align: top; }
thead th { background: var(--navy); color: var(--gold-light); font-weight: 700; }
tbody tr:nth-child(even) td { background: #f9f7f2; }
.rank-table td:first-child { font-weight: 800; color: var(--navy); text-align: center; width: 3rem; }
td.oui { color: var(--green); font-weight: 700; }
td.non { color: var(--red); font-weight: 700; }

/* --------------------------------------------------------- Avantages */
.pros-cons { font-family: var(--sans); margin: 1rem 0 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 700px) { .pros-cons { grid-template-columns: 1fr; } }
.pros-cons > div { border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; background: #fdfcf9; }
.pros-cons h4 { font-family: var(--sans); font-size: .95rem; margin: 0 0 .6rem; }
.pros-cons .pros h4 { color: var(--green); }
.pros-cons .cons h4 { color: var(--red); }
.pros-cons ul { margin: 0; padding-left: 1.2rem; font-size: .93rem; }
.pros-cons li { margin-bottom: .4rem; }
.pros-cons .pros li::marker { color: var(--green); }
.pros-cons .cons li::marker { color: var(--red); }

/* -------------------------------------------------------------- Encadrés */
.callout { font-family: var(--sans); background: #eef3fb; border-left: 4px solid var(--blue-mid);
  border-radius: 5px; padding: 1rem 1.2rem; margin: 1.4rem 0; font-size: .95rem; }
.callout p:last-child { margin-bottom: 0; }
.callout .label { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-deep); margin-bottom: .35rem; }
.callout.warning { background: #fdf7e8; border-left-color: var(--gold); }
.callout.warning .label { color: var(--gold-dark); }
.callout.danger { background: #fef0f0; border-left-color: var(--red); }
.callout.danger .label { color: var(--red); }

/* --------------------------------------------------------------- Figures */
figure { margin: 1.6rem 0; }
figure img { width: 100%; border: 1px solid var(--line); border-radius: var(--r); }
figcaption { font-family: var(--sans); font-size: .82rem; color: var(--ink-3); padding-top: .45rem; }

/* ------------------------------------------------------ Listes du corps */
.body-text ul, .body-text ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.body-text li { margin-bottom: .45em; }

/* ------------------------------------------------------------------ FAQ */
.faq details { border: 1px solid var(--line); border-radius: 6px; margin-bottom: .7rem; background: #fff; overflow: hidden; }
.faq summary { background: #f7f5ef; padding: .85rem 1.1rem; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; font-family: var(--sans); font-weight: 700; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--gold-dark); margin-left: 1rem; }
.faq details[open] summary { background: #eef3fb; border-bottom: 1px solid var(--line); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 1rem 1.1rem; font-family: var(--sans); font-size: .95rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- Auteur */
.author-box { display: flex; align-items: flex-start; gap: 1.3rem; background: #f0eee7;
  padding: 1.5rem; border-radius: var(--r); margin-top: 2.75rem; border-left: 5px solid var(--navy); }
@media (max-width: 620px) { .author-box { flex-direction: column; } }
.author-box img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); flex-shrink: 0; }
.author-box h2 { font-size: 1.15rem; border: 0; padding: 0; margin: 0 0 .3rem; }
.author-box p { font-family: var(--sans); font-size: .9rem; color: #555; margin: 0 0 .5rem; }

/* --------------------------------------------------------------- Équipe */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.4rem 0; }
@media (max-width: 820px) { .team { grid-template-columns: 1fr; } }
.member { border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem; background: #fdfcf9; text-align: center; }
.member img { width: 5rem; height: 5rem; border-radius: 50%; margin: 0 auto .7rem; border: 2px solid var(--gold); }
.member h3 { font-size: 1.02rem; margin: 0 0 .1rem; }
.member .role { font-family: var(--sans); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: .5rem; }
.member p { font-family: var(--sans); font-size: .87rem; color: var(--ink-2); margin: 0; }

/* ----------------------------------------------------- Barre CTA mobile */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: .5rem;
  padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom)); background: rgba(27,27,46,.97); border-top: 2px solid var(--gold); }
.sticky-cta .btn { flex: 1 1 0; min-width: 0; font-size: .8rem; padding: .7rem .5rem; }
@media (max-width: 780px) { .sticky-cta { display: flex; } body { padding-bottom: 4.2rem; } }

/* ---------------------------------------------------------- Pied de page */
.site-footer { background: var(--navy); color: #b9bdd0; padding: 2.75rem 0; font-family: var(--sans); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-family: var(--sans); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); border: 0; padding: 0; margin: 0 0 .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: #c8d8f8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer strong { color: #fff; }
.legal { margin-top: 1.8rem; padding-top: 1.3rem; border-top: 1px solid #33334d; font-size: .8rem; color: #8f93ab; }
.legal strong { color: #f0a0a8; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
