/* ==========================================================================
   www.aubistrotdesgreves.fr : feuille de style, fond clair, images et cadres HTML
   Palette : cyan profond, rose, or. Polices système, aucun appel externe.
   ========================================================================== */
:root {
  --p: #0e7490; --p2: #155e75; --a: #be123c; --a2: #9f1239; --or: #ca8a04;
  --t: #0f1e2e; --t2: #4a5d70; --f2: #f3fafc; --f3: #e2f3f8; --l: #d3e6ee;
  --titre: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --corps: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: #fff; color: var(--t); font: 17px/1.65 var(--corps); }
img { max-width: 100%; height: auto; }
a { color: var(--p); text-underline-offset: 2px; } a:hover { color: var(--p2); }
h1, h2, h3 { font-family: var(--titre); line-height: 1.2; color: var(--t); }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); font-weight: 800; margin: 0 0 .7rem; }
h2 { font-size: 1.55rem; font-weight: 800; margin: 2.4rem 0 .8rem; }
h3 { font-size: 1.17rem; font-weight: 700; margin: 1.6rem 0 .5rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 12px; top: 12px; z-index: 50; background: #fff; padding: .5rem .8rem; }

/* En-tete */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--l); }
.site-header .wrap { display: flex; align-items: center; gap: 1.2rem; min-height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-bdg svg { display: block; width: 220px; height: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--t2); font-weight: 600; text-decoration: none; font-size: .95rem; } .site-nav a:hover { color: var(--p); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.age { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #dc2626; color: #fff; font-weight: 800; font-size: .8rem; }
@media (max-width: 960px) { .site-nav { display: none; } .header-actions { margin-left: auto; } }
@media (max-width: 520px) { .brand-bdg svg { width: 150px; } .header-actions .btn-line { display: none; } }

/* Boutons */
.btn { display: inline-block; background: var(--a); color: #fff; font-weight: 700; text-decoration: none; padding: .78rem 1.35rem; border-radius: 12px; border: 0; line-height: 1.2; text-align: center; }
.btn:hover { background: var(--a2); color: #fff; }
.btn-line { background: #fff; color: var(--t); border: 1.5px solid var(--l); } .btn-line:hover { background: var(--f2); color: var(--p); }
.btn-sm { padding: .52rem .95rem; font-size: .9rem; }
.btn-wide { display: block; width: 100%; }
.btn-bleu { background: var(--p); } .btn-bleu:hover { background: var(--p2); }

/* Bandeau */
.hero { position: relative; overflow: hidden; margin: 1.6rem 0 1rem; border: 1px solid var(--l); border-radius: 24px;
  background: linear-gradient(115deg, #ffffff 0%, #f2fafc 48%, #dbf1f8 100%); }
.hero-illu { position: absolute; right: 2.2%; top: 42%; transform: translateY(-50%); width: min(44%, 560px); border-radius: 22px; box-shadow: 0 18px 40px rgba(15,30,46,.22); }
.hero-inner { position: relative; z-index: 1; max-width: 560px; padding: 2.6rem 2.4rem 1.6rem; }
.accroche { font-size: 1.12rem; margin: 0 0 1.2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-meta { font-size: .85rem; color: var(--t2); margin: 1rem 0 0; }
.hero-chiffres { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--l); background: rgba(255,255,255,.85); }
.hero-chiffres div { padding: 1rem; text-align: center; border-left: 1px solid var(--l); } .hero-chiffres div:first-child { border-left: 0; }
.hero-chiffres b { display: block; font: 800 1.45rem var(--titre); color: var(--t); } .hero-chiffres span { font-size: .82rem; color: var(--t2); }
@media (max-width: 900px) {
  .hero-illu { position: static; transform: none; display: block; width: calc(100% - 2.4rem); margin: 1.2rem auto 0; }
  .hero-inner { padding: 1.4rem 1.2rem 1.2rem; }
  .hero-chiffres { grid-template-columns: repeat(2, 1fr); } .hero-chiffres div:nth-child(3) { border-left: 0; }
}

.bloc-note { border: 1px solid var(--l); border-radius: var(--r); background: var(--f2); padding: .9rem 1.2rem; margin: 1rem 0 1.4rem; }
.detail-note { margin: 0; font-size: .95rem; color: var(--t2); } .detail-note b { color: var(--t); }

/* Rangees defilantes */
.rang { margin: 1.6rem 0; }
.rang-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.rang-tete h2 { margin: 0 0 .8rem; font-size: 1.4rem; } .indice { font-size: .82rem; color: var(--t2); }
.piste { display: flex; gap: 1rem; overflow-x: auto; padding: .3rem .1rem 1rem; scroll-snap-type: x mandatory; }
.piste > * { scroll-snap-align: start; }
.carte-jeu { position: relative; flex: 0 0 200px; border-radius: 20px; overflow: hidden; display: block; box-shadow: 0 6px 18px rgba(15,30,46,.16); }
.carte-jeu img { display: block; width: 100%; height: auto; transition: transform .25s; }
.carte-jeu:hover img { transform: scale(1.04); }
.voile { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15,30,46,0); transition: background .25s; }
.voile span { opacity: 0; width: 54px; height: 54px; border-radius: 50%; background: var(--a); color: #fff; display: grid; place-items: center; font-size: 1.2rem; transition: opacity .25s; }
.carte-jeu:hover .voile { background: rgba(15,30,46,.35); } .carte-jeu:hover .voile span { opacity: 1; }
.pastille-html { flex: 0 0 auto; width: 230px; min-height: 112px; padding: 1rem; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: .3rem;
  background: #fff; border: 1px solid var(--l); border-top: 5px solid var(--p); border-radius: 14px; }
.pastille-html:nth-child(even) { border-top-color: var(--a); }
.pastille-html b { font-family: var(--titre); font-size: 1.05rem; } .pastille-html span { font-size: .84rem; color: var(--t2); }

/* Bandeau d'offre */
.bandeau-offre { display: grid; grid-template-columns: 1fr 220px; gap: 2rem; align-items: center; margin: 1.8rem 0; padding: 1.8rem;
  border-radius: 22px; background: linear-gradient(120deg, #fff1f2 0%, #fff 55%, #e2f3f8 100%); border: 1px solid var(--l); }
.bandeau-offre h2 { margin-top: 0; }
.bandeau-offre img { display: block; width: 100%; max-width: 220px; margin: 0 auto; border-radius: 18px; box-shadow: 0 10px 26px rgba(15,30,46,.2); }
.chiffres-offre { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.chiffres-offre li { background: #fff; border: 1px solid var(--l); border-radius: 12px; padding: .55rem .8rem; font-size: .92rem; }
.chiffres-offre b { color: var(--a); font-family: var(--titre); margin-right: .25rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .6rem; }
.mention { font-size: .8rem; color: var(--t2); margin: 1rem 0 0; }
@media (max-width: 760px) { .bandeau-offre { grid-template-columns: 1fr; } .chiffres-offre { grid-template-columns: 1fr; } }

/* Mise en page principale */
.layout { display: grid; grid-template-columns: 230px 1fr; gap: 2.2rem; align-items: start; }
.rail { position: sticky; top: 90px; display: flex; flex-direction: column; gap: .4rem; }
.rail-lien { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border-radius: 12px; color: var(--t); text-decoration: none; font-weight: 600; font-size: .93rem; border: 1px solid transparent; }
.rail-lien:hover { background: var(--f2); border-color: var(--l); color: var(--p); }
.ico { width: 1.6rem; text-align: center; }
.rail-cta { margin-top: .8rem; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } .rail { display: none; } }
.prose { min-width: 0; }
.prose p, .prose li { color: #22354a; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.nav-repli { border: 1px solid var(--l); border-radius: var(--r); padding: .9rem 1.2rem; background: var(--f2); margin: 0 0 1.4rem; }
.nav-repli summary { cursor: pointer; font-weight: 800; }
.nav-repli ol { columns: 2; margin: .7rem 0 0; } .nav-repli a { text-decoration: none; }
@media (max-width: 620px) { .nav-repli ol { columns: 1; } }

/* Tableaux, encadres, etapes */
.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); border-top: 0; } tbody th { background: var(--f2); font-weight: 700; }
.box { border: 1px solid var(--l); border-left: 4px solid var(--p); border-radius: 14px; background: var(--f2); padding: 1rem 1.2rem; margin: 1.3rem 0; }
.box p { margin: .35rem 0; }
.box-ambre { border-left-color: var(--or); background: #fffbeb; } .box-rouge { border-left-color: #dc2626; background: #fef2f2; }
.kicker { margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--p); }
.box-ambre .kicker { color: #a16207; } .box-rouge .kicker { color: #b91c1c; }
.steps li { margin: .45rem 0; }

/* Images de section */
.illus { margin: 1.4rem 0; }
.illus img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 8px 24px rgba(15,30,46,.14); }
.illus figcaption { margin-top: .5rem; font-size: .88rem; color: var(--t2); }

/* Cadres construits en HTML */
.cadre { margin: 1.5rem 0; padding: 1.1rem; background: #fff; border: 1px solid var(--l); border-radius: 18px; box-shadow: 0 2px 10px rgba(14,116,144,.06); }
.cadre figcaption { margin-top: .9rem; font-size: .88rem; color: var(--t2); }
.profils { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.profil { background: var(--f2); border: 1px solid var(--l); border-left: 4px solid var(--p); border-radius: 12px; padding: .8rem .9rem; display: flex; flex-direction: column; gap: .25rem; }
.profil:nth-child(2) { border-left-color: var(--a); } .profil:nth-child(3) { border-left-color: var(--or); } .profil:nth-child(4) { border-left-color: #7c3aed; }
.profil b { color: var(--t); } .profil span { font-size: .9rem; color: var(--t2); }
.deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.deux-col > div { border-radius: 12px; padding: .9rem 1rem; border: 1px solid var(--l); }
.deux-col b { display: block; margin-bottom: .3rem; }
.deux-col ul { margin: 0; padding-left: 1.1rem; font-size: .92rem; } .deux-col li { margin: .2rem 0; }
.col-a { background: var(--f2); } .col-b { background: #fff1f2; border-color: #fecdd3 !important; }
.col-ok { background: #ecfdf5; border-color: #a7f3d0 !important; } .col-ok b { color: #047857; }
.col-non { background: #fef2f2; border-color: #fecaca !important; } .col-non b { color: #b91c1c; }
.calcul { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.calcul > div { background: var(--f2); border: 1px solid var(--l); border-radius: 12px; padding: .7rem 1rem; display: flex; flex-direction: column; min-width: 120px; }
.calcul span { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--t2); }
.calcul b { font-family: var(--titre); font-size: 1.5rem; color: var(--t); }
.calcul i { font-style: normal; font-weight: 800; font-size: 1.4rem; color: var(--t2); }
.calcul .calc-large { flex: 1 1 100%; background: linear-gradient(120deg, #fff1f2, #ffe4e6); border-color: #fecdd3; }
.calcul .calc-large b { color: var(--a); } .calcul em { font-style: normal; font-size: .85rem; color: var(--t2); }
.cadre-profil, .cadre-demo, .cadre-compte, .cadre-calcul { padding: 1.1rem; }
@media (max-width: 620px) { .profils, .deux-col { grid-template-columns: 1fr; } }

/* FAQ, conclusion, auteur */
.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; } .faq details[open] summary { color: var(--p); }
.final { margin: 2.4rem 0; padding: 1.7rem; border-radius: 22px; border: 1px solid var(--l); background: linear-gradient(120deg, var(--f3), #fff 60%, #fff1f2); }
.final h2 { margin-top: 0; }
.auteur { display: flex; gap: 1rem; align-items: flex-start; border-top: 1px solid var(--l); padding-top: 1.4rem; margin-top: 2rem; }
.auteur-jeton { flex: 0 0 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--p); color: #fff; font: 800 1.3rem var(--titre); }
.auteur .nom { margin: 0; font-weight: 800; } .auteur .role { margin: 0 0 .4rem; font-size: .86rem; color: var(--t2); }

/* Pied de page */
.site-footer { margin-top: 3rem; background: #0f1e2e; color: #cbd8e3; padding: 2.4rem 0 1.6rem; font-size: .9rem; }
.site-footer a { color: #7dd3fc; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; } .footer-grid li { margin: .35rem 0; }
.footer-titre { color: #fff; font-weight: 800; margin: 0 0 .6rem; }
.logos-confiance { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.logos-confiance a { border: 1px solid #2a3f55; border-radius: 10px; padding: .4rem .7rem; text-decoration: none; }
.legal { border-top: 1px solid #2a3f55; margin-top: 1.8rem; padding-top: 1.2rem; font-size: .82rem; color: #9fb3c4; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Barre d'action mobile */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: flex; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: .6rem; background: rgba(255,255,255,.97); border-top: 1px solid var(--l); }
  .sticky-cta .btn { flex: 1; } body { padding-bottom: 70px; }
}

/* Pages secondaires */
.page-simple { max-width: 820px; margin: 2.2rem auto 3rem; }
.eyebrow { margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--p); }
.lede { font-size: 1.1rem; color: var(--t2); }
