/* =====================================================================
   RIO – design v3 : exposants, plateau, programme, plan, histoire,
   vote, sponsors, langues, mode sombre, transitions de page
   ===================================================================== */

/* Transitions fluides entre les pages (navigateurs compatibles) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

:root { --amber-soft: #fff4dc; --green: #17804a; }

/* ------------------------------------------------ Outils d'en-tête */
.header-inner { flex-wrap: nowrap; }
.header-inner .nav { gap: 14px; flex-wrap: nowrap; }
.nav > ul { flex-wrap: nowrap; }
.nav-tools { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.15); }
.theme-toggle, .nav-account, .lang-menu summary { height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: transparent; color: #fff; cursor: pointer; font: 700 .76rem var(--body); letter-spacing: .05em; }
.theme-toggle, .nav-account { width: 36px; padding: 0; }
.theme-toggle:hover, .nav-account:hover, .lang-menu summary:hover, .lang-menu[open] summary { background: rgba(255,255,255,.14); color: #fff; }
.lang-menu { position: relative; }
.lang-menu summary { padding: 0 10px; list-style: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 6px; min-width: 160px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); z-index: 70; }
.lang-menu a { display: flex; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .9rem; }
.lang-menu a strong { width: 24px; color: var(--muted); }
.lang-menu a:hover, .lang-menu a.active { background: var(--blue-soft); color: var(--blue); }
.nav-cta { white-space: nowrap; margin-left: 4px; }
@media (max-width: 1600px) and (min-width: 1081px) { .brand-text small { display: none; } }
@media (max-width: 1360px) and (min-width: 1081px) {
    .nav > ul > li > a { padding: 10px 8px; font-size: .86rem; }
    .nav-cta { padding: .7em .9em; }
    .nav-cta .ic { display: none; }
    .brand img { width: 74px; }
}
@media (max-width: 1080px) {
    .nav-tools { flex-wrap: wrap; margin-top: 18px; padding: 16px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.15); }
    .lang-menu ul { position: static; margin-top: 8px; background: rgba(255,255,255,.06); }
    .lang-menu a { color: #fff; }
}
:root[data-theme="dark"] .lang-menu ul { background: var(--paper); }

/* ------------------------------------------------ Éléments communs */
.badge-amber { background: var(--amber-soft); color: #8a5a00; }
.badge-green { background: #e3f4ea; color: var(--green); }
.badge-red { background: #fde8e6; color: var(--red); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.empty-state { text-align: center; max-width: 620px; margin: 30px auto; padding: 46px 30px; background: var(--paper); border-radius: 24px; border: 2px dashed var(--line); }
.empty-state .capsule-ic { margin: 0 auto 14px; width: 54px; height: 54px; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 56px; padding: 34px 38px; border-radius: 24px; color: #dbe3f1; background: radial-gradient(600px 300px at 90% 0%, #1c3c78, transparent), var(--navy); }
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: .92rem; cursor: pointer; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 600; }
.segmented input:checked + span { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.segmented input:focus-visible + span { outline: 3px solid var(--amber); }
.text-red { color: var(--red); }
.quote-block { font: 800 1.5rem/1.3 var(--display); text-transform: uppercase; color: var(--navy); border-left: 5px solid var(--amber); padding-left: 18px; margin: 0 0 22px; }
.quote-block cite { display: block; font: 500 .9rem var(--body); text-transform: none; color: var(--muted); margin-top: 8px; }

/* ------------------------------------------------ Espace exposants */
.edition-banner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 32px; border-radius: 22px; margin-bottom: 28px; background: linear-gradient(120deg, var(--amber-soft), #fff); border: 1px solid #f2dfb4; }
.edition-banner h2 { margin-bottom: .15em; }
.edition-banner p { margin: 0 0 4px; }
.machine-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.machine-card { background: var(--paper); border-radius: 22px; overflow: hidden; box-shadow: 0 16px 40px -28px rgba(10,22,40,.6); display: flex; flex-direction: column; }
.machine-card-img { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--navy); }
.machine-card-img img { width: 100%; height: 100%; object-fit: cover; }
.machine-card-img picture { display: contents; }
.no-photo { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 6px; color: #8fa0bb; background: repeating-linear-gradient(45deg, #13233c 0 12px, #0f1e34 12px 24px); }
.no-photo small { color: #c9d4e6; }
.cat-badge { position: absolute; top: 12px; left: 12px; }
.machine-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.machine-card-body h3 { font-size: 1.6rem; margin: 0; }
.reg-box { background: var(--cream); border-radius: 12px; padding: 12px 14px; margin: 8px 0 12px; }
.reg-message { margin: 8px 0 0; padding: 10px 12px; border-left: 3px solid var(--amber); background: var(--paper); border-radius: 0 8px 8px 0; font-size: .9rem; }
.machine-card .btn-row { margin-top: auto; gap: 8px; }
.machine-card form { margin: 0; }
.machine-form h3 { margin-top: 28px; }
.lang-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.lang-pane { display: none; }
.lang-pane.active { display: flex; }
.lang-pane textarea { width: 100%; }
.form-actions-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.machine-extra { margin-top: 28px; }
.upload-inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.dropzone-pub { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 2px dashed #cfd6e6; border-radius: 14px; background: #f8faff; cursor: pointer; font-weight: 600; color: var(--navy); }
.dropzone-pub:hover { border-color: var(--blue); background: var(--blue-soft); }
.dropzone-pub input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone-pub.big { display: flex; flex-direction: column; justify-content: center; text-align: center; min-height: 140px; width: 100%; }
.dropzone-pub small { display: block; font-weight: 400; color: var(--muted); }
.dropzone-pub .files-chosen { color: var(--blue); }
.photo-manage { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photo-manage figure { margin: 0; position: relative; background: var(--cream); border-radius: 12px; overflow: hidden; }
.photo-manage figure.is-cover { outline: 3px solid var(--amber); }
.photo-manage img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-manage .badge { position: absolute; top: 8px; left: 8px; }
.photo-manage form { padding: 8px; display: grid; gap: 6px; margin: 0; }
.photo-manage input { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .8rem; }
.photo-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.photo-actions .btn { padding: .4em .6em; font-size: .75rem; }
.danger { color: var(--red) !important; }
.doc-mini { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.doc-mini li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--cream); border-radius: 10px; }
.doc-mini li a { flex: 1; display: flex; gap: 6px; align-items: center; font-weight: 600; text-decoration: none; }
.doc-mini form { margin: 0; }
.doc-form .form-grid { margin-bottom: 10px; }
.danger-zone { margin-top: 28px; text-align: right; }
.steps { padding-left: 1.2em; }
.steps li { margin-bottom: .6em; }
.exhibitor-cta .capsule-ic { margin-bottom: 12px; }

/* ------------------------------------------------ Plateau */
.plateau-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.plateau-bar .filters { margin: 0; justify-content: flex-start; }
.edition-select { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.edition-select select { padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--line); font: inherit; background: var(--paper); color: var(--ink); }
.plateau-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.plateau-card { display: flex; flex-direction: column; background: var(--paper); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 14px 34px -26px rgba(10,22,40,.6); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.plateau-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(10,22,40,.55); color: var(--ink); }
.plateau-card.is-hidden { display: none; }
.plateau-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--navy); overflow: hidden; }
.plateau-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.plateau-card:hover .plateau-img img { transform: scale(1.06); }
.plateau-year { position: absolute; right: 12px; bottom: 10px; font: 900 2.4rem/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px #fff; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.plateau-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.plateau-body strong { font: 800 1.3rem/1.1 var(--display); text-transform: uppercase; }
.plateau-body small { color: var(--muted); }
.lineup-section { background: var(--cream); }

/* ------------------------------------------------ Fiche machine */
.machine-hero { min-height: 70vh; }
.machine-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.machine-story { font-size: 1.08rem; margin-bottom: 32px; }
.machine-photos { columns: 2 220px; margin-bottom: 32px; }
.machine-side { position: sticky; top: 100px; display: grid; gap: 18px; }
.museum-label { background: #fbf6ea; color: #2a2418; border-radius: 6px; padding: 26px 26px 22px; box-shadow: 0 1px 0 #e9dcbf, 0 20px 40px -26px rgba(60,40,0,.5); border: 1px solid #e9dcbf; font-family: Georgia, 'Times New Roman', serif; position: relative; }
.museum-label::before { content: ""; position: absolute; inset: 8px; border: 1px solid #d8c69c; pointer-events: none; border-radius: 3px; }
.museum-kicker { font: 700 .72rem var(--body); letter-spacing: .2em; text-transform: uppercase; color: #8a6d2f; margin: 0 0 6px; }
.museum-label h2 { font: italic 700 1.6rem/1.15 Georgia, serif; text-transform: none; color: #2a2418; margin: 0 0 14px; }
.museum-label dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: .95rem; }
.museum-label dt { color: #8a6d2f; font-variant: small-caps; letter-spacing: .04em; }
.museum-label dd { margin: 0; font-weight: 600; }
.qr-panel { text-align: center; }
.qr-panel .qr { width: 170px; margin: 0 auto 10px; background: #fff; padding: 10px; border-radius: 12px; }
.qr-panel .qr svg { width: 100%; height: auto; display: block; }
.btn-block { width: 100%; justify-content: center; }
.mini-programme { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

/* ------------------------------------------------ Programme */
.programme-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.day-tabs { display: inline-flex; background: var(--paper); padding: 5px; border-radius: 16px; box-shadow: 0 8px 24px -18px rgba(10,22,40,.6); }
.day-tab { border: 0; background: none; padding: 12px 22px; border-radius: 12px; font: 800 1.2rem var(--display); text-transform: uppercase; color: var(--muted); cursor: pointer; }
.day-tab.active { background: var(--navy); color: var(--amber); }
.timeline-day { list-style: none; padding: 0; margin: 0; display: none; position: relative; }
.timeline-day.active { display: block; }
.timeline-day::before { content: ""; position: absolute; left: 107px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl-item { display: grid; grid-template-columns: 90px 36px 1fr; gap: 0 14px; padding: 14px 0; position: relative; }
.tl-item time { font: 900 1.6rem/1 var(--display); color: var(--navy); text-align: right; padding-top: 6px; }
.tl-item time small { display: block; font: 600 .78rem var(--body); color: var(--muted); margin-top: 4px; }
.tl-dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--line); color: var(--blue); position: relative; z-index: 1; }
.cat-vol .tl-dot { background: var(--blue); color: #fff; border-color: var(--blue); }
.tl-body { background: var(--paper); border-radius: 16px; padding: 16px 20px; box-shadow: 0 10px 28px -22px rgba(10,22,40,.6); }
.tl-body h3 { margin: 8px 0 6px; font-size: 1.4rem; }
.tl-body p { margin: 0 0 8px; color: var(--muted); }
.tl-links { display: flex; flex-wrap: wrap; gap: 14px; font-size: .88rem; }
.tl-links a { display: inline-flex; gap: 4px; align-items: center; text-decoration: none; font-weight: 600; }
.tl-item.is-now .tl-body { outline: 3px solid var(--amber); }
.tl-item.is-past { opacity: .55; }
@media (max-width: 600px) {
    .timeline-day::before { left: 71px; }
    .tl-item { grid-template-columns: 56px 30px 1fr; gap: 0 8px; }
    .tl-item time { font-size: 1.2rem; }
    .tl-dot { width: 30px; height: 30px; }
}

/* ------------------------------------------------ Plan */
.map-wrap { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 24px; }
#site-map { height: min(70vh, 620px); background: #dfe7ef; }
.map-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-bottom: 24px; }
.map-list button { width: 100%; text-align: left; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font: inherit; color: var(--ink); }
.map-list small { color: var(--muted); flex-basis: 100%; padding-left: 20px; }
.map-list li.is-hidden { display: none; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot-entree { background: #17804a; } .dot-parking { background: #1f4fe0; } .dot-avions { background: #0a1628; } .dot-voitures { background: #8a3ffc; }
.dot-restauration { background: #e9a62b; } .dot-wc { background: #5b6678; } .dot-secours { background: #c8382b; } .dot-spotters { background: #d63384; }
.dot-navette { background: #0aa2c0; } .dot-info { background: #f08c00; }
.map-pin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); }

/* ------------------------------------------------ Histoire */
.history { list-style: none; padding: 0; margin: 0; position: relative; }
.history::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--amber), var(--blue)); transform: translateX(-50%); }
.history-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; margin-bottom: 48px; }
.history-year { position: absolute; left: 50%; top: 20px; transform: translateX(-50%); z-index: 2; background: var(--navy); color: var(--amber); font: 900 1.3rem/1 var(--display); padding: 10px 14px; border-radius: 999px; box-shadow: 0 0 0 6px var(--cream); }
.history-card { background: var(--paper); border-radius: 22px; overflow: hidden; box-shadow: 0 18px 44px -30px rgba(10,22,40,.6); }
.history-item:nth-child(odd) .history-card { grid-column: 1; }
.history-item:nth-child(even) .history-card { grid-column: 2; }
.history-img { aspect-ratio: 16 / 9; overflow: hidden; }
.history-img img { width: 100%; height: 100%; object-fit: cover; }
.history-body { padding: 20px 24px 24px; }
.history-body h3 { font-size: 1.6rem; }
.history-item.is-next .history-card { outline: 3px solid var(--amber); }
@media (max-width: 860px) {
    .history::before { left: 22px; }
    .history-item { grid-template-columns: 1fr; padding-left: 56px; gap: 0; }
    .history-item:nth-child(n) .history-card { grid-column: 1; }
    .history-year { left: 22px; top: 0; transform: translateX(-50%); font-size: 1rem; padding: 8px 10px; }
}

/* ------------------------------------------------ Vote */
.vote-form h2 { margin: 36px 0 16px; text-align: center; }
.vote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.vote-card { position: relative; cursor: pointer; background: var(--paper); border-radius: 16px; overflow: hidden; border: 3px solid transparent; transition: border-color .2s, transform .2s; }
.vote-card input { position: absolute; opacity: 0; }
.vote-card:hover { transform: translateY(-3px); }
.vote-card:has(input:checked) { border-color: var(--amber); }
.vote-card:has(input:checked)::after { content: "★"; position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--amber); color: var(--navy); font-size: 1.1rem; }
.vote-img { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--navy); color: #8fa0bb; overflow: hidden; }
.vote-img img { width: 100%; height: 100%; object-fit: cover; }
.vote-name { display: block; padding: 10px 12px; font-weight: 700; }
.vote-submit { max-width: 640px; margin: 32px auto 0; text-align: center; }
.vote-submit .captcha-row { justify-content: center; }
.results { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: r; }
.results li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.results .bar { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--amber) var(--w), var(--line) var(--w)); }

/* ------------------------------------------------ Sponsors */
.sponsor-level { margin-top: 40px; }
.level-title { text-align: center; font-size: 1.6rem; display: flex; align-items: center; gap: 16px; }
.level-title::before, .level-title::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.size-4 .logo-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.size-4 .logo-tile { height: 180px; }
.size-4 .logo-tile img { max-height: 150px; }
.size-3 .logo-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.size-3 .logo-tile { height: 140px; }
.size-1 .logo-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.size-1 .logo-tile { height: 90px; }
.formulas { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; }
.formula { background: var(--paper); border-radius: 22px; padding: 26px; box-shadow: 0 16px 40px -28px rgba(10,22,40,.6); border-top: 6px solid var(--blue); position: relative; }
.formula.level-corsair { border-top-color: var(--amber); background: linear-gradient(180deg, var(--amber-soft), var(--paper) 40%); }
.formula-img { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; margin-bottom: 14px; box-shadow: 0 0 0 4px var(--paper), 0 8px 20px -10px rgba(0,0,0,.5); }
.formula-img img { width: 100%; height: 100%; object-fit: cover; }
.formula h3 { font-size: 1.5rem; margin-bottom: 4px; }
.formula-price { font: 900 1.9rem/1 var(--display); color: var(--blue); margin: 0 0 16px; }
.formula .checks li { font-size: .92rem; }
.stats-compact { margin-top: 0; }
.contact-card { background: var(--paper); border-radius: 16px; padding: 18px 22px; border-left: 5px solid var(--amber); margin: 18px 0; }
.contact-card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.big-logo { height: 260px; }
.big-logo img { max-height: 220px; }

/* ------------------------------------------------ Jour J */
.live-section { background: var(--navy); color: #c9d4e6; }
.live-section h2 { color: #fff; }
.live-kicker { color: #ff6b5a !important; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.live-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1fr; gap: 16px; }
.live-card { border-radius: 20px; padding: 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #dbe3f1; text-decoration: none; position: relative; overflow: hidden; }
.live-card h3 { color: #fff; font-size: 1.6rem; margin: 6px 0; }
.live-now { background: linear-gradient(135deg, #1f4fe0, #0a1628); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 700; color: var(--amber); margin: 0; }
.live-cam { padding: 0; min-height: 180px; }
.live-cam img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.live-links { display: grid; gap: 8px; align-content: center; }
.live-links a { color: #fff; text-decoration: none; display: flex; gap: 8px; align-items: center; font-weight: 600; }
.live-links a:hover { color: var(--amber); }
@media (max-width: 1080px) { .live-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .live-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------ Bannière vidéo, galeries, pied de page */
.hero2-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero2-slide picture, .page-hero2-bg picture { display: contents; }
.year-nav-cta { background: var(--amber) !important; color: var(--navy) !important; display: inline-flex; gap: 6px; align-items: center; }
.year-card2-cta .year-card2-year { -webkit-text-stroke: 2px var(--amber); }
.footer-news { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 30px; margin-bottom: 48px; border-radius: 22px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.footer-news h3 { margin: 0 0 4px; }
.footer-news p { margin: 0; }
.machine img, .member img, .capsule-img img, .bento-item img, .year-card2 img, .about2-photo img, .ticket-card img { display: block; }
.machine picture, .member picture, .capsule-img picture, .about2-photo picture, .ticket-card picture, .year-card2 picture { display: contents; }

/* ------------------------------------------------ Visionneuse */
.lb-tools { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; z-index: 3; }
.lb-tools > * { position: static !important; width: 46px !important; height: 46px !important; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer; text-decoration: none; }
.lb-tools > *:hover { background: var(--amber); color: var(--navy); }
.lb-stage { overflow: hidden; max-width: 100%; max-height: calc(100vh - 140px); border-radius: 8px; }
.lb-stage img { transition: transform .25s ease; transform-origin: center; cursor: zoom-in; }
.lb-stage.zoomed img { cursor: zoom-out; transform: scale(2.2); }

/* ------------------------------------------------ Responsive */
@media (max-width: 860px) {
    .machine-layout { grid-template-columns: 1fr; }
    .machine-side { position: static; }
    .cta-band, .edition-banner, .footer-news { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
   Mode sombre (automatique selon le système, ou choisi avec le bouton)
   ===================================================================== */
:root[data-theme="dark"] {
    --cream: #0b1422; --paper: #121f35; --ink: #dbe4f1; --muted: #9aa9c0; --line: #24344f;
    --blue-soft: #1b2b52; --amber-soft: #3a2c10; --shadow: 0 18px 50px -20px rgba(0,0,0,.8);
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --cream: #0b1422; --paper: #121f35; --ink: #dbe4f1; --muted: #9aa9c0; --line: #24344f;
        --blue-soft: #1b2b52; --amber-soft: #3a2c10; --shadow: 0 18px 50px -20px rgba(0,0,0,.8);
        color-scheme: dark;
    }
}
:root[data-theme="dark"] body { background: var(--cream); color: var(--ink); }
:root[data-theme="dark"] :is(h1, h2, h3, .big, .announce-big, .tl-item time, .intro-text, .stat strong, .letter-title, .quote-block) { color: #eef2f8; }
:root[data-theme="dark"] :is(.panel, .capsule, .access-card, .info-card, .letter, .offer, .contact-cards li, .doc-list a, .press-item, .chip, .year-nav a, .carousel-nav button, .member, .bank-card, .notice, .member-nav, .sub, .filters .chip, .captcha-refresh, .edition-banner, .segmented span, .day-tabs, .tl-dot, .contact-card, .map-list button, .history-card, .vote-card, .formula, .plateau-card, .machine-card, .reg-box, .reg-message, .doc-mini li) { background: var(--paper); color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] :is(.section.tinted, .galleries, .bento-section, .about2, .contact, .lineup-section, .galleries2, .sponsors-band) { background: var(--cream); }
:root[data-theme="dark"] .field :is(input, select, textarea) { background: #0e1a2d; color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .sub a { color: var(--ink); }
:root[data-theme="dark"] .member-nav a { color: var(--ink); }
:root[data-theme="dark"] .chip.active, :root[data-theme="dark"] .year-nav a.active { background: var(--amber); color: #0a1628; }
:root[data-theme="dark"] .btn-outline { color: #eef2f8; border-color: #eef2f8; }
:root[data-theme="dark"] .notice { background: #2a2210; border-left-color: var(--amber); }
:root[data-theme="dark"] .edition-banner { background: linear-gradient(120deg, #2a2210, var(--paper)); }
:root[data-theme="dark"] .page-hero2 + .section, :root[data-theme="dark"] .ticker + .section { background: var(--cream); }
:root[data-theme="dark"] .history-year { box-shadow: 0 0 0 6px var(--cream); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) body { background: var(--cream); color: var(--ink); }
    :root:not([data-theme="light"]) :is(h1, h2, h3, .big, .announce-big, .tl-item time, .intro-text, .stat strong, .letter-title, .quote-block) { color: #eef2f8; }
    :root:not([data-theme="light"]) :is(.panel, .capsule, .access-card, .info-card, .letter, .offer, .contact-cards li, .doc-list a, .press-item, .chip, .year-nav a, .carousel-nav button, .member, .bank-card, .notice, .member-nav, .sub, .filters .chip, .captcha-refresh, .edition-banner, .segmented span, .day-tabs, .tl-dot, .contact-card, .map-list button, .history-card, .vote-card, .formula, .plateau-card, .machine-card, .reg-box, .reg-message, .doc-mini li) { background: var(--paper); color: var(--ink); border-color: var(--line); }
    :root:not([data-theme="light"]) :is(.section.tinted, .galleries, .bento-section, .about2, .contact, .lineup-section, .galleries2, .sponsors-band) { background: var(--cream); }
    :root:not([data-theme="light"]) .field :is(input, select, textarea) { background: #0e1a2d; color: var(--ink); border-color: var(--line); }
    :root:not([data-theme="light"]) :is(.sub a, .member-nav a) { color: var(--ink); }
    :root:not([data-theme="light"]) .chip.active, :root:not([data-theme="light"]) .year-nav a.active { background: var(--amber); color: #0a1628; }
    :root:not([data-theme="light"]) .btn-outline { color: #eef2f8; border-color: #eef2f8; }
    :root:not([data-theme="light"]) .notice { background: #2a2210; }
    :root:not([data-theme="light"]) .edition-banner { background: linear-gradient(120deg, #2a2210, var(--paper)); }
    :root:not([data-theme="light"]) .history-year { box-shadow: 0 0 0 6px var(--cream); }
}

.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 12px; z-index: 200; box-shadow: var(--shadow); font-weight: 600; }
.dot-stands { background: #7048e8; }
