/* ==========================================================================
   Miss & Mister Excellence Côte d'Ivoire — Édition 2027
   Feuille de style principale. Thème exclusivement sombre.

   Sommaire
   1.  Tokens & base
   2.  Utilitaires (container, sections, titres, boutons, cartes, reveal)
   3.  Header royal & menu mobile
   4.  Hero & logo planétaire
   5.  Mission
   6.  Piliers
   7.  Thème 2027
   8.  Valeurs
   9.  Flipbook (livre 3D, plein écran, miniatures, pages)
   10. Fondation
   11. Compte à rebours
   12. Footer
   13. Éléments flottants (audio, flyer, modale)
   14. Impression
   15. Mouvement réduit
   16. Responsive
   ========================================================================== */


/* ==========================================================================
   1. Tokens & base
   ========================================================================== */
:root {
    --bg: #0a0a0a;
    --bg-alt: #111111;
    --bg-elevated: #1a1a1a;
    --bg-deep: #050505;
    --fg: #f5f0e8;
    --fg-muted: #8a8278;
    --gold: #D4AF37;
    --gold-light: #e8d48b;
    --gold-dark: #b8960c;
    --purple: #5B2C6F;
    --purple-light: #7D3C98;
    --purple-deep: #2C003E;

    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

    --gold-line: linear-gradient(90deg, transparent 0%, var(--gold-dark) 20%, var(--gold-light) 50%, var(--gold-dark) 80%, transparent 100%);
    --gold-crown: linear-gradient(90deg, transparent 0%, var(--gold-dark) 15%, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, var(--gold-dark) 85%, transparent 100%);
    --gold-text: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-light) 45%, var(--gold) 70%, var(--gold-dark) 100%);

    --ease-luxe: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-page: cubic-bezier(0.645, 0.045, 0.355, 1);

    --header-h: 70px;
    --section-pad: clamp(88px, 12vw, 160px);
    --gutter: clamp(16px, 5vw, 48px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Aucun défilement horizontal, quel que soit l'élément qui déborde
   (html ET body : nécessaire pour iOS Safari). */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    color-scheme: dark;
}

body {
    margin: 0;
    padding-top: var(--header-h);
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Fond jamais plat : dégradés radiaux très discrets */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 40% at 15% 10%, rgba(91, 44, 111, 0.12), transparent 70%),
        radial-gradient(ellipse 50% 35% at 85% 90%, rgba(212, 175, 55, 0.05), transparent 70%);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4, h5, p, ul, ol, blockquote, figure {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

::selection {
    background: rgba(212, 175, 55, 0.35);
    color: #fff;
}

:focus-visible {
    outline: 1px solid var(--gold);
    outline-offset: 4px;
}

[hidden] {
    display: none !important;
}


/* ==========================================================================
   2. Utilitaires
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    position: relative;
    padding-block: var(--section-pad);
    background: var(--bg);
}

.section--alt {
    background: var(--bg-alt);
}

.section__head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto clamp(48px, 7vw, 80px);
}

.section__kicker {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}

.section__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(30px, 4.2vw, 48px);
    line-height: 1.18;
    letter-spacing: 0.01em;
}

.section__intro {
    margin-top: 24px;
    color: var(--fg-muted);
    font-size: 15px;
}

/* Filet or animé */
.divider {
    width: 120px;
    height: 1px;
    margin: 28px auto 0;
    background: var(--gold-line);
}

.divider--shimmer {
    background-size: 200% 1px;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

@keyframes shimmerGold {
    from { background-position: 300% 0; }
    to   { background-position: -300% 0; }
}

/* Boutons */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 40px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.5s var(--ease-luxe), background-color 0.5s var(--ease-luxe), box-shadow 0.5s var(--ease-luxe), transform 0.5s var(--ease-luxe);
}

.btn--outline {
    color: var(--gold-light);
    border: 1px solid var(--gold);
    background: transparent;
}

.btn--outline:hover,
.btn--outline:focus-visible {
    background: var(--gold);
    color: var(--bg);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.25);
    transform: translateY(-2px);
}

/* Citation encadrée */
.quote {
    position: relative;
    padding: 32px 40px;
    background: var(--bg-elevated);
    border-left: 3px solid var(--gold);
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.55;
    color: var(--fg);
}

.quote::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 0% 50%, rgba(212, 175, 55, 0.08), transparent 60%);
}

/* Carte */
.card {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: border-color 0.6s var(--ease-luxe), transform 0.6s var(--ease-luxe), box-shadow 0.6s var(--ease-luxe);
}

.card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 24px 60px -20px rgba(212, 175, 55, 0.25), 0 0 0 1px rgba(212, 175, 55, 0.05);
}

/* --- Sections légèrement plus claires : gris sombre teinté, jamais blanc.
       Chaque section fond depuis / vers le noir sur ~8 % de sa hauteur. --- */
.section.section-lighter {
    position: relative;
    background: linear-gradient(180deg,
        #0a0a0a 0%,      /* fondu depuis le noir */
        #1a1a1f 8%,      /* gris doux teinté violet */
        #1c1a20 92%,     /* maintien */
        #0a0a0a 100%     /* fondu retour vers le noir */
    );
}

/* Variante chaude (teintée or) */
.section.section-lighter-warm {
    background: linear-gradient(180deg, #0a0a0a 0%, #1c1a16 8%, #1e1c18 92%, #0a0a0a 100%);
}

/* Lueur ambiante subtile */
.section.section-lighter::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.03), transparent 70%);
    pointer-events: none;
}

.section.section-lighter-warm::before {
    background: radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.045), transparent 70%);
}

.section-lighter > .container {
    position: relative;
}

/* Cartes et citations : un cran au-dessus du fond */
.section-lighter .card,
.section-lighter .quote,
.section-lighter .value-card {
    background: rgba(30, 28, 34, 0.9);
    border-color: rgba(212, 175, 55, 0.18);
}

.section-lighter .quote {
    border-left-color: var(--gold);
}

/* Apparition au scroll */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s var(--ease-luxe), transform 0.9s var(--ease-luxe);
    will-change: opacity, transform;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* Cascade dans un groupe */
[data-reveal-group] > [data-reveal]:nth-child(1)  { transition-delay: 0s; }
[data-reveal-group] > [data-reveal]:nth-child(2)  { transition-delay: 0.15s; }
[data-reveal-group] > [data-reveal]:nth-child(3)  { transition-delay: 0.3s; }
[data-reveal-group] > [data-reveal]:nth-child(4)  { transition-delay: 0.45s; }
[data-reveal-group] > [data-reveal]:nth-child(5)  { transition-delay: 0.6s; }
[data-reveal-group] > [data-reveal]:nth-child(6)  { transition-delay: 0.75s; }
[data-reveal-group] > [data-reveal]:nth-child(7)  { transition-delay: 0.9s; }
[data-reveal-group] > [data-reveal]:nth-child(8)  { transition-delay: 1.05s; }
[data-reveal-group] > [data-reveal]:nth-child(9)  { transition-delay: 1.2s; }
[data-reveal-group] > [data-reveal]:nth-child(10) { transition-delay: 1.35s; }


/* ==========================================================================
   3. Header royal & menu mobile
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: var(--header-h);
    /* Dégradé noir → violet → noir */
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(91, 44, 111, 0.3), rgba(10, 10, 10, 0.9));
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    transform: translateY(-100%);
    transition: transform 0.9s var(--ease-luxe), background 0.5s ease, box-shadow 0.5s ease;
}

.site-header.is-ready {
    transform: translateY(0);
}

.site-header.scrolled {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.97), rgba(91, 44, 111, 0.15), rgba(10, 10, 10, 0.97));
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 1px 5px rgba(212, 175, 55, 0.1);
}

/* Bordure inférieure — effet couronne */
.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--gold-crown);
    background-size: 300% 2px;
    animation: shimmerGold 6s linear infinite;
    box-shadow: 0 2px 15px rgba(212, 175, 55, 0.15), 0 1px 5px rgba(212, 175, 55, 0.3);
}

/* Bordure supérieure — accent pourpre statique */
.site-header::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(91, 44, 111, 0.4), rgba(125, 60, 152, 0.6), rgba(91, 44, 111, 0.4), transparent);
}

.site-header__inner {
    height: 100%;
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: var(--gutter);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.site-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    justify-self: start;
}

.site-header__logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.4);
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.25));
    transition: filter 0.4s ease;
}

.site-header__brand:hover .site-header__logo {
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
}

.site-header__wordmark {
    font-family: var(--font-display);
    font-size: 15px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.site-header__wordmark em {
    font-style: italic;
    color: var(--gold);
}

.site-header__wordmark strong {
    font-weight: 700;
    color: var(--gold-light);
}

.site-nav__list {
    display: flex;
    align-items: center;
}

/* Losange séparateur */
.site-nav__list li {
    display: flex;
    align-items: center;
}

.site-nav__list li + li::before {
    content: "◆";
    font-size: 6px;
    color: var(--gold);
    opacity: 0.3;
    margin-inline: clamp(10px, 1.6vw, 22px);
}

.site-nav__link {
    position: relative;
    display: block;
    padding: 10px 2px;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--fg);
    transition: color 0.3s ease;
}

/* Point doré sous le lien actif */
.site-nav__link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
    transform: translateX(-50%) scale(0);
    transition: transform 0.4s var(--ease-luxe);
}

.site-nav__link:hover {
    color: var(--gold);
}

.site-nav__link.is-active {
    color: var(--gold);
}

.site-nav__link.is-active::after {
    transform: translateX(-50%) scale(1);
}

/* Burger */
.burger {
    display: none;
    justify-self: end;
    width: 44px;
    height: 44px;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.burger__line {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--gold);
    transition: transform 0.5s var(--ease-luxe), opacity 0.3s ease;
}

.burger[aria-expanded="true"] .burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Panneau mobile plein écran */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 9998;
    overflow: hidden; /* le panneau translaté hors écran ne doit jamais déborder */
    visibility: hidden;
    transition: visibility 0s linear 0.6s;
}

.mobile-menu.is-open {
    visibility: visible;
    transition-delay: 0s;
}

.mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.6);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.mobile-menu.is-open .mobile-menu__backdrop {
    opacity: 1;
}

.mobile-menu__panel {
    position: absolute;
    inset: 0;
    padding: calc(24px + env(safe-area-inset-top)) 32px calc(32px + env(safe-area-inset-bottom));
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.7s var(--ease-luxe);
    overflow-y: auto;
}

.mobile-menu.is-open .mobile-menu__panel {
    transform: translateX(0);
}

.mobile-menu__close {
    position: absolute;
    top: calc(14px + env(safe-area-inset-top));
    right: 18px;
    width: 44px;
    height: 44px;
    font-size: 32px;
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
}

.mobile-menu__logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 40px;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.4), 0 0 40px rgba(212, 175, 55, 0.15);
}

.mobile-menu__list {
    width: 100%;
    text-align: center;
}

.mobile-menu__list li + li {
    margin-top: 50px;
}

.mobile-menu__link {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--fg);
    transition: color 0.4s ease;
}

/* Ornement or sous chaque lien */
.mobile-menu__link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 20px;
    height: 1px;
    background: var(--gold);
    transform: translateX(-50%);
    opacity: 0.6;
    transition: width 0.4s var(--ease-luxe), opacity 0.4s ease;
}

.mobile-menu__link:hover {
    color: var(--gold);
}

.mobile-menu__link:hover::after {
    width: 48px;
    opacity: 1;
}

.mobile-menu__tagline {
    margin-top: 56px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 13px;
    color: var(--fg-muted);
}

body.menu-open {
    overflow: hidden;
}

/* --- Bannière de lancement (slide-in sous le header) --- */
.launch-banner {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 9997;
    max-width: 100%;
    overflow: hidden;
    transform: translateX(-100%);
    animation: bannerSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
    pointer-events: none;
}

.launch-banner.visible {
    pointer-events: auto;
}

.launch-banner.dismissed {
    animation: bannerSlideOut 0.5s ease-in forwards;
}

.launch-banner.is-hidden {
    display: none;
}

@keyframes bannerSlideIn {
    to { transform: translateX(0); }
}

@keyframes bannerSlideOut {
    to { transform: translateX(100%); opacity: 0; }
}

.launch-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(91, 44, 111, 0.4), rgba(10, 10, 10, 0.95));
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.launch-banner-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.05) 30%, rgba(212, 175, 55, 0.08) 50%, rgba(212, 175, 55, 0.05) 70%, transparent);
    pointer-events: none;
}

.launch-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.launch-banner-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #0a0a0a;
    background: var(--gold);
    padding: 3px 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.launch-banner-text {
    font-size: 13px;
    font-weight: 300;
    color: var(--fg);
    letter-spacing: 0.5px;
}

.launch-banner-text strong {
    font-weight: 600;
    color: var(--gold);
    font-family: var(--font-display);
    font-style: italic;
}

.launch-banner-location {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gold);
    flex-shrink: 0;
}

.launch-banner-location svg {
    stroke: var(--gold);
}

.launch-banner-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fg-muted);
    font-size: 22px;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s;
}

.launch-banner-close:hover {
    color: var(--gold);
}


/* ==========================================================================
   4. Hero & logo planétaire
   ========================================================================== */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--bg);
    isolation: isolate;
}

/* Couche 1 : carousel (rogne le zoom Ken Burns) */
.hero__carousel {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.5s ease-in-out;
    will-change: opacity, transform;
}

/* Ken Burns : zoom lent de 1 à 1,15. La diapositive sortante (.is-leaving)
   conserve exactement la même animation : son zoom se poursuit pendant le
   fondu, sans jamais revenir visiblement à scale(1). */
.hero__slide.is-active,
.hero__slide.is-leaving {
    animation: kenBurnsZoom 8s ease-out forwards;
}

.hero__slide.is-active {
    opacity: 1;
}

.hero__slide.is-leaving {
    opacity: 0;
}

@keyframes kenBurnsZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.15); }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 10, 10, 0.35) 0%, rgba(10, 10, 10, 0) 30%, rgba(10, 10, 10, 0.85) 100%),
        radial-gradient(ellipse 55% 65% at 50% 52%, rgba(10, 10, 10, 0.5), transparent 70%),
        radial-gradient(ellipse 70% 60% at 50% 50%, rgba(44, 0, 62, 0.25), transparent 70%);
}

/* Couche 2 : ondes */
.hero__waves {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    max-width: 100%;
    pointer-events: none;
    mix-blend-mode: screen;
    overflow: hidden;
}

/* Couche 3 : particules */
.hero__particles {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
}

.hero__particles canvas {
    display: block;
}

/* Couche 4 : contenu */
.hero__content {
    position: relative;
    z-index: 4;
    text-align: center;
    padding: 40px var(--gutter) 110px;
    pointer-events: none;
}

.hero__content a {
    pointer-events: auto;
}

/* --- Système planétaire --- */
.logo-planet-system {
    position: relative;
    width: 320px;
    max-width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    overflow: hidden; /* les orbites en rotation restent dans leur cadre */
    animation: logoIn 1.2s var(--ease-luxe) both;
}

.logo-planet {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 3;
    border: 2px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3), 0 0 60px rgba(212, 175, 55, 0.15), 0 0 100px rgba(91, 44, 111, 0.1);
}

.logo-aura {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.05) 50%, transparent 70%);
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo-aura-pulse {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.15);
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: auraPulse 3s ease-in-out infinite;
}

@keyframes auraPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50%      { transform: translate(-50%, -50%) scale(1.08); opacity: 0.2; }
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.08);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.orbit-1 { width: 260px; height: 260px; animation: orbitSpin 12s linear infinite; }
.orbit-2 { width: 290px; height: 290px; animation: orbitSpin 18s linear infinite reverse; }
.orbit-3 { width: 310px; height: 310px; animation: orbitSpin 25s linear infinite; }

@keyframes orbitSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-element {
    line-height: 1;
}

.orbit-star {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gold);
    font-size: 12px;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

.orbit-diamond {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    color: var(--gold-light);
    font-size: 8px;
    text-shadow: 0 0 6px rgba(212, 175, 55, 0.4);
}

.orbit-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.5);
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
}

.orbit-dot-2 {
    right: auto;
    left: 0;
    transform: translate(-50%, -50%);
}

@keyframes logoIn {
    from { opacity: 0; transform: scale(0.8); filter: blur(12px); }
    to   { opacity: 1; transform: scale(1); filter: blur(0); }
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1;
    animation: riseIn 1s var(--ease-luxe) 0.3s both;
}

.hero__title-top {
    display: block;
    font-size: clamp(22px, 3.4vw, 40px);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--fg);
    margin-bottom: 10px;
}

.hero__amp {
    color: var(--gold);
    font-style: italic;
    font-weight: 400;
}

.hero__title-main {
    display: block;
    font-size: clamp(34px, 10.5vw, 132px);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--gold-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: goldSheen 8s linear infinite;
    padding-bottom: 0.08em;
}

@keyframes goldSheen {
    from { background-position: 0% 50%; }
    to   { background-position: 200% 50%; }
}

@keyframes riseIn {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: none; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.hero__edition {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 26px;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    animation: fadeIn 1s ease 0.5s both;
}

.hero__edition::before,
.hero__edition::after {
    content: "";
    width: clamp(40px, 8vw, 90px);
    height: 1px;
    background: var(--gold-line);
}

.hero__tagline {
    margin: 28px auto 0;
    max-width: 640px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(17px, 2.1vw, 24px);
    line-height: 1.5;
    color: var(--fg);
    animation: fadeIn 1.2s ease 0.6s both;
}

.hero__badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 36px;
    margin-top: 36px;
}

.hero__badge {
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-light);
    animation: riseIn 0.9s var(--ease-luxe) both;
}

.hero__badge::before {
    content: "✦";
    margin-right: 10px;
    color: var(--gold);
    font-size: 9px;
    vertical-align: 2px;
}

.hero__badge:nth-child(1) { animation-delay: 0.8s; }
.hero__badge:nth-child(2) { animation-delay: 1.0s; }
.hero__badge:nth-child(3) { animation-delay: 1.2s; }

.hero__cta {
    margin-top: 44px;
    animation: fadeIn 1s ease 1.4s both;
}

/* Indicateur de scroll */
.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 4;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    animation: fadeIn 1.5s ease 2s both;
}

.hero__scroll-label {
    font-size: 9px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--fg-muted);
}

.hero__chevron {
    animation: bounce 2.2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50%      { transform: translateY(8px); opacity: 1; }
}


/* ==========================================================================
   5. Mission
   ========================================================================== */
.mission__columns {
    columns: 2;
    column-gap: 64px;
    font-size: 16px;
    line-height: 1.9;
}

.mission__columns p {
    break-inside: avoid;
    margin-bottom: 22px;
}

.mission__columns p:first-child::first-letter {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 3.2em;
    line-height: 0.8;
    float: left;
    margin: 8px 10px 0 0;
    color: var(--gold);
}

.mission__quote {
    max-width: 820px;
    margin: 48px auto 0;
}

.mission__contact {
    margin-top: 36px;
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--fg-muted);
}

.mission__contact a {
    color: var(--gold);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    transition: border-color 0.3s ease;
}

.mission__contact a:hover {
    border-color: var(--gold);
}


/* ==========================================================================
   6. Piliers
   ========================================================================== */
.pillars__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.pillar {
    padding: 50px;
    text-align: center;
    overflow: hidden;
}

/* Bande or → pourpre */
.pillar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--purple));
}

.pillar::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 175, 55, 0.07), transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.pillar:hover::after {
    opacity: 1;
}

.pillar__icon {
    display: inline-flex;
    width: 80px;
    height: 80px;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    color: var(--gold);
    transition: transform 0.6s var(--ease-luxe), border-color 0.6s ease, color 0.6s ease;
}

.pillar:hover .pillar__icon {
    transform: scale(1.06) rotate(-3deg);
    border-color: var(--gold);
    color: var(--gold-light);
}

.pillar__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--gold);
    margin-bottom: 18px;
}

.pillar__text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--fg);
}

.pillar__quote {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 12px;
    line-height: 1.6;
    color: var(--gold);
    opacity: 0.7;
}


/* ==========================================================================
   7. Thème 2027
   ========================================================================== */
.theme {
    background: linear-gradient(180deg, var(--purple-deep) 0%, #1a0024 45%, var(--bg) 100%);
    overflow: hidden;
}

.theme__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.theme__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    opacity: 0.14;
    filter: grayscale(40%) contrast(1.1);
}

.theme__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, var(--purple-deep) 0%, rgba(44, 0, 62, 0.55) 40%, rgba(10, 10, 10, 0.9) 100%),
        radial-gradient(ellipse 50% 50% at 50% 40%, rgba(125, 60, 152, 0.35), transparent 70%);
}

/* Jeux de lumière */
.theme__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    z-index: 1;
}

.theme__glow--1 {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -140px;
    background: radial-gradient(circle, rgba(125, 60, 152, 0.55), transparent 70%);
    animation: glowDrift 14s ease-in-out infinite alternate;
}

.theme__glow--2 {
    width: 360px;
    height: 360px;
    bottom: -100px;
    right: -120px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.22), transparent 70%);
    animation: glowDrift 18s ease-in-out infinite alternate-reverse;
}

@keyframes glowDrift {
    from { transform: translate(0, 0); }
    to   { transform: translate(60px, 40px); }
}

.theme__inner {
    position: relative;
    z-index: 2;
}

.theme__statement {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(40px, 7vw, 72px) clamp(24px, 6vw, 72px);
    text-align: center;
}

.theme__quote-mark {
    position: absolute;
    font-family: var(--font-display);
    font-size: 120px;
    line-height: 1;
    color: var(--gold);
    opacity: 0.15;
    pointer-events: none;
    user-select: none;
    will-change: transform;
}

.theme__quote-mark--open {
    top: -10px;
    left: 0;
    transform-origin: left top;
}

.theme__quote-mark--close {
    bottom: -40px;
    right: 0;
    transform-origin: right bottom;
}

.theme__text {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 900;
    font-size: 40px;
    line-height: 1.3;
    color: var(--fg);
}

.theme__desc {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: justify;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(245, 240, 232, 0.85);
}

.theme__desc p + p {
    margin-top: 18px;
}

@media (min-width: 1200px) {
    .theme__desc {
        max-width: 1000px;
    }
}


/* ==========================================================================
   8. Valeurs
   ========================================================================== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.value-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 30px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(20, 20, 20, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.value-card:hover {
    border-color: rgba(212, 175, 55, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(212, 175, 55, 0.05);
}

.value-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--gold), var(--purple));
    opacity: 0.4;
    transition: opacity 0.3s;
}

.value-card:hover .value-accent {
    opacity: 1;
}

.value-number {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 900;
    color: var(--gold);
    opacity: 0.25;
    line-height: 1;
    flex-shrink: 0;
    min-width: 40px;
    transition: opacity 0.4s ease;
}

.value-card:hover .value-number {
    opacity: 0.6;
}

.value-name {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--fg);
    margin: 0 0 6px;
}

.value-description {
    font-size: 13px;
    font-weight: 300;
    color: var(--fg-muted);
    line-height: 1.5;
}

.section-lighter .value-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
}


/* ==========================================================================
   9. Flipbook
   ========================================================================== */
.flipbook-section {
    background:
        radial-gradient(ellipse 60% 50% at 50% 60%, rgba(91, 44, 111, 0.14), transparent 70%),
        var(--bg-alt);
    overflow: hidden; /* livre fermé décalé, feuilles en rotation, pages glissées : rien ne sort */
}

/* Onglets */
.tabs {
    display: flex;
    justify-content: center;
    gap: clamp(16px, 4vw, 56px);
    margin-bottom: clamp(32px, 5vw, 48px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.tab {
    position: relative;
    padding: 14px 4px 18px;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--fg-muted);
    transition: color 0.5s ease;
}

.tab__count {
    display: block;
    margin-top: 4px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: none;
    opacity: 0.7;
}

.tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--gold-line);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.6s var(--ease-luxe);
}

.tab:hover {
    color: var(--fg);
}

.tab.is-active {
    color: var(--gold);
}

.tab.is-active::after {
    transform: scaleX(1);
}

/* Bloc flipbook */
.flipbook {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.flipbook__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 4px;
}

.flipbook__indicator {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 15px;
    color: var(--gold);
    white-space: nowrap;
}

.flipbook__tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.flipbook__tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    color: var(--gold);
    font-size: 22px;
    line-height: 1;
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.flipbook__tool:hover,
.flipbook__tool[aria-pressed="true"] {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
}

.flipbook__read {
    display: none;
    width: auto;
    padding: 0 18px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.flipbook__close {
    display: none;
}

/* Scène : flèche · livre · flèche · miniatures */
.flipbook__stage {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px auto;
    align-items: center;
    gap: clamp(8px, 2vw, 24px);
    min-height: 0;
}

.flipbook__arrow {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 50%;
    color: var(--gold);
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, opacity 0.4s ease, transform 0.5s var(--ease-luxe);
}

.flipbook__arrow:hover:not(:disabled) {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
    transform: scale(1.06);
}

.flipbook__arrow:disabled {
    opacity: 0.2;
    cursor: default;
}

.flipbook-container {
    perspective: 2400px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-block: 24px;
    min-width: 0;
    min-height: 0;

    /* Protection : aucune sélection, aucun glisser-déposer */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

.flipbook-container * {
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-user-drag: none;
    pointer-events: auto;
}

.flipbook-container img {
    pointer-events: none;
    -webkit-user-drag: none;
}

/* Le livre (deux pages au format A : 420 × 594) */
.book {
    position: relative;
    width: min(840px, 100%);
    aspect-ratio: 840 / 594;
    container-type: inline-size;
    transform-style: preserve-3d;
    transition: transform 0.8s var(--ease-page);
    filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6));
}

/* Livre fermé : on centre la couverture (ou la 4e de couverture) */
.book.at-start { transform: translateX(-25%); }
.book.at-end   { transform: translateX(25%); }

/* Reliure */
.book::before {
    content: "";
    position: absolute;
    top: 1%;
    bottom: 1%;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5) 20%, rgba(0, 0, 0, 0.5) 80%, transparent);
    z-index: 0;
    pointer-events: none;
}

.leaf {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform 0.8s var(--ease-page);
}

.leaf.turned {
    transform: rotateY(-180deg);
}

.page {
    position: absolute;
    inset: 0;
    overflow: hidden;
    padding: 6% 7% 8%;
    background: #f5f0e8;
    color: #2c2416;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    font-size: clamp(8px, 1.3cqw, 13px);
    line-height: 1.55;
}

/* Filets décoratifs or en haut et en bas (pages intérieures) */
.page:not(.page--cover) {
    background:
        linear-gradient(90deg, transparent, var(--gold-dark) 30%, var(--gold) 50%, var(--gold-dark) 70%, transparent) left 8% top 4.2% / 84% 1px no-repeat,
        linear-gradient(90deg, transparent, var(--gold-dark) 30%, var(--gold) 50%, var(--gold-dark) 70%, transparent) left 8% bottom 5.2% / 84% 1px no-repeat,
        #f5f0e8;
}

.page-back {
    transform: rotateY(180deg);
}

/* Ombre côté reliure */
.page-front::before,
.page-back::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.page-front::before {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.04) 8%, transparent 20%);
}

.page-back::before {
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.04) 8%, transparent 20%);
}

/* Filigrane */
.page::after {
    content: "APERÇU — concoursexcellence.ci";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    transform: translate(-50%, -50%) rotate(-35deg);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 2.6em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgba(0, 0, 0, 0.04);
    pointer-events: none;
}

.page--cover::after {
    color: rgba(255, 255, 255, 0.05);
}

/* Intérieur de page : défilement vertical discret si le contenu déborde */
.page__inner {
    position: relative;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 3%;
    scrollbar-width: thin;
    scrollbar-color: rgba(91, 44, 111, 0.35) transparent;
}

.page__inner::-webkit-scrollbar {
    width: 4px;
}

.page__inner::-webkit-scrollbar-thumb {
    background: rgba(91, 44, 111, 0.35);
    border-radius: 2px;
}

.page__num {
    position: absolute;
    bottom: 2.4%;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.95em;
    color: var(--purple);
    letter-spacing: 0.1em;
    pointer-events: none;
}

/* --- Typographie intérieure --- */
.page p {
    margin-bottom: 0.85em;
    font-weight: 300;
}

.page strong {
    font-weight: 600;
    color: var(--purple-deep);
}

.page em {
    font-style: italic;
}

.p-chapter {
    font-weight: 600;
    font-size: 0.78em;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 0.5em;
    padding-top: 1em;
}

.p-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6em;
    line-height: 1.2;
    color: var(--purple-deep);
    margin-bottom: 0.7em;
}

.p-sub {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15em;
    line-height: 1.3;
    color: var(--purple);
    margin: 1em 0 0.5em;
}

.p-sub span {
    color: var(--gold-dark);
    margin-right: 0.3em;
}

.p-callout {
    display: inline-block;
    margin: 0.9em 0 0.45em;
    padding-bottom: 0.2em;
    border-bottom: 1px solid var(--gold);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8em;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--purple-deep);
}

.p-lead {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.08em;
    line-height: 1.5;
    color: #3d2f1f;
}

.p-list {
    margin: 0 0 0.85em 0.2em;
}

.p-list li {
    position: relative;
    padding-left: 1.3em;
    margin-bottom: 0.3em;
}

.p-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: 0.05em;
    font-size: 0.75em;
    color: var(--gold-dark);
}

.p-list--num {
    counter-reset: step;
}

.p-list--num li::before {
    counter-increment: step;
    content: counter(step) ".";
    font-family: var(--font-display);
    font-size: 0.95em;
    font-weight: 700;
    color: var(--purple);
}

.p-list--check li::before {
    content: "";
    top: 0.25em;
    width: 0.8em;
    height: 0.8em;
    border: 1px solid var(--purple);
    border-radius: 2px;
}

.p-list--quotes li {
    font-family: var(--font-display);
    font-style: italic;
    color: #3d2f1f;
    margin-bottom: 0.5em;
}

.p-quote {
    margin: 0.8em 0;
    padding: 0.7em 1em;
    border-left: 2px solid var(--gold);
    background: rgba(91, 44, 111, 0.05);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.02em;
    line-height: 1.5;
    color: #3d2f1f;
}

.p-quote cite {
    display: block;
    margin-top: 0.4em;
    font-style: normal;
    font-family: var(--font-body);
    font-size: 0.8em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-dark);
}

.p-quote--motto {
    text-align: center;
    border-left: 0;
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    background: none;
}

.p-small {
    font-size: 0.85em;
    color: #6b5d4a;
}

.p-center {
    text-align: center;
}

.p-signature {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
    color: var(--purple-deep);
    text-align: right;
}

.p-score {
    text-align: right;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95em;
    color: var(--gold-dark);
}

.p-portrait strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05em;
}

.p-values {
    display: block;
    margin-top: 0.2em;
    font-size: 0.9em;
    color: var(--purple);
}

.p-article strong {
    font-family: var(--font-display);
}

.p-dots {
    display: inline-block;
    min-width: 6em;
    width: 40%;
    border-bottom: 1px dotted #8a7a60;
    vertical-align: baseline;
}

/* Champs de formulaire */
.p-field {
    display: flex;
    align-items: flex-end;
    gap: 0.5em;
    margin-bottom: 0.7em;
}

.p-field__label {
    flex: none;
    font-weight: 500;
    color: var(--purple-deep);
}

.p-field__label::after {
    content: " :";
}

.p-field__line {
    flex: 1;
    min-height: 1.2em;
    border-bottom: 1px dotted #8a7a60;
}

.p-field:has(.p-field__label:only-child) .p-field__label::after {
    content: "";
}

.p-box {
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    margin-right: 0.3em;
    border: 1px solid var(--purple);
    vertical-align: -0.1em;
}

.p-sign {
    display: flex;
    justify-content: space-between;
    gap: 1em;
    margin-top: 2em;
    padding-top: 2.5em;
    font-size: 0.85em;
    font-weight: 500;
    color: var(--purple-deep);
}

.p-sign span {
    flex: 1;
    border-top: 1px solid var(--gold-dark);
    padding-top: 0.4em;
    text-align: center;
}

/* Tableaux */
.p-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0.9em;
    font-size: 0.92em;
}

.p-table th,
.p-table td {
    padding: 0.35em 0.45em;
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
    vertical-align: top;
    text-align: left;
}

.p-table th {
    font-weight: 600;
    font-size: 0.8em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--purple-deep);
    border-bottom: 1px solid var(--gold);
}

.p-table td:first-child {
    font-weight: 600;
    color: var(--purple-deep);
    white-space: nowrap;
}

.p-table--score td:last-child,
.p-table--score th:last-child {
    text-align: right;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gold-dark);
    width: 4em;
}

.p-table--score td:first-child {
    width: 2em;
    font-family: var(--font-display);
    color: var(--gold-dark);
}

.p-table__total td {
    border-top: 1px solid var(--gold);
    border-bottom: 0;
    font-weight: 600;
    color: var(--purple-deep);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9em;
}

.p-table--grid th,
.p-table--grid td {
    border: 1px solid rgba(91, 44, 111, 0.3);
    height: 1.9em;
    font-size: 0.85em;
}

.p-table--grid td:first-child {
    white-space: normal;
}

/* Sommaire */
.p-toc li {
    display: flex;
    align-items: baseline;
    gap: 0.5em;
    margin-bottom: 0.45em;
    font-size: 0.95em;
}

.p-toc li span {
    flex: none;
    max-width: 85%;
}

.p-toc li::after {
    content: "";
    flex: 1;
    order: 1;
    border-bottom: 1px dotted #8a7a60;
    min-width: 1em;
}

.p-toc li em {
    order: 2;
    flex: none;
    font-style: normal;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--purple);
}

/* Ouverture de chapitre */
.p-opener {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.6em;
}

.p-opener__kicker {
    font-weight: 600;
    font-size: 0.85em;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold-dark);
}

.p-opener__num {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 6em;
    line-height: 1;
    background: var(--gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.p-opener__title {
    max-width: 80%;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.9em;
    line-height: 1.2;
    color: var(--purple-deep);
    padding-top: 0.6em;
    border-top: 1px solid var(--gold);
}

/* Page illustrée */
.page--art {
    background:
        radial-gradient(ellipse 60% 50% at 50% 40%, rgba(212, 175, 55, 0.12), transparent 70%),
        #efe7d8 !important;
}

.p-art {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.2em;
    color: var(--purple-deep);
}

.p-art__orn {
    font-size: 2.2em;
    color: var(--gold-dark);
    opacity: 0.7;
}

.p-art__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5em;
}

.p-art__note {
    font-size: 0.8em;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8a7a60;
}

/* Pages de garde : vraies couvertures de l'édition imprimée */
.flipbook-cover {
    padding: 0;
    background: #0d0012;
}

.page--cover.flipbook-cover .page__inner {
    padding: 0;
    border: 0;
    overflow: hidden;
    display: block;
}

.page--cover.flipbook-cover .page__inner::before {
    display: none;
}

.flipbook-cover-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 2px;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Badge « Édition 2027 » recouvrant la mention de l'édition imprimée */
.p-cover-badge {
    position: absolute;
    right: 0.6%;
    bottom: 2.9%;
    width: 18.2%;
    height: 8.4%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.4em;
    background: linear-gradient(160deg, #1b2a5a, #0f1a3d);
    border: 1px solid rgba(212, 175, 55, 0.7);
    box-shadow: 0 0.3em 1em rgba(0, 0, 0, 0.35);
    color: #fff;
    font-weight: 700;
    font-size: 0.78em;
    line-height: 1.1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    z-index: 2;
}

.p-cover-badge strong {
    font-size: 1.55em;
    color: var(--gold-light);
}

/* Couvertures */
.page--cover {
    background:
        radial-gradient(ellipse 70% 50% at 50% 30%, rgba(125, 60, 152, 0.5), transparent 70%),
        linear-gradient(160deg, var(--purple-deep) 0%, #1a0024 60%, #0d0012 100%);
    color: var(--fg);
}

.page--cover .page__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.45);
    padding: 8% 7%;
    overflow: hidden;
}

.page--cover .page__inner::before {
    content: "";
    position: absolute;
    inset: 2.5%;
    border: 1px solid rgba(212, 175, 55, 0.2);
    pointer-events: none;
}

.p-cover-logo {
    width: 38%;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.4em;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.6), 0 0 30px rgba(212, 175, 55, 0.25);
}

.p-cover-logo--small {
    width: 26%;
}

.p-cover-collection {
    font-weight: 600;
    font-size: 0.75em;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1em;
}

.p-cover-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.9em;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.9em;
}

.p-cover-edition {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05em;
    color: var(--fg);
    margin-bottom: 1.4em;
}

.p-cover-motto {
    font-weight: 500;
    font-size: 0.72em;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1em;
}

.p-cover-copy {
    margin-top: auto;
    font-size: 0.7em;
    letter-spacing: 0.12em;
    color: var(--fg-muted);
}

/* Panneau miniatures */
.flipbook__thumbs {
    width: 230px;
    max-height: 640px;
    align-self: stretch;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    background: rgba(10, 10, 10, 0.6);
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
}

.flipbook__thumbs::-webkit-scrollbar {
    width: 4px;
}

.flipbook__thumbs::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
}

.thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.thumb {
    width: 100%;
    aspect-ratio: 420 / 594;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
    background: #f5f0e8;
    color: #2c2416;
    border: 1px solid transparent;
    text-align: left;
    transition: border-color 0.3s ease, transform 0.3s var(--ease-luxe);
}

.thumb:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.thumb.is-current {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold), 0 0 14px rgba(212, 175, 55, 0.35);
}

.thumb--cover,
.thumb--back {
    background: linear-gradient(160deg, var(--purple-deep), #1a0024);
    color: var(--gold-light);
}

.thumb--chapter {
    background: linear-gradient(180deg, #f5f0e8, #e9dfcc);
}

.thumb--art {
    background: #efe7d8;
}

.thumb__num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--gold-dark);
}

.thumb--cover .thumb__num,
.thumb--back .thumb__num {
    color: var(--gold);
}

.thumb__title {
    font-size: 8.5px;
    line-height: 1.3;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination basse (slider mobile uniquement) */
.flipbook__pagination {
    display: none;
}

/* Progression de lecture */
.flipbook__progress {
    height: 2px;
    background: rgba(212, 175, 55, 0.12);
    overflow: hidden;
}

.flipbook__progress-bar {
    display: block;
    height: 100%;
    width: 0;
    background: var(--gold-crown);
    background-size: 300% 2px;
    animation: shimmerGold 6s linear infinite;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    transition: width 0.6s var(--ease-luxe);
}

.flipbook__hint {
    margin-top: 28px;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--fg-muted);
}

/* --- Plein écran --- */
.flipbook.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #0a0a0a;
    padding: 24px 40px 32px;
    gap: 12px;
    opacity: 1 !important;
    transform: none !important;
}

.flipbook.is-fullscreen::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(91, 44, 111, 0.18), transparent 70%);
}

.flipbook.is-fullscreen .flipbook__stage {
    flex: 1;
    min-height: 0;
}

.flipbook.is-fullscreen .flipbook-container {
    height: 100%;
    padding-block: 8px;
}

.flipbook.is-fullscreen .book {
    width: min(100%, calc((100vh - 170px) * 1.4141));
}

.flipbook.is-fullscreen .flipbook__close {
    display: inline-flex;
}

.flipbook.is-fullscreen #flip-full {
    display: none;
}

.flipbook.is-fullscreen .flipbook__thumbs {
    max-height: 100%;
}

body.flip-fullscreen {
    overflow: hidden;
}


/* ==========================================================================
   10. Fondation
   ========================================================================== */
.fondation {
    background:
        radial-gradient(ellipse 55% 45% at 50% 50%, rgba(91, 44, 111, 0.16), transparent 70%),
        var(--bg);
}

.fondation__intro {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    font-size: 16px;
    line-height: 1.9;
}

.fondation__intro em {
    display: block;
    margin-top: 14px;
    font-family: var(--font-display);
    font-size: 1.25em;
    color: var(--gold-light);
}

.section-lighter.fondation {
    background: linear-gradient(180deg, #0a0a0a 0%, #1c1a16 8%, #1e1c18 92%, #0a0a0a 100%);
}

.section-lighter.fondation::before {
    background:
        radial-gradient(ellipse 55% 45% at 50% 50%, rgba(91, 44, 111, 0.14), transparent 70%),
        radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.04), transparent 70%);
}

.fondation__people {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    max-width: 860px;
    margin: 56px auto 0;
}

.fondation__person {
    padding: 36px 32px;
    text-align: center;
}

.fondation__role {
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.fondation__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
}

.fondation__quote {
    max-width: 900px;
    margin: 56px auto 0;
    font-size: clamp(17px, 2vw, 21px);
}


/* ==========================================================================
   11. Compte à rebours
   ========================================================================== */
.launch {
    background: linear-gradient(180deg, var(--purple-deep) 0%, #15001e 50%, var(--bg) 100%);
    text-align: center;
    overflow: hidden;
}

.launch::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(212, 175, 55, 0.08), transparent 70%);
}

.launch__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.launch__badge span {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 30px;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.2); }
    50%      { box-shadow: 0 0 20px 5px rgba(212, 175, 55, 0.1); }
}

.launch__title {
    margin-top: 28px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.15;
    background: var(--gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.launch__subtitle {
    margin-top: 12px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(16px, 2vw, 20px);
    color: var(--fg-muted);
}

.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-number {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.countdown-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--fg-muted);
    margin-top: 8px;
}

.countdown-sep {
    font-family: var(--font-display);
    font-size: 40px;
    color: var(--gold);
    opacity: 0.4;
    padding-bottom: 20px;
}

.countdown-open {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 24px;
    color: var(--gold);
}

.launch__text {
    max-width: 560px;
    font-size: 14.5px;
    color: rgba(245, 240, 232, 0.75);
}

.launch .btn {
    margin-top: 36px;
}


/* ==========================================================================
   12. Footer
   ========================================================================== */
.site-footer {
    background: linear-gradient(180deg, #080808, #050505);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(91, 44, 111, 0.06), transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(212, 175, 55, 0.04), transparent 60%);
    pointer-events: none;
}

.footer-border-top {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-dark) 20%, var(--gold) 50%, var(--gold-dark) 80%, transparent);
    background-size: 300% 2px;
    animation: shimmerGold 6s linear infinite;
    box-shadow: 0 -2px 15px rgba(212, 175, 55, 0.15);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 60px 5% 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.footer-description {
    font-size: 13px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--fg-muted);
    margin-bottom: 12px;
}

.footer-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 13px;
    color: var(--gold);
    opacity: 0.8;
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
}

.footer-col ul li {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 300;
    color: var(--fg-muted);
}

.footer-col ul li a {
    color: var(--fg-muted);
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--gold);
}

.footer-icon {
    color: var(--gold);
    margin-right: 6px;
}

.footer-pillar {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--fg-muted);
    margin-bottom: 8px;
}

.footer-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.15), transparent);
    margin: 0 5%;
}

.footer-bottom {
    text-align: center;
    padding: 24px 5% calc(24px + env(safe-area-inset-bottom));
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    font-size: 12px;
    font-weight: 300;
    color: var(--fg-muted);
    margin: 4px 0;
}

.footer-fondation strong {
    color: var(--gold);
    font-weight: 500;
}

.footer-credit {
    font-size: 9px !important;
    letter-spacing: 0.1em;
    color: rgba(138, 130, 120, 0.55) !important;
    margin-top: 10px !important;
}


/* ==========================================================================
   13. Éléments flottants
   ========================================================================== */
/* Musique */
.audio-toggle {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold);
    font-size: 18px;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.audio-toggle:hover {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* Déplaçable : retour visuel pendant le glissement */
.audio-toggle {
    touch-action: none;
}

.audio-toggle.is-dragging {
    opacity: 0.8;
    transform: scale(1.1);
    transition: none;
    cursor: grabbing;
}

.audio-toggle.is-snapping {
    transition: left 0.3s ease, top 0.3s ease, right 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.audio-toggle[data-playing="false"] .audio-on {
    text-decoration: line-through;
    opacity: 0.4;
}

.audio-bars {
    position: absolute;
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.audio-bars i {
    width: 2px;
    height: 100%;
    background: var(--gold);
    transform-origin: bottom;
    animation: bars 0.9s ease-in-out infinite;
}

.audio-bars i:nth-child(2) { animation-delay: 0.2s; }
.audio-bars i:nth-child(3) { animation-delay: 0.4s; }

.audio-toggle[data-playing="true"] .audio-bars {
    opacity: 1;
}

@keyframes bars {
    0%, 100% { transform: scaleY(0.3); }
    50%      { transform: scaleY(1); }
}

.audio-hint {
    position: fixed;
    bottom: 96px;
    right: 72px;
    z-index: 9998;
    padding: 8px 14px;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 6px;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--fg);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.audio-hint.is-visible {
    opacity: 1;
    transform: none;
}

/* Flyer */
.fab-download {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fab-download.visible {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.fab-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #0a0a0a;
    border-radius: 50px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3), 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.fab-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

.fab-tooltip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 10, 10, 0.9);
    color: var(--fg);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.fab-download:hover .fab-tooltip {
    opacity: 1;
}

/* Navigation basse mobile (masquée sur desktop) */
.mobile-bottom-nav {
    display: none;
}


/* ==========================================================================
   14. Impression
   ========================================================================== */
@media print {
    .flipbook-section,
    .hero__carousel,
    .hero__waves,
    .hero__particles,
    .audio-toggle,
    .audio-hint,
    .fab-download,
    .mobile-bottom-nav,
    .launch-banner {
        display: none !important;
    }

    body::after {
        content: "L'impression de ce document est interdite. © Miss & Mister Excellence";
        display: block;
        text-align: center;
        padding: 40px;
        font-size: 18px;
    }
}


/* ==========================================================================
   15. Mouvement réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    html {
        scroll-behavior: auto;
    }

    .site-header {
        transform: none;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .hero__slide.is-active {
        transform: scale(1.02);
    }

    .orbit-ring,
    .logo-aura-pulse {
        animation: none;
    }

    .theme__quote-mark {
        transform: none !important;
    }
}


/* ==========================================================================
   16. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .site-header__wordmark {
        display: none;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 40px 5% 30px;
    }

    .flipbook__thumbs {
        width: 190px;
    }
}

@media (max-width: 900px) {
    .pillars__grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-inline: auto;
    }

    .mission__columns {
        columns: 1;
    }

    .fondation__people {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
}

/* ==========================================================================
   Flipbook tablette & mobile (≤ 1024px) : plus de livre 3D.
   Aperçu compact dans la page, puis slider plein écran au premier tap :
   une page à la fois, swipe gauche/droite, flèches latérales, pagination
   en bas, police ≥ 15px et défilement vertical interne si besoin.
   ========================================================================== */
@media (max-width: 1024px) {
    .tabs {
        gap: 12px;
        border-bottom: 0;
        flex-direction: column;
        align-items: stretch;
    }

    .tab {
        border: 1px solid rgba(212, 175, 55, 0.2);
        padding: 12px 12px;
        font-size: 11px;
    }

    .tab::after {
        display: none;
    }

    .tab.is-active {
        border-color: var(--gold);
        background: rgba(212, 175, 55, 0.06);
    }

    .flipbook__read {
        display: inline-flex;
    }

    .flipbook__stage {
        grid-template-columns: 1fr;
    }

    .flipbook__arrow {
        display: none;
    }

    .flipbook-container {
        perspective: none;
        padding-block: 8px 0;
        touch-action: pan-y;
        cursor: pointer;
        overflow: hidden;
    }

    /* Les pages hors écran (translateX ±100 %) sont rognées par le livre */
    .book {
        width: min(100%, 420px);
        aspect-ratio: 7 / 10;
        transform: none !important;
        transform-style: flat;
        overflow: hidden;
        filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.6));
    }

    .book::before {
        display: none;
    }

    .leaf {
        left: 0;
        right: 0;
        width: 100%;
        transform: none !important;
        transform-style: flat;
        transition: none;
        z-index: auto !important;
        pointer-events: none;
    }

    /* Une page à la fois : glissement horizontal 300 ms */
    .page {
        -webkit-backface-visibility: visible;
        backface-visibility: visible;
        padding: 7% 7% 9%;
        font-size: clamp(9px, 3.1cqw, 13px);
        transform: translateX(100%);
        opacity: 0;
        z-index: 1;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .page-back {
        transform: translateX(100%);
    }

    .page.is-prev {
        transform: translateX(-100%);
        opacity: 0;
    }

    .page.is-current {
        transform: none;
        opacity: 1;
        z-index: 3;
    }

    .page-front::before,
    .page-back::before {
        background: none;
    }

    .page::after {
        font-size: 2.1em;
    }

    /* Miniatures : volet plein écran */
    .flipbook__thumbs {
        position: fixed;
        inset: 0;
        z-index: 10002;
        width: auto;
        max-height: none;
        padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
        background: rgba(10, 10, 10, 0.97);
        border: 0;
    }

    .thumbs {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding-top: 48px;
    }

    .thumb__title {
        font-size: 9px;
    }

    .flipbook__hint {
        font-size: 11px;
        letter-spacing: 0.04em;
    }

    /* ---- Slider plein écran ---- */
    .flipbook.is-fullscreen {
        padding: 0;
        gap: 0;
    }

    .flipbook.is-fullscreen::before {
        display: none;
    }

    .flipbook.is-fullscreen .flipbook__toolbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 6;
        padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
        background: linear-gradient(180deg, rgba(10, 10, 10, 0.96) 60%, rgba(10, 10, 10, 0));
    }

    .flipbook.is-fullscreen .flipbook__indicator {
        font-size: 13px;
    }

    .flipbook.is-fullscreen .flipbook__read {
        display: none;
    }

    .flipbook.is-fullscreen .flipbook__tool {
        width: 38px;
        height: 38px;
    }

    .flipbook.is-fullscreen .flipbook__stage {
        position: fixed;
        inset: 0;
        display: block;
    }

    .flipbook.is-fullscreen .flipbook-container {
        position: fixed;
        inset: 0;
        height: 100vh;
        height: 100dvh;
        padding: 0;
        background: #0a0a0a;
        cursor: default;
    }

    .flipbook.is-fullscreen .book {
        width: 100%;
        height: 100%;
        max-width: none;
        aspect-ratio: auto;
        filter: none;
    }

    .flipbook.is-fullscreen .page {
        padding: calc(66px + env(safe-area-inset-top)) 16px calc(64px + env(safe-area-inset-bottom));
        font-size: 15px;
        line-height: 1.7;
        background: #f5f0e8;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .flipbook.is-fullscreen .page--cover,
    .flipbook.is-fullscreen .page--art {
        background: #0d0012;
    }

    .flipbook.is-fullscreen .page--art {
        background: #efe7d8;
    }

    .flipbook.is-fullscreen .page__inner {
        max-height: 100%;
        height: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-right: 0;
    }

    .flipbook.is-fullscreen .page--art .page__inner,
    .flipbook.is-fullscreen .page--chapter .page__inner {
        height: 100%;
    }

    /* Couvertures : cadre au ratio de l'image, centré — le badge « Édition 2027 »
       reste ainsi positionné par rapport à l'image, pas à l'écran. */
    .flipbook.is-fullscreen .page--cover .page__inner {
        position: relative;
        width: min(100%, calc((100dvh - 150px) * 0.7075));
        aspect-ratio: 849 / 1200;
        height: auto;
        margin: auto;
        overflow: hidden;
    }

    .flipbook.is-fullscreen .flipbook-cover-img {
        object-fit: cover;
    }

    .flipbook.is-fullscreen .page::after {
        font-size: 28px;
    }

    .flipbook.is-fullscreen .page__num {
        display: none;
    }

    /* Flèches latérales discrètes */
    .flipbook.is-fullscreen .flipbook__arrow {
        display: inline-flex;
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        z-index: 6;
        width: 40px;
        height: 40px;
        background: rgba(10, 10, 10, 0.55);
        border-color: rgba(212, 175, 55, 0.4);
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
    }

    .flipbook.is-fullscreen .flipbook__arrow--prev { left: 8px; }
    .flipbook.is-fullscreen .flipbook__arrow--next { right: 8px; }

    .flipbook.is-fullscreen .flipbook__arrow:disabled {
        opacity: 0.15;
    }

    /* Pagination basse */
    .flipbook.is-fullscreen .flipbook__pagination {
        display: block;
        position: fixed;
        bottom: calc(18px + env(safe-area-inset-bottom));
        left: 50%;
        transform: translateX(-50%);
        z-index: 6;
        padding: 6px 16px;
        border-radius: 20px;
        background: rgba(10, 10, 10, 0.7);
        color: var(--gold);
        font-size: 12px;
        letter-spacing: 2px;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .flipbook.is-fullscreen .flipbook__progress {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 6;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 60px;
    }

    /* Pas de barre de défilement visible */
    body::-webkit-scrollbar {
        display: none;
    }

    body {
        scrollbar-width: none;
    }

    /* Header : logo centré, burger à droite */
    .site-nav {
        display: none;
    }

    .burger {
        display: flex;
    }

    .site-header__inner {
        grid-template-columns: 44px 1fr 44px;
    }

    .site-header__brand {
        grid-column: 2;
        justify-self: center;
    }

    .burger {
        grid-column: 3;
    }

    /* Hero */
    .hero__content {
        padding: 24px var(--gutter) 64px;
    }

    .logo-planet-system {
        width: 220px;
        height: 220px;
        margin-bottom: 16px;
    }

    .logo-planet {
        width: 140px;
        height: 140px;
    }

    .logo-aura { width: 170px; height: 170px; }
    .logo-aura-pulse { width: 195px; height: 195px; animation-duration: 4.5s; }
    .orbit-1 { width: 180px; height: 180px; animation-duration: 18s; }
    .orbit-2 { width: 200px; height: 200px; animation-duration: 27s; }
    .orbit-3 { width: 216px; height: 216px; animation-duration: 37s; }

    .hero__title-top {
        letter-spacing: 0.16em;
    }

    .hero__edition {
        gap: 12px;
        font-size: 10px;
        letter-spacing: 2px;
        white-space: nowrap;
    }

    .hero__edition::before,
    .hero__edition::after {
        width: 28px;
        flex: none;
    }

    .hero__badges {
        gap: 8px 20px;
        margin-top: 28px;
    }

    .hero__badge {
        font-size: 10px;
        letter-spacing: 3px;
    }

    .hero__scroll {
        display: none;
    }

    /* Reveal plus rapide */
    [data-reveal] {
        transition-duration: 0.6s;
    }

    /* Piliers */
    .pillar {
        padding: 40px 28px;
    }

    /* Thème */
    .theme__text {
        font-size: 26px;
    }

    .theme__quote-mark {
        font-size: 80px;
    }

    .theme__quote-mark--close {
        bottom: -24px;
    }

    .theme__desc {
        text-align: left;
    }

    /* Valeurs */
    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-card {
        padding: 22px 22px;
        gap: 16px;
    }

    /* Compte à rebours */
    .countdown {
        gap: 6px;
        margin: 32px 0;
    }

    .countdown-number {
        font-size: 36px;
    }

    .countdown-item {
        min-width: 60px;
    }

    .countdown-sep {
        font-size: 28px;
        padding-bottom: 20px;
    }

    /* Ken Burns plus doux : ne pas couper les visages */
    @keyframes kenBurnsZoom {
        from { transform: scale(1); }
        to   { transform: scale(1.08); }
    }

    /* Espace pour la navigation basse */
    body {
        padding-bottom: 60px;
    }

    /* Navigation basse, style application native */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: rgba(10, 10, 10, 0.97);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(212, 175, 55, 0.2);
        padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
        justify-content: space-around;
    }

    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        font-size: 9px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--fg-muted);
        padding: 4px 8px;
        transition: color 0.2s;
    }

    .mobile-bottom-nav a.active {
        color: var(--gold);
    }

    .mobile-bottom-nav svg {
        width: 20px;
        height: 20px;
        stroke: currentColor;
        fill: none;
        stroke-width: 1.5;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.flip-fullscreen .mobile-bottom-nav {
        display: none !important;
    }

    /* Flottants au-dessus de la navigation basse */
    .audio-toggle {
        bottom: 130px;
    }

    .fab-download {
        bottom: 75px;
    }

    .audio-hint {
        right: 16px;
        bottom: 182px;
    }

    /* Bannière de lancement */
    .launch-banner-content {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .launch-banner-inner {
        padding: 10px 40px 10px 16px;
        flex-wrap: wrap;
    }

    .launch-banner-text {
        font-size: 12px;
    }

    .fab-button {
        padding: 12px 16px;
    }

    /* Textes lisibles */
    .pillar__text,
    .theme__desc,
    .fondation__intro,
    .mission__columns,
    .launch__text {
        font-size: 15px;
    }

    .value-description {
        font-size: 14px;
    }

    .section__intro {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-logo {
        margin: 0 auto 16px;
    }

    .footer-col ul li .footer-icon {
        margin-right: 4px;
    }
}

@media (max-width: 420px) {
    .hero__title-main {
        letter-spacing: 0.03em;
    }

    .quote {
        padding: 24px 22px;
    }

    .pillar {
        padding: 36px 24px;
    }

    .countdown-number {
        font-size: 30px;
    }

    .countdown-item {
        min-width: 54px;
    }
}
