/* ==========================================================================
   www.ubiqeyes.com : feuille de style, Captain Slots, page unique editoriale
   Palette : bleu ocean, or, turquoise, sur fond clair. Polices systeme.
   ========================================================================== */
:root {
  --marine: #0b2b33; --marine-2: #134451; --or: #f2a900; --or-f: #a37200; --corail: #0e9f8e; --corail-f: #0a7a6d;
  --bleu: #0a7a6d; --vert: #16a34a; --t: #0f172a; --t2: #475569; --f: #ffffff; --f2: #f6f5f0; --f3: #ecebe2; --l: #e0ddd0;
  --titre: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --corps: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; background: var(--f2); color: var(--t); font: 17px/1.7 var(--corps); }
img { max-width: 100%; height: auto; }
a { color: var(--bleu); text-underline-offset: 2px; } a:hover { color: var(--marine); }
h1, h2, h3 { font-family: var(--titre); line-height: 1.2; color: var(--marine); }
h1 { font-size: clamp(2rem, 4.8vw, 3.2rem); font-weight: 800; margin: .5rem 0 .8rem; color: #fff; }
h2 { font-size: 1.62rem; font-weight: 800; margin: 0 0 .9rem; }
h3 { font-size: 1.18rem; font-weight: 700; margin: 1.6rem 0 .5rem; }
p { margin: 0 0 1rem; }
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 12px; top: 12px; z-index: 90; background: #fff; padding: .5rem .8rem; }

/* Barre de progression de lecture */
.progression { position: fixed; top: 0; left: 0; height: 4px; width: 0; z-index: 100; background: linear-gradient(90deg, var(--or), var(--corail)); }

/* En-tete */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(11,43,51,.97); backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; }
.brand img { display: block; height: 44px; width: auto; }
.menu-haut { display: flex; gap: 1.2rem; margin-left: auto; margin-right: 1rem; }
.menu-haut a { color: #cbd5e1; font-weight: 600; font-size: .92rem; text-decoration: none; } .menu-haut a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.age { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--corail); color: #fff; font-weight: 800; font-size: .78rem; }
@media (max-width: 1060px) { .menu-haut { display: none; } }
@media (max-width: 560px) { .brand img { height: 34px; } .header-actions .btn-line { display: none; } }

/* Boutons */
.btn { display: inline-block; background: linear-gradient(135deg, var(--or), #ffcf3f); color: #1a1300; font-weight: 800; text-decoration: none; padding: .8rem 1.4rem;
  border-radius: 12px; border: 0; line-height: 1.2; text-align: center; cursor: pointer; font-size: 1rem; }
.btn:hover { filter: brightness(1.05); color: #1a1300; }
.btn-line { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); } .btn-line:hover { color: #fff; border-color: #fff; }
.btn-clair { background: #fff; color: var(--marine); border: 1.5px solid var(--l); } .btn-clair:hover { color: var(--marine); border-color: var(--marine); }
.btn-sm { padding: .52rem .95rem; font-size: .9rem; }
.btn-corail { background: linear-gradient(135deg, var(--corail), var(--corail-f)); color: #fff; } .btn-corail:hover { color: #fff; }
.btn-wide { display: block; width: 100%; }

/* Bandeau */
.hero { background: radial-gradient(circle at 85% 20%, rgba(14,159,142,.28), transparent 45%), radial-gradient(circle at 10% 90%, rgba(245,179,1,.18), transparent 40%), linear-gradient(135deg, var(--marine), #061a1f);
  color: #dbe5f3; padding: 2.6rem 0 0; }
.hero-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 2rem; align-items: center; }
.hero-logo { display: block; height: 58px; width: auto; }
.accroche { font-size: 1.14rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0; }
.hero-meta { font-size: .84rem; color: #94a3b8; }
.hero-visuel { margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.15); box-shadow: 0 24px 50px rgba(0,0,0,.45); aspect-ratio: 1200 / 630; background: var(--marine-2); }
.hero-visuel img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-chiffres { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 2.2rem; border-top: 1px solid rgba(255,255,255,.12); }
.hero-chiffres div { padding: 1.1rem .8rem; text-align: center; border-left: 1px solid rgba(255,255,255,.12); } .hero-chiffres div:first-child { border-left: 0; }
.hero-chiffres b { display: block; font: 800 1.5rem var(--titre); color: var(--or); } .hero-chiffres span { font-size: .8rem; color: #94a3b8; }
@media (max-width: 900px) { .hero-grille { grid-template-columns: 1fr; } .hero-visuel { order: -1; } .hero-chiffres { grid-template-columns: repeat(2, 1fr); } .hero-chiffres div { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); } }

/* Mise en page */
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2.2rem; align-items: start; margin-top: 2rem; }
.sommaire { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; background: #fff; border: 1px solid var(--l); border-radius: 18px; padding: 1rem; }
.sommaire p { margin: 0 0 .5rem; font-weight: 800; color: var(--marine); font-size: .9rem; }
.sommaire ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.sommaire li { counter-increment: s; }
.sommaire a { display: flex; gap: .5rem; padding: .32rem .5rem; border-radius: 8px; color: var(--t2); text-decoration: none; font-size: .86rem; line-height: 1.35; }
.sommaire a::before { content: counter(s); color: #94a3b8; font-weight: 700; min-width: 1.3rem; }
.sommaire a:hover { background: var(--f2); color: var(--marine); }
.sommaire a.actif { background: var(--marine); color: #fff; } .sommaire a.actif::before { color: var(--or); }
.sommaire .btn { margin-top: .8rem; }
@media (max-width: 1000px) { .layout { grid-template-columns: 1fr; } .sommaire { position: static; max-height: none; } .sommaire ol { columns: 2; } }
@media (max-width: 560px) { .sommaire ol { columns: 1; } }
.prose { min-width: 0; }
.prose section { background: #fff; border: 1px solid var(--l); border-radius: 22px; padding: 1.9rem 1.9rem 1rem; margin: 0 0 1.4rem; }
@media (max-width: 620px) { .prose section { padding: 1.3rem 1.1rem .7rem; } }
.prose ul, .prose ol { padding-left: 1.3rem; } .prose li { margin: .35rem 0; }
.eyebrow { margin: 0 0 .3rem; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--corail-f); }

/* Illustrations, tableaux, encadres */
.illus { margin: 1.3rem 0; } .illus img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--l); }
.illus figcaption { margin-top: .5rem; font-size: .85rem; color: var(--t2); font-style: italic; }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.4rem; border: 1px solid var(--l); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; background: #fff; }
caption { text-align: left; padding: .75rem 1rem; font-weight: 700; font-size: .86rem; color: var(--t2); }
th, td { padding: .65rem .9rem; border-top: 1px solid var(--l); text-align: left; vertical-align: top; }
thead th { background: var(--f3); color: var(--marine); border-top: 0; } tbody th { background: var(--f2); font-weight: 700; }
.encadre { border: 1px solid var(--l); border-left: 4px solid var(--bleu); border-radius: 14px; background: #f5f9ff; padding: 1rem 1.2rem; margin: 1.2rem 0; }
.encadre.or { border-left-color: var(--or); background: #fffbeb; } .encadre.corail { border-left-color: var(--corail); background: #fff1f2; } .encadre.vert { border-left-color: var(--vert); background: #f0fdf4; }
.encadre p { margin: .35rem 0; } .encadre-titre { margin: 0; font-weight: 800; color: var(--marine); }

/* Verdict : points forts et faibles */
.verdict-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.verdict-grille > div { border-radius: 16px; padding: 1.1rem 1.2rem; }
.plus { background: #f0fdf4; border: 1px solid #bbf7d0; } .moins { background: #fff1f2; border: 1px solid #fecdd3; }
.verdict-grille b { display: block; margin-bottom: .4rem; font-family: var(--titre); } .plus b { color: #15803d; } .moins b { color: #be123c; }
.verdict-grille ul { margin: 0; padding-left: 1.1rem; font-size: .94rem; }
.note-globale { display: flex; align-items: center; gap: 1.2rem; background: var(--marine); color: #dbe5f3; border-radius: 18px; padding: 1.1rem 1.4rem; margin: 1rem 0; }
.note-globale b { font: 800 2.4rem var(--titre); color: var(--or); } .note-globale p { margin: 0; font-size: .92rem; }
@media (max-width: 620px) { .verdict-grille { grid-template-columns: 1fr; } }

/* Offre */
.offre { border-radius: 20px; padding: 1.5rem; margin: 1.2rem 0; background: linear-gradient(135deg, var(--marine), var(--marine-2)); color: #dbe5f3; }
.offre .eti { margin: 0; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--or); }
.offre .montant { margin: .3rem 0 1rem; font: 800 1.7rem var(--titre); color: #fff; }
.paliers { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-bottom: 1rem; }
.paliers div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 14px; padding: .9rem 1rem; }
.paliers b { display: block; color: var(--or); } .offre .details { font-size: .88rem; color: #94a3b8; }
@media (max-width: 560px) { .paliers { grid-template-columns: 1fr; } }
.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; margin: .4rem 0 1rem; }

/* Logos */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .6rem; margin: 1rem 0 1.3rem; }
.logo-case { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; min-height: 92px; padding: .7rem .5rem; background: #fff; border: 1px solid var(--l); border-radius: 14px; }
.logo-case img { display: block; height: 32px; width: auto; max-width: 96px; object-fit: contain; }
.logo-case span { font-size: .72rem; color: var(--t2); font-weight: 700; text-align: center; line-height: 1.2; }

/* Outils interactifs */
.outil { margin: 1.3rem 0; border: 2px solid var(--marine); border-radius: 20px; overflow: hidden; }
.outil-tete { display: flex; align-items: center; gap: .7rem; background: var(--marine); color: #fff; padding: .8rem 1.2rem; }
.outil-tete b { font-family: var(--titre); font-size: 1.05rem; } .outil-tete span { margin-left: auto; font-size: .78rem; color: var(--or); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.outil-corps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; padding: 1.2rem; background: var(--f2); }
@media (max-width: 760px) { .outil-corps { grid-template-columns: 1fr; } }
.outil label { display: block; font-weight: 700; color: var(--marine); margin: .8rem 0 .3rem; font-size: .93rem; }
.outil label:first-child { margin-top: 0; }
.outil input[type=number], .outil select { width: 100%; padding: .65rem .8rem; border-radius: 10px; border: 1.5px solid var(--l); background: #fff; color: var(--t); font: 700 1.02rem var(--corps); }
.outil input[type=number]:focus, .outil select:focus { outline: 2px solid var(--or); border-color: var(--or); }
.outil input[type=range] { width: 100%; accent-color: var(--corail); }
.aide { font-size: .8rem; color: var(--t2); margin: .25rem 0 0; }
.resultats { background: #fff; border: 1px solid var(--l); border-radius: 16px; padding: 1rem 1.1rem; }
.res { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--l); }
.res:last-of-type { border-bottom: 0; } .res span { color: var(--t2); font-size: .9rem; } .res b { font: 800 1.1rem var(--titre); color: var(--marine); white-space: nowrap; }
.res.fort b { color: var(--corail-f); font-size: 1.35rem; } .res.neg b { color: #be123c; } .res.pos b { color: var(--vert); }
.message { margin: .9rem 0 0; padding: .75rem .9rem; border-radius: 12px; background: #f5f9ff; border: 1px solid #bfdbfe; font-size: .9rem; }
.barre { height: 12px; background: var(--f3); border-radius: 6px; overflow: hidden; margin: .4rem 0; }
.barre i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--or), var(--corail)); border-radius: 6px; transition: width .3s; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.choix { display: grid; gap: .45rem; }
.choix label { margin: 0; display: flex; align-items: center; gap: .55rem; background: #fff; border: 1.5px solid var(--l); border-radius: 10px; padding: .55rem .75rem; cursor: pointer; font-weight: 600; }
.choix input { accent-color: var(--corail); }
.quiz-q { margin: 0 0 1rem; } .quiz-q > b { display: block; color: var(--marine); margin-bottom: .45rem; }
.quiz-res { background: #fff; border: 1px solid var(--l); border-radius: 16px; padding: 1.1rem; }
.quiz-res h3 { margin-top: 0; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.checklist label { margin: 0; display: flex; gap: .6rem; align-items: flex-start; background: #fff; border: 1.5px solid var(--l); border-radius: 12px; padding: .65rem .8rem; cursor: pointer; font-weight: 600; color: var(--t); }
.checklist input { margin-top: .3rem; accent-color: var(--vert); width: 18px; height: 18px; }
.recherche { width: 100%; padding: .75rem .9rem; border-radius: 12px; border: 1.5px solid var(--l); font: 600 1rem var(--corps); margin-bottom: .8rem; }
.glossaire { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 0; }
@media (max-width: 700px) { .glossaire { grid-template-columns: 1fr; } }
.glossaire div { background: var(--f2); border: 1px solid var(--l); border-radius: 12px; padding: .7rem .9rem; }
.glossaire dt { font-weight: 800; color: var(--marine); } .glossaire dd { margin: .2rem 0 0; font-size: .92rem; color: var(--t2); }
.aucun { display: none; color: var(--t2); font-style: italic; }
.frise { list-style: none; margin: 1rem 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; counter-reset: f; }
.frise li { counter-increment: f; background: var(--f2); border: 1px solid var(--l); border-radius: 14px; padding: .9rem; display: flex; flex-direction: column; gap: .2rem; }
.frise li::before { content: counter(f); width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; background: var(--marine); color: var(--or); font-weight: 800; }
.frise b { color: var(--marine); } .frise span { font-size: .86rem; color: var(--t2); }
@media (max-width: 760px) { .frise { grid-template-columns: 1fr 1fr; } }

/* FAQ, auteur, conclusion, pied */
.faq details { border: 1px solid var(--l); border-radius: 12px; padding: .75rem 1rem; margin: .55rem 0; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--marine); } .faq details p { margin: .6rem 0 .2rem; }
.auteur { display: flex; gap: 1rem; align-items: flex-start; margin: 1rem 0; }
.auteur-jeton { flex: 0 0 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--marine); color: var(--or); font: 800 1.2rem var(--titre); }
.auteur .nom { margin: 0; font-weight: 800; color: var(--marine); } .auteur .role { margin: 0 0 .5rem; font-size: .86rem; color: var(--t2); }
.final { border-radius: 22px; padding: 1.9rem; margin: 0 0 1.4rem; background: linear-gradient(135deg, var(--marine), var(--marine-2)); color: #dbe5f3; }
.final h2 { color: #fff; }
.site-footer { margin-top: 2.4rem; background: var(--marine); color: #94a3b8; padding: 2.4rem 0 1.4rem; font-size: .9rem; }
.site-footer a { color: #cbd5e1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; } .footer-grid li { margin: .35rem 0; }
.footer-titre { color: #fff; font-weight: 800; margin: 0 0 .6rem; }
.legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 1.8rem; padding-top: 1.2rem; font-size: .82rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: flex; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: .6rem; background: rgba(11,43,51,.97); }
  .sticky-cta .btn { flex: 1; } body { padding-bottom: 72px; }
}
