/* =========================================================
   LaserMS3D — Organisateurs 2.0 (expérience 3D immersive)
   Page : organisateurs-2.0.html
   - Scène Three.js fixe en fond, chapitres scrollytelling
   - HUD par chapitre, simulateur, sections infos
   - Replis complets : sans WebGL, reduced-motion, sans JS
   ========================================================= */

/* ---------- Base page ---------- */

.orga2-body {
    background: var(--bg-primary);
}

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

/* Barre de progression de lecture */
.read-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1200;
    background: transparent;
    pointer-events: none;
}
.read-progress i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--gradient-accent);
    box-shadow: 0 0 12px var(--accent-glow);
    transition: width 0.08s linear;
}

/* Loader : reflet doux sur le logo pendant le chargement */
.o2-loader-logo {
    position: relative;
    overflow: hidden;
}
.o2-loader-logo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.14) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: o2Shine 1.8s ease-in-out infinite;
}
@keyframes o2Shine {
    to { transform: translateX(100%); }
}

/* ---------- Scène 3D ---------- */

.gl-stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 38%, #131420 0%, #0a0a0f 75%);
}
.gl-stage canvas {
    display: block;
    width: 100%;
    height: 100%;
}
.gl-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 50%, transparent 52%, rgba(5, 5, 9, 0.55) 100%),
        linear-gradient(180deg, rgba(10, 10, 15, 0.45) 0%, transparent 18%, transparent 84%, rgba(10, 10, 15, 0.5) 100%);
}
/* La scène se range quand on quitte la zone 3D */
.gl-stage.is-asleep {
    visibility: hidden;
}

/* ---------- Chapitres scrollytelling ---------- */

.o2-scroll3d {
    position: relative;
    z-index: 1;
}

.o2-ch {
    position: relative;
    height: 210vh;
}
.o2-ch.o2-hero {
    height: 230vh;
}
.o2-ch.o2-ch-simu {
    height: 260vh;
}

.o2-ch-inner {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 96px 24px 48px;
    overflow: hidden;
}

/* ---------- Hero ---------- */

.o2-kicker {
    font-size: 0.78rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
    font-weight: 600;
}

.o2-hero-content {
    max-width: 880px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s ease 0.15s, transform 0.9s ease 0.15s;
}
.o2-hero-content.is-in {
    opacity: 1;
    transform: none;
}
/* Quand on quitte le chapitre héro, le contenu s'efface pour laisser la 3D respirer */
.o2-hero:not(.is-active) .o2-hero-content.is-in {
    opacity: 0;
    transform: translateY(-26px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.o2-scroll-hint {
    transition: opacity 0.45s ease;
}
.o2-hero:not(.is-active) .o2-scroll-hint {
    opacity: 0;
}

.o2-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 7.2vw, 5rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 22px;
    text-wrap: balance;
}
.o2-hero-title .o2-line {
    display: block;
}
.o2-hero-title em {
    font-style: normal;
}

.o2-hero-sub {
    font-size: clamp(1rem, 2vw, 1.18rem);
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 30px;
}

.o2-hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.o2-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.o2-hero-meta i {
    color: var(--accent);
    font-size: 0.6rem;
    font-style: normal;
}

.o2-scroll-hint {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.o2-scroll-line {
    display: block;
    width: 1px;
    height: 44px;
    background: linear-gradient(180deg, var(--accent), transparent);
    animation: o2ScrollPulse 1.8s ease-in-out infinite;
}
.o2-scroll-label {
    font-size: 0.68rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}
@keyframes o2ScrollPulse {
    0%, 100% { transform: scaleY(0.45); transform-origin: top; opacity: 0.45; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- HUD chapitres ---------- */

.o2-hud {
    position: relative;
    max-width: 460px;
    background: rgba(14, 14, 22, 0.62);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 20px);
    padding: 30px 32px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.o2-ch.is-active .o2-hud {
    opacity: 1;
    transform: none;
}

.o2-hud::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.65;
}

.o2-hud-left { align-self: flex-start; margin-left: clamp(8px, 6vw, 90px); }
.o2-hud-right { align-self: flex-end; margin-right: clamp(8px, 6vw, 90px); }
.o2-hud-center { text-align: center; }
.o2-hud-bottom {
    margin-top: auto;
    margin-bottom: clamp(60px, 9vh, 110px);
    max-width: 760px;
    text-align: center;
}

.o2-hud .o2-kicker {
    margin-bottom: 10px;
}

.o2-hud-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    line-height: 1.15;
    margin-bottom: 12px;
}

.o2-hud-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.o2-specs {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.o2-specs li {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.o2-spec-val {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--accent-light);
    font-variant-numeric: tabular-nums;
}
.o2-spec-label {
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.o2-hud-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    border-left: 2px solid var(--accent);
    padding-left: 10px;
}

/* Apparition en cascade des éléments du HUD */
[data-hud-item] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.o2-ch.is-active [data-hud-item] {
    opacity: 1;
    transform: none;
}
.o2-ch.is-active [data-hud-item]:nth-child(1) { transition-delay: 0.12s; }
.o2-ch.is-active [data-hud-item]:nth-child(2) { transition-delay: 0.22s; }
.o2-ch.is-active [data-hud-item]:nth-child(3) { transition-delay: 0.32s; }
.o2-ch.is-active [data-hud-item]:nth-child(4) { transition-delay: 0.42s; }

/* ---------- Simulateur ---------- */

.o2-ch-simu .o2-hud-center {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding-bottom: 0;
}
.o2-ch-simu .o2-hud-center::before { display: none; }

.simu-panel {
    margin-top: auto;
    margin-bottom: clamp(40px, 7vh, 90px);
    width: min(560px, calc(100vw - 40px));
    background: rgba(14, 14, 22, 0.72);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 20px);
    padding: 22px 24px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.5);
}
.o2-ch.is-active .simu-panel {
    transition-delay: 0.25s;
}

.simu-label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.simu-row {
    display: flex;
    gap: 10px;
}
.simu-row input {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-hover);
    border-radius: 100px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    padding: 13px 20px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.simu-row input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.simu-row .btn {
    padding: 13px 24px;
    flex-shrink: 0;
}

.simu-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.simu-chip {
    background: transparent;
    border: 1px solid var(--border-hover);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8rem;
    padding: 7px 14px;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
}
.simu-chip:hover {
    border-color: var(--accent);
    color: var(--accent-light);
}

.simu-status {
    margin: 12px 2px 0;
    font-size: 0.84rem;
    color: var(--text-muted);
    min-height: 1.3em;
}
.simu-status.is-engraving {
    color: var(--accent-light);
}

/* Repli 2D du simulateur (sans WebGL) */
.o2-fallback-simu {
    width: min(640px, calc(100vw - 40px));
    margin: 22px auto 0;
}
.o2-fallback-simu canvas {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}

/* ---------- Chips du chapitre stand ---------- */

.o2-stand-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}
.o2-stand-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 9px 18px;
    font-size: 0.84rem;
    color: var(--text-secondary);
}
.o2-stand-chip strong {
    color: var(--accent-light);
}

/* ---------- Replis sans 3D ---------- */

.o2-fallback {
    width: min(680px, calc(100vw - 40px));
    margin: 26px auto 0;
}
.o2-fallback img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}

/* Mode sans WebGL / reduced-motion : pas de scène, chapitres compacts */
.lms-no3d .gl-stage { display: none; }
.lms-no3d .o2-ch,
.lms-no3d .o2-ch.o2-hero,
.lms-no3d .o2-ch.o2-ch-simu {
    height: auto;
    min-height: 0;
}
.lms-no3d .o2-ch-inner {
    position: static;
    height: auto;
    padding: 110px 24px 50px;
    overflow: visible;
}
.lms-no3d .o2-hero .o2-ch-inner { padding-top: 150px; }
.lms-no3d .o2-fallback { display: block !important; }
.lms-no3d .o2-fallback[hidden] { display: block !important; }
.lms-no3d .o2-hud,
.lms-no3d .o2-hero-content,
.lms-no3d [data-hud-item] {
    opacity: 1;
    transform: none;
}
.lms-no3d .o2-hud-left,
.lms-no3d .o2-hud-right {
    align-self: center;
    margin-left: 0;
    margin-right: 0;
}
.lms-no3d .o2-hud-bottom { margin: 0 auto; }
.lms-no3d .simu-panel { margin: 26px auto 0; }
.lms-no3d .o2-scroll-hint { display: none; }
.lms-no3d .simu-stage3d-hint { display: none; }

/* ---------- Marquee ---------- */

.o2-marquee {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
    padding: 16px 0;
}
.o2-marquee-track {
    display: flex;
    align-items: center;
    gap: 28px;
    white-space: nowrap;
    width: max-content;
    animation: o2Marquee 30s linear infinite;
}
.o2-marquee-track span {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    color: var(--text-secondary);
}
.o2-marquee-track i {
    color: var(--accent);
    font-size: 0.66rem;
    font-style: normal;
}
@keyframes o2Marquee {
    to { transform: translateX(-50%); }
}

/* ---------- Zone solide (sections infos) ---------- */

.o2-solid {
    position: relative;
    z-index: 2;
    background:
        radial-gradient(ellipse 90% 420px at 50% 0%, rgba(232, 160, 74, 0.05), transparent),
        var(--bg-primary);
}

.o2-section {
    padding: 96px 0;
}
.o2-section:nth-child(even) {
    background: rgba(255, 255, 255, 0.012);
}

.o2-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

/* ---------- Chiffres clés ---------- */

.o2-counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.o2-counter {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 20px);
    padding: 34px 18px 28px;
    position: relative;
    overflow: hidden;
}
.o2-counter::after {
    content: "";
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}
.o2-counter-val {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    font-weight: 700;
    color: var(--accent-light);
    line-height: 1.1;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}
.o2-counter-val i {
    font-style: normal;
}
.o2-counter-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* ---------- Atouts ---------- */

.o2-atout-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.o2-atout-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 20px);
    padding: 32px 28px;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.o2-atout-card:hover {
    transform: translateY(-6px);
    border-color: rgba(232, 160, 74, 0.35);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}
.o2-atout-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: rgba(232, 160, 74, 0.09);
    border: 1px solid rgba(232, 160, 74, 0.22);
    margin-bottom: 18px;
}
.o2-atout-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    margin-bottom: 10px;
}
.o2-atout-card p {
    color: var(--text-secondary);
    font-size: 0.93rem;
}

/* ---------- Duo machines ---------- */

.o2-duo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.o2-duo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 20px);
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease;
}
.o2-duo-card:hover {
    transform: translateY(-5px);
    border-color: rgba(232, 160, 74, 0.3);
}
.o2-duo-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: radial-gradient(ellipse at 50% 60%, #181a22 0%, #101116 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.o2-duo-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
}
.o2-duo-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 0.7rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(10, 10, 15, 0.7);
    border: 1px solid rgba(232, 160, 74, 0.3);
    padding: 6px 12px;
    border-radius: 100px;
}
.o2-duo-body {
    padding: 24px 26px 28px;
}
.o2-duo-body h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    margin-bottom: 4px;
}
.o2-duo-role {
    color: var(--accent-light);
    font-size: 0.86rem;
    margin-bottom: 14px;
}
.o2-duo-body ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.o2-duo-body li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 7px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.o2-duo-body li::before {
    content: "\25C6";
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 0.55rem;
    color: var(--accent);
}

/* ---------- Fiche pratique ---------- */

.fiche-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 20px);
    padding: 38px 40px 32px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}
.fiche-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 18px;
    margin-bottom: 26px;
}
.fiche-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--accent-light);
}
.fiche-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.fiche-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px 30px;
}
.fiche-item h3 {
    font-size: 0.76rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}
.fiche-item ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.fiche-item li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 7px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.fiche-item li::before {
    content: "\25C6";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.5rem;
    color: var(--accent);
}
.fiche-item a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(232, 160, 74, 0.4);
}
.fiche-item a:hover {
    color: var(--accent-light);
}
.fiche-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* ---------- Documents ---------- */

.o2-docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.o2-doc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 20px);
    padding: 30px 26px;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.o2-doc-card:hover {
    transform: translateY(-6px);
    border-color: rgba(232, 160, 74, 0.35);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}
.o2-doc-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: rgba(232, 160, 74, 0.08);
    border: 1px solid rgba(232, 160, 74, 0.2);
    margin-bottom: 16px;
}
.o2-doc-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.18rem;
    margin-bottom: 8px;
}
.o2-doc-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 14px;
}
.o2-doc-state {
    display: inline-block;
    font-size: 0.78rem;
    color: #7ed99a;
    background: rgba(126, 217, 154, 0.08);
    border: 1px solid rgba(126, 217, 154, 0.25);
    padding: 5px 12px;
    border-radius: 100px;
}
.o2-docs-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    font-size: 0.84rem;
    color: var(--text-muted);
    text-align: center;
}
.o2-docs-note svg { flex-shrink: 0; color: var(--accent); }

/* ---------- Déroulé ---------- */

.o2-deroule-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: o2step;
}
.o2-deroule-step {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 20px);
    padding: 30px 26px 26px;
}
.o2-deroule-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(232, 160, 74, 0.1);
    border: 1px solid rgba(232, 160, 74, 0.35);
    margin-bottom: 16px;
}
.o2-deroule-num i {
    font-style: normal;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-light);
}
.o2-deroule-step h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.18rem;
    margin-bottom: 8px;
}
.o2-deroule-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 14px;
}
.o2-deroule-tag {
    display: inline-block;
    font-size: 0.74rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(232, 160, 74, 0.07);
    border: 1px solid rgba(232, 160, 74, 0.2);
    padding: 5px 12px;
    border-radius: 100px;
}

/* ---------- Formats & tarifs ---------- */

.o2-format-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.o2-format-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 20px);
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease;
}
.o2-format-card:hover {
    transform: translateY(-6px);
    border-color: rgba(232, 160, 74, 0.32);
}
.o2-format-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.o2-format-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.o2-format-card:hover .o2-format-media img {
    transform: scale(1.05);
}
.o2-format-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bg-primary);
    background: var(--gradient-accent);
    padding: 7px 16px;
    border-radius: 100px;
    box-shadow: 0 8px 22px rgba(232, 160, 74, 0.35);
}
.o2-format-body {
    padding: 22px 24px 26px;
}
.o2-format-body h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    margin-bottom: 2px;
}
.o2-format-dims {
    color: var(--accent-light);
    font-size: 0.84rem;
    margin-bottom: 10px;
}
.o2-format-body p:last-child {
    color: var(--text-secondary);
    font-size: 0.89rem;
}

/* ---------- Galerie ---------- */

.o2-gal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
.o2-gal-item {
    margin: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 20px);
    overflow: hidden;
}
.o2-gal-item video,
.o2-gal-item img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #0c0d12;
}
.o2-gal-item figcaption {
    padding: 14px 18px;
    font-size: 0.86rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
}
.o2-gal-more {
    text-align: center;
    margin-top: 26px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.o2-gal-more a {
    color: var(--accent-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(232, 160, 74, 0.4);
}

/* ---------- FAQ ---------- */

.o2-faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.o2-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.o2-faq-item[open] {
    border-color: rgba(232, 160, 74, 0.3);
}
.o2-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.96rem;
    list-style: none;
}
.o2-faq-item summary::-webkit-details-marker { display: none; }
.o2-faq-chevron {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}
.o2-faq-item[open] .o2-faq-chevron {
    transform: rotate(225deg);
}
.o2-faq-answer {
    padding: 0 22px 20px;
    color: var(--text-secondary);
    font-size: 0.92rem;
}
.o2-faq-answer a {
    color: var(--accent-light);
}

/* ---------- Invitation ---------- */

.o2-invite-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 44px;
    background:
        radial-gradient(ellipse 420px 300px at 12% 0%, rgba(232, 160, 74, 0.08), transparent),
        var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 20px);
    padding: 46px 48px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
}
.o2-invite-intro .section-title {
    margin-bottom: 14px;
}
.o2-invite-direct {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.o2-invite-direct li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
}
.o2-invite-direct a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.02rem;
}
.o2-invite-direct a:hover {
    color: var(--accent-light);
}
.o2-invite-note {
    margin-top: 22px;
    font-size: 0.84rem;
    color: var(--text-muted);
}
.o2-invite-note a {
    color: var(--accent-light);
}

/* ---------- CTA sticky ---------- */

.o2-sticky-cta {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translate(-50%, 90px);
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.33, 1, 0.45, 1), opacity 0.5s ease;
    pointer-events: none;
}
.o2-sticky-cta.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}
.o2-sticky-cta .btn {
    box-shadow: 0 14px 40px rgba(232, 160, 74, 0.35);
}
.o2-sticky-call {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    color: var(--accent);
    transition: var(--transition);
}
.o2-sticky-call:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ---------- Nav mobile (panneau plein écran) ---------- */

@media (max-width: 900px) {
    .nav-links {
        display: flex;
        position: fixed;
        inset: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: rgba(8, 8, 12, 0.97);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
        z-index: 999;
    }
    .nav-links.open {
        opacity: 1;
        visibility: visible;
    }
    .nav-links a {
        font-size: 1.15rem;
        padding: 12px 22px;
    }
    .nav-toggle { z-index: 1001; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .o2-counter-grid { grid-template-columns: repeat(2, 1fr); }
    .fiche-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .o2-ch { height: 175vh; }
    .o2-ch.o2-hero { height: 190vh; }
    .o2-ch.o2-ch-simu { height: 215vh; }
    .o2-ch-inner { padding: 86px 18px 36px; }

    /* Texte du héro plus lisible par-dessus la scène 3D */
    .o2-hero-title,
    .o2-hero-sub,
    .o2-hud-title,
    .o2-kicker {
        text-shadow: 0 2px 18px rgba(5, 5, 9, 0.85), 0 0 42px rgba(5, 5, 9, 0.6);
    }

    .o2-hud {
        max-width: min(440px, calc(100vw - 36px));
        padding: 24px 22px;
    }
    .o2-hud-left,
    .o2-hud-right {
        align-self: center;
        margin-left: 0;
        margin-right: 0;
        margin-top: auto;
        margin-bottom: clamp(46px, 8vh, 90px);
    }
    .o2-specs { gap: 9px; }
    .o2-specs li { padding: 10px 12px; }
    .o2-spec-val { font-size: 1.05rem; }

    /* Chapitre stand : carte compacte, la 3D respire au-dessus */
    .o2-hud-bottom {
        margin-bottom: 22px;
        padding: 20px 16px;
    }
    .o2-hud-bottom .o2-hud-title { font-size: 1.35rem; }
    .o2-stand-chips { gap: 7px; margin-top: 12px; }
    .o2-stand-chip { padding: 7px 13px; font-size: 0.78rem; }

    .o2-atout-grid,
    .o2-docs-grid,
    .o2-deroule-grid,
    .o2-format-grid { grid-template-columns: 1fr; }
    .o2-duo-grid { grid-template-columns: 1fr; }
    .o2-gal-grid { grid-template-columns: 1fr; }
    .o2-invite-card {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        gap: 28px;
    }
    .o2-section { padding: 72px 0; }
    .fiche-card { padding: 28px 22px 24px; }
    .fiche-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 480px) {
    .o2-counter-grid { grid-template-columns: 1fr; }
    .o2-hero-actions .btn { width: 100%; justify-content: center; }
    .simu-row { flex-direction: column; }
    .simu-row .btn { justify-content: center; }
    .o2-sticky-cta { width: calc(100vw - 28px); }
    .o2-sticky-cta .btn { flex: 1; justify-content: center; }
}

/* ---------- Accessibilité & préférences ---------- */

@media (prefers-reduced-motion: reduce) {
    .o2-marquee-track { animation: none; }
    .o2-scroll-line { animation: none; }
    .o2-loader-logo::after { animation: none; }
    .o2-hud,
    .o2-hero-content,
    [data-hud-item],
    .o2-sticky-cta {
        transition: none;
    }
}
