/* ============================================================
   ARTS DÉCO — artsdeco.org
   Design system : fond blanc, bleu nuit (structure), or (CTA).
   Thème clair haute lisibilité.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-2: #f5f9fd;
  --bg-3: #e9f1fb;
  --ligne: #d3e1f1;
  --encre: #16243f;        /* texte principal — bleu nuit très foncé */
  --encre-mute: #54637a;   /* texte secondaire */
  --bleu: #1559c2;         /* liens, accents structure */
  --bleu-d: #0e336e;       /* bleu marine — titres, entêtes, footer */
  --or: #d4af37;           /* or — CTA et accents */
  --or-vif: #e8c860;
  --or-d: #9c7420;         /* or foncé lisible sur fond clair */
  --vert: #1f8f54;
  --rouge: #c0392b;
  --radius: 10px;
  --maxw: 1140px;
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Jost", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 21px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--encre);
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--bleu); text-decoration-color: rgba(21, 89, 194, .4); text-underline-offset: 3px; }
a:hover { color: var(--bleu-d); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.22; color: var(--bleu-d); }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: .4em 0 .5em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin: 1.8em 0 .6em; }
h3 { font-size: clamp(1.1rem, 2.4vw, 1.3rem); margin: 1.5em 0 .5em; }
h4 { font-size: 1.05rem; margin: 1.2em 0 .4em; color: var(--bleu); }

h2::after {
  content: "";
  display: block;
  width: 72px; height: 3px;
  margin-top: .35em;
  background: linear-gradient(90deg, var(--or), var(--bleu) 70%, transparent);
}

p { margin: .8em 0; }
ul, ol { padding-left: 1.3em; }
li { margin: .35em 0; }
strong { color: var(--bleu-d); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--ligne);
  box-shadow: 0 1px 10px rgba(14, 51, 110, .05);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 18px;
  min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
  position: relative;
}
/* Hamburger (mobile nav) */
.nav-toggle { position: absolute; opacity: 0; width: 0; height: 0; }
.nav-burger {
  display: none; margin-left: auto; cursor: pointer;
  width: 44px; height: 40px; border: 1px solid var(--ligne); border-radius: 8px;
  background: var(--bg); align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--bleu-d); border-radius: 2px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem; letter-spacing: .12em;
  color: var(--bleu-d); text-decoration: none; white-space: nowrap;
}
.logo svg { width: 30px; height: 30px; flex: none; }
.logo b { color: var(--or-d); font-weight: 700; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.nav a {
  padding: 8px 11px; border-radius: 6px;
  text-decoration: none; font-size: .95rem; color: var(--encre-mute);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--bleu-d); background: var(--bg-3); }

/* ---------- Age / RG ribbon ---------- */
.rg-ribbon {
  background: var(--bleu-d);
  border-bottom: 1px solid var(--bleu-d);
  color: #dce6f5;
  font-size: 13px; text-align: center; padding: 8px 14px;
  white-space: nowrap; overflow-x: auto; scrollbar-width: none;
}
.rg-ribbon::-webkit-scrollbar { display: none; }
.rg-ribbon a { color: #fff; text-decoration-color: rgba(255,255,255,.5); }

/* ---------- Hero ---------- */
.hero { padding: 34px 0 10px; position: relative; }
.hero .kicker {
  color: var(--bleu); font-size: .85rem; letter-spacing: .22em;
  text-transform: uppercase; margin: 0 0 6px; font-weight: 600;
}
.hero .lede { font-size: 1.1rem; color: var(--encre); max-width: 860px; }
.byline {
  display: flex; align-items: center; gap: 10px; flex-wrap: nowrap;
  font-size: .88rem; color: var(--encre-mute); margin: 10px 0 4px;
}
.byline img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--or); flex: none; }
.byline span { flex: 1; min-width: 0; }
.byline a { color: var(--bleu); }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 2px; }
.badge {
  font-size: .78rem; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--ligne); color: var(--encre-mute); background: var(--bg-2);
}
.badge.gold { border-color: var(--or); color: var(--or-d); background: #fcf7e8; font-weight: 600; }

/* ---------- Buttons : l'or est réservé aux CTA ---------- */
.btn {
  display: inline-block; text-align: center;
  background: linear-gradient(180deg, var(--or-vif), var(--or) 60%, #b8952e);
  color: #2b2102 !important; font-weight: 700; letter-spacing: .02em;
  padding: 11px 22px; border-radius: 8px; text-decoration: none;
  border: 1px solid #c9a233; box-shadow: 0 2px 12px rgba(212, 175, 55, .35);
  font-size: .98rem; line-height: 1.2;
}
.btn:hover { filter: brightness(1.06); color: #2b2102; }
.btn.sm { padding: 11px 22px; font-size: .98rem; }
.btn-ghost {
  display: inline-block; padding: 10px 18px; border-radius: 8px;
  border: 1px solid var(--bleu); color: var(--bleu); text-decoration: none; font-size: .95rem; font-weight: 600;
}
.btn-ghost:hover { background: var(--bg-3); color: var(--bleu-d); }
.cta-note { display: block; font-size: .74rem; color: var(--encre-mute); margin-top: 6px; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; margin: 18px 0; border: 1px solid var(--ligne); border-radius: var(--radius); box-shadow: 0 2px 14px rgba(14, 51, 110, .05); }
table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: .92rem; background: var(--bg); }
caption { caption-side: top; text-align: left; padding: 12px 14px; color: var(--encre-mute); font-size: .85rem; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--ligne); vertical-align: middle; }
thead th {
  background: var(--bleu-d); color: #fff; font-family: var(--font-body);
  font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  position: sticky; top: 0;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) td { background: var(--bg-2); }
tbody tr:hover td { background: var(--bg-3); }
td .op-cell { display: flex; align-items: center; gap: 10px; }
td .op-cell img { width: 104px; height: 50px; object-fit: contain; background: #fff; border: 1px solid var(--ligne); border-radius: 6px; padding: 4px 8px; flex: none; }
.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--or); color: var(--or-d); font-weight: 700; font-size: .85rem; background: #fff;
}
tr.top-pick td { background: #fbf5e3 !important; }
.mini-table table { min-width: 0; }
.mini-table { max-width: 640px; }

/* ---------- Review cards ---------- */
.review {
  border: 1px solid var(--ligne); border-radius: var(--radius);
  background: var(--bg-2); padding: 22px 24px; margin: 26px 0;
  box-shadow: 0 2px 14px rgba(14, 51, 110, .05);
}
.review-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.review-head img { width: 168px; height: 78px; object-fit: contain; background: #fff; border: 1px solid var(--ligne); border-radius: 8px; padding: 8px 14px; }
.review-head .score {
  margin-left: auto; font-family: var(--font-display);
  font-size: 1.3rem; color: var(--or-d); white-space: nowrap; font-weight: 700;
}
.review h3 { margin-top: .2em; }
.procon { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.procon div { border: 1px solid var(--ligne); border-radius: 8px; padding: 12px 16px; background: #fff; }
.procon .pro { background: #eef8f1; border-color: #bfe3cd; }
.procon .con { background: #fdeeec; border-color: #f2c9c3; }
.procon h4 { margin: 0 0 6px; }
.procon .pro h4 { color: var(--vert); }
.procon .con h4 { color: var(--rouge); }
.procon ul { margin: 0; padding-left: 1.1em; font-size: .93rem; }

/* ---------- Affiliate offer cards ---------- */
.offers { display: flex; flex-direction: column; gap: 14px; margin: 20px 0; }
.offer-card {
  display: grid;
  grid-template-columns: 58px 168px 1fr 1.15fr 220px;
  align-items: center;
  gap: 18px;
  background: var(--bg);
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: 0 2px 12px rgba(14, 51, 110, .06);
}
.offer-card.featured {
  border: 2px solid var(--or);
  box-shadow: 0 4px 20px rgba(212, 175, 55, .28);
}
.offer-head { display: none; }
.offer-rank { text-align: center; line-height: 1; }
.offer-rank-num { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--or-d); }
.offer-rank-label { display: block; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-mute); margin-top: 4px; }
.offer-logo { background: #fff; border: 1px solid var(--ligne); border-radius: 8px; padding: 12px 14px; display: flex; align-items: center; justify-content: center; min-height: 86px; width: 100%; }
.offer-logo img { max-height: 64px; max-width: 100%; width: auto; object-fit: contain; }
.offer-main { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.offer-name { font-family: var(--font-display); font-size: 1.15rem; color: var(--bleu-d); font-weight: 600; }
.offer-tag { display: none; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-mute); }
.offer-specs { display: flex; gap: 24px; flex-wrap: wrap; }
.offer-specs > div { display: flex; flex-direction: column; gap: 2px; }
.offer-k { font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-mute); }
.offer-v { font-size: .9rem; color: var(--encre); font-weight: 600; }
.offer-bonus { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.offer-bonus-pill {
  background: #fbf4df;
  border: 1px solid var(--or);
  color: var(--or-d);
  font-weight: 700; font-size: .98rem; line-height: 1.25;
  padding: 9px 16px; border-radius: 8px;
}
.offer-check { font-size: .74rem; color: var(--encre-mute); }
.offer-cta { display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: center; width: 100%; min-width: 0; }
.offer-cta .btn { width: 100%; white-space: nowrap; }
.offer-terms { font-size: .72rem; color: var(--encre-mute); }

@media (max-width: 820px) {
  .offer-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 12px;
    padding: 0 0 18px;
    overflow: hidden;
  }
  .offer-head {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; background: var(--bleu-d); border-bottom: 1px solid var(--bleu-d);
    padding: 10px 16px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #fff;
  }
  .offer-card.featured .offer-head { background: var(--bleu-d); color: var(--or-vif); }
  .offer-head .plus18-sm {
    border: 1px solid var(--or); color: var(--or-vif);
    border-radius: 5px; padding: 2px 8px; font-weight: 700; letter-spacing: .02em;
  }
  .offer-rank { display: none; }
  .offer-logo { margin-top: 10px; min-height: 0; padding: 16px 20px; width: auto; }
  .offer-logo img { max-height: 76px; }
  .offer-tag { display: block; }
  .offer-main { align-items: center; padding: 0 16px; gap: 9px; }
  .offer-name { font-size: 1.4rem; }
  .offer-specs { justify-content: center; gap: 30px; }
  .offer-specs > div { align-items: center; }
  .offer-bonus { align-items: center; padding: 0 16px; width: 100%; }
  .offer-bonus-pill { font-size: 1.05rem; padding: 11px 20px; }
  .offer-cta { width: 100%; padding: 0 16px; min-width: 0; }
  .offer-cta .btn { width: 100%; padding: 13px 22px; white-space: normal; }
}

/* ---------- Callouts ---------- */
.callout {
  border-left: 4px solid var(--or); background: var(--bg-2);
  padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 18px 0; font-size: .96rem;
}
.callout.warn { border-left-color: var(--rouge); background: #fdeeec; }
.callout.info { border-left-color: var(--bleu); background: var(--bg-3); }

/* ---------- FAQ ---------- */
details {
  border: 1px solid var(--ligne); border-radius: 8px;
  background: var(--bg-2); margin: 10px 0; padding: 0 18px;
}
summary {
  cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--bleu-d);
  list-style: none; position: relative; padding-right: 30px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 2px; top: 10px; color: var(--or-d); font-size: 1.3rem; }
details[open] summary::after { content: "–"; }
details p { margin-top: 0; color: var(--encre); }

/* ---------- TOC ---------- */
.toc {
  border: 1px solid var(--ligne); border-radius: var(--radius);
  background: var(--bg-3); padding: 16px 22px; margin: 20px 0; font-size: .93rem;
}
.toc strong { color: var(--bleu-d); letter-spacing: .1em; font-size: .8rem; text-transform: uppercase; }
.toc ol { columns: 2; margin: 8px 0 0; }
.toc a { color: var(--bleu); text-decoration: none; }
.toc a:hover { color: var(--bleu-d); text-decoration: underline; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; padding: 0; list-style: none; }
.steps li {
  counter-increment: step; position: relative;
  padding: 10px 0 10px 54px; margin: 0;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 10px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--or); color: var(--or-d); background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
}

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 16px; margin: 18px 0; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.card {
  border: 1px solid var(--ligne); border-radius: var(--radius);
  background: var(--bg-2); padding: 18px 20px;
}
.card h3 { margin-top: 0; font-size: 1.1rem; }
.card p { font-size: .93rem; color: var(--encre-mute); }

/* ---------- Deco separators ---------- */
.deco-sep {
  border: none; height: 22px; margin: 34px auto; max-width: 320px;
  background:
    radial-gradient(circle at center, var(--or) 2px, transparent 3px) center/22px 22px no-repeat,
    linear-gradient(90deg, transparent, var(--or) 20%, var(--or) 80%, transparent) center/100% 1px no-repeat;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 60px; border-top: 3px solid var(--or);
  background: var(--bleu-d); font-size: .9rem; color: #c7d4e8;
}
.footer-rg {
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  padding: 16px 0; text-align: center; color: #c7d4e8; font-size: .84rem;
}
.footer-rg a { color: #fff; }
.footer-rg .plus18 {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--or); color: var(--or-vif);
  font-weight: 700; font-size: .8rem; margin-right: 10px; vertical-align: middle;
}
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 32px 0; }
.footer-cols h4 { color: var(--or-vif); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: 7px 0; }
.footer-cols a { color: #c7d4e8; text-decoration: none; }
.footer-cols a:hover { color: #fff; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 0 22px; color: #8ea2c2; font-size: .8rem; text-align: center; }
.footer-base a { color: #b9c8e0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .84rem; color: var(--encre-mute); margin: 16px 0 0; }
.breadcrumb a { color: var(--bleu); text-decoration: none; }
.breadcrumb a:hover { color: var(--bleu-d); text-decoration: underline; }

/* ---------- Utilities ---------- */
.muted { color: var(--encre-mute); }
.gold { color: var(--or-d); }
.center { text-align: center; }
.updated { font-size: .84rem; color: var(--encre-mute); }
.anchor-offset { scroll-margin-top: 84px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid.c3 { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .toc ol { columns: 1; }
}
@media (max-width: 640px) {
  html { font-size: 19px; }
  body { font-size: 1.05rem; }
  .wrap { padding: 0 20px; }
  .grid.c3, .grid.c2, .procon { grid-template-columns: 1fr; }
  .review { padding: 16px; }
  .review-head .score { margin-left: 0; }

  /* Mobile: lift the affiliate table above the fold */
  .hero { padding: 12px 0 2px; }
  .hero .kicker { margin-bottom: 3px; }
  .hero h1 { margin: .1em 0 .25em; }
  .byline { margin: 6px 0 2px; }
  .updated { margin: 3px 0; }
  .badges { display: none; }
  #top15 { margin-top: .5em; margin-bottom: .4em; }
  #top15 + p { display: none; }     /* intro line — kept on desktop, hidden on mobile to lift the table */

  /* Mobile nav → hamburger dropdown */
  .nav-burger { display: flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; background: var(--bg);
    border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne);
    box-shadow: 0 10px 20px rgba(14, 51, 110, .12); padding: 6px 0; z-index: 60;
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav a { width: 100%; padding: 13px 20px; border-radius: 0; font-size: 1rem; }
}
