/* ==========================================================
   CLASSIC BIKES — Design V2 « Showroom »
   Chargé APRÈS style.css : surcharge le look V1 (header marine, majuscules espacées,
   angles droits) par le design V2 (header clair, onglets arrondis, cartes 16 px, boutons 10 px).
   Les jetons --cb-* de style.css (clair/sombre, thèmes saisonniers) restent la source des couleurs.
   ========================================================== */
:root {
  --radius: 10px;
  --v2-r: 16px;
  --v2-line: #E6E2D8;
  --v2-hero: #F1EEE6;
  --v2-band: #102B55;
}
html[data-theme="dark"] { --v2-line: #22365A; --v2-hero: #0E1A30; --v2-band: #0A1C38; }

body { background-image: none !important; background-color: var(--cb-bg); }
h1, h2, h3, h4, .font-display { letter-spacing: .01em; font-weight: 600; }

/* --- Eyebrow : sobre, sans étoiles --- */
.eyebrow { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .12em; gap: 0; }
.eyebrow::before, .eyebrow::after { content: none; }

/* --- Barre étoilée supprimée, header clair --- */
.cb-topbar { display: none; }
/* Thèmes saisonniers : on garde EXACTEMENT le fonctionnement V1 (bordure/accents/décors du header gérés par style.css) */
.cb-header { background: var(--cb-surface); color: var(--cb-text); border-bottom: 1px solid var(--v2-line); }
.cb-header .logo-mark { height: 52px; filter: none; }
html[data-theme="dark"] .cb-header .logo-mark { filter: none; }
.cb-header > div:first-child { height: 76px; }
.cb-nav a { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: .88rem; font-weight: 600; color: var(--cb-text); padding: .55rem .7rem; border: 0; border-radius: 10px; }
.cb-nav a:hover { background: var(--cb-surface-2); color: var(--cb-text); border: 0; }
.cb-nav a.active { background: var(--cb-title); color: var(--cb-bg); border: 0; }
.cb-header .btn-outline-light { border-color: var(--cb-title); color: var(--cb-title); }
.cb-header .btn-outline-light:hover { background: var(--cb-title); color: var(--cb-bg); }
.cb-header .btn-pro { border-color: var(--v2-line); color: var(--cb-muted); font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: .85rem; font-weight: 600; border-radius: 10px; padding: .55rem 1rem; }
.cb-header .btn-pro:hover { background: var(--cb-surface-2); color: var(--cb-text); }
.cb-header .text-sable { color: var(--cb-muted); }
.cb-header button.theme-toggle, .cb-header .theme-toggle { background: var(--cb-surface-2) !important; border: 1px solid var(--v2-line) !important; color: var(--cb-text) !important; border-radius: 10px !important; }
.cb-header [x-data] { border-color: var(--v2-line); }
.cb-header [x-data] > button { color: var(--cb-text); }

/* --- Boutons --- */
.btn { justify-content: center; font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: .92rem; font-weight: 700; min-height: 44px; padding: 0 1.4rem; border-radius: 10px; }
.btn:hover { transform: none; filter: brightness(1.08); }
.btn-primary { box-shadow: none; }
.btn-primary:hover { background: var(--cb-accent); }
.btn-outline { border-color: var(--cb-title); color: var(--cb-title); }
.btn-outline:hover { background: var(--cb-title); color: var(--cb-bg); }
.btn-outline-light { border-color: rgba(255,255,255,.6); }

/* --- Cartes, filtres, champs --- */
.cb-card { border-radius: var(--v2-r); border-color: var(--v2-line); }
.cb-card:hover { transform: none; box-shadow: 0 8px 24px rgba(16,43,85,.10); }
.filters { border-radius: var(--v2-r); border-color: var(--v2-line); }
.cat-pill, .badge { border-radius: 999px; }
.cat-pill { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: .85rem; font-weight: 600; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=url], input[type=date], input[type=datetime-local], select, textarea, .input { border-radius: 10px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); }
.section-title::after { display: none; }

/* --- Hero accueil : clair, texte à gauche + photo --- */
.hero2 { background: var(--v2-hero); border-bottom: 1px solid var(--v2-line); }
.hero2 .hero2-in { max-width: 80rem; margin: 0 auto; padding: 4rem 1.25rem; display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero2 .hero2-in { grid-template-columns: 1.05fr .95fr; padding: 5rem 1.25rem; } }
.hero2 h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.04; margin: .4rem 0 0; }
.hero2 .slogan { font-size: 1.15rem; color: var(--cb-muted); max-width: 32rem; margin: 1.1rem 0 1.8rem; line-height: 1.6; }
.hero2 .hero2-img { aspect-ratio: 4/3; border-radius: 24px; background: var(--cb-surface-2) center/cover; border: 1px solid var(--v2-line); box-shadow: 0 20px 50px rgba(16,43,85,.14); }

/* --- Bandeaux / pied de page --- */
footer.bg-marine-dark { background: var(--v2-band) !important; }
.sm-hero { border-radius: 0; }
.avent-hero, .avh { border-radius: 24px; }

/* --- Admin : même langage visuel --- */
.nav-link { border-radius: 10px; }
table th { letter-spacing: .06em; }

footer.bg-marine-dark, footer.bg-marine-dark a, footer.bg-marine-dark p { color: #C7D0E2; }
footer.bg-marine-dark a:hover { color: #fff; }
footer.bg-marine-dark h4, footer.bg-marine-dark h3 { color: #fff; }
footer.bg-marine-dark .btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.cb-footer-stars, footer.bg-marine-dark > div:first-child.text-center { display: none; }
.star-divider { display: none; }
.cb-header .btn, .cb-header .btn-pro { white-space: nowrap; }
.cb-header .btn { padding: 0 1rem; min-height: 40px; }

/* ===== Showroom : mise en page ===== */
.wrap2 { max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; }
.sec2 { padding: 3.5rem 0; }
.sec2-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-bottom: 1.5rem; }
.sec2-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; }
.btn-g { background: transparent; border: 0; color: var(--cb-accent-text); padding: 0; min-height: 0; font-weight: 700; display: inline-flex; }
.btn-g:hover { text-decoration: underline; filter: none; }
.btn-s { min-height: 36px; padding: 0 .9rem; font-size: .82rem; }
.btn:not(.btn-primary):not(.btn-outline):not(.btn-outline-light):not(.btn-pro):not(.btn-g) { background: var(--cb-title); color: var(--cb-bg); }
.grid-v { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid-n { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.grid-w { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card-v { position: relative; background: var(--cb-surface); border: 1px solid var(--v2-line); border-radius: var(--v2-r); overflow: hidden; display: flex; flex-direction: column; }
.card-v-thumb { position: relative; display: block; height: 180px; background: var(--cb-surface-2); }
.card-v-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.card-v-ph { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 3rem; opacity: .35; }
.card-v-tag { position: absolute; top: 12px; left: 12px; background: var(--cb-accent); color: var(--cb-accent-ink); font-size: .72rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; }
.card-v-tag.oj { top: 42px; background: #0E5E8C; color: #fff; }
.card-v-fav { position: absolute; right: 10px; top: 10px; z-index: 2; }
.card-v-fav button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--v2-line); background: var(--cb-surface); color: var(--cb-text); font-size: 1.1rem; cursor: pointer; }
.card-v-body { padding: 1.1rem 1.15rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card-v-cat { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cb-accent-text); margin: 0 0 .25rem; }
.card-v-name { font-size: 1.15rem; margin: 0 0 .9rem; }
.card-v-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.card-v-price { font-weight: 700; font-size: 1.1rem; color: var(--cb-title); }
.card-v-price s { font-weight: 400; font-size: .8rem; color: var(--cb-muted); margin-right: .3rem; }
.chip2 { display: inline-flex; align-items: center; min-height: 38px; padding: 0 .95rem; border-radius: 999px; border: 1px solid var(--v2-line); background: transparent; color: var(--cb-text); font-size: .85rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chip2:hover { background: var(--cb-surface-2); }
.chip2.on { background: var(--cb-title); color: var(--cb-bg); border-color: var(--cb-title); }
.panel { background: var(--cb-surface); border: 1px solid var(--v2-line); border-radius: var(--v2-r); padding: 1.25rem 1.4rem; }
.panel-search { display: flex; gap: .5rem; padding: .5rem; max-width: 34rem; box-shadow: 0 10px 30px rgba(16,43,85,.10); }
.panel-search input { border: 0 !important; flex: 1; min-height: 44px; background: transparent; box-shadow: none !important; }
.band2 { background: var(--v2-band); color: #fff; border-radius: 24px; overflow: hidden; display: grid; grid-template-columns: 1fr; }
@media (min-width: 800px) { .band2 { grid-template-columns: 1fr 1fr; } }
.band2 h2, .band2 h3 { color: #fff; }
.band2 .band2-img { min-height: 280px; background: var(--cb-surface-2) center/cover; }
.band2 .band2-txt { padding: 2.5rem; }
.band2 p { color: #C7D0E2; }
.xmas2 { border-radius: 24px; padding: 2.5rem; color: #fff; background: linear-gradient(135deg, #0A1C38, #102B55 55%, #7F1414); }
.xmas2 h2 { color: #fff; }
.tile-game { text-align: left; display: block; background: var(--cb-surface); border: 1px solid var(--v2-line); border-radius: var(--v2-r); padding: 1.25rem; transition: border-color .2s, box-shadow .2s; }
.tile-game:hover { border-color: var(--cb-accent); box-shadow: 0 8px 24px rgba(16,43,85,.10); }
.tile-game h3 { font-size: 1.1rem; margin: .2rem 0 .4rem; }
.tile-game p { font-size: .86rem; color: var(--cb-muted); margin: 0; line-height: 1.5; }
.stat2 { background: var(--cb-surface); border: 1px solid var(--v2-line); border-radius: var(--v2-r); padding: 1.1rem 1.25rem; }
.stat2 small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cb-muted); }
.stat2 strong { display: block; margin-top: .4rem; font-family: var(--font-display); font-size: 1.9rem; color: var(--cb-title); font-weight: 600; }
.side2 { display: flex; flex-direction: column; gap: 2px; }
.side2 a { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 10px; font-weight: 600; font-size: .92rem; color: var(--cb-text); min-height: 44px; }
.side2 a:hover { background: var(--cb-surface-2); }
.side2 a.on { background: var(--cb-title); color: var(--cb-bg); }
.side2 .grp { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cb-muted); padding: 1rem .9rem .3rem; }
.split2 { display: grid; gap: 1.75rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split2.side { grid-template-columns: 260px 1fr; } .split2.fiche { grid-template-columns: 1.15fr .85fr; } }
.spec-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--v2-line); font-size: .9rem; }
.spec-row:last-child { border: 0; }
.notice2 { padding: .85rem 1rem; border-radius: 10px; font-size: .88rem; font-weight: 600; background: var(--cb-surface-2); color: var(--cb-text); border: 1px solid var(--v2-line); }
.hero2-blason { display: flex; justify-content: center; }
.hero2-blason > img { width: min(380px, 100%); aspect-ratio: 1/1; object-fit: contain; background: var(--v2-band); border-radius: 28px; padding: 2.2rem; }
.hero2 .hero2-img { display: none; }
.hero2 h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.hero2 .hero2-in { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.hero2 .panel-search { margin-top: 1.4rem; }
.cb-nav a { padding: .5rem .55rem; font-size: .85rem; }
.cb-header .max-w-7xl { gap: .75rem; }
.cb-header .max-w-7xl > div:last-child { gap: .5rem; }
.cb-header .logo-mark { height: 44px; max-width: 120px; object-fit: contain; }
.wrap2.sec2 { padding-left: 1.25rem; padding-right: 1.25rem; }

/* Titres lisibles sur tous les fonds marine/sombres */
[style*="#0A1C38"] h1, [style*="#0A1C38"] h2, [style*="#0A1C38"] h3, [style*="#0A1C38"] h4, [style*="#0A1C38"] .font-display,
.contact-block h1, .contact-block h2, .contact-block h3, .contact-block h4, .contact-block .font-display,
.bg-marine h1, .bg-marine h2, .bg-marine h3, .bg-marine .font-display, .bg-marine-dark h1, .bg-marine-dark h2, .bg-marine-dark h3,
.sm-hero h1, .sm-hero h2, .band2 .font-display { color: #fff; }
.sub2 { background: var(--cb-surface-2); border-bottom: 1px solid var(--v2-line); }
.sub2 a { padding: .5rem .8rem; border-radius: 8px; font-size: .84rem; font-weight: 600; color: var(--cb-muted); min-height: 38px; display: inline-flex; align-items: center; }
.sub2 a:hover { color: var(--cb-title); }
.sub2 a.on { background: var(--cb-surface); color: var(--cb-title); box-shadow: 0 0 0 1px var(--v2-line); }

/* ===== Véhicule de la semaine ===== */
.wk { display: grid; grid-template-columns: 1fr; background: var(--cb-surface); border: 1px solid var(--v2-line); border-radius: 24px; overflow: hidden; box-shadow: 0 18px 40px rgba(16,43,85,.10); }
@media (min-width: 860px) { .wk { grid-template-columns: 1.15fr 1fr; } }
.wk-stage { position: relative; min-height: 300px; display: flex; align-items: center; justify-content: center; padding: 3.2rem 1.6rem 1.6rem; background: radial-gradient(120% 90% at 50% 100%, rgba(201,165,103,.35), transparent 60%), linear-gradient(160deg, #F5F1E6, #E6DEC9); }
html[data-theme="dark"] .wk-stage { background: radial-gradient(120% 90% at 50% 100%, rgba(201,165,103,.22), transparent 60%), linear-gradient(160deg, #16243F, #0E1A30); }
.wk-stage img { max-width: 100%; max-height: 340px; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(0,0,0,.25)); }
.wk-ph { font-size: 5rem; opacity: .5; }
.wk-ribbon { position: absolute; top: 1rem; left: 1rem; background: var(--cb-marine); color: #fff; font: 600 .72rem/1 var(--font-display, Oswald, sans-serif); text-transform: uppercase; letter-spacing: .1em; padding: .55rem .9rem; border-radius: 999px; }
.wk-pct { position: absolute; top: 1rem; right: 1rem; background: var(--cb-rouge); color: #fff; font: 700 1.1rem/1 var(--font-display, Oswald, sans-serif); padding: .6rem .85rem; border-radius: 14px; transform: rotate(4deg); box-shadow: 0 6px 14px rgba(183,28,28,.35); }
.wk-info { padding: 2.2rem 2rem; display: flex; flex-direction: column; justify-content: center; }
.wk-eyebrow { font: 600 .74rem/1 var(--font-display, Oswald, sans-serif); text-transform: uppercase; letter-spacing: .12em; color: var(--cb-rouge); margin: 0 0 .7rem; }
html[data-theme="dark"] .wk-eyebrow { color: #E2C27F; }
.wk-info h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin: 0 0 .8rem; line-height: 1.1; color: var(--cb-title); }
.wk-desc { color: var(--cb-muted); line-height: 1.7; margin: 0 0 1.2rem; }
.wk-prix { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem .9rem; margin-bottom: 1.4rem; }
.wk-prix b { font: 700 2.2rem/1 var(--font-display, Oswald, sans-serif); color: var(--cb-rouge); }
html[data-theme="dark"] .wk-prix b { color: #fff; }
.wk-prix s { color: var(--cb-muted); }
.wk-prix em { font-style: normal; font-size: .78rem; font-weight: 600; background: rgba(21,128,61,.12); color: #15803D; padding: .25rem .6rem; border-radius: 999px; }
.wk-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.wk-note { font-size: .78rem; color: var(--cb-muted); margin: 1.2rem 0 0; }

/* ===== Admin (côté pro) ===== */
body.cb-admin { background: var(--cb-bg); }
.cb-admin > .flex > main { background: var(--cb-bg); padding: 2rem 2.2rem; min-width: 0; }
.adm-side { width: 272px; flex-shrink: 0; flex-direction: column; background: var(--cb-surface); border-right: 1px solid var(--v2-line); position: sticky; top: 0; height: 100vh; }
.adm-brand { display: flex; align-items: center; gap: .7rem; padding: 1.1rem 1.1rem .9rem; }
.adm-brand img { height: 38px; width: auto; }
.adm-brand-txt { flex: 1; min-width: 0; line-height: 1.15; }
.adm-brand-txt strong { display: block; font: 600 .95rem/1.1 var(--font-display, Oswald, sans-serif); text-transform: uppercase; letter-spacing: .03em; color: var(--cb-title); }
.adm-brand-txt span { font-size: .68rem; color: var(--cb-muted); }
.adm-theme { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--v2-line); background: var(--cb-surface-2); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.adm-user { display: flex; align-items: center; gap: .65rem; margin: 0 .8rem .4rem; padding: .65rem .75rem; background: var(--cb-surface-2); border-radius: 14px; }
.adm-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--cb-marine); color: #fff; display: flex; align-items: center; justify-content: center; font: 600 .95rem var(--font-display, Oswald, sans-serif); flex-shrink: 0; }
.adm-user b { display: block; font-size: .85rem; color: var(--cb-text); line-height: 1.2; }
.adm-user small { font-size: .68rem; color: var(--cb-rouge); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
html[data-theme="dark"] .adm-user small { color: #E2C27F; }
.adm-nav { flex: 1; overflow-y: auto; padding: .3rem .8rem 1rem; }
.adm-grp { font: 600 .66rem/1 var(--font-display, Oswald, sans-serif); text-transform: uppercase; letter-spacing: .14em; color: var(--cb-muted); margin: 1.1rem .6rem .35rem; }
.adm-lnk { display: block; padding: .5rem .75rem; margin: 1px 0; border-radius: 10px; font-size: .86rem; color: var(--cb-text); text-decoration: none; transition: background .15s; }
.adm-lnk:hover { background: var(--cb-surface-2); }
.adm-lnk.on { background: var(--cb-marine); color: #fff; font-weight: 600; }
html[data-theme="dark"] .adm-lnk.on { background: var(--cb-rouge); }
.adm-out { display: block; padding: .9rem 1.4rem; font-size: .85rem; color: var(--cb-muted); text-decoration: none; border-top: 1px solid var(--v2-line); }
.adm-out:hover { color: var(--cb-rouge); }
.cb-admin main h1 { color: var(--cb-title); }

/* ===== Connexion pro ===== */
.lg2 { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: var(--cb-bg); }
@media (min-width: 900px) { .lg2 { grid-template-columns: 1.05fr 1fr; } }
.lg2-brand { display: none; position: relative; overflow: hidden; background: linear-gradient(155deg, #0A1C38 0%, #102B55 55%, #1B3C72 100%); color: #fff; padding: 3rem; flex-direction: column; justify-content: space-between; }
@media (min-width: 900px) { .lg2-brand { display: flex; } }
.lg2-brand::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(201,165,103,.35), transparent 70%); }
.lg2-brand img { height: 64px; width: auto; align-self: flex-start; }
.lg2-brand h2 { font: 700 clamp(3rem, 5vw, 4.4rem)/1.05 var(--font-display, Oswald, sans-serif); text-transform: uppercase; color: #fff; margin: 0 0 1rem; }
.lg2-brand p { color: #C7D0E2; max-width: 30ch; line-height: 1.6; }
.lg2-brand ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; font-size: .9rem; color: #E8E5DE; position: relative; z-index: 1; }
.lg2-form { display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.lg2-card { width: 100%; max-width: 400px; }
.lg2-card .lg2-logo { height: 54px; margin-bottom: 1.5rem; }
@media (min-width: 900px) { .lg2-card .lg2-logo { display: none; } }
.lg2-card h1 { font: 700 1.8rem/1.1 var(--font-display, Oswald, sans-serif); text-transform: uppercase; color: var(--cb-title); margin: 0 0 .4rem; }
.lg2-card .sub { color: var(--cb-muted); font-size: .9rem; margin: 0 0 1.6rem; }
.lg2-card label { display: block; font: 600 .72rem/1 var(--font-display, Oswald, sans-serif); text-transform: uppercase; letter-spacing: .08em; color: var(--cb-muted); margin-bottom: .4rem; }
.lg2-card input[type=text], .lg2-card input[type=password] { width: 100%; padding: .8rem 1rem; border: 1px solid var(--v2-line); border-radius: 12px; background: var(--cb-input); color: var(--cb-text); font-size: 1rem; }
.lg2-card input:focus { outline: 2px solid var(--cb-rouge); outline-offset: 1px; }
.lg2-err { background: rgba(183,28,28,.1); color: var(--cb-rouge); border: 1px solid rgba(183,28,28,.25); border-radius: 12px; padding: .7rem 1rem; font-size: .88rem; margin-bottom: 1rem; }

/* ===== StoryMillions : grille + ticket sur le côté ===== */
#sm-heroGrid { grid-template-columns: 1fr; }
@media (min-width: 860px) { #sm-heroGrid { grid-template-columns: 1.2fr 360px; } }
.sm2-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 1rem 0 1.4rem; }
.sm2-cag { background: var(--v2-band); color: #fff; border-radius: 16px; padding: .8rem 1.2rem; display: flex; flex-direction: column; line-height: 1.2; }
.sm2-cag small { font: 600 .66rem/1 var(--font-display, Oswald, sans-serif); letter-spacing: .12em; text-transform: uppercase; color: #E2C27F; }
.sm2-cag b { font: 700 1.7rem/1.1 var(--font-display, Oswald, sans-serif); color: #fff; }
.sm2-cag span { font-size: .75rem; color: #C7D0E2; }
.sm2-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
@media (min-width: 940px) { .sm2-layout { grid-template-columns: 1fr 340px; } .sm2-layout .sm2-slip { position: sticky; top: 96px; } }
.sm2-lab { font-size: .95rem; margin: 0 0 .7rem; color: var(--cb-title); }
.sm2-lab span { color: var(--cb-muted); font-size: .8rem; margin-left: .4rem; }
.sm2-lab em { font-style: normal; font-weight: 700; color: var(--cb-rouge); }
.sm2-slip { background: #FFFDF7; color: #1A1A1A; border-radius: 18px; box-shadow: 0 18px 36px rgba(16,43,85,.18); border: 1px solid #E8DFC8; position: relative; width: 100%; }
html[data-theme="dark"] .sm2-slip { background: #F4EEDD; }
.sm2-slip-head { background: var(--cb-marine); color: #fff; border-radius: 17px 17px 0 0; padding: .9rem 1.2rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--cb-or); }
.sm2-slip-head span { font: 700 1.15rem/1 var(--font-display, Oswald, sans-serif); text-transform: uppercase; letter-spacing: .06em; }
.sm2-slip-head small { font-size: .68rem; color: #C7D0E2; text-transform: uppercase; letter-spacing: .08em; }
.sm2-slip-head em { font-style: normal; color: #E2C27F; }
.sm2-slip-body { padding: 1.1rem 1.2rem .6rem; }
.sm2-slip-lab { font: 600 .66rem/1 var(--font-display, Oswald, sans-serif); letter-spacing: .14em; text-transform: uppercase; color: #6B6B6B; margin: .2rem 0 .5rem; }
.sm2-slots { display: flex; gap: .45rem; margin-bottom: .9rem; }
.sm2-slots span { flex: 1; max-width: 52px; aspect-ratio: 1; border-radius: 50%; border: 2px dashed #CFC6AE; display: flex; align-items: center; justify-content: center; font: 600 1.05rem var(--font-display, Oswald, sans-serif); color: #B7AE96; }
.sm2-slots span.f { border: 2px solid var(--cb-marine); background: var(--cb-marine); color: #fff; }
.sm2-slots.e span.f { border-color: var(--cb-or); background: var(--cb-or); color: #1A1A1A; }
.sm2-perf { position: relative; border-top: 2px dashed #CFC6AE; margin: .4rem 0 0; }
.sm2-perf::before, .sm2-perf::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--cb-bg); border: 1px solid #E8DFC8; }
.sm2-perf::before { left: -12px; border-left-color: transparent; border-bottom-color: transparent; transform: rotate(45deg); }
.sm2-perf::after { right: -12px; border-right-color: transparent; border-top-color: transparent; transform: rotate(45deg); }
.sm-hero .sm2-perf::before, .sm-hero .sm2-perf::after { background: var(--cb-marine); border-color: transparent; }
.sm2-slip-foot { padding: 1rem 1.2rem 1.2rem; }
.sm2-row { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: .45rem; color: #4A4A4A; }
.sm2-row b { font-family: var(--font-display, Oswald, sans-serif); color: var(--cb-rouge); font-size: 1rem; }
.sm2-slip-foot .btn { margin-top: .6rem; }
.sm2-hint { font-size: .72rem; color: #6B6B6B; margin: .7rem 0 0; line-height: 1.4; }
.sm2-h2 { font-size: 1.4rem; margin: 2.2rem 0 1rem; }
.sm2-mine { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.sm2-mini { background: var(--cb-surface); border: 1px solid var(--v2-line); border-left: 5px solid var(--cb-or); border-radius: 14px; padding: .9rem 1rem; }
.sm2-mini.win { border-left-color: #15803D; }
.sm2-mini-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .6rem; font-size: .8rem; }
.sm2-demo { color: #1A1A1A; }
.sm2-layout .sm-pick { grid-template-columns: repeat(7, minmax(0, 54px)); gap: 8px; justify-content: start; }
@media (min-width: 560px) { .sm2-layout .sm-pick { grid-template-columns: repeat(10, minmax(0, 50px)); } }
.sm2-layout .sm-pick.etoiles { grid-template-columns: repeat(6, minmax(0, 54px)); }
@media (min-width: 560px) { .sm2-layout .sm-pick.etoiles { grid-template-columns: repeat(12, minmax(0, 50px)); } }
.sm2-layout .sm-pick button { font-size: .95rem; transition: transform .1s; }
.sm2-layout .sm-pick button:hover { transform: scale(1.08); }

/* ===== Annonces (coin bas droit) ===== */
.cb-toasts { max-width: 350px; }
.cb-toast.cb-ann { background: var(--cb-surface); color: var(--cb-text); border-radius: 20px; padding: 1rem 2.2rem 1rem 1.5rem; box-shadow: 0 14px 34px rgba(0,0,0,.22); overflow: hidden; border: 1px solid var(--v2-line); }
.cb-ann::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--ac); }
.cb-ann p { margin: 0; }
.cb-ann-k { font: 600 .68rem/1 var(--font-display, Oswald, sans-serif); letter-spacing: .1em; text-transform: uppercase; color: var(--ac); margin-bottom: .4rem !important; }
.cb-ann-t { font-weight: 700; font-size: .98rem; margin-bottom: .2rem !important; }
.cb-ann-x { font-size: .88rem; line-height: 1.45; }
.cb-ann-d { font-size: .75rem; margin-top: .5rem !important; opacity: .75; }
.cb-ann .cb-toast-close { color: inherit; }
.cb-toast.cb-ann--couleur { background: var(--ac); color: #fff; border-color: transparent; }
.cb-ann--couleur::before { display: none; }
.cb-ann--couleur .cb-ann-k { color: rgba(255,255,255,.85); }
.cb-ann--couleur[style*="#C9A567"] { color: #1A1A1A; }
.cb-ann--couleur[style*="#C9A567"] .cb-ann-k { color: rgba(0,0,0,.6); }

/* ===== StoryMillions v3 (thème sombre du kit StoryMillions) ===== */
.smx { --ink:#12162A; --ink2:#191F38; --panel:#1D2440; --gold:#C9A227; --gold2:#E8CE7B; --cream:#F3EFE4; --dim:#B9B6C4; --teal:#3E8A80; --smline:rgba(243,239,228,.12); background: var(--ink); color: var(--cream); font-family: Inter, sans-serif; }
.smx h1, .smx h2, .smx h3, .smx .fr { font-family: Fraunces, Georgia, serif; font-weight: 600; color: var(--cream); text-transform: none; letter-spacing: 0; }
.smx .w { max-width: 1100px; margin: 0 auto; padding: 0 1.4rem; }
.smx section { padding: 4rem 0; border-bottom: 1px solid var(--smline); }
.smx .sh { max-width: 58ch; margin-bottom: 2rem; }
.smx .sh .tag { color: var(--gold2); font-family: Fraunces, serif; font-style: italic; }
.smx .sh h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin: .5rem 0 0; }
.smx .sh p { color: var(--dim); margin-top: .7rem; }
.smx .glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(201,162,39,.16), transparent 55%), radial-gradient(circle at 85% 70%, rgba(94,42,70,.25), transparent 45%); pointer-events: none; }
.smx .hero { position: relative; overflow: hidden; padding: 4.5rem 0 4rem; }
.smx .hero-in { position: relative; display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .smx .hero-in { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; } }
.smx .kick { color: var(--gold2); font-family: Fraunces, serif; font-style: italic; margin: 0 0 .8rem; }
.smx .hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.4rem); line-height: 1.08; max-width: 13ch; }
.smx .hero .desc { max-width: 46ch; color: var(--dim); margin-top: 1rem; line-height: 1.6; }
.smx .cta { margin-top: 1.8rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.smx .sbtn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.5rem; border-radius: 3px; font-size: .95rem; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: Inter, sans-serif; }
.smx .sbtn-p { background: var(--gold); color: #1A1408; }
.smx .sbtn-p:hover { background: var(--gold2); }
.smx .sbtn-g { border-color: var(--smline); color: var(--cream); background: transparent; }
.smx .sbtn-g:hover { border-color: var(--gold2); }
.smx .sbtn:disabled { opacity: .45; cursor: not-allowed; }
.smx .tcard { position: relative; background: var(--panel); border: 1px solid var(--smline); padding: 1.9rem 1.7rem; }
.smx .tcard::before, .smx .tcard::after { content: ""; position: absolute; width: 20px; height: 20px; background: var(--ink); border-radius: 50%; top: 50%; transform: translateY(-50%); }
.smx .tcard::before { left: -10px; } .smx .tcard::after { right: -10px; }
.smx .tcard .top { display: flex; justify-content: space-between; font-size: .76rem; color: var(--dim); border-bottom: 1px dashed var(--smline); padding-bottom: .9rem; }
.smx .tcard .jl { margin-top: 1.2rem; color: var(--dim); font-size: .84rem; }
.smx .tcard .jn { font-family: Fraunces, serif; font-size: 2.7rem; color: var(--gold2); line-height: 1; margin-top: .4rem; }
.smx .tcard .jn span { font-size: 1.3rem; color: var(--dim); }
.smx .cd { margin-top: 1.4rem; display: flex; gap: .7rem; border-top: 1px dashed var(--smline); padding-top: 1rem; }
.smx .cd div { text-align: center; flex: 1; }
.smx .cd b { display: block; font-family: Fraunces, serif; font-size: 1.4rem; font-weight: 600; }
.smx .cd small { font-size: .66rem; color: var(--dim); }
.smx .draw { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.4rem; border: 1px solid var(--smline); padding: 1.6rem 1.8rem; background: var(--panel); }
.smx .draw .st { font-size: .85rem; color: var(--dim); }
.smx .balls { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .7rem; }
.smx .rb { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: Fraunces, serif; font-size: .95rem; border: 1px solid var(--gold2); color: var(--cream); }
.smx .rb.star { border-radius: 7px; border-color: var(--teal); color: #7CC4B9; }
.smx .steps { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 800px) { .smx .steps { grid-template-columns: repeat(3, 1fr); } }
.smx .stp { position: relative; padding: 1.8rem 1.6rem; border: 1px solid var(--smline); background: var(--ink2); }
.smx .stp .role { font-size: .76rem; color: var(--dim); }
.smx .stp h3 { margin-top: .4rem; font-size: 1.2rem; }
.smx .stp p { margin: .7rem 0 0; color: var(--dim); font-size: .9rem; line-height: 1.55; }
.smx .stp.a { background: linear-gradient(160deg, rgba(94,42,70,.35), transparent 70%), var(--ink2); }
.smx .stp.b { background: linear-gradient(160deg, rgba(44,92,86,.4), transparent 70%), var(--ink2); }
.smx .stp.c { background: linear-gradient(160deg, rgba(138,74,46,.4), transparent 70%), var(--ink2); }
.smx table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.smx th, .smx td { text-align: left; padding: .9rem .6rem; border-bottom: 1px solid var(--smline); }
.smx th { color: var(--dim); font-weight: 500; font-size: .8rem; }
.smx td.m { font-family: Fraunces, serif; color: var(--gold2); }
.smx td.p { font-weight: 600; }
.smx .winners { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 800px) { .smx .winners { grid-template-columns: repeat(3, 1fr); } }
.smx .wc { border: 1px solid var(--smline); padding: 1.4rem; }
.smx .wc .amt { font-family: Fraunces, serif; font-size: 1.35rem; color: var(--gold2); }
.smx .wc .who { margin-top: .4rem; }
.smx .wc .when { margin-top: .3rem; font-size: .78rem; color: var(--dim); }
.smx .sm-b { background: transparent; border-color: var(--gold2); color: var(--cream); }
.smx .sm-b.sm-e { background: transparent; border-color: var(--teal); color: #7CC4B9; border-radius: 7px; }
.smx .sm-b.hit { background: var(--gold); color: #1A1408; border-color: var(--gold); }
/* kiosque + reçu */
.smx .kiosk { display: grid; grid-template-columns: 1fr; border: 1px solid var(--smline); background: #0F1326; }
@media (min-width: 900px) { .smx .kiosk { grid-template-columns: 1.35fr 1fr; } .smx .kiosk-s { border-right: 1px solid var(--smline); } }
.smx .kiosk-s { padding: 1.8rem; }
.smx .kh { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--smline); }
.smx .kt { font-family: Fraunces, serif; color: var(--gold2); }
.smx .mode { display: flex; border: 1px solid var(--smline); }
.smx .mode button { background: transparent; border: 0; color: var(--dim); font-size: .8rem; padding: .5rem .95rem; cursor: pointer; }
.smx .mode button + button { border-left: 1px solid var(--smline); }
.smx .mode button.on { background: var(--gold); color: #1A1408; }
.smx .pl { font-size: .85rem; color: var(--dim); margin: 0 0 .7rem; }
.smx .gn { display: grid; grid-template-columns: repeat(7, 1fr); gap: 9px; }
.smx .ball { aspect-ratio: 1; border: 1px solid var(--smline); display: flex; align-items: center; justify-content: center; font-family: Fraunces, serif; font-size: .92rem; color: var(--dim); border-radius: 50%; cursor: pointer; background: transparent; }
.smx .ball:hover { border-color: var(--gold2); color: var(--cream); }
.smx .ball.on { background: var(--gold); border-color: var(--gold); color: #1A1408; }
.smx .stars { display: flex; flex-wrap: wrap; gap: 9px; }
.smx .ball.star { border-radius: 7px; width: 44px; height: 44px; aspect-ratio: auto; color: #7CC4B9; border-color: var(--teal); }
.smx .ball.star.on { background: var(--teal); color: var(--cream); }
.smx .receipt { position: relative; background: #EFE9D8; color: #241F14; padding: 1.7rem 1.6rem 1.9rem; }
@media (min-width: 900px) { .smx .receipt { position: sticky; top: 0; align-self: start; } }
.smx .receipt::before, .smx .receipt::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: linear-gradient(135deg, #0F1326 50%, transparent 50%) 0 0/12px 12px repeat-x; }
.smx .receipt::before { top: -1px; } .smx .receipt::after { bottom: -1px; transform: scaleY(-1); }
.smx .rh { display: flex; align-items: center; gap: .7rem; }
.smx .rh img { width: 34px; height: auto; }
.smx .rt { font-family: Fraunces, serif; font-weight: 700; font-size: 1.14rem; color: #241F14; margin: 0; }
.smx .rs { font-size: .7rem; color: #5C5540; margin: 1px 0 0; }
.smx .rl { border-top: 1px dashed #B9AF8F; margin: .9rem 0; }
.smx .rr { display: flex; justify-content: space-between; font-size: .76rem; margin: .4rem 0; color: #3A3324; }
.smx .rr span:last-child { font-weight: 600; text-align: right; }
.smx .rlab { font-size: .68rem; color: #7A7259; margin: .8rem 0 .1rem; }
.smx .rv { font-size: 1rem; letter-spacing: .04em; font-weight: 600; color: #241F14; margin: 0; }
.smx .rf { font-size: .68rem; color: #6B6349; margin: .8rem 0 0; line-height: 1.5; }
.smx .rbar { margin-top: .9rem; height: 30px; background: repeating-linear-gradient(90deg, #241F14 0 2px, transparent 2px 5px, #241F14 5px 6px, transparent 6px 10px); opacity: .85; }
.smx .rbtn { width: 100%; justify-content: center; margin-top: 1rem; }
.smx .mine { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.smx .mt { border: 1px solid var(--smline); background: var(--panel); padding: 1rem 1.1rem; }
.smx .mt.win { border-color: var(--gold); }
.smx .mt .tp { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .7rem; font-size: .78rem; color: var(--dim); }
.smx .alert { border: 1px solid var(--gold2); background: rgba(201,162,39,.1); padding: .9rem 1.2rem; margin-bottom: 1.2rem; }
.smx .alert.err { border-color: #E57373; background: rgba(229,115,115,.1); }
.smx footer-note { display: block; }
.contact-form label { display: block; font: 600 .72rem/1 var(--font-display, Oswald, sans-serif); text-transform: uppercase; letter-spacing: .08em; color: var(--cb-muted); margin-bottom: .4rem; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: .75rem 1rem; border: 1px solid var(--v2-line); border-radius: 12px; background: var(--cb-input); color: var(--cb-text); font-size: 1rem; }
.contact-form input[readonly] { opacity: .7; }

/* ===== Bouton clair/sombre (SVG) ===== */
.tgl { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--v2-line); background: var(--cb-surface-2); color: var(--cb-text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: background .15s, border-color .15s; }
.tgl:hover { border-color: var(--cb-or); }
.tgl .ico-sun { display: none; }
html[data-theme="dark"] .tgl .ico-sun { display: block; }
html[data-theme="dark"] .tgl .ico-moon { display: none; }
.tgl-head { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: #fff; border-radius: 50%; }
.card-v-pct { display: inline-block; margin-left: .35rem; font-size: .68rem; font-weight: 700; color: #fff; background: var(--cb-rouge); border-radius: 999px; padding: .12rem .45rem; vertical-align: middle; }

/* ===== Admin v3 : coque (sidebar + barre du haut) ===== */
.adm-shell { display: flex; min-height: 100vh; background: var(--cb-bg); }
.adm-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem; padding: .75rem 2rem; background: color-mix(in srgb, var(--cb-bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--v2-line); }
.adm-top-title { font: 600 1.05rem/1 var(--font-display, Oswald, sans-serif); text-transform: uppercase; letter-spacing: .05em; color: var(--cb-title); margin: 0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-top-r { display: flex; align-items: center; gap: .8rem; }
.adm-site { font-size: .82rem; color: var(--cb-muted); text-decoration: none; padding: .45rem .8rem; border-radius: 10px; border: 1px solid var(--v2-line); }
.adm-site:hover { color: var(--cb-text); border-color: var(--cb-or); }
.adm-top .adm-user { margin: 0; padding: 0; background: none; }
.adm-main { padding: 1.8rem 2rem 3rem; max-width: none; width: 100%; box-sizing: border-box; }
.adm-burger { display: none; }
.adm-veil { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 40; }
.adm-side { width: 256px; flex-shrink: 0; display: flex; flex-direction: column; background: var(--cb-surface); border-right: 1px solid var(--v2-line); position: sticky; top: 0; height: 100vh; z-index: 50; }
.adm-brand { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem; text-decoration: none; border-bottom: 1px solid var(--v2-line); }
.adm-search { position: relative; margin: .8rem .8rem .2rem; color: var(--cb-muted); }
.adm-search svg { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); }
.adm-search input { width: 100%; padding: .55rem .8rem .55rem 2.1rem; border: 1px solid var(--v2-line); border-radius: 10px; background: var(--cb-input); color: var(--cb-text); font-size: .85rem; }
.adm-nav { flex: 1; overflow-y: auto; padding: .2rem .8rem 1rem; }
.adm-grp { font: 600 .64rem/1 var(--font-display, Oswald, sans-serif); text-transform: uppercase; letter-spacing: .16em; color: var(--cb-muted); margin: 1.2rem .7rem .4rem; }
.adm-lnk { position: relative; display: block; padding: .46rem .75rem; margin: 1px 0; border-radius: 8px; font-size: .86rem; color: var(--cb-text); text-decoration: none; }
.adm-lnk:hover { background: var(--cb-surface-2); }
.adm-lnk.on { background: var(--cb-surface-2); color: var(--cb-title); font-weight: 700; }
.adm-lnk.on::before { content: ""; position: absolute; left: -.8rem; top: 20%; bottom: 20%; width: 4px; border-radius: 0 4px 4px 0; background: var(--cb-rouge); }
html[data-theme="dark"] .adm-lnk.on::before { background: var(--cb-or); }
.adm-out { display: flex; align-items: center; gap: .5rem; padding: .9rem 1.2rem; font-size: .85rem; color: var(--cb-muted); text-decoration: none; border-top: 1px solid var(--v2-line); }
.adm-out:hover { color: var(--cb-rouge); }
@media (max-width: 1023px) {
  .adm-side { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; }
  .adm-side.open { transform: none; }
  .adm-burger { display: inline-flex; }
  .adm-top { padding: .7rem 1rem; } .adm-main { padding: 1.2rem 1rem 3rem; } .adm-site, .adm-top .adm-user div { display: none; }
}

/* ===== StoryMillions : habillage aux couleurs du site (remplace le thème sombre du kit) ===== */
.smx { --ink: var(--cb-bg); --ink2: var(--cb-surface); --panel: var(--cb-surface); --gold: var(--cb-rouge); --gold2: var(--cb-accent-text, var(--cb-rouge)); --cream: var(--cb-text); --dim: var(--cb-muted); --teal: #2F7D74; --smline: var(--v2-line); background: transparent; color: var(--cb-text); font-family: inherit; }
.smx h1, .smx h2, .smx h3, .smx .fr { font-family: var(--font-display, Oswald, sans-serif); font-weight: 600; color: var(--cb-title); text-transform: uppercase; letter-spacing: .02em; }
.smx .kick, .smx .sh .tag { font-family: inherit; font-style: normal; font: 600 .74rem/1 var(--font-display, Oswald, sans-serif); letter-spacing: .14em; text-transform: uppercase; color: var(--cb-accent-text, var(--cb-rouge)); }
.smx .sh .tag { display: block; }
.smx .glow { display: none; }
.smx .hero { background: var(--v2-band, #0A1C38); color: #fff; border-bottom: 0; }
.smx .hero h1 { color: #fff; max-width: 15ch; }
.smx .hero .kick { color: var(--cb-or); }
.smx .hero .desc { color: #C7D0E2; }
.smx .hero .sbtn-g { color: #fff; border-color: rgba(255,255,255,.35); }
.smx .sbtn { border-radius: 12px; font-family: inherit; }
.smx .sbtn-p { background: var(--cb-rouge); color: #fff; }
.smx .sbtn-p:hover { background: color-mix(in srgb, var(--cb-rouge) 85%, #000); }
.smx .sbtn-g { color: var(--cb-text); }
.smx .sbtn-g:hover { border-color: var(--cb-rouge); }
.smx section { border-bottom: 1px solid var(--v2-line); }
.smx .tcard { background: var(--cb-surface); color: var(--cb-text); border-radius: 20px; border: 1px solid var(--v2-line); box-shadow: 0 20px 44px rgba(0,0,0,.25); }
.smx .tcard::before, .smx .tcard::after { display: none; }
.smx .tcard .top, .smx .tcard .jl { color: var(--cb-muted); }
.smx .tcard .jn { font-family: var(--font-display, Oswald, sans-serif); color: var(--cb-accent-text, var(--cb-rouge)); }
.smx .tcard .jn span { color: var(--cb-muted); }
.smx .cd b { font-family: var(--font-display, Oswald, sans-serif); color: var(--cb-title); }
.smx .draw, .smx .stp, .smx .wc, .smx .mt, .smx .kiosk { background: var(--cb-surface); border-radius: 16px; border-color: var(--v2-line); }
.smx .stp.a, .smx .stp.b, .smx .stp.c { background: var(--cb-surface); border-top: 4px solid var(--cb-rouge); }
.smx .stp.b { border-top-color: var(--cb-marine); } .smx .stp.c { border-top-color: var(--cb-or); }
.smx .rb { border-color: var(--cb-marine); color: var(--cb-title); font-family: var(--font-display, Oswald, sans-serif); }
.smx .rb.star { border-color: var(--cb-or); color: var(--cb-title); }
.smx td.m, .smx .wc .amt { font-family: var(--font-display, Oswald, sans-serif); color: var(--cb-accent-text, var(--cb-rouge)); }
.smx .kt { font-family: var(--font-display, Oswald, sans-serif); text-transform: uppercase; color: var(--cb-title); }
.smx .mode button.on { background: var(--cb-rouge); color: #fff; }
.smx .mode { border-radius: 10px; overflow: hidden; }
.smx .kiosk { background: var(--cb-surface); }
.smx .ball { font-family: var(--font-display, Oswald, sans-serif); color: var(--cb-text); }
.smx .ball.on { background: var(--cb-rouge); border-color: var(--cb-rouge); color: #fff; }
.smx .ball.star { color: var(--cb-text); border-color: var(--cb-or); }
.smx .ball.star.on { background: var(--cb-or); color: #1A1A1A; border-color: var(--cb-or); }
.smx .receipt { border-radius: 14px; margin: 1rem; }
.smx .receipt::before, .smx .receipt::after { display: none; }
.smx .receipt { box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.smx .rt { font-family: var(--font-display, Oswald, sans-serif); text-transform: uppercase; }
.smx .alert { background: var(--cb-surface-2); border-color: var(--cb-or); color: var(--cb-text); }
.smx .alert.err { border-color: var(--cb-rouge); }
.smx .sm-b.hit { background: var(--cb-rouge); border-color: var(--cb-rouge); }
@media (min-width: 900px) { .smx .receipt { top: 96px; } }

/* Suggestions de recherche (accueil) */
.sugg { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; background: var(--cb-surface); border: 1px solid var(--v2-line); border-radius: 16px; box-shadow: 0 18px 40px rgba(0,0,0,.2); overflow: hidden; text-align: left; }
.sugg-i { display: flex; align-items: center; gap: .8rem; padding: .6rem .9rem; text-decoration: none; color: var(--cb-text); }
.sugg-i:hover { background: var(--cb-surface-2); }
.sugg-img { width: 54px; height: 40px; border-radius: 8px; background: var(--cb-surface-2); overflow: hidden; flex-shrink: 0; }
.sugg-img img { width: 100%; height: 100%; object-fit: cover; }
.sugg-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.sugg-t small { color: var(--cb-muted); font-size: .72rem; }
.sugg-i em { font-style: normal; font-weight: 700; color: var(--cb-accent-text); font-size: .9rem; }
.sugg-all { display: block; padding: .7rem .9rem; border-top: 1px solid var(--v2-line); font-size: .85rem; font-weight: 600; color: var(--cb-accent-text); text-decoration: none; }
.sugg-none { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--cb-surface); border: 1px solid var(--v2-line); border-radius: 16px; padding: .9rem 1rem; margin: 0; color: var(--cb-muted); z-index: 60; }

/* ===== Admin : cohérence clair / sombre sur tous les écrans ===== */
.adm-main .section-title { margin-bottom: 1.4rem; }
.adm-main .section-title h1 { font-size: 1.6rem; color: var(--cb-title); }
.adm-main .bg-white, .adm-main table { background: var(--cb-surface) !important; color: var(--cb-text); }
.adm-main table { border: 1px solid var(--v2-line); border-radius: 14px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.adm-main th { font: 600 .72rem/1 var(--font-display, Oswald, sans-serif); text-transform: uppercase; letter-spacing: .08em; color: var(--cb-muted) !important; background: var(--cb-surface-2); }
.adm-main tr { border-color: var(--v2-line) !important; }
.adm-main td, .adm-main th { border-bottom: 1px solid var(--v2-line); }
.adm-main tr:last-child td { border-bottom: 0; }
.adm-main input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]), .adm-main select, .adm-main textarea { background: var(--cb-input); color: var(--cb-text); border-color: var(--v2-line) !important; border-radius: 10px; }
.adm-main input::placeholder, .adm-main textarea::placeholder { color: var(--cb-muted); }
.adm-main .cb-card { background: var(--cb-surface); border: 1px solid var(--v2-line); border-radius: 16px; color: var(--cb-text); }
.adm-main .text-acier { color: var(--cb-muted) !important; }
.adm-main .text-marine { color: var(--cb-title) !important; }
.adm-main label { color: var(--cb-muted); }
.adm-main .btn { border-radius: 10px; }
.adm-main a:not(.btn):not(.adm-lnk) { color: var(--cb-accent-text); }
.adm-main code { background: var(--cb-surface-2); color: var(--cb-text); padding: .1rem .35rem; border-radius: 6px; }
.adm-top { justify-content: flex-end; }
.adm-top-title { display: none; }
@media (max-width: 1023px) { .adm-top { justify-content: flex-start; } .adm-top-title { display: block; } }

/* ===== Messages / bandeaux de thème : habillage du site (la logique des thèmes reste celle de la V1) ===== */
html[data-saison]:not([data-saison="aucun"]) .cb-header::before { font-family: Inter, sans-serif; font-weight: 600; text-transform: none; letter-spacing: .02em; font-size: .8rem; padding: .5rem 1rem; }
.vc-mini { font-family: Inter, sans-serif; font-weight: 600; text-transform: none; letter-spacing: .02em; font-size: .78rem; }
.cb-toast { font-family: Inter, sans-serif; }

/* Catégories (admin) */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.cat-card { padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .9rem; }
.cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.cat-head h3 { margin: 0; font-size: 1.05rem; color: var(--cb-title); }
.cat-nb { font-size: .75rem; color: var(--cb-muted); white-space: nowrap; }
.cat-red { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.cat-red label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.cat-red input { width: 70px; padding: .4rem .6rem; }
.cat-del { margin: 0; text-align: right; } .cat-del button { color: var(--cb-rouge); }
.cat-red input { border: 1px solid var(--v2-line) !important; }

/* ---- Barre de recherche (pilule) ---- */
.srch { position: relative; display: flex; align-items: center; min-width: 0; }
.srch .srch-i { position: absolute; left: 1.05rem; color: var(--cb-muted); pointer-events: none; transition: color .15s; }
.srch input[type=text] { width: 100%; min-height: 50px; padding: .7rem 2.8rem .7rem 2.9rem; border-radius: 999px !important; border: 1.5px solid var(--v2-line) !important; background: var(--cb-surface) !important; color: var(--cb-text); font-size: 1rem; box-shadow: 0 2px 10px rgba(16,43,85,.06) !important; transition: border-color .15s, box-shadow .15s; }
.srch input[type=text]::placeholder { color: var(--cb-muted); opacity: .9; }
.srch input[type=text]:focus { outline: none; border-color: var(--cb-accent, var(--cb-rouge)) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--cb-accent, var(--cb-rouge)) 22%, transparent), 0 6px 18px rgba(16,43,85,.12) !important; }
.srch:focus-within .srch-i { color: var(--cb-accent-text, var(--cb-rouge)); }
.srch-x { position: absolute; right: .55rem; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--cb-surface-2); color: var(--cb-muted); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.srch-x:hover { color: var(--cb-text); }
.srch input:placeholder-shown ~ .srch-x { display: none; }
.panel-search .srch input[type=text] { min-height: 46px; box-shadow: none !important; }

/* ---- Admin : champs génériques + encarts lisibles clair/sombre ---- */
.adm-main .input, .adm-main textarea, .adm-main select { padding: .65rem .85rem; min-height: 42px; font-size: .92rem; font-family: inherit; box-sizing: border-box; border: 1px solid var(--v2-line); }
.adm-main .input:not(.w-auto):not([size]), .adm-main textarea { width: 100%; max-width: 100%; }
.adm-main textarea { min-height: 96px; line-height: 1.5; resize: vertical; }
.adm-main .input:focus, .adm-main textarea:focus, .adm-main select:focus { outline: none; border-color: var(--cb-rouge) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--cb-rouge) 20%, transparent); }
.adm-main label { color: var(--cb-text); }
.adm-main .bg-sable\/40, .adm-main .bg-creme, .adm-main .bg-creme\/60, .adm-main .bg-yellow-50, .adm-main .bg-or\/10, .adm-main .bg-or\/30 { background: color-mix(in srgb, var(--cb-or, #C9A567) 16%, var(--cb-surface)) !important; color: var(--cb-text); border-color: color-mix(in srgb, var(--cb-or, #C9A567) 45%, transparent) !important; }
.adm-main .bg-vert\/10, .adm-main .bg-vert\/15 { background: color-mix(in srgb, #1E7A5A 14%, var(--cb-surface)) !important; color: var(--cb-text); }
.adm-main .bg-rouge\/10, .adm-main .bg-rouge\/5, .adm-main .bg-red-50 { background: color-mix(in srgb, #B71C1C 12%, var(--cb-surface)) !important; color: var(--cb-text); }
.adm-main .cb-card[style*="blanc-casse"] { background: var(--cb-surface-2) !important; }
.adm-main .text-marine, .adm-main .text-noir { color: var(--cb-title); }
.adm-main .text-acier { color: var(--cb-muted); }

/* Véhicule de la semaine : badge catalogue */
.card-v-tag--sem { background: var(--cb-rouge); color: #fff; top: auto; bottom: 12px; left: 12px; }

/* ---- Recrutement / suivi de candidature (design V2) ---- */
.rc2 { max-width: 46rem; }
.rc2-head { margin-bottom: 1.4rem; }
.rc2-head h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: .3rem 0 .6rem; }
.rc2-intro { color: var(--cb-muted); line-height: 1.65; margin: 0 0 .9rem; }
.rc2-suivi { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; margin: 0 0 1.4rem; padding: 1.1rem 1.3rem; border-radius: 18px; border: 1px solid var(--v2-line); border-left: 5px solid var(--cb-or); background: var(--cb-surface); color: var(--cb-text); text-decoration: none; }
.rc2-suivi small { display: block; color: var(--cb-muted); margin-top: .15rem; font-size: .85rem; }
.rc2-suivi:hover { border-color: var(--cb-or); }
.rc2-form { display: grid; gap: 1.1rem; }
.rc2-carte { padding: 1.5rem 1.5rem 1.6rem; }
.rc2-carte h2 { display: flex; align-items: center; gap: .7rem; font-size: 1.15rem; margin: 0 0 .5rem; }
.rc2-num { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; background: var(--cb-rouge); color: #fff; font: 700 .85rem var(--font-body); flex: none; }
.rc2-obl { font-style: normal; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; background: color-mix(in srgb, var(--cb-rouge) 14%, var(--cb-surface)); color: var(--cb-rouge); padding: 3px 9px; border-radius: 999px; }
html[data-theme="dark"] .rc2-obl { color: #FF8A80; }
.rc2-aide { font-size: .84rem; color: var(--cb-muted); margin: 0 0 .5rem; }
.rc2-carte label { display: block; font-size: .85rem; font-weight: 600; margin: .9rem 0 .3rem; color: var(--cb-text); }
.rc2-carte input[type=text], .rc2-carte input[type=number], .rc2-carte input[type=file], .rc2-carte textarea { width: 100%; box-sizing: border-box; }
.rc2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .rc2-grid { grid-template-columns: 1fr; } }
.rc2-puces { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .3rem; }
.rc2-carte .rc2-puce { position: relative; margin: 0; display: inline-block; }
.rc2-puce input { position: absolute; opacity: 0; width: 0 !important; height: 0; }
.rc2-puce span { display: block; padding: .55rem 1.05rem; border: 1.5px solid var(--v2-line); border-radius: 999px; font-size: .88rem; font-weight: 600; cursor: pointer; background: var(--cb-surface); color: var(--cb-text); user-select: none; transition: all .12s; }
.rc2-puce span:hover { border-color: var(--cb-rouge); }
.rc2-puce input:checked + span { background: var(--cb-rouge); border-color: var(--cb-rouge); color: #fff; }
.rc2-puce input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--cb-rouge) 40%, transparent); outline-offset: 2px; }
.rc2-alerte { display: none; margin-top: .8rem; padding: .7rem .95rem; border-radius: 12px; font-size: .85rem; border: 1px solid var(--cb-rouge); background: color-mix(in srgb, var(--cb-rouge) 10%, var(--cb-surface)); color: var(--cb-text); }
.rc2-etat { padding: 1.8rem; }
.rc2-etat-t { font: 700 1.3rem var(--font-display); margin: 0 0 .6rem; }
.rc2-etat p { margin: 0 0 .5rem; line-height: 1.65; }

.sv-carte { margin-top: 1.2rem; padding: 1.5rem; }
.sv-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } .sv-champs .sv-large { grid-column: 1 / -1; }
.sv-carte input[type=text] { width: 100%; box-sizing: border-box; }
@media (max-width: 560px) { .sv-champs { grid-template-columns: 1fr; } }
.sv-frise { list-style: none; margin: 1.2rem 0 1.4rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sv-frise li { text-align: center; position: relative; padding-top: 38px; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cb-muted); }
.sv-frise li::before { content: ""; position: absolute; top: 12px; left: 0; right: 0; height: 3px; background: var(--v2-line); }
.sv-frise li:first-child::before { left: 50%; } .sv-frise li:last-child::before { right: 50%; }
.sv-frise li::after { content: ""; position: absolute; top: 4px; left: 50%; width: 19px; height: 19px; margin-left: -9.5px; border-radius: 50%; background: var(--cb-surface); border: 3px solid var(--v2-line); }
.sv-frise li.fait { color: var(--cb-text); } .sv-frise li.fait::before { background: var(--cb-rouge); } .sv-frise li.fait::after { background: var(--cb-rouge); border-color: var(--cb-rouge); }
.sv-frise li.actuel { font-weight: 700; } .sv-frise li.actuel::after { box-shadow: 0 0 0 5px color-mix(in srgb, var(--cb-rouge) 25%, transparent); }
.sv-frise li.fin-ok::before { background: #4caf6e; } .sv-frise li.fin-ok::after { background: #4caf6e; border-color: #4caf6e; }
.sv-frise li.fin-ko::before { background: #e05252; } .sv-frise li.fin-ko::after { background: #e05252; border-color: #e05252; }
.sv-etat { padding: 1.1rem 1.2rem 1.2rem; border: 1px solid var(--v2-line); border-left: 5px solid var(--c); border-radius: 14px; background: var(--cb-surface-2); }
.sv-etat h2 { font-size: 1.4rem; margin: 0 0 .4rem; color: var(--c); }
.sv-rdv { display: inline-block; margin: .7rem 0 .2rem; padding: .55rem 1rem; border-radius: 12px; background: color-mix(in srgb, #A98BE0 16%, var(--cb-surface)); border: 1px solid #A98BE0; font: 700 1.15rem var(--font-display); }
.rc2 input[type=text], .rc2 input[type=number], .rc2 input[type=file], .rc2 textarea { padding: .75rem .95rem; min-height: 46px; border: 1.5px solid var(--v2-line); border-radius: 12px; background: var(--cb-surface); color: var(--cb-text); font: inherit; font-size: .95rem; box-sizing: border-box; }
.rc2 textarea { min-height: 120px; line-height: 1.55; resize: vertical; }
.rc2 input:focus, .rc2 textarea:focus { outline: none; border-color: var(--cb-rouge); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cb-rouge) 20%, transparent); }

/* ===== Calendrier de l'avent : cadeaux numérotés, cases mélangées, rattrapage ===== */
.av-grid { gap: 1rem; }
.av-case { aspect-ratio: auto; min-height: 148px; padding: .7rem .5rem .8rem; gap: .25rem; background: var(--cb-surface); }
.av-gift { width: 82%; max-width: 92px; height: auto; display: block; filter: drop-shadow(0 6px 8px rgba(0,0,0,.18)); transition: transform .25s; }
.av-case--disponible .av-gift, .av-case--rattrapable .av-gift { animation: avBob 1.8s ease-in-out infinite; }
.av-case:hover .av-gift--ferme { transform: translateY(-3px) rotate(-2deg); }
.av-gift--verrouille { filter: grayscale(.85) opacity(.55) drop-shadow(0 4px 6px rgba(0,0,0,.12)); }
.av-gift--ouvert { filter: drop-shadow(0 6px 10px rgba(30,122,90,.35)); }
.av-case--perdu .av-gift--ouvert { filter: grayscale(.7) opacity(.7); }
.av-case--verrouille { background: var(--cb-surface-2); }
.av-case--rattrapable { border: 2px dashed var(--cb-or); background: linear-gradient(160deg, rgba(201,165,103,.18), var(--cb-surface)); }
.av-case--rattrapable .av-case-btn { background: var(--cb-or); border-color: var(--cb-or); color: #1a1a1a; }
.av-case--loupe { opacity: .7; filter: none; }
.av-case--special { background: linear-gradient(160deg, rgba(201,165,103,.28), var(--cb-surface)); }
.av-case--special::after { top: 6px; right: 8px; }
@keyframes avBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .av-case--disponible .av-gift, .av-case--rattrapable .av-gift { animation: none; } }
@media (max-width: 480px) { .av-grid { gap: .6rem; } .av-case { min-height: 128px; padding: .5rem .3rem .6rem; } }

/* ===== Offre du jour (visiteurs) : même bandeau que le véhicule de la semaine ===== */
.wk--jour .wk-ribbon { background: var(--cb-rouge); }
.wk--jour .wk-pct { background: var(--cb-marine); }
