/* ========================================
   Lumancia - Thème Aubergine + Doré Rose
   Hybride : nav/hero/footer sombres, contenu blanc
   ======================================== */

/* === Variables CSS - Palette Aubergine Hybride === */
:root {
    /* Fonds clairs (zones de contenu) */
    --oracle-ivory: #FFFFFF;
    --oracle-cream: #FDFAF7;
    --oracle-linen: #FBF5F0;
    --oracle-sand: #ede5e0;
    --oracle-white: #FFFFFF;

    /* Fonds sombres (nav, hero, footer) */
    --oracle-dark: #2a102a;
    --oracle-dark-deep: #1a0c1a;
    --oracle-aubergine: #3D1F3D;

    /* Textes sur fond clair */
    --oracle-ink: #3a2a30;
    --oracle-charcoal: #2a1a20;
    --oracle-stone: #5a4a50;
    --oracle-ash: #8a6a7a;

    /* Textes sur fond sombre */
    --oracle-light-text: #e0d5cc;
    --oracle-muted-light: #a89888;

    /* Accents doré rosé */
    --oracle-gold: #E8C4A0;
    --oracle-gold-light: #F0D4B8;
    --oracle-gold-dark: #B8905A;
    --oracle-gold-muted: #C8A878;
    --oracle-gold-glow: rgba(232, 196, 160, 0.15);
    --oracle-gold-border: rgba(232, 196, 160, 0.5);
    --oracle-gold-rgb: 184, 150, 63;

    /* Surcharge Bootstrap */
    --bs-primary: #B8905A;
    --bs-primary-rgb: 184, 144, 90;
    --bs-body-bg: #FFFFFF;
    --bs-body-color: #3a2a30;
    --bs-border-color: #ede5e0;
    --bs-link-color: #B8905A;
    --bs-link-hover-color: #E8C4A0;

    /* Typographie */
    --oracle-font-display: 'Cinzel', serif;
    --oracle-font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;

    /* Transitions douces */
    --oracle-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Base === */
body {
    font-family: var(--oracle-font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    background: var(--oracle-ivory);
    color: var(--oracle-ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--oracle-font-display);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--oracle-ink);
}

p, li, td, th {
    color: var(--oracle-charcoal);
}

a {
    color: var(--oracle-gold-dark);
    text-decoration: none;
    transition: var(--oracle-transition);
}

a:hover {
    color: var(--oracle-gold);
}

/* === Fond subtil === */
.mystical-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(61, 31, 61, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(232, 196, 160, 0.03) 0%, transparent 50%),
        var(--oracle-ivory);
}

.mystical-bg .stars,
.mystical-bg .nebula {
    display: none;
}

/* === Navbar — fond sombre aubergine, mobile d'abord ===
   Base = mobile : une seule ligne (logo, solde, « Tirage », menu) de --navbar-h.
   Le menu complet s'ouvre sous la barre jusqu'à 1199 px, puis s'aligne en ligne. */
:root {
    --navbar-h: 3.5rem;
}

.navbar {
    background: var(--oracle-dark) !important;
    border-bottom: 1px solid rgba(232, 196, 160, 0.1);
    padding: 0.375rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.navbar-logo {
    height: 24px;
    width: auto;
    display: block;
}

.navbar-quick {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.navbar-credit {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.25rem;
    text-decoration: none;
}

.navbar-credit-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--oracle-gold);
    background: rgba(232, 196, 160, 0.12);
    border: 1px solid rgba(232, 196, 160, 0.45);
    border-radius: 999px;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.navbar-credit:hover .navbar-credit-pill,
.navbar-credit.active .navbar-credit-pill {
    background: rgba(232, 196, 160, 0.28);
}

/* Masqué sous 360 px : la place manque, « Tirages » reste dans le menu */
.navbar-cta-tirage {
    display: none;
    align-items: center;
    min-height: 44px;
    padding: 0 0.5rem;
    font-family: var(--oracle-font-display);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--oracle-gold);
    text-decoration: none;
    white-space: nowrap;
}

.navbar-cta-tirage:hover,
.navbar-cta-tirage:focus,
.navbar-cta-tirage.active {
    color: var(--oracle-gold-light);
}

.navbar-toggler {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: var(--oracle-gold-border);
    flex-shrink: 0;
}

.navbar-toggler-icon {
    width: 1.4em;
    height: 1.4em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(232, 196, 160, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
    max-height: calc(100vh - var(--navbar-h));
    max-height: calc(100dvh - var(--navbar-h));
    overflow-y: auto;
}

.navbar-nav {
    padding: 0.5rem 0;
}

.navbar-nav .nav-link {
    font-family: var(--oracle-font-display);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(232, 196, 160, 0.55) !important;
    padding: 0.6rem 1rem !important;
    position: relative;
    white-space: nowrap;
    transition: var(--oracle-transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--oracle-gold) !important;
}

.nav-account-name {
    display: inline-block;
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.nav-account-header {
    padding: 0.6rem 1rem 0.25rem;
    font-family: var(--oracle-font-display);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--oracle-muted-light);
}

/* Menu replié (mobile et tablette) : le compte s'affiche à plat, sans menu déroulant */
@media (max-width: 1199.98px) {
    .nav-account > .dropdown-toggle {
        display: none;
    }

    .navbar .nav-account > .dropdown-menu {
        display: block;
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }

    .navbar .dropdown-menu .dropdown-item {
        color: rgba(232, 196, 160, 0.55);
        padding: 0.6rem 1rem;
        border-radius: 6px;
    }

    .navbar .dropdown-menu .dropdown-item:hover,
    .navbar .dropdown-menu .dropdown-item:focus {
        background: rgba(232, 196, 160, 0.08);
        color: var(--oracle-gold);
    }

    .navbar .dropdown-menu .dropdown-divider {
        border-color: rgba(232, 196, 160, 0.1);
        margin: 0.25rem 0;
    }
}

@media (min-width: 360px) {
    .navbar-cta-tirage {
        display: inline-flex;
    }
}

@media (min-width: 1200px) {
    :root {
        --navbar-h: 4.5rem;
    }

    .navbar {
        padding: 1rem 0;
    }

    .navbar-logo {
        height: 36px;
    }

    .navbar-quick {
        margin-left: 0.5rem;
    }

    .navbar-collapse {
        max-height: none;
        overflow: visible;
    }

    .navbar-nav {
        padding: 0;
    }

    .navbar-nav .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.85rem !important;
    }

    /* Soulignement au survol ; les menus déroulants gardent leur flèche (même ::after) */
    .navbar-nav .nav-link:not(.dropdown-toggle)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 1px;
        background: var(--oracle-gold);
        transition: var(--oracle-transition);
        transform: translateX(-50%);
    }

    .navbar-nav .nav-link:not(.dropdown-toggle):hover::after,
    .navbar-nav .nav-link:not(.dropdown-toggle).active::after {
        width: 70%;
    }

    .nav-account > .dropdown-toggle {
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }

    .nav-account-header {
        display: none;
    }
}

/* === Cards Bootstrap === */
.card {
    background: var(--oracle-white);
    border: 1px solid var(--oracle-sand);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.card:hover {
    border-color: var(--oracle-gold-border);
    box-shadow: 0 8px 30px rgba(184, 144, 90, 0.08);
    /* PAS de transform qui bouge */
}

.card-header {
    background: var(--oracle-cream);
    border-bottom: 1px solid var(--oracle-sand);
    font-family: var(--oracle-font-display);
}

.card-title {
    color: var(--oracle-charcoal);
    font-family: var(--oracle-font-display);
}

.card-text {
    color: var(--oracle-charcoal);
    font-size: 1rem;
    line-height: 1.6;
}

/* === Boutons Premium === */
.btn-primary {
    --bs-btn-color: var(--oracle-gold);
    --bs-btn-bg: var(--oracle-aubergine);
    --bs-btn-border-color: var(--oracle-aubergine);
    --bs-btn-hover-color: var(--oracle-gold-light);
    --bs-btn-hover-bg: var(--oracle-dark);
    --bs-btn-hover-border-color: var(--oracle-dark);
    --bs-btn-active-color: var(--oracle-gold);
    --bs-btn-active-bg: var(--oracle-dark-deep);
    --bs-btn-active-border-color: var(--oracle-dark-deep);
    --bs-btn-active-shadow: none;
    --bs-btn-focus-shadow-rgb: 61, 31, 61;
    --bs-btn-disabled-color: var(--oracle-gold);
    --bs-btn-disabled-bg: var(--oracle-aubergine);
    --bs-btn-disabled-border-color: var(--oracle-aubergine);
    font-family: var(--oracle-font-display);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    transition: var(--oracle-transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(184, 144, 90, 0.25);
}

.btn-outline-primary {
    --bs-btn-color: var(--oracle-gold-dark);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: var(--oracle-gold-dark);
    --bs-btn-hover-color: var(--oracle-gold);
    --bs-btn-hover-bg: var(--oracle-aubergine);
    --bs-btn-hover-border-color: var(--oracle-aubergine);
    --bs-btn-active-color: var(--oracle-gold);
    --bs-btn-active-bg: var(--oracle-aubergine);
    --bs-btn-active-border-color: var(--oracle-aubergine);
    --bs-btn-active-shadow: none;
    --bs-btn-focus-shadow-rgb: 201, 169, 98;
    font-family: var(--oracle-font-display);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btn-secondary {
    --bs-btn-color: var(--oracle-stone);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: var(--oracle-sand);
    --bs-btn-hover-color: var(--oracle-charcoal);
    --bs-btn-hover-bg: var(--oracle-cream);
    --bs-btn-hover-border-color: var(--oracle-gold-border);
    --bs-btn-active-color: var(--oracle-charcoal);
    --bs-btn-active-bg: var(--oracle-cream);
    --bs-btn-active-border-color: var(--oracle-gold-border);
    --bs-btn-active-shadow: none;
    --bs-btn-focus-shadow-rgb: 201, 169, 98;
    font-family: var(--oracle-font-display);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* === Footer — fond sombre aubergine === */
.footer {
    background: var(--oracle-dark);
    border-top: none;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-text {
    color: var(--oracle-muted-light);
    font-style: italic;
}

.footer a {
    color: var(--oracle-gold);
}

.footer a:hover {
    color: var(--oracle-gold-light);
}

/* === Breadcrumb === */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: var(--oracle-ash);
    font-size: 0.875rem;
}

.breadcrumb-item a:hover {
    color: var(--oracle-gold);
}

.breadcrumb-item.active {
    color: var(--oracle-gold-dark);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--oracle-sand);
    content: "·";
}

/* === Titres === */
.mystical-title {
    font-family: var(--oracle-font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 500;
    color: var(--oracle-charcoal);
    letter-spacing: 0.05em;
    text-align: center;
}

.mystical-title .decoration {
    color: var(--oracle-gold);
    margin: 0 0.75rem;
    font-weight: 400;
}

.mystical-subtitle {
    font-size: 1.1rem;
    color: var(--oracle-charcoal);
    text-align: center;
    font-style: normal;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* === Badges === */
.badge.bg-oracle-deep {
    background: var(--oracle-cream) !important;
    color: var(--oracle-charcoal);
    font-family: var(--oracle-font-display);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    border: 1px solid var(--oracle-sand) !important;
}

/* ========================================
   Éventail de la pioche d'approfondissement (page de résultat)
   ======================================== */

/* Conteneur des cartes étalées */
.deck-spread {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 1rem 0;
    gap: 0;
    align-items: center;
    justify-content: flex-start;
    min-height: 160px;
    max-width: 1140px;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: visible;
    cursor: pointer;
    user-select: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.deck-spread::before,
.deck-spread::after {
    content: '';
    min-width: 1.5rem;
    flex-shrink: 0;
}

.deck-spread::-webkit-scrollbar {
    display: none;
}

.deck-spread.is-dragging {
    cursor: move !important;
    scroll-behavior: auto;
}

.deck-spread.is-dragging .spread-card {
    cursor: move !important;
    transition: none;
}

/* Cartes dans le spread */
.spread-card {
    flex-shrink: 0;
    width: 90px;
    height: 135px;
    margin-left: -30px;
    border-radius: 10px;
    background: var(--oracle-white);
    border: 2px solid rgba(184, 144, 90, 0.25);
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: 
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    z-index: 1;
}

.spread-card:first-child {
    margin-left: 0;
}

.spread-card-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spread-card-back {
    width: 85%;
    height: 88%;
    border: 1px solid var(--oracle-gold);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--oracle-cream) 0%, var(--oracle-white) 100%);
}

.spread-card .card-symbol {
    font-size: 1.5rem;
    color: var(--oracle-gold);
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

/* Hover - carte se soulève */
.spread-card:hover:not(.selected),
.spread-card.is-touched:not(.selected) {
    transform: translateY(-25px) scale(1.05);
    z-index: 100;
    border-color: var(--oracle-gold);
    box-shadow: 0 20px 40px rgba(184, 144, 90, 0.25);
}

.spread-card:hover:not(.selected) .card-symbol,
.spread-card.is-touched:not(.selected) .card-symbol {
    opacity: 1;
}

/* Carte sélectionnée */
.spread-card.selected {
    opacity: 0.3;
    transform: scale(0.9);
    pointer-events: none;
    border-color: var(--oracle-gold-border);
    box-shadow: none;
}

/* Responsive modal */

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 768px) {
    /* Header compact */
    .mobile-header-compact {
        padding: 0.5rem 1rem;
    }
    
    .mobile-header-compact .mystical-title {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .mobile-header-compact .mystical-subtitle {
        display: none;
    }
    
    .mobile-header-compact .badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.5rem;
    }
    
    .deck-spread {
        padding: 1rem 0;
        min-height: 120px;
    }

    /* Cartes du spread */
    .spread-card {
        width: 70px;
        height: 105px;
        margin-left: -25px;
    }
    
    .spread-card:first-child {
        margin-left: 0;
    }
    
    .spread-card .card-symbol {
        font-size: 1.1rem;
    }
    
    .spread-card:hover:not(.selected),
    .spread-card.is-touched:not(.selected) {
        transform: translateY(-18px) scale(1.03);
    }
}

/* Très petits écrans (moins de 480px) */
@media (max-width: 480px) {
    .mobile-header-compact .mystical-title {
        font-size: 1.1rem;
    }
    
    .mobile-header-compact .badge {
        font-size: 0.55rem;
    }
    
    .spread-card {
        width: 55px;
        height: 82px;
        margin-left: -20px;
    }

    .spread-card .card-symbol {
        font-size: 1rem;
    }
}

/* === Spinner === */
.mystical-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid transparent;
    animation: spin 3s linear infinite;
}

.spinner-ring:nth-child(1) { border-top-color: var(--oracle-gold); animation-duration: 3s; }
.spinner-ring:nth-child(2) { inset: 8px; border-right-color: var(--oracle-gold-light); animation-duration: 2s; animation-direction: reverse; }
.spinner-ring:nth-child(3) { inset: 16px; border-bottom-color: var(--oracle-gold-muted); animation-duration: 2.5s; }

.spinner-symbol {
    position: absolute;
    inset: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--oracle-gold);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ========================================
   ORACLE CARD - COMPOSANT CENTRALISÉ
   Style de carte réutilisable dans tout le projet
   ======================================== */

.oracle-card {
    --card-width: 280px;
    --card-aspect-ratio: 2 / 3;
    --card-border-width: 3px;
    --card-border-radius: 16px;
    --card-inner-radius: 12px;
    --card-banner-height: 60px;
    
    width: var(--card-width);
    aspect-ratio: var(--card-aspect-ratio);
    position: relative;
    margin: 0 auto;
    perspective: 2000px;
}

/* Variante large pour la page de détail */
.oracle-card.large {
    --card-width: 320px;
    --card-banner-height: 70px;
}

/* Variante small pour les galeries */
.oracle-card.small {
    --card-width: 200px;
    --card-banner-height: 50px;
}

.oracle-card .card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

.oracle-card.flipping .card-inner {
    transform: rotateY(180deg);
}

.oracle-card .card-front,
.oracle-card .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--card-border-radius);
    overflow: hidden;
}

.oracle-card .card-front {
    transform: rotateY(180deg);
}

.oracle-card .card-back {
    background: var(--oracle-white);
    border: var(--card-border-width) solid var(--oracle-gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === Cadre de carte avec bordure décorative CSS === */
.oracle-card .card-frame {
    width: 100%;
    height: 100%;
    background: var(--oracle-white);
    border: var(--card-border-width) solid var(--oracle-gold);
    border-radius: var(--card-border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 10px 40px rgba(184, 144, 90, 0.15),
        inset 0 0 0 1px rgba(184, 144, 90, 0.1);
    position: relative;
}

/* Bordure intérieure décorative */
.oracle-card .card-frame::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: calc(var(--card-banner-height) + 6px);
    border: 1px solid var(--oracle-gold-border);
    border-radius: var(--card-inner-radius);
    pointer-events: none;
    z-index: 1;
}

/* Coins décoratifs */
.oracle-card .card-frame::after {
    content: '✦';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--oracle-gold);
    opacity: 0.6;
    z-index: 2;
}

/* === Zone de l'image === */
.oracle-card .card-image-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: var(--oracle-cream);
}

.oracle-card .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay subtil sur l'image */
.oracle-card .card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 70%,
        rgba(0, 0, 0, 0.05) 100%
    );
    pointer-events: none;
}

/* Placeholder si pas d'image */
.oracle-card .card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--oracle-cream) 0%, var(--oracle-linen) 100%);
}

.oracle-card .card-image-placeholder .placeholder-symbol {
    font-size: 3rem;
    color: var(--oracle-gold);
    opacity: 0.4;
}

/* === Bannière du nom === */
.oracle-card .card-name-banner {
    height: var(--card-banner-height);
    padding: 0.75rem 1rem;
    background: var(--oracle-white);
    border-top: 1px solid var(--oracle-sand);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Décoration de la bannière */
.oracle-card .card-name-banner::before,
.oracle-card .card-name-banner::after {
    content: '·';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--oracle-gold);
    opacity: 0.5;
}

.oracle-card .card-name-banner::before { left: 12px; }
.oracle-card .card-name-banner::after { right: 12px; }

.oracle-card .card-name {
    font-family: var(--oracle-font-display);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--oracle-charcoal);
    margin: 0;
    letter-spacing: 0.04em;
    text-align: center;
    line-height: 1.3;
    max-width: calc(100% - 50px);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* === Responsive === */
@media (max-width: 768px) {
    .oracle-card {
        --card-width: 220px;
        --card-banner-height: 50px;
    }
    
    .oracle-card.large {
        --card-width: 260px;
        --card-banner-height: 55px;
    }
    
    .oracle-card .card-name {
        font-size: 0.85rem;
    }
    
    .oracle-card .card-frame::before {
        top: 4px;
        left: 4px;
        right: 4px;
        bottom: calc(var(--card-banner-height) + 4px);
    }
    
    .oracle-card .card-frame::after {
        top: 8px;
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .oracle-card {
        --card-width: 180px;
        --card-banner-height: 45px;
    }
    
    .oracle-card .card-name-banner::before,
    .oracle-card .card-name-banner::after {
        display: none;
    }
}

/* === Lazy Loading (shimmer placeholder + fade-in) === */
.lazy-image-placeholder {
    background: linear-gradient(90deg, #1a0a2e 25%, #2a1040 50%, #1a0a2e 75%);
    background-size: 200% 100%;
    animation: lazy-shimmer 1.5s ease-in-out infinite;
}

@keyframes lazy-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.lazy-image-loading {
    opacity: 0;
}

.lazy-image-loaded {
    opacity: 1;
}

/* Spinner infinite-scroll */
.infinite-scroll-loader {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.infinite-scroll-loader .spinner-border {
    color: var(--oracle-gold, #c4a265);
}

/* === Gallery === */
.gallery-card {
    aspect-ratio: 2/3;
    overflow: hidden;
}

.gallery-card .card-img-top {
    height: 100%;
    object-fit: cover;
}

.gallery-card .card-img-overlay {
    background: linear-gradient(180deg, transparent 50%, rgba(42, 16, 42, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* === Sections === */
.section-title {
    font-family: var(--oracle-font-display);
    color: var(--oracle-stone);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* === Forms === */
.form-control,
.form-select {
    background-color: var(--oracle-white);
    border: 1px solid var(--oracle-sand);
    color: var(--oracle-ink);
    border-radius: 6px;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--oracle-white);
    border-color: var(--oracle-gold);
    color: var(--oracle-ink);
    box-shadow: 0 0 0 3px rgba(184, 144, 90, 0.1);
}

.form-control::placeholder {
    color: var(--oracle-ash);
}

/* === Alerts === */
.alert-info {
    background: rgba(184, 144, 90, 0.08);
    border: 1px solid var(--oracle-gold-border);
    color: var(--oracle-gold-dark);
}

.alert-success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #166534;
}

/* === Utilities === */
.text-gold { color: var(--oracle-gold) !important; }
.text-muted-light { color: var(--oracle-ash) !important; }

/* Surcharge Bootstrap - text-light adapté au thème clair */
.text-light { color: var(--oracle-charcoal) !important; }

.bg-oracle-dark { background: var(--oracle-charcoal) !important; }
.bg-oracle-deep { background: var(--oracle-cream) !important; }

.border-gold { border-color: var(--oracle-gold-border) !important; }

/* === Animations === */
.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-pulse {
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(184, 144, 90, 0.3); }
    50% { box-shadow: 0 0 15px 5px rgba(184, 144, 90, 0); }
}

/* === Responsive === */
@media (max-width: 768px) {
    .oracle-card {
        width: 200px;
        height: 300px;
    }
    
    .mystical-title {
        font-size: 1.5rem;
    }
}

/* === Cards de type tirage === */
.reading-type-card {
    height: 100%;
    cursor: pointer;
}

.reading-type-card .card-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: var(--oracle-cream);
    border: 1px solid var(--oracle-gold-border);
    border-radius: 50%;
    color: var(--oracle-gold-dark);
    font-family: var(--oracle-font-display);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Minimum height helper */
.min-vh-50 {
    min-height: 50vh;
}

/* ========================================
   DECK DE CARTES (Tirage du jour)
   ======================================== */

.card-deck-container {
    position: relative;
    width: 220px;
    height: 150px;
    margin: 0 auto;
    cursor: pointer;
    perspective: 1000px;
}

.deck-card {
    position: absolute;
    width: 100px;
    height: 140px;
    border-radius: 12px;
    background: var(--oracle-white);
    border: 2px solid var(--oracle-gold-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.deck-card .card-back-design {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--oracle-cream) 0%, var(--oracle-white) 100%);
    border-radius: 10px;
}

.deck-card .card-symbol {
    font-size: 2rem;
    color: var(--oracle-gold);
    opacity: 0.7;
}

.deck-card-1 { transform: translate(-50%, -50%) translateX(-4px) translateY(-4px) rotate(-3deg); z-index: 1; }
.deck-card-2 { transform: translate(-50%, -50%) translateX(-2px) translateY(-2px) rotate(-1deg); z-index: 2; }
.deck-card-3 { transform: translate(-50%, -50%) translateX(2px) translateY(2px) rotate(1deg); z-index: 3; }
.deck-card-main { transform: translate(-50%, -50%); z-index: 4; }

.card-deck-container:hover .deck-card-main {
    transform: translate(-50%, -50%) translateY(-8px);
    box-shadow: 0 15px 40px rgba(184, 144, 90, 0.2);
    border-color: var(--oracle-gold);
}

/* Animation de mélange */
.card-deck-container.shuffling .deck-card {
    animation: shuffle 0.8s ease-in-out;
}

@keyframes shuffle {
    0%, 100% { transform: translate(-50%, -50%); }
    25% { transform: translate(-50%, -50%) translateX(-15px) rotate(-5deg); }
    50% { transform: translate(-50%, -50%) translateY(-10px); }
    75% { transform: translate(-50%, -50%) translateX(15px) rotate(5deg); }
}

/* Responsive deck */
@media (max-width: 768px) {
    .card-deck-container {
        width: 180px;
        height: 130px;
    }
    
    .deck-card {
        width: 85px;
        height: 120px;
    }
    
    .deck-card .card-symbol {
        font-size: 1.6rem;
    }
}

/* ========================================
   MODAL D'AUTHENTIFICATION
   ======================================== */

/* Container modal */
#authModal .modal-content {
    background: var(--oracle-white);
    border: 1px solid var(--oracle-sand);
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
}

#authModal .modal-header {
    background: var(--oracle-cream);
    border-bottom: 1px solid var(--oracle-sand);
    padding: 1.25rem 1.5rem;
    border-radius: 16px 16px 0 0;
}

#authModal .modal-title {
    font-family: var(--oracle-font-display);
    color: var(--oracle-charcoal);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

#authModal .btn-close {
    filter: none;
    opacity: 0.6;
}

#authModal .btn-close:hover {
    opacity: 1;
}

#authModal .modal-body {
    max-height: 75vh;
    overflow-y: auto;
    background: var(--oracle-white);
}

/* Custom scrollbar pour la modal */
#authModal .modal-body::-webkit-scrollbar {
    width: 6px;
}

#authModal .modal-body::-webkit-scrollbar-track {
    background: var(--oracle-cream);
    border-radius: 3px;
}

#authModal .modal-body::-webkit-scrollbar-thumb {
    background: var(--oracle-gold-border);
    border-radius: 3px;
}

#authModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--oracle-gold);
}

/* Zone des avantages */
.auth-benefits {
    background: var(--oracle-cream) !important;
    border: 1px solid var(--oracle-sand) !important;
    border-radius: 10px;
}

.auth-benefits p {
    color: var(--oracle-charcoal);
}

.auth-benefits ul li {
    color: var(--oracle-stone);
}

/* Formulaires dans la modal */
#authModal .form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--oracle-charcoal);
    margin-bottom: 0.5rem;
}

#authModal .form-control,
#authModal .form-select {
    background-color: var(--oracle-white);
    border: 1px solid var(--oracle-sand);
    color: var(--oracle-ink);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

#authModal .form-control:focus,
#authModal .form-select:focus {
    background-color: var(--oracle-white);
    border-color: var(--oracle-gold);
    color: var(--oracle-ink);
    box-shadow: 0 0 0 3px rgba(var(--oracle-gold-rgb), 0.15);
}

#authModal .form-control::placeholder {
    color: var(--oracle-ash);
}

/* Select options */
#authModal .form-select option {
    background: var(--oracle-white);
    color: var(--oracle-ink);
}

/* Checkbox personnalisée */
#authModal .form-check-input {
    background-color: var(--oracle-white);
    border: 1px solid var(--oracle-sand);
}

#authModal .form-check-input:checked {
    background-color: var(--oracle-gold);
    border-color: var(--oracle-gold);
}

#authModal .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(var(--oracle-gold-rgb), 0.2);
}

/* Séparateur */
#authModal hr {
    border-color: var(--oracle-sand);
}

/* Alertes dans la modal */
#authModal .alert {
    border-radius: 8px;
    font-size: 0.9rem;
}

#authModal .alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
    color: #842029;
}

#authModal .alert-success {
    background: rgba(25, 135, 84, 0.1);
    border-color: rgba(25, 135, 84, 0.3);
    color: #0f5132;
}

/* Boutons dans la modal */
#authModal .btn-primary {
    background: linear-gradient(135deg, var(--oracle-aubergine) 0%, var(--oracle-dark) 100%);
    border: none;
    color: var(--oracle-gold);
    font-size: 0.9rem;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#authModal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--oracle-gold-rgb), 0.3);
}

#authModal .btn-primary:disabled {
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

/* Texte muted dans la modal */
#authModal .text-muted-light {
    color: var(--oracle-ash) !important;
}

#authModal .text-light {
    color: var(--oracle-charcoal) !important;
}

#authModal .text-danger {
    color: #dc3545 !important;
}

/* Lien dans la modal */
#authModal a {
    color: var(--oracle-gold-dark);
}

#authModal a:hover {
    color: var(--oracle-gold);
}

/* ========================================
   CODE EMAIL (composant email-code)
   Un seul champ reel, transparent, pose sur 6 cases d'affichage :
   collage, saisie auto (autocomplete=one-time-code) et clavier numerique natifs.
   ======================================== */

.email-code-intro {
    color: var(--oracle-ash);
}

.email-code-intro.is-context {
    color: var(--oracle-charcoal);
    font-weight: 600;
}

/* #authModal : l'emporte sur la couleur des liens de la fenetre (#authModal a) */
.btn-google,
#authModal .btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 48px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    color: #3c4043;
    font-family: var(--oracle-font-body);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: normal;
    text-transform: none;
}

.btn-google:hover,
.btn-google:focus-visible,
#authModal .btn-google:hover,
#authModal .btn-google:focus-visible {
    background: #f8f9fa;
    border-color: #c6c9cc;
    color: #3c4043;
}

.email-code-separator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    color: var(--oracle-ash);
    font-size: 0.85rem;
}

.email-code-separator::before,
.email-code-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--oracle-sand);
}

.email-code-title {
    font-family: var(--oracle-font-display);
    font-size: 1.2rem;
    color: var(--oracle-charcoal);
    margin-bottom: 0.5rem;
}

.code-entry {
    position: relative;
}

.code-boxes {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
}

.code-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
    border: 1.5px solid var(--oracle-sand);
    border-radius: 10px;
    background: var(--oracle-white);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--oracle-charcoal);
    font-variant-numeric: tabular-nums;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.code-box.is-filled {
    background: var(--oracle-cream);
    border-color: var(--oracle-gold-muted);
}

.code-box.is-active {
    border-color: var(--oracle-gold-dark);
    box-shadow: 0 0 0 3px rgba(var(--oracle-gold-rgb), 0.2);
}

.code-box.is-error {
    border-color: #b3261e;
}

.code-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.01;
    border: 0;
    background: transparent;
    font-size: 16px; /* evite le zoom iOS */
    cursor: text;
}

.code-entry.is-shaking {
    animation: codeShake 0.4s ease;
}

@keyframes codeShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-7px); }
    40% { transform: translateX(7px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.code-feedback.is-error {
    color: #b3261e;
    font-weight: 600;
}

.email-code-bonus {
    color: var(--oracle-gold-dark);
    font-weight: 600;
}

.email-code-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: var(--oracle-linen);
    color: var(--oracle-aubergine);
    margin-bottom: 0.75rem;
}

/* ========================================
   BOUTON D'INCITATION À LA CONNEXION
   ======================================== */

.auth-incentive-wrapper {
    display: flex;
    justify-content: center;
}

.btn-auth-incentive {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, rgba(var(--oracle-gold-rgb), 0.1) 0%, rgba(var(--oracle-gold-rgb), 0.05) 100%);
    border: 2px solid rgba(var(--oracle-gold-rgb), 0.3);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-auth-incentive::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--oracle-gold-rgb), 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-auth-incentive:hover::before {
    left: 100%;
}

.btn-auth-incentive:hover {
    border-color: var(--oracle-gold);
    background: linear-gradient(135deg, rgba(var(--oracle-gold-rgb), 0.15) 0%, rgba(var(--oracle-gold-rgb), 0.08) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--oracle-gold-rgb), 0.15);
}

.btn-auth-incentive .incentive-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.btn-auth-incentive .incentive-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.btn-auth-incentive .incentive-main {
    font-family: var(--oracle-font-display);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--oracle-charcoal);
    letter-spacing: 0.02em;
}

.btn-auth-incentive .incentive-sub {
    font-size: 0.75rem;
    color: var(--oracle-ash);
    margin-top: 2px;
}

.btn-auth-incentive .incentive-arrow {
    font-size: 1.25rem;
    color: var(--oracle-gold);
    transition: transform 0.3s ease;
}

.btn-auth-incentive:hover .incentive-arrow {
    transform: translateX(4px);
}

/* Badge utilisateur connecté */
.auth-connected-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 50px;
}

.auth-connected-badge .connected-icon {
    font-size: 1.25rem;
}

.auth-connected-badge .connected-text {
    font-size: 0.9rem;
    color: var(--oracle-charcoal);
}

.auth-connected-badge .connected-text strong {
    color: #166534;
}

.guest-hint small {
    color: var(--oracle-ash);
    font-style: italic;
}

/* Wrapper centré verticalement */
.auth-incentive-wrapper {
    flex-direction: column;
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    .btn-auth-incentive {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
        border-radius: 12px;
    }
    
    .btn-auth-incentive .incentive-icon {
        font-size: 1.25rem;
    }
    
    .btn-auth-incentive .incentive-main {
        font-size: 0.8rem;
    }
    
    .btn-auth-incentive .incentive-sub {
        font-size: 0.7rem;
    }
    
    .btn-auth-incentive .incentive-arrow {
        display: none;
    }
    
    .auth-connected-badge {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    #authModal .modal-body {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .btn-auth-incentive {
        width: 100%;
        justify-content: center;
    }
    
    .btn-auth-incentive .incentive-text {
        align-items: center;
        text-align: center;
    }
}

/* ========================================
   BLOG - STYLES
   ======================================== */

/* === Carte de blog === */
.blog-card {
    transition: var(--oracle-transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(184, 144, 90, 0.12);
}

.blog-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--oracle-cream);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--oracle-cream) 0%, var(--oracle-linen) 100%);
}

.blog-card-placeholder span {
    font-size: 2.5rem;
    color: var(--oracle-gold);
    opacity: 0.4;
}

.blog-card .card-title a {
    color: var(--oracle-charcoal);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card .card-title a:hover {
    color: var(--oracle-gold);
}

.blog-card-categories .badge {
    font-size: 0.7rem;
}

.blog-card-meta {
    border-color: var(--oracle-sand) !important;
}

/* === Article de blog (page show) === */
.blog-article-header {
    padding: 2rem 0;
}

.blog-article-featured-image {
    max-width: 800px;
    margin: 0 auto;
}

.blog-article-featured-image img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
}

.blog-article-content .prose {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--oracle-charcoal);
}

.blog-article-content .prose h2 {
    font-family: var(--oracle-font-display);
    font-size: 1.5rem;
    color: var(--oracle-charcoal);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--oracle-sand);
}

.blog-article-content .prose h3 {
    font-family: var(--oracle-font-display);
    font-size: 1.25rem;
    color: var(--oracle-charcoal);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.blog-article-content .prose p {
    margin-bottom: 1.25rem;
}

.blog-article-content .prose ul,
.blog-article-content .prose ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.blog-article-content .prose li {
    margin-bottom: 0.5rem;
}

.blog-article-content .prose blockquote {
    border-left: 4px solid var(--oracle-gold);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--oracle-cream);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--oracle-stone);
}

.blog-article-content .prose a:not(.btn) {
    color: var(--oracle-gold-dark);
    text-decoration: underline;
    text-decoration-color: var(--oracle-gold-border);
    text-underline-offset: 3px;
}

.blog-article-content .prose a:not(.btn):hover {
    color: var(--oracle-gold);
}

.blog-article-content .prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.blog-article-content .prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.blog-article-content .prose th,
.blog-article-content .prose td {
    border: 1px solid var(--oracle-sand);
    padding: 0.75rem;
    text-align: left;
}

.blog-article-content .prose th {
    background: var(--oracle-cream);
    font-weight: 600;
}

.blog-article-content .prose hr {
    border: none;
    border-top: 1px solid var(--oracle-sand);
    margin: 2rem 0;
}

/* === Sommaire automatique (TOC) des articles === */
html {
    scroll-behavior: smooth;
}

.blog-article-content h2[id] {
    scroll-margin-top: 80px;
}

.blog-toc {
    background: var(--oracle-cream);
    border-left: 4px solid var(--oracle-gold);
    border-radius: 0 8px 8px 0;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.blog-toc-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--oracle-charcoal);
    margin-bottom: 0.75rem;
}

.blog-toc ol {
    list-style: none;
    counter-reset: toc-counter;
    padding-left: 0;
    margin-bottom: 0;
}

.blog-toc ol li {
    counter-increment: toc-counter;
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

.blog-toc ol li::before {
    content: counter(toc-counter) ".";
    color: var(--oracle-gold-dark);
    font-weight: 700;
    margin-right: 0.5rem;
    min-width: 1.5em;
    display: inline-block;
}

.blog-toc ol li a {
    color: var(--oracle-charcoal);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-toc ol li a:hover {
    color: var(--oracle-gold-dark);
    text-decoration: underline;
}

@media (max-width: 576px) {
    .blog-toc {
        padding: 1rem 1.25rem;
    }
}

/* === Pagination du blog === */
.pagination .page-link {
    color: var(--oracle-charcoal);
    border-color: var(--oracle-sand);
    background: var(--oracle-white);
}

.pagination .page-link:hover {
    color: var(--oracle-gold-dark);
    border-color: var(--oracle-gold-border);
    background: var(--oracle-cream);
}

.pagination .page-item.active .page-link {
    background: var(--oracle-gold);
    border-color: var(--oracle-gold);
    color: var(--oracle-white);
}

/* === Admin tables === */
.table {
    --bs-table-bg: var(--oracle-white);
    --bs-table-color: var(--oracle-charcoal);
}

.table-light {
    --bs-table-bg: var(--oracle-cream);
}

.table-hover tbody tr:hover {
    background-color: var(--oracle-cream);
}

/* === Responsive blog === */
@media (max-width: 768px) {
    .blog-article-content .prose {
        font-size: 1rem;
    }
    
    .blog-article-content .prose h2 {
        font-size: 1.3rem;
    }
    
    .blog-article-content .prose h3 {
        font-size: 1.1rem;
    }
    
    .blog-article-featured-image img {
        max-height: 300px;
    }
}

/* ========================================
   AUTHENTIFICATION - LOGIN / REGISTER
   ======================================== */

/* Logo animé */
.auth-logo {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Carte d'authentification */
.auth-card {
    background: var(--oracle-white);
    border: 1px solid var(--oracle-sand);
    border-radius: 16px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(184, 144, 90, 0.1);
    overflow: hidden;
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--oracle-gold), var(--oracle-gold-light), var(--oracle-gold));
}

/* Formulaire d'authentification */
.auth-form .form-label {
    font-family: var(--oracle-font-display);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--oracle-charcoal);
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.auth-form .form-control {
    border: 2px solid var(--oracle-sand);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--oracle-white);
}

.auth-form .form-control:focus {
    border-color: var(--oracle-gold);
    box-shadow: 0 0 0 4px rgba(184, 144, 90, 0.1);
    background: var(--oracle-white);
}

.auth-form .form-control::placeholder {
    color: var(--oracle-ash);
    opacity: 0.7;
}

/* Checkbox custom */
.auth-form .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--oracle-sand);
    border-radius: 4px;
    cursor: pointer;
}

.auth-form .form-check-input:checked {
    background-color: var(--oracle-gold);
    border-color: var(--oracle-gold);
}

.auth-form .form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(184, 144, 90, 0.15);
    border-color: var(--oracle-gold);
}

.auth-form .form-check-label {
    cursor: pointer;
    padding-left: 0.25rem;
}

/* Bouton de soumission */
.auth-form .btn-primary {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 10px;
    font-weight: 500;
}

.auth-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184, 144, 90, 0.3);
}

/* Alertes dans auth */
.auth-card .alert {
    border-radius: 10px;
    border: none;
    font-size: 0.9rem;
}

.auth-card .alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #842029;
}

.auth-card .alert-info {
    background: rgba(184, 144, 90, 0.1);
    color: var(--oracle-gold-dark);
}

/* Avantages inscription */
.auth-benefits .card {
    background: var(--oracle-cream);
    border: 1px dashed var(--oracle-gold-border);
}

/* Erreurs de formulaire */
.invalid-feedback,
.form-error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

ul.form-error-message {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

/* Séparateur */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--oracle-sand);
}

.auth-divider span {
    padding: 0 1rem;
    color: var(--oracle-ash);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-card {
        border-radius: 12px;
    }
    
    .auth-card .card-body {
        padding: 1.5rem !important;
    }
    
    .auth-form .form-control {
        padding: 0.75rem 0.875rem;
    }
    
    .auth-logo span {
        font-size: 2.5rem !important;
    }
}

/* === Formulaire de personnalisation du tirage === */
.personalization-section {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.25rem 1.5rem;
    background: var(--oracle-cream);
    border-radius: 12px;
    border: 1px solid var(--oracle-sand);
}

.personalization-section .personalization-icon {
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.personalization-section h6 {
    font-family: var(--oracle-font-display);
    color: var(--oracle-gold-dark);
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}

/* Inputs du formulaire de personnalisation */
.personalization-section .form-floating > .form-control,
.personalization-section .form-floating > .form-select {
    background-color: var(--oracle-white);
    border: 1px solid var(--oracle-sand);
    color: var(--oracle-ink);
    border-radius: 8px;
    height: calc(3rem + 2px);
    padding: 1rem 0.75rem;
}

.personalization-section .form-floating > .form-control:focus,
.personalization-section .form-floating > .form-select:focus {
    border-color: var(--oracle-gold);
    box-shadow: 0 0 0 3px var(--oracle-gold-glow);
}

.personalization-section .form-floating > label {
    color: var(--oracle-ash);
    padding: 0.85rem 0.75rem;
}

.personalization-section .form-floating > .form-control:focus ~ label,
.personalization-section .form-floating > .form-control:not(:placeholder-shown) ~ label,
.personalization-section .form-floating > .form-select ~ label {
    color: var(--oracle-gold-dark);
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Select options */
.personalization-section .form-select option {
    background: var(--oracle-white);
    color: var(--oracle-ink);
}

/* Responsive */
@media (max-width: 576px) {
    .personalization-section {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .personalization-section h6 {
        font-size: 0.9rem;
    }
}

/* Zone des messages - scroll naturel */
.chat-messages-container {
    padding: 1rem 0;
}

/* Espace pour compenser l'input zone fixed sur mobile */
.chat-messages-container::after {
    content: '';
    display: block;
    height: 80px; /* Compense la hauteur du chat-input-zone fixed */
}

@media (min-width: 768px) {
    .chat-messages-container::after {
        height: 0; /* Pas nécessaire sur desktop (sticky) */
    }
}

/* Messages empilés verticalement */
.chat-message {
    margin-bottom: 0.875rem;
    display: flex;
}

/* Animation d'entrée */
.chat-message.fade-in {
    animation: slideInMessage 0.3s ease-out;
}

/* Alignement des messages */
.chat-message-user {
    justify-content: flex-end;
}

.chat-message-ai {
    justify-content: flex-start;
}

/* Largeur max des bulles — 2/3 horizontal */
.chat-message-user .message-bubble {
    max-width: 66%;
}

.chat-message-ai .message-bubble {
    max-width: 66%;
}

/* Premier message IA (guidance) - pleine largeur */
.chat-message-ai:first-child .message-bubble {
    max-width: 100%;
}

@keyframes slideInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bulles de message - Style WhatsApp moderne */
.message-bubble {
    position: relative;
    padding: 0.625rem 1rem;
    border-radius: 1.125rem;
    word-wrap: break-word;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
}

/* PAS de hover qui bouge - juste une ombre subtile */
.message-bubble:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Bulle utilisateur — fond aubergine */
.user-bubble {
    background: var(--oracle-aubergine);
    color: var(--oracle-light-text);
    border: none;
    border-bottom-right-radius: 0.25rem;
}

.user-bubble .message-text {
    color: var(--oracle-light-text);
}

.user-bubble .message-time {
    color: rgba(224, 213, 204, 0.6);
}

/* Bulle IA — fond crème doux */
.ai-bubble {
    background: var(--oracle-linen);
    border: 1px solid #edddd0;
    border-bottom-left-radius: 0.25rem;
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
}

/* Contenu du message */
.message-content {
    flex: 1;
    min-width: 0;
}

.message-text {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--oracle-charcoal);
    margin: 0;
}

.user-bubble .message-text {
    color: var(--oracle-light-text);
}

/* Texte de l'oracle rendu depuis le markdown (AiTextRenderer) */
.message-text > :first-child { margin-top: 0; }
.message-text > :last-child { margin-bottom: 0; }
.message-text p,
.message-text ul,
.message-text ol { margin: 0 0 0.75rem; }
.message-text ul,
.message-text ol { padding-left: 1.25rem; }
.message-text li { margin-bottom: 0.25rem; }
.message-text h3,
.message-text h4 {
    font-family: var(--oracle-font-display);
    color: var(--oracle-aubergine);
    margin: 1.25rem 0 0.5rem;
    line-height: 1.3;
}
.message-text h3 { font-size: 1.0625rem; }
.message-text h4 { font-size: 0.9375rem; }
.message-text hr {
    border: 0;
    border-top: 1px solid var(--oracle-sand);
    margin: 1rem 0;
    opacity: 1;
}

/* Mention « générée par une IA » sous la lecture */
.ai-disclosure {
    font-size: 0.75rem;
    color: var(--oracle-muted-light);
    margin: 0.75rem 0 0;
    font-style: italic;
}

/* Encart d'aide humaine (DistressDetector) */
.support-resources {
    background: #fff;
    border-left: 4px solid var(--oracle-aubergine);
    border-radius: 0 12px 12px 0;
    padding: 0.875rem 1rem;
    margin: 0 0 1rem;
    color: var(--oracle-charcoal);
    font-size: 0.9375rem;
}
.support-resources-title {
    font-weight: 600;
    margin: 0 0 0.5rem;
}
.support-resources-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.support-resources-list li + li { margin-top: 0.375rem; }
.support-resources-number {
    display: inline-block;
    min-width: 3rem;
    font-weight: 700;
    color: var(--oracle-aubergine);
    text-decoration: none;
    margin-right: 0.25rem;
}
.support-resources-availability {
    color: var(--oracle-muted-light);
    font-size: 0.8125rem;
}

/* Timestamp discret en bas à droite */
.message-time {
    display: block;
    font-size: 0.6875rem;
    opacity: 0.65;
    margin-top: 0.25rem;
    text-align: right;
}

.user-bubble .message-time {
    color: rgba(224, 213, 204, 0.6);
}

.ai-bubble .message-time {
    color: var(--oracle-ash);
}

/* Typing indicator (3 points animés) - dans le fil de conversation */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.875rem;
    animation: fadeIn 0.3s ease-in;
}

.typing-indicator-bubble {
    background: var(--oracle-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 1.125rem;
    border-bottom-left-radius: 0.25rem;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.4rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    min-width: 70px;
}

.typing-indicator-bubble span {
    width: 10px;
    height: 10px;
    background: var(--oracle-gold);
    border-radius: 50%;
    animation: typingDot 1.4s ease-in-out infinite;
}

.typing-indicator-bubble span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator-bubble span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator-bubble span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-limit-reached {
    padding: 0.75rem 1rem;
}

.chat-limit-reached p {
    font-size: 0.875rem;
}

/* Guidance hero */
.guidance-hero .card {
    border-width: 2px;
}

.guidance-content {
    white-space: pre-line;
}

/* Mini-carte compacte intégrée dans les messages */
.mini-oracle-card {
    width: 140px;
    float: left;
    margin: 0 1rem 0.5rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: box-shadow 0.2s ease;
    background: var(--oracle-white);
    border: 2px solid var(--oracle-gold-border);
}

.mini-oracle-card:hover {
    box-shadow: 0 4px 12px rgba(184, 144, 90, 0.2);
    /* PAS de transform */
}

.mini-oracle-card img {
    width: 100%;
    height: auto;
    display: block;
}

.mini-oracle-card .card-name-mini {
    padding: 0.5rem;
    font-family: var(--oracle-font-display);
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    color: var(--oracle-charcoal);
    background: var(--oracle-cream);
    margin: 0;
    border-top: 1px solid var(--oracle-sand);
}

/* Carte inline dans le message de guidance */
.inline-card-preview {
    display: block;
    margin: 0 auto 1rem;
    width: 120px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

@media (min-width: 576px) {
    .inline-card-preview {
        margin: 0 0 1rem;
    }
}

.inline-card-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(184, 144, 90, 0.3);
}

.inline-card-image {
    width: 100%;
    height: auto;
    display: block;
}

.inline-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 0.5rem 0.25rem;
    text-align: center;
}

.inline-card-overlay .card-name {
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    display: block;
    line-height: 1.2;
}

.inline-card-overlay .badge-sm {
    font-size: 0.55rem;
    padding: 0.15rem 0.35rem;
}

/* Grille de cartes pour tirages multiples */
.inline-cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.inline-card-preview-multi {
    width: 70px;
    min-width: 60px;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.inline-card-preview-multi:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(184, 144, 90, 0.3);
}

.inline-card-preview-multi img {
    width: 100%;
    height: auto;
    display: block;
}

.inline-card-preview-multi .position-number {
    position: absolute;
    top: 4px;
    left: 4px;
    background: var(--oracle-gold);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inline-card-preview-multi .card-name-mini {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: white;
    font-size: 0.55rem;
    padding: 0.75rem 0.25rem 0.25rem;
    text-align: center;
    line-height: 1.1;
}

/* Groupes de cartes (actes) dans le résultat */
.card-group-section {
    margin-bottom: 0.75rem;
}

.card-group-header {
    margin-bottom: 0.5rem;
}

.inline-card-preview-multi.card-pivot {
    border: 2px solid var(--oracle-gold);
    box-shadow: 0 0 8px rgba(184, 144, 90, 0.3);
}

.inline-card-preview-multi.card-synthesis {
    border: 2px solid var(--oracle-gold-light, #d4af37);
}

.card-role-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--oracle-gold);
    color: var(--oracle-deep, #1a1a2e);
    font-size: 0.45rem;
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2;
}

/* Bouton voir détails dans le chat */
.btn-outline-gold {
    color: var(--oracle-gold);
    border-color: var(--oracle-gold);
    background: transparent;
    font-size: 0.8rem;
}

.btn-outline-gold:hover {
    color: white;
    background-color: var(--oracle-gold);
    border-color: var(--oracle-gold);
}

/* Modal détails carte */
#cardDetailsModal .modal-content {
    border: 1px solid var(--oracle-gold-border);
}

#cardDetailsModal .modal-header {
    background: var(--oracle-cream);
}

.bg-oracle-gold {
    background-color: var(--oracle-gold) !important;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .inline-card-preview {
        width: 90px;
        margin: 0 0.75rem 0.5rem 0;
    }

    .inline-card-overlay .card-name {
        font-size: 0.6rem;
    }

    .inline-cards-grid {
        gap: 0.35rem;
    }

    .inline-card-preview-multi {
        width: 55px;
    }

    .inline-card-preview-multi .position-number {
        width: 14px;
        height: 14px;
        font-size: 0.55rem;
    }

    .inline-card-preview-multi .card-name-mini {
        font-size: 0.45rem;
        padding: 0.5rem 0.15rem 0.15rem;
    }

    .mini-oracle-card {
        width: 100px;
        margin: 0 0.75rem 0.5rem 0;
    }

    .mini-oracle-card .card-name-mini {
        font-size: 0.65rem;
        padding: 0.375rem;
    }
    
    .message-bubble {
        padding: 0.5rem 0.875rem;
    }

    .chat-message-user .message-bubble {
        max-width: 88%;
    }

    .chat-message-ai .message-bubble {
        max-width: 95%;
    }

    .message-text {
        font-size: 0.875rem;
    }

    .message-time {
        font-size: 0.625rem;
    }
}

/* Touch devices - désactiver hover, utiliser active */
@media (hover: none) {
    .inline-card-preview:hover,
    .inline-card-preview-multi:hover {
        transform: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    }

    .inline-card-preview:active,
    .inline-card-preview-multi:active {
        transform: scale(0.97);
    }
}

/* ========================================
   ANIMATION SHAKE (pour validation)
   ======================================== */

/* ========================================
   SELECT - Options desactivees (Bulk Associate)
   ======================================== */

/* Options desactivees dans les selects de noms de cartes */
select option:disabled {
    color: #999;
    background-color: #f5f5f5;
}

/* ========================================
   DECK-THEMED - Variables dynamiques par deck
   ======================================== */

:root {
    --deck-primary: var(--oracle-gold);
    --deck-secondary: var(--oracle-gold-light);
    --deck-accent: var(--oracle-charcoal);
}

/* ========================================
   ANIMATION FLIP 3D POUR LES CARTES
   ======================================== */

.spread-card {
    perspective: 1000px;
}

.spread-card-inner {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    position: relative;
    width: 100%;
    height: 100%;
}

.spread-card.flipping .spread-card-inner {
    transform: rotateY(180deg);
}

.spread-card-back,
.spread-card-front {
    backface-visibility: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spread-card-front {
    transform: rotateY(180deg);
}

/* Image de face pour les cartes de deck */
.spread-card-front-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Image de dos personnalisée */
.spread-card-back-image {
    width: 85%;
    height: 88%;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--oracle-gold);
}

/* Carte révélée (après le flip) */
.spread-card.revealed .spread-card-inner {
    transform: rotateY(180deg);
}

/* Animation glow après flip */
.spread-card.revealed {
    animation: cardRevealGlow 0.6s ease-out;
}

@keyframes cardRevealGlow {
    0% {
        box-shadow: 0 0 0 rgba(184, 144, 90, 0);
    }
    50% {
        box-shadow: 0 0 30px rgba(184, 144, 90, 0.6);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
}

.esoteric-correspondences {
    margin-top: 1rem;
}

.esoteric-correspondences h6 {
    margin-bottom: 0.75rem;
}

.correspondence-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--oracle-cream);
    border: 1px solid var(--oracle-sand);
    color: var(--oracle-charcoal);
}

/* Planète */
.correspondence-planet {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #f0f0f0;
    border-color: #2a2a4e;
}

/* Zodiaque */
.correspondence-zodiac {
    background: linear-gradient(135deg, #4a3f6e 0%, #5c4d7d 100%);
    color: #f0f0f0;
    border-color: #6a5f8e;
}

/* Éléments */
.correspondence-element-fire {
    background: linear-gradient(135deg, #c41e3a 0%, #dc143c 100%);
    color: #fff;
    border-color: #e42c4b;
}

.correspondence-element-water {
    background: linear-gradient(135deg, #1e90ff 0%, #4169e1 100%);
    color: #fff;
    border-color: #5179f1;
}

.correspondence-element-air {
    background: linear-gradient(135deg, #87ceeb 0%, #add8e6 100%);
    color: #333;
    border-color: #b5e0f0;
}

.correspondence-element-earth {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    color: #fff;
    border-color: #b0623d;
}

.correspondence-element-spirit {
    background: linear-gradient(135deg, #9370db 0%, #8a2be2 100%);
    color: #fff;
    border-color: #9a3bf2;
}

/* ========================================
   RESPONSIVE - Correspondances et Flip
   ======================================== */

@media (max-width: 768px) {
    .correspondence-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .esoteric-correspondences h6 {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .correspondence-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
}

/* ========================================
   ORACLES - Pages liste et show
   ======================================== */

/* Cards oracle (liste et homepage) */
.oracle-card {
    background: var(--oracle-white);
    border: 1px solid var(--oracle-sand);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.oracle-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.oracle-card .card-count {
    background: var(--oracle-gold-glow);
    color: var(--oracle-gold-dark);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    white-space: nowrap;
}

.oracle-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.oracle-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.oracle-card:hover .oracle-card-image img {
    transform: scale(1.05);
}

/* ─── Liste oracles (/oracles) — cards modernes ──────────────── */
.oracle-list-card {
    display: flex;
    flex-direction: column;
    background: var(--oracle-cream);
    border: 1px solid var(--oracle-gold-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(31, 26, 22, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.oracle-list-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(31, 26, 22, 0.14);
    border-color: var(--oracle-gold);
}
.oracle-list-card-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--oracle-cream);
    position: relative;
    padding: 0.5rem;
}
.oracle-list-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    display: block;
}
.oracle-list-card:hover .oracle-list-card-img {
    transform: scale(1.04);
}
.oracle-list-card-emoji {
    font-size: 3.5rem;
    line-height: 1;
    color: var(--oracle-gold);
}

.oracle-list-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem 1.1rem 1.15rem;
}
.oracle-list-card-title {
    font-family: var(--oracle-font-display, 'Cinzel'), serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--oracle-charcoal);
    margin: 0;
    /* Le titre est désormais hors du body — il a son propre padding au-dessus de la cover. */
    padding: 1rem 1.1rem 0.75rem;
    text-align: center;
    line-height: 1.25;
}
.oracle-list-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.oracle-list-card-title a:hover,
.oracle-list-card-title a:focus {
    color: var(--oracle-gold, #b8860b);
    text-decoration: none;
}
.oracle-list-card-desc {
    color: var(--oracle-stone);
    font-size: 0.85rem;
    line-height: 1.55;
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.oracle-list-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.85rem;
}
.oracle-list-card-badge {
    display: inline-block;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
    background: var(--oracle-gold-glow);
    color: var(--oracle-gold-dark);
    border: 1px solid var(--oracle-gold-border);
    line-height: 1.3;
}
.oracle-list-card-badge--gold {
    background: var(--oracle-gold);
    color: var(--oracle-dark);
    border-color: var(--oracle-gold);
}
/* Actions de card : CTA principal en flex:1 + bouton icône carré pour Significations. */
.oracle-list-card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.5rem;
}
.oracle-list-btn-primary,
.oracle-list-btn-icon {
    font-weight: 600;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.2;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.oracle-list-btn-primary {
    flex: 1 1 auto;
    padding: 0.6rem 1rem;
    background: var(--oracle-gold);
    color: var(--oracle-dark);
    border: 1.5px solid var(--oracle-gold);
}
.oracle-list-btn-primary:hover,
.oracle-list-btn-primary:focus-visible {
    background: var(--oracle-gold-dark);
    border-color: var(--oracle-gold-dark);
    color: #fff;
    transform: translateY(-1px);
}
.oracle-list-btn-icon {
    flex: 0 0 44px;
    width: 44px;
    padding: 0;
    background: transparent;
    color: var(--oracle-gold-dark);
    border: 1.5px solid var(--oracle-gold);
    font-size: 1.1rem;
}
.oracle-list-btn-icon:hover,
.oracle-list-btn-icon:focus-visible {
    background: var(--oracle-gold-glow);
    color: var(--oracle-charcoal);
    border-color: var(--oracle-gold-dark);
    transform: translateY(-1px);
}

/* Card "featured" (Oracle divinatoire générique, sans cover image) */
.oracle-list-card--featured .oracle-list-card-emoji {
    font-size: 4rem;
}

/* Page show - Hero cover */
.oracle-show-cover {
    text-align: center;
}

.oracle-cover-image {
    max-width: 170px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.oracle-cover-image img {
    width: 100%;
    height: auto;
    max-height: 290px;
    object-fit: contain;
    display: block;
}

@media (max-width: 575px) {
    .oracle-cover-image {
        max-width: 140px;
    }
    .oracle-cover-image img {
        max-height: 240px;
    }
}

/* Encart introduction message */
.oracle-intro-message {
    max-width: 600px;
    background: var(--oracle-gold-glow);
    border: 1px solid var(--oracle-gold-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    font-style: italic;
    color: var(--oracle-stone);
}

/* ========================================
   Name Picker - Combobox selecteur de noms
   ======================================== */

.name-picker {
    position: relative;
}

.name-picker-input {
    padding-right: 2rem !important;
}

.name-picker-toggle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--oracle-ash, #8a6a7a);
    font-size: 0.7rem;
    border: none;
    background: none;
    padding: 0;
}

.name-picker-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    background: var(--oracle-white, #fff);
    border: 1px solid var(--oracle-sand, #ede5e0);
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.name-picker-dropdown.open {
    display: block;
}

.name-picker-option {
    padding: 0.35rem 0.6rem;
    cursor: pointer;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.1s;
}

.name-picker-option:hover,
.name-picker-option--highlighted {
    background-color: var(--oracle-cream, #FDFAF7);
}

.name-picker-option--selected {
    background-color: rgba(40, 167, 69, 0.1);
    font-weight: 600;
}

.name-picker-option--selected::after {
    content: "\2713";
    color: #28a745;
    font-size: 0.75rem;
}

.name-picker-option--used {
    color: var(--oracle-ash, #999);
    text-decoration: line-through;
    opacity: 0.6;
}

.name-picker-option--used::after {
    content: "\1F512";
    font-size: 0.65rem;
}

.name-picker-option--empty {
    color: var(--oracle-ash, #8a6a7a);
    font-style: italic;
    border-bottom: 2px solid var(--oracle-sand, #ede5e0);
}

.name-picker-option--add {
    color: var(--oracle-gold, #E8C4A0);
    font-weight: 500;
    border-top: 2px solid var(--oracle-sand, #ede5e0);
}

.name-picker-option--add:hover {
    background-color: rgba(201, 168, 76, 0.1);
}

.name-picker-selected-badge {
    display: inline-block;
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    margin-top: 0.15rem;
}

.name-picker-confirm {
    padding: 0.75rem;
    text-align: center;
}

.name-picker-confirm-icon {
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.name-picker-confirm-title {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    color: var(--oracle-obsidian, #2C2824);
}

.name-picker-confirm-text {
    font-size: 0.75rem;
    color: var(--oracle-ash, #8a6a7a);
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.name-picker-confirm-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

/* ========================================
   COMPOSANT DATE SELECT (3 selects Jour/Mois/Année)
   ======================================== */

.date-select-row {
    display: flex;
    gap: 0.5rem;
}

.date-select-row .date-select-day { flex: 0 0 25%; }
.date-select-row .date-select-month { flex: 1 1 auto; }
.date-select-row .date-select-year { flex: 0 0 30%; }
.date-select-row .form-select { font-size: 0.875rem; }

/* Message d'erreur date incomplète */
.date-select-error {
    display: none;
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.35rem;
}
.date-select-error:not(.d-none) { display: block; }

.date-select-row .form-select.is-invalid {
    border-color: #dc3545;
}
.date-select-row .form-select.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

/* Mode inline : label et selects sur la même ligne, erreur en dessous */
.date-select-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.date-select-inline .date-select-error {
    flex: 0 0 100%;
    margin-top: -0.5rem;
}

.date-select-inline .date-select-inline-label {
    flex: 0 0 auto;
    margin-bottom: 0;
    white-space: nowrap;
}

.date-select-inline .date-select-row {
    flex: 1 1 auto;
}

/* Label du date select dans la section personnalisation */
.personalization-section [data-controller="date-select"] > .form-label {
    color: var(--oracle-ash);
    font-size: 0.875rem;
}

/* Date select dans la section personnalisation */
.personalization-section .date-select-row .form-select {
    background-color: var(--oracle-white);
    border: 1px solid var(--oracle-sand);
    color: var(--oracle-ink);
    font-size: 0.875rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
}

.personalization-section .date-select-row .form-select:focus {
    border-color: var(--oracle-gold);
    box-shadow: 0 0 0 3px var(--oracle-gold-glow);
}

/* Date select dans la modal d'authentification */
#authModal .date-select-row .form-select {
    font-size: 0.875rem;
}

/* Responsive : empiler en vertical sur très petits écrans */
@media (max-width: 360px) {
    .date-select-inline {
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
    }
    .date-select-row {
        flex-direction: column;
        gap: 0.35rem;
    }
    .date-select-row .date-select-day,
    .date-select-row .date-select-month,
    .date-select-row .date-select-year {
        flex: 1 1 auto;
    }
}

/* ============================================================
   HISTORY PAGE
   ============================================================ */

.drawing-type-icon {
    width: 48px;
    height: 48px;
    background: var(--oracle-cream);
    border: 1px solid var(--oracle-gold-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.card-preview {
    width: 45px;
    height: 65px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid var(--oracle-gold-border);
    background: var(--oracle-cream);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.card-preview:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(184, 144, 90, 0.2);
}

.card-preview.reversed {
    transform: rotate(180deg);
}

.card-preview.reversed:hover {
    transform: rotate(180deg) scale(1.1);
}

.card-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--oracle-gold);
    font-size: 1.2rem;
}

.drawing-history-card {
    transition: var(--oracle-transition);
}

.drawing-history-card:hover {
    border-color: var(--oracle-gold-border);
    box-shadow: 0 8px 30px rgba(184, 144, 90, 0.1);
}

/* === Mon Compte - Onglets === */
.account-tabs {
    border-bottom: 2px solid var(--oracle-sand);
}

.account-tabs .nav-link {
    font-family: var(--oracle-font-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    color: var(--oracle-stone);
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1rem;
    transition: var(--oracle-transition);
}

.account-tabs .nav-link:hover {
    color: var(--oracle-gold);
    border-bottom-color: var(--oracle-gold-light);
    background: transparent;
}

.account-tabs .nav-link.active {
    color: var(--oracle-gold);
    border-bottom-color: var(--oracle-gold);
    background: transparent;
    font-weight: 600;
}

.account-tabs .badge.bg-oracle-gold {
    background-color: var(--oracle-gold) !important;
    color: var(--oracle-white);
    font-family: var(--oracle-font-body);
    font-size: 0.7rem;
    text-transform: none;
    letter-spacing: 0;
}

@media (max-width: 576px) {
    .account-tabs .nav-link {
        font-size: 0.75rem;
        padding: 0.5rem 0.5rem;
        letter-spacing: 0;
    }
}

/* --- Grille de cartes --- */
.spread-cards-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.spread-card-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

/* --- Position name (sous le nom de carte) --- */
.tile-position-name {
    font-size: 0.72rem;
    color: var(--oracle-ash);
    margin: 0.1rem 0 0;
    line-height: 1.25;
    text-align: center;
}

/* --- Reveal au scroll --- */
.spread-card-tile {
    opacity: 0;
    transform: translateY(20px) scale(0.92);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* --- Shimmer doré au reveal --- */
.tile-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(212, 179, 102, 0.25) 50%,
        transparent 70%
    );
    z-index: 2;
    pointer-events: none;
}

/* --- Image de la carte --- */
.tile-image-wrapper {
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.25s ease;
    will-change: transform;
}

.tile-image-wrapper:hover {
    box-shadow: 0 8px 25px rgba(184, 144, 90, 0.3);
}

.tile-card-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.tile-card-image.reversed {
    transform: rotate(180deg);
}

.card-placeholder-spread {
    aspect-ratio: 2/3;
    background: linear-gradient(135deg, #2a1a3e, #1a0a2e);
    border-radius: 10px;
    color: var(--oracle-gold);
    font-size: 2.5rem;
}

/* --- Nom de carte + sous-titre --- */
.tile-card-name {
    font-family: var(--oracle-font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--oracle-charcoal);
    margin: 0.3rem 0 0;
    line-height: 1.2;
}

/* --- Interpretation box (single card) --- */
.interpretation-box {
    max-width: 500px;
}

.interpretation-box-inner {
    background: var(--oracle-cream);
    border-left: 3px solid var(--oracle-gold);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    font-size: 0.92rem;
    line-height: 1.6;
    text-align: left;
}

/* --- Connecteurs horizontaux entre cartes (flèches →) --- */
.spread-with-connectors .spread-card-tile:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--oracle-gold-light);
    font-size: 1rem;
    opacity: 0.5;
    pointer-events: none;
}

/* --- Responsive tablette --- */
@media (max-width: 767px) {

    .spread-cards-row {
        gap: 1rem;
    }

}

/* --- Responsive mobile --- */
@media (max-width: 575px) {

    .spread-cards-row {
        gap: 0.75rem;
    }

    .tile-card-name {
        font-size: 0.75rem;
    }

    /* Connecteurs verticaux sur mobile */
    .spread-with-connectors .spread-card-tile:not(:last-child)::after {
        content: '↓';
        right: auto;
        left: 50%;
        top: auto;
        bottom: -0.9rem;
        transform: translateX(-50%);
        font-size: 0.8rem;
    }
}

/* --- Touch devices --- */
@media (hover: none) {
    .tile-image-wrapper:hover {
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    }

    .tile-image-wrapper:active {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    .spread-card-tile {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ========================================
   Homepage - Hero Section
   ======================================== */

.hero-section {
    padding: 8rem 0 5rem;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(232, 196, 160, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(61, 31, 61, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, var(--oracle-dark-deep) 0%, var(--oracle-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 196, 160, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-family: var(--oracle-font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--oracle-light-text);
    margin-bottom: 1.5rem;
}

.hero-title-accent {
    display: block;
    color: var(--oracle-gold);
    font-size: 0.85em;
}

.hero-tagline {
    font-family: var(--oracle-font-display);
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    color: var(--oracle-gold);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-family: var(--oracle-font-body);
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--oracle-muted-light);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-cta-secondary {
    background: transparent;
    color: var(--oracle-gold);
    border: 2px solid var(--oracle-gold);
    padding: 0.85rem 2.2rem;
    font-family: var(--oracle-font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 50px;
    transition: var(--oracle-transition);
}

.btn-hero-cta-secondary:hover {
    background: var(--oracle-gold);
    color: var(--oracle-dark-deep);
    box-shadow: 0 4px 20px rgba(232, 196, 160, 0.3);
    transform: translateY(-2px);
}

.btn-hero-cta {
    background: linear-gradient(135deg, var(--oracle-gold), var(--oracle-gold-dark));
    color: var(--oracle-dark-deep);
    border: none;
    padding: 0.9rem 2.5rem;
    font-family: var(--oracle-font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(232, 196, 160, 0.3);
    transition: var(--oracle-transition);
}

.btn-hero-cta:hover {
    background: linear-gradient(135deg, var(--oracle-gold-light), var(--oracle-gold));
    color: var(--oracle-dark-deep);
    box-shadow: 0 6px 28px rgba(232, 196, 160, 0.4);
    transform: translateY(-2px);
}

/* ========================================
   Homepage - Featured Reading Cards
   ======================================== */

.featured-reading-card {
    background: var(--oracle-white);
    border: 1px solid var(--oracle-sand);
    border-radius: 16px;
    transition: var(--oracle-transition);
    overflow: hidden;
}

.featured-reading-card:hover {
    border-color: var(--oracle-gold-border);
    box-shadow: 0 8px 30px rgba(184, 144, 90, 0.12);
    transform: translateY(-4px);
}

.featured-reading-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.featured-reading-card .card-title {
    font-family: var(--oracle-font-display);
    color: var(--oracle-ink);
}

.featured-reading-card .card-footer {
    border-color: var(--oracle-sand) !important;
}

.featured-reading-meta {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.bg-oracle-gold-subtle {
    background: rgba(184, 144, 90, 0.1);
    color: var(--oracle-gold-dark);
    font-weight: 500;
}

/* ========================================
   /tirages - Spacing between spread and catalogue
   ======================================== */

.reading-list-spread + .container {
    border-top: 1px solid var(--oracle-sand);
}

/* ========================================
   Homepage - How It Works (compact)
   ======================================== */

.how-it-works-section {
    padding: 2.5rem 0;
    background: var(--oracle-cream);
}

.how-it-works-title {
    font-family: var(--oracle-font-display);
    font-size: 1.3rem;
    font-weight: 600;
}

.how-it-works-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.how-it-works-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
}

.how-it-works-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.how-it-works-label {
    font-family: var(--oracle-font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--oracle-charcoal);
}

.how-it-works-separator {
    color: var(--oracle-gold);
    font-size: 1.2rem;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .how-it-works-separator {
        display: none;
    }

    .how-it-works-steps {
        flex-direction: column;
        gap: 0.75rem;
    }

    .how-it-works-step {
        width: 100%;
        max-width: 300px;
    }
}

/* ========================================
   Homepage - Trust Section
   ======================================== */

.trust-section {
    padding: 2.5rem 0;
    background: var(--oracle-ivory);
    border-top: 1px solid var(--oracle-sand);
    border-bottom: 1px solid var(--oracle-sand);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-badge-icon {
    font-size: 1.2rem;
    color: var(--oracle-gold);
    line-height: 1;
}

.trust-badge-text {
    font-family: var(--oracle-font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--oracle-charcoal);
}

@media (max-width: 767.98px) {
    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

/* ========================================
   Homepage - CTA Final
   ======================================== */

.cta-final-section {
    padding: 4rem 0 5rem;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(232, 196, 160, 0.06) 0%, transparent 70%),
        linear-gradient(180deg, var(--oracle-dark) 0%, var(--oracle-dark-deep) 100%);
}

.cta-final-title {
    font-family: var(--oracle-font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--oracle-gold);
    margin-bottom: 0.75rem;
}

.cta-final-subtitle {
    font-family: var(--oracle-font-body);
    font-size: 1.1rem;
    color: var(--oracle-muted-light);
    margin-bottom: 2rem;
}

/* ============================================
   CLARIFICATION CARDS
   ============================================ */

/* Zone du bouton de clarification (dans le chat) */
.clarification-zone {
    padding: 0.75rem 0;
}

.clarification-zone .btn-outline-gold {
    border-style: dashed;
    transition: all 0.3s ease;
}

.clarification-zone .btn-outline-gold:hover {
    border-style: solid;
    background: rgba(193, 154, 73, 0.1);
}

/* Panneau de sélection de carte à clarifier */
.clarification-pick-panel {
    text-align: center;
    padding: 0.75rem 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.clarification-pick-title {
    font-size: 0.9rem;
    color: var(--oracle-stone);
    margin-bottom: 0.75rem;
    font-style: italic;
}

.clarification-pick-row {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    overflow-x: auto;
    padding: 0.25rem 0.5rem 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.clarification-pick-row::-webkit-scrollbar {
    display: none;
}

/* Miniature de carte cliquable — réutilise spread-card-tile */
.clarification-pick-card {
    background: none;
    border: 2px solid transparent;
    padding: 0.4rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100px;
    flex-shrink: 0;
    /* Stagger reveal */
    opacity: 0;
    transform: translateY(12px);
    animation: clarPickReveal 0.4s ease forwards;
}

@keyframes clarPickReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* Override du reveal scroll sur les pick cards (elles ont leur propre animation) */
.clarification-pick-card.spread-card-tile {
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.clarification-pick-card .tile-image-wrapper {
    width: 70px;
    height: 100px;
    margin: 0 auto;
}

.clarification-pick-card .tile-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.375rem;
}

.clarification-pick-card .tile-card-name {
    font-size: 0.7rem;
    margin: 0.3rem 0 0;
    line-height: 1.2;
}

.clarification-pick-card .tile-position-name {
    font-size: 0.65rem;
}

.clarification-pick-card:hover {
    border-color: var(--oracle-gold);
    box-shadow: 0 0 16px rgba(184, 144, 90, 0.3);
    transform: translateY(-3px);
}

.clarification-pick-card:active {
    transform: scale(0.95);
}

/* ====== Bandeau CTA clarification ====== */

.clarification-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: linear-gradient(135deg, rgba(184, 144, 90, 0.06), rgba(184, 144, 90, 0.12));
    border: 1px solid rgba(184, 144, 90, 0.25);
    border-radius: 0.875rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
}

.clarification-cta:hover {
    border-color: var(--oracle-gold);
    box-shadow: 0 2px 12px rgba(184, 144, 90, 0.2);
    background: linear-gradient(135deg, rgba(184, 144, 90, 0.1), rgba(184, 144, 90, 0.18));
}

.clarification-cta-card {
    flex-shrink: 0;
    width: 36px;
    height: 52px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    animation: ctaCardFloat 3s ease-in-out infinite;
}

@keyframes ctaCardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.clarification-cta-back {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.clarification-cta-back-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--oracle-gold);
    color: white;
    font-size: 1.2rem;
}

.clarification-cta-text {
    flex: 1;
    min-width: 0;
}

.clarification-cta-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--oracle-ink);
}

.clarification-cta-sub {
    display: block;
    font-size: 0.75rem;
    color: var(--oracle-ash);
    margin-top: 0.1rem;
}

.clarification-cta-arrow {
    flex-shrink: 0;
    color: var(--oracle-gold);
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.clarification-cta:hover .clarification-cta-arrow {
    transform: translateX(3px);
}

.spread-card-chat-preview .spread-card-front-image {
    border-radius: 4px;
}

.spread-card-chat-preview .spread-card-front-image.reversed {
    transform: rotate(180deg);
}

/* ====== Overlay mode pioche ====== */

.oracle-thinking-mode {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.oracle-draw-title {
    color: var(--oracle-cream, #FDFAF7);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

/* Tapis sous les cartes dans l'overlay — adapté au fond sombre */
.oracle-draw-mat {
    position: relative;
    width: 100vw;
    background: rgba(255, 255, 255, 0.07);
    border-top: 1px solid rgba(184, 144, 90, 0.25);
    border-bottom: 1px solid rgba(184, 144, 90, 0.25);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Spread horizontal dans l'overlay de pioche — même pattern que .deck-spread */
.oracle-draw-spread {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 0;
    gap: 0;
    overflow-x: auto;
    overflow-y: visible;
    max-width: 100%;
    margin: 0 auto;
    cursor: pointer;
    user-select: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.oracle-draw-spread::-webkit-scrollbar {
    display: none;
}

.oracle-draw-spread::before,
.oracle-draw-spread::after {
    content: '';
    min-width: 1.5rem;
    flex-shrink: 0;
}

.oracle-draw-spread.is-dragging {
    cursor: move !important;
    scroll-behavior: auto;
}

.oracle-draw-spread.is-dragging .spread-card {
    cursor: move !important;
    transition: none;
}

/* Taille des cartes dans l'overlay (le reste = même CSS que le spread de tirage) */
.oracle-draw-spread .spread-card {
    width: 70px;
    height: 105px;
    margin-left: -25px;
}

.oracle-draw-spread .spread-card:first-child {
    margin-left: 0;
}

/* Rangée des cartes déjà tirées (sous le spread dans l'overlay) */
.oracle-draw-already {
    width: 100%;
    max-width: 90vw;
}

.oracle-drawn-row {
    text-align: center;
    margin-top: 1rem;
}

.oracle-drawn-title {
    display: block;
    color: rgba(245, 242, 237, 0.5);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.oracle-drawn-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.oracle-drawn-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.oracle-drawn-card img {
    width: 36px;
    height: 54px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(184, 144, 90, 0.4);
    opacity: 0.8;
}

.oracle-drawn-card .card-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 54px;
    border-radius: 4px;
    border: 1px solid rgba(184, 144, 90, 0.4);
    background: rgba(184, 144, 90, 0.1);
    color: var(--oracle-gold);
    font-size: 1rem;
    opacity: 0.8;
}

.oracle-drawn-label {
    color: rgba(245, 242, 237, 0.6);
    font-size: 0.55rem;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.oracle-draw-hint {
    color: rgba(245, 242, 237, 0.6);
    font-size: 0.8rem;
    margin-top: 1.25rem;
    font-style: italic;
    animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.oracle-draw-waiting {
    margin-top: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

/* Loading clarification */
.clarification-loading .text-gold {
    color: var(--oracle-gold, #C19A49);
}

/* Message de clarification dans le chat */
.chat-message-clarification .ai-bubble {
    border-left: 3px solid var(--oracle-gold, #C19A49);
}

.clarification-message-header {
    color: var(--oracle-gold, #C19A49);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.clarification-bubble {
    background: rgba(193, 154, 73, 0.04);
}

/* Aperçu carte dans message de clarification */
.clarification-card-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem;
    margin-bottom: 0.6rem;
    background: rgba(184, 144, 90, 0.06);
    border: 1px solid rgba(184, 144, 90, 0.2);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.clarification-card-preview:hover {
    background: rgba(184, 144, 90, 0.12);
    box-shadow: 0 2px 8px rgba(184, 144, 90, 0.15);
}

/* La miniature utilise .spread-card-chat-preview (taille gérée par ses propres styles) */

.clarification-card-preview .preview-info {
    flex: 1;
    min-width: 0;
}

.clarification-card-preview .preview-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--oracle-ink);
    margin: 0;
}

.clarification-card-preview .preview-position {
    font-size: 0.8rem;
    color: var(--oracle-ash);
    margin: 0.15rem 0 0 0;
}

/* ====== Overlay Oracle (attente réponse IA) ====== */

.oracle-thinking-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(26, 23, 21, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.oracle-thinking-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.oracle-thinking-orb {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(212, 179, 102, 0.6), rgba(184, 144, 90, 0.2) 60%, transparent 80%);
    box-shadow: 0 0 40px rgba(184, 144, 90, 0.35), 0 0 80px rgba(184, 144, 90, 0.15);
    animation: orbPulse 2.5s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

@keyframes orbPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 40px rgba(184, 144, 90, 0.35), 0 0 80px rgba(184, 144, 90, 0.15);
    }
    50% {
        transform: scale(1.12);
        box-shadow: 0 0 60px rgba(184, 144, 90, 0.5), 0 0 100px rgba(184, 144, 90, 0.25);
    }
}

.oracle-thinking-message {
    color: var(--oracle-cream, #FDFAF7);
    font-size: 1.05rem;
    font-style: italic;
    text-align: center;
    max-width: 320px;
    min-height: 2.4em;
    opacity: 0;
    animation: messageAppear 0.6s ease forwards;
    letter-spacing: 0.01em;
}

@keyframes messageAppear {
    0% {
        opacity: 0;
        transform: translateY(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.oracle-thinking-dots {
    display: flex;
    gap: 0.35rem;
    margin-top: 1.2rem;
}

.oracle-thinking-dots span {
    width: 7px;
    height: 7px;
    background: var(--oracle-gold, #E8C4A0);
    border-radius: 50%;
    animation: thinkingDot 1.4s ease-in-out infinite;
}

.oracle-thinking-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.oracle-thinking-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes thinkingDot {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    30% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Star rating */
.videaste-stars .star-filled {
    color: var(--oracle-gold);
}

.videaste-stars .star-empty {
    color: var(--oracle-sand);
}

/* Card */
.videaste-card {
    transition: var(--oracle-transition);
    border: 1px solid var(--bs-border-color);
}

.videaste-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--oracle-gold-border);
}

.videaste-card .card-title a {
    color: var(--oracle-ink);
    text-decoration: none;
}

.videaste-card .card-title a:hover {
    color: var(--oracle-gold);
}

/* Avatar */
.videaste-avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
    flex-shrink: 0;
}

.videaste-avatar-placeholder {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--oracle-gold-glow);
    color: var(--oracle-gold);
    font-weight: 700;
    font-size: 1.2rem;
}

.videaste-avatar-large {
    width: 100px;
    height: 100px;
    object-fit: cover;
    flex-shrink: 0;
}

.videaste-avatar-large-placeholder {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    background: var(--oracle-gold-glow);
    color: var(--oracle-gold);
    font-weight: 700;
}

/* Platform badges */
.videaste-platforms .badge {
    font-size: 0.7rem;
}

.badge.bg-purple {
    background-color: #8b5cf6 !important;
}

.btn-outline-purple {
    color: #8b5cf6;
    border-color: #8b5cf6;
}

.btn-outline-purple:hover {
    background-color: #8b5cf6;
    color: #fff;
}

/* Detail page */
.videaste-detail .videaste-cover img {
    border: 1px solid var(--bs-border-color);
}

@media (max-width: 767.98px) {
    .videaste-avatar-large,
    .videaste-avatar-large-placeholder {
        width: 70px;
        height: 70px;
    }
}

/* ============================================
   Flou paywall : quand la modal "credits insuffisants" est affichee,
   tout element porteur de data-blur-on-insufficient-credits devient flou
   et non-interactif. Bootstrap pose/retire .show, CSS fait le reste.
   ============================================ */
[data-blur-on-insufficient-credits] {
    transition: filter 0.25s ease-out;
}

body:has(#insufficientCreditsModal.show) [data-blur-on-insufficient-credits] {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
}

/* ==========================================================================
   Pages signification (index par deck + fiche carte)
   Réutilise variables --oracle-* + classes .lazy-image-*
   ========================================================================== */

.signif-page { padding-top: 0; }

/* ─── HERO immersif ────────────────────────────────────────── */
.signif-hero {
    position: relative;
    padding: 140px 0 60px;
    overflow: hidden;
    background-image: var(--hero-bg, none);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
@media (max-width: 768px) {
    .signif-hero { padding: 110px 0 40px; background-attachment: scroll; }
}
.signif-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-bg, none) center/cover;
    filter: blur(28px) brightness(0.45);
    transform: scale(1.1);
    z-index: 0;
}
.signif-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(26, 12, 26, 0.75) 0%,
        rgba(42, 16, 42, 0.85) 50%,
        rgba(26, 12, 26, 0.92) 100%);
    z-index: 1;
}
.signif-hero-content { position: relative; z-index: 2; text-align: center; color: #fff; }
.signif-hero-breadcrumb { display: flex; justify-content: center; }
.signif-hero-breadcrumb .breadcrumb { background: transparent; }
.signif-hero-breadcrumb .breadcrumb-item,
.signif-hero-breadcrumb .breadcrumb-item a { color: rgba(255, 255, 255, 0.75); }
.signif-hero-breadcrumb .breadcrumb-item.active { color: var(--oracle-gold); }
.signif-hero-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, 0.4); }

.signif-hero-title { margin: 0.75rem 0 1.5rem; font-family: var(--oracle-font-display, 'Cinzel'), serif; line-height: 1.15; }
.signif-hero-eyebrow {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--oracle-gold);
    margin-bottom: 0.4rem;
}
.signif-hero-deck-name {
    display: block;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.signif-hero-stats {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}
.signif-hero-stat strong {
    color: var(--oracle-gold);
    font-family: var(--oracle-font-display, 'Cinzel'), serif;
    font-size: 1.4em;
    font-weight: 600;
    margin-right: 0.25rem;
}
.signif-hero-divider { width: 1px; height: 18px; background: rgba(255, 255, 255, 0.25); }

.signif-hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.signif-hero-actions .btn-outline-light { color: rgba(255, 255, 255, 0.95); border-color: rgba(255, 255, 255, 0.55); }
.signif-hero-actions .btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }

/* ─── SWITCHER de deck en cards ─────────────────────────────── */
.signif-switcher { margin-top: 2rem; }
.signif-switcher-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--oracle-gold-dark);
    margin-bottom: 0.75rem;
    font-weight: 500;
}
.signif-switcher-track {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.signif-switcher-track::-webkit-scrollbar { height: 6px; }
.signif-switcher-track::-webkit-scrollbar-thumb { background: var(--oracle-gold-dark); border-radius: 3px; }

.signif-switcher-card {
    flex: 0 0 auto;
    width: 130px;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: var(--oracle-cream, #fdfaf7);
    border: 1px solid var(--oracle-gold-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    scroll-snap-align: start;
    opacity: 0.85;
}
.signif-switcher-card:hover {
    transform: translateY(-3px);
    border-color: var(--oracle-gold);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    color: inherit;
    text-decoration: none;
    opacity: 1;
}
.signif-switcher-card.is-active {
    border-color: var(--oracle-gold);
    box-shadow: 0 0 0 3px var(--oracle-gold-glow), 0 6px 20px rgba(0, 0, 0, 0.15);
    opacity: 1;
}
.signif-switcher-card-img {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--oracle-sand, #ede5e0);
    position: relative;
}
.signif-switcher-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.4s ease;
}
.signif-switcher-card:hover .signif-switcher-card-img img { transform: scale(1.05); }
.signif-switcher-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--oracle-font-display, 'Cinzel'), serif;
    font-size: 2.2rem;
    color: var(--oracle-gold-dark);
}
.signif-switcher-card-meta { padding: 0.5rem 0.65rem 0.6rem; text-align: center; }
.signif-switcher-card-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--oracle-charcoal);
    line-height: 1.2;
    margin-bottom: 0.15rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.signif-switcher-card-count { font-size: 0.72rem; color: var(--oracle-stone); }

/* ─── INTRO éditoriale (drop cap) ────────────────────────────── */
.signif-intro {
    background: var(--oracle-cream, #fdfaf7);
    border: 1px solid var(--oracle-gold-border);
    border-radius: 14px;
    padding: 2rem 2.25rem;
    color: var(--oracle-charcoal);
    line-height: 1.75;
    position: relative;
}
.signif-intro-content { font-size: 1.05rem; transition: max-height 0.3s ease; }
.signif-intro-content.read-more-truncated {
    -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
}
.signif-intro-content > p:first-child::first-letter,
.signif-intro-content > div:first-child > p:first-child::first-letter {
    font-family: var(--oracle-font-display, 'Cinzel'), serif;
    font-size: 3.5rem;
    line-height: 1;
    float: left;
    margin-right: 0.5rem;
    margin-top: 0.3rem;
    color: var(--oracle-gold-dark);
    font-weight: 600;
}
.signif-intro-content p { margin-bottom: 0.85rem; }
.signif-intro-content blockquote {
    border-left: 3px solid var(--oracle-gold);
    padding-left: 1rem;
    color: var(--oracle-stone);
    font-style: italic;
}
.signif-intro-toggle {
    color: var(--oracle-gold-dark) !important;
    text-decoration: underline;
    padding: 0.5rem 0 0;
    font-size: 0.92rem;
}

/* ─── FILTRES ────────────────────────────────────────────────── */
.signif-filters { position: relative; }
.signif-filters-bar { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }

.signif-search { flex: 1 1 240px; position: relative; min-width: 220px; }
.signif-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--oracle-stone);
    pointer-events: none;
}
.signif-search-input {
    width: 100%;
    padding: 0.7rem 2.5rem 0.7rem 2.6rem;
    border: 1px solid var(--oracle-gold-border);
    border-radius: 999px;
    background: var(--oracle-cream, #fdfaf7);
    color: var(--oracle-charcoal);
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.signif-search-input:focus {
    outline: none;
    border-color: var(--oracle-gold);
    box-shadow: 0 0 0 3px var(--oracle-gold-glow);
}
.signif-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--oracle-stone);
    text-decoration: none;
    font-size: 1.4rem;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.signif-search-clear:hover { background: var(--oracle-sand); color: var(--oracle-charcoal); }

.signif-filters-toggle { position: relative; }
.signif-filters-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 10px;
    height: 10px;
    background: var(--oracle-gold);
    border: 2px solid #fff;
    border-radius: 50%;
}

.signif-filters-count { margin-left: auto; color: var(--oracle-stone); font-size: 0.92rem; }
.signif-filters-count strong { color: var(--oracle-gold-dark); font-size: 1.1em; }

.signif-filters-panel {
    display: none;
    margin-top: 0.85rem;
    padding: 1.25rem 1.5rem;
    background: var(--oracle-cream);
    border: 1px solid var(--oracle-gold-border);
    border-radius: 12px;
}
.signif-filters-panel.is-open { display: block; }

.signif-filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}
.signif-filter-group:last-child { margin-bottom: 0; }
.signif-filter-label { font-weight: 500; color: var(--oracle-charcoal); font-size: 0.9rem; min-width: 70px; }

.signif-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.signif-chip { cursor: pointer; user-select: none; }
.signif-chip input { display: none; }
.signif-chip > span {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--oracle-gold-border);
    color: var(--oracle-charcoal);
    font-size: 0.85rem;
    transition: all 0.15s ease;
}
.signif-chip:hover > span { border-color: var(--oracle-gold); background: var(--oracle-gold-glow); }
.signif-chip.is-active > span {
    background: var(--oracle-gold);
    border-color: var(--oracle-gold);
    color: var(--oracle-dark);
    font-weight: 500;
}

/* ─── ANCRE de la grille — offset navbar fixed-top ───────────── */
#signif-grid {
    scroll-margin-top: 100px;
}
@media (max-width: 768px) {
    #signif-grid { scroll-margin-top: 88px; }
}

/* ─── SECTIONS (Tarot grouped) ───────────────────────────────── */
.signif-section { margin-bottom: 3rem; }
.signif-section-title {
    font-family: var(--oracle-font-display, 'Cinzel'), serif;
    font-size: 1.5rem;
    color: var(--oracle-gold-dark);
    margin: 1.5rem 0 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--oracle-gold-border);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.signif-section-count {
    font-family: var(--oracle-font-body, 'Source Sans 3'), sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--oracle-stone);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.signif-section--fire .signif-section-title { border-bottom-color: rgba(220, 80, 50, 0.4); }
.signif-section--water .signif-section-title { border-bottom-color: rgba(60, 130, 200, 0.4); }
.signif-section--air .signif-section-title { border-bottom-color: rgba(180, 200, 220, 0.4); }
.signif-section--earth .signif-section-title { border-bottom-color: rgba(120, 90, 60, 0.4); }

/* ─── TILES de cartes ─────────────────────────────────────────── */
.signif-tile { display: block; text-decoration: none; color: inherit; transition: transform 0.25s ease; }
.signif-tile:hover { transform: translateY(-4px); color: inherit; text-decoration: none; }

.signif-tile-img-wrap {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--oracle-gold-border);
    background: var(--oracle-sand);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.signif-tile:hover .signif-tile-img-wrap {
    border-color: var(--oracle-gold);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--oracle-gold-glow);
}

.signif-tile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.signif-tile:hover .signif-tile-img { transform: scale(1.07); }

.signif-tile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--oracle-aubergine), var(--oracle-dark));
}
.signif-tile-placeholder span {
    font-family: var(--oracle-font-display, 'Cinzel'), serif;
    font-size: 3rem;
    color: var(--oracle-gold);
    opacity: 0.6;
}

.signif-tile-number {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(26, 12, 26, 0.85);
    color: var(--oracle-gold);
    font-family: var(--oracle-font-display, 'Cinzel'), serif;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--oracle-gold-border);
    backdrop-filter: blur(4px);
}

.signif-tile-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 0.85rem;
    background: linear-gradient(to top,
        rgba(26, 12, 26, 0.95) 0%,
        rgba(26, 12, 26, 0.7) 60%,
        transparent 100%);
    color: #fff;
    z-index: 1;
}
.signif-tile-name {
    font-family: var(--oracle-font-display, 'Cinzel'), serif;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.25;
    margin: 0 0 0.15rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #fff;
}
.signif-tile-cta {
    font-size: 0.72rem;
    color: var(--oracle-gold-light);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    display: inline-block;
}
.signif-tile:hover .signif-tile-cta { opacity: 1; transform: translateY(0); }

/* ─── ÉTAT VIDE ──────────────────────────────────────────────── */
.signif-empty { text-align: center; padding: 4rem 1rem; color: var(--oracle-stone); }
.signif-empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.signif-empty-title {
    font-family: var(--oracle-font-display, 'Cinzel'), serif;
    color: var(--oracle-charcoal);
    margin-bottom: 0.5rem;
}

/* ─── PAGINATION ─────────────────────────────────────────────── */
.signif-pagination { margin-top: 2rem; }
.signif-bottom-cta { color: var(--oracle-stone); }

/* ─── SCROLL TO TOP ──────────────────────────────────────────── */
.signif-scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--oracle-gold);
    color: var(--oracle-dark);
    font-size: 1.4rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease;
    z-index: 100;
    line-height: 1;
}
.signif-scroll-top:hover { background: var(--oracle-gold-light); transform: translateY(-3px); }
.signif-scroll-top.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }

@media (max-width: 575px) {
    .signif-scroll-top { bottom: 16px; right: 16px; width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
    .signif-tile, .signif-tile-img, .signif-switcher-card, .signif-switcher-card-img img, .signif-scroll-top {
        transition: none !important;
    }
    .signif-hero { background-attachment: scroll; }
}

/* ============================================================
   FICHE signification (show.html.twig) — palette --oracle-*
   ============================================================ */

/* Hero compact + image cliquable (zoom modal) */
.signification-hero-image {
    max-width: 160px;
    margin: 0 auto;
    text-align: center;
}
.signification-hero-image img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 1px solid var(--oracle-gold-border);
    box-shadow: 0 10px 28px rgba(31, 26, 22, 0.16), 0 0 0 1px rgba(232, 196, 160, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.signification-hero-image img.card-image-zoomable {
    cursor: zoom-in;
}
.signification-hero-image img.card-image-zoomable:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 22px 56px rgba(31, 26, 22, 0.28), 0 0 0 2px var(--oracle-gold);
}
.signification-hero-image-caption {
    display: block;
    margin-top: 0.65rem;
    font-size: 0.78rem;
    color: var(--oracle-stone);
    letter-spacing: 0.02em;
    opacity: 0.85;
}
.signification-hero-title {
    font-size: 2.4rem;
    line-height: 1.15;
    margin-bottom: 0.4rem;
}
@media (max-width: 767.98px) {
    .signification-hero-title { font-size: 1.9rem; text-align: center; }
}
.signification-hero-eyebrow {
    color: var(--oracle-stone);
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.85rem;
}
@media (max-width: 767.98px) {
    .signification-hero-eyebrow { text-align: center; }
}

.signification-show .signification-section-title,
.signification-show .signification-subsection-title {
    font-family: var(--oracle-font-display, 'Cinzel'), serif;
}
.signification-show .signification-section-title {
    font-size: 1.5rem;
    color: var(--oracle-gold-dark);
    margin: 1.5rem 0 1rem;
    border-bottom: 1px solid var(--oracle-gold-border);
    padding-bottom: 0.5rem;
}
.signification-show .signification-subsection-title {
    font-size: 1.15rem;
    color: var(--oracle-charcoal);
    margin: 1rem 0 0.5rem;
}
.signification-show .signification-prose {
    line-height: 1.75;
    color: var(--oracle-charcoal);
}
.signification-show .signification-prose blockquote {
    border-left: 3px solid var(--oracle-gold);
    padding-left: 1rem;
    color: var(--oracle-stone);
    font-style: italic;
}

.signification-correspondences { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.signification-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: var(--oracle-gold-glow);
    border: 1px solid var(--oracle-gold-border);
    color: var(--oracle-charcoal);
    font-size: 0.85rem;
}

.signification-keywords { margin-top: 1rem; }
.signification-keywords-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--oracle-gold-dark);
    margin-bottom: 0.35rem;
}
.signification-keywords-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.signification-keyword {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--oracle-gold-glow);
    border: 1px solid var(--oracle-gold-border);
    border-radius: 4px;
    font-size: 0.82rem;
    color: var(--oracle-charcoal);
}

.signification-advice-block {
    position: relative;
    background: var(--oracle-cream);
    border-radius: 12px;
    padding: 2.75rem 2.5rem;
    margin: 2rem 0;
    box-shadow: 0 8px 28px rgba(31, 26, 22, 0.06), inset 0 0 0 1px var(--oracle-gold-border);
}
.signification-advice-block::before,
.signification-advice-block::after {
    position: absolute;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 4rem;
    line-height: 1;
    color: var(--oracle-gold);
    opacity: 0.7;
    user-select: none;
}
.signification-advice-block::before {
    content: '\201C';
    top: 0.4rem;
    left: 1rem;
}
.signification-advice-block::after {
    content: '\201D';
    bottom: -0.6rem;
    right: 1rem;
}
.signification-advice-content {
    max-width: 640px;
    margin: 0 auto;
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--oracle-charcoal);
    text-align: center;
}
@media (max-width: 575.98px) {
    .signification-advice-block { padding: 2.25rem 1.5rem; }
    .signification-advice-block::before,
    .signification-advice-block::after { font-size: 3rem; }
    .signification-advice-content { font-size: 1.05rem; }
}

.signification-domain-card {
    position: relative;
    background: var(--oracle-cream);
    border: 1px solid var(--oracle-gold-border);
    border-top: 3px solid var(--theme-color, var(--oracle-gold-dark));
    border-radius: 10px;
    padding: 1.6rem 1.4rem 1.4rem;
    height: 100%;
    box-shadow: 0 4px 14px rgba(31, 26, 22, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.signification-domain-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(31, 26, 22, 0.1);
}
.signification-domain-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
    text-align: center;
}
.signification-domain-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--theme-color, var(--oracle-gold-dark)) 12%, transparent);
}
.signification-domain-icon { font-size: 2rem; line-height: 1; }
.signification-domain-name {
    font-family: var(--oracle-font-display, 'Cinzel'), serif;
    font-size: 1.1rem;
    color: var(--theme-color, var(--oracle-gold-dark));
    font-weight: 600;
}
.signification-domain-body { line-height: 1.75; color: var(--oracle-charcoal); font-size: 0.95rem; }

/* Cards correspondances ésotériques (grille bas de page) */
.signification-correspondence-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    padding: 1.1rem 0.85rem;
    background: var(--oracle-cream);
    border: 1px solid var(--oracle-gold-border);
    border-radius: 10px;
    height: 100%;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.signification-correspondence-card:hover {
    border-color: var(--oracle-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 26, 22, 0.07);
}
.signification-correspondence-icon {
    font-size: 1.85rem;
    line-height: 1;
    color: var(--oracle-gold-dark);
}
.signification-correspondence-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--oracle-stone);
    font-weight: 500;
}
.signification-correspondence-value {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--oracle-charcoal);
    line-height: 1.3;
}

/* ========================================
   CTA blog (BlogPostCta)
   - .blog-cta : bouton de lien vers un tirage
   - .blog-cta--primary | --outline : variantes visuelles
   - .blog-ctas : conteneur (top/bottom). En cas de 2 CTAs, layout duo.
   ======================================== */
.blog-ctas {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
@media (min-width: 768px) {
    .blog-ctas--count-2 {
        flex-direction: row;
    }
    .blog-ctas--count-2 .blog-cta {
        flex: 1 1 0;
    }
}

.blog-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    line-height: 1.3;
    border: 1.5px solid transparent;
    transition: var(--oracle-transition);
    cursor: pointer;
}
.blog-cta-label {
    flex: 1 1 auto;
}
.blog-cta-arrow {
    flex: 0 0 auto;
    font-weight: 400;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-cta:hover .blog-cta-arrow,
.blog-cta:focus-visible .blog-cta-arrow {
    transform: translateX(4px);
}

.blog-cta--primary {
    background: linear-gradient(135deg, var(--oracle-gold-dark), var(--oracle-gold-muted));
    color: var(--oracle-ivory);
    border-color: var(--oracle-gold-dark);
    box-shadow: 0 2px 8px var(--oracle-gold-glow);
}
.blog-cta--primary:hover,
.blog-cta--primary:focus-visible {
    color: var(--oracle-ivory);
    box-shadow: 0 4px 14px rgba(var(--oracle-gold-rgb), 0.4);
    transform: translateY(-1px);
}

.blog-cta--outline {
    background: transparent;
    color: var(--oracle-gold-dark);
    border-color: var(--oracle-gold-dark);
}
.blog-cta--outline:hover,
.blog-cta--outline:focus-visible {
    background: var(--oracle-gold-dark);
    color: var(--oracle-ivory);
    transform: translateY(-1px);
}

/* Aperçu live dans l'admin (mêmes classes — un seul rendu visuel) */
.cta-entry-preview .blog-cta {
    width: 100%;
    pointer-events: none;
}

/* Honeypot anti-spam : hors écran (jamais display:none, plus difficile à détecter). */
.comment-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.blog-comments {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    scroll-margin-top: 100px; /* l'ancre #commentaires tombe sous la navbar fixe */
}

/* Lien « 💬 N commentaires » dans le méta en haut d'article */
.blog-meta-comments-link {
    color: var(--oracle-gold-dark);
    text-decoration: none;
    font-weight: 600;
}
.blog-meta-comments-link:hover {
    text-decoration: underline;
}

/* En-tête visible de la zone commentaires */
.comments-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 14px;
    background: var(--oracle-gold-glow, rgba(184, 144, 90, 0.10));
    border: 1px solid var(--oracle-gold-border, rgba(184, 144, 90, 0.22));
}
.comments-header-icon {
    font-size: 1.6rem;
    line-height: 1;
}
.comments-header-text {
    flex: 1 1 auto;
    min-width: 0;
}
.comments-title {
    font-family: var(--oracle-font-display);
    font-size: 1.35rem;
    margin: 0;
    color: var(--oracle-ink);
}
.comments-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--oracle-ash);
}
.comments-count {
    flex: 0 0 auto;
    min-width: 2.4rem;
    text-align: center;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: var(--oracle-gold-dark);
    color: #fff;
    font-weight: 600;
    font-family: var(--oracle-font-display);
}

/* Formulaire mis en avant dans une carte */
.comment-form-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    margin-bottom: 2rem;
    border-radius: 14px;
    background: var(--oracle-ivory, #fff);
    border: 1px solid var(--oracle-gold-border, rgba(184, 144, 90, 0.22));
    box-shadow: 0 4px 18px rgba(58, 42, 48, 0.06);
}
.comment-form-card-avatar {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--oracle-gold-dark);
    color: #fff;
    font-family: var(--oracle-font-display);
    font-weight: 600;
}
.comment-form-card-body {
    flex: 1 1 auto;
    min-width: 0;
}
.comment-form-card-title {
    font-weight: 600;
    color: var(--oracle-ink);
    margin: 0 0 0.6rem;
}
@media (max-width: 575.98px) {
    /* Sur très petit écran, on retire l'avatar du formulaire pour laisser respirer les champs. */
    .comment-form-card-avatar {
        display: none;
    }
    .comment-form-card {
        padding: 1rem;
    }
}

.comment-form textarea {
    resize: vertical;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment {
    display: flex;
    gap: 0.85rem;
}

.comment-avatar {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--oracle-font-display);
    font-weight: 600;
    color: #fff;
    background: var(--oracle-gold-dark);
    text-transform: uppercase;
}

.comment-main {
    flex: 1 1 auto;
    min-width: 0;
}

.comment-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}

.comment-author {
    font-weight: 600;
    color: var(--oracle-ink);
}

.comment-badge {
    background: var(--oracle-gold);
    color: var(--oracle-ink);
    font-size: 0.7rem;
}

.comment-date,
.comment-edited {
    font-size: 0.8rem;
}

.comment-body {
    color: var(--oracle-charcoal, var(--oracle-ink));
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.comment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.4rem;
}

.comment-action {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    color: var(--oracle-ash);
    cursor: pointer;
    transition: var(--oracle-transition);
}

.comment-action:hover {
    color: var(--oracle-gold-dark);
}

.comment-action--danger:hover {
    color: var(--bs-danger, #dc3545);
}

.comment-like.comment-like--active {
    color: var(--oracle-gold-dark);
    font-weight: 600;
}

.comment-replies {
    margin-top: 1.25rem;
    padding-left: 1.1rem;
    border-left: 2px solid var(--oracle-gold-border, rgba(184, 144, 90, 0.25));
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.comment-form--reply {
    margin-top: 0.75rem;
}

.comment-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--oracle-ash);
}
.comment-empty-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Disparition du formulaire après envoi (visiteur non connecté → en attente de modération) */
.comment-form {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.comment-form.is-vanishing {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.comment-form-success {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    background: var(--oracle-gold-glow, rgba(184, 144, 90, 0.12));
    border: 1px solid var(--oracle-gold-border, rgba(184, 144, 90, 0.25));
    color: var(--oracle-ink);
    animation: comment-fade-in 0.4s ease;
}

@keyframes comment-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.comment-notify-hint {
    font-style: italic;
    opacity: 0.75;
}

/* ========================================
   MODE NUIT — parcours de tirage (tirage, catalogue, reprise, résultat)
   Mobile d'abord ; jetons repris des maquettes V2.
   ======================================== */
.theme-night {
    --night-bg: #140A16;
    --night-surface: #22142A;
    --night-line: #5b4559;
    --night-text: #F4ECE4;
    --night-muted: #A8948C;
    --night-gold: #E8C4A0;
    --night-gold-light: #F0D4B8;
    --night-card: #1C2340;
    --night-ink: #2A1622;
    background: var(--night-bg);
    color: var(--night-text);
}

.theme-night .mystical-bg { display: none; }

/* === Barre réduite === */
.night-bar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(20, 10, 22, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(91, 69, 89, 0.45);
}

.night-bar__inner {
    max-width: 640px;
    min-height: 3.5rem;
    margin: 0 auto;
    padding: 0.375rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.night-bar__brand {
    font-family: var(--oracle-font-display);
    font-size: 1.05rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--night-gold);
    text-decoration: none;
}

.night-bar__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.night-bar__link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 0.25rem;
    background: none;
    border: 0;
    color: var(--night-gold);
    font-size: 0.95rem;
    text-decoration: none;
}

.night-bar__link:hover { color: var(--night-gold-light); }

.night-page { min-height: calc(100dvh - 3.5rem); }

/* === Rituel === */
.ritual {
    max-width: 560px;
    margin: 0 auto;
    padding: 0.75rem 1rem 8rem;
}

.ritual-step[hidden],
.ritual-field[hidden],
.ritual-choices[hidden] { display: none; }

.ritual-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.ritual-progress span {
    height: 3px;
    border-radius: 2px;
    background: var(--night-line);
    transition: background 0.4s ease;
}

.ritual-progress span.is-done { background: var(--night-gold); }
.ritual.is-revealed .ritual-progress { visibility: hidden; }

.ritual-eyebrow-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.ritual-eyebrow {
    margin: 0 0 0.75rem;
    font-family: var(--oracle-font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--night-gold);
}

.ritual-link {
    min-height: 44px;
    padding: 0;
    background: none;
    border: 0;
    color: var(--night-gold-light);
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ritual-choices {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--night-surface);
    border: 1px solid var(--night-line);
    border-radius: 1rem;
}

.ritual-label {
    font-size: 0.85rem;
    color: var(--night-muted);
}

.ritual-select,
.ritual-input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--night-surface);
    color: var(--night-text);
    border: 1px solid var(--night-line);
    border-radius: 1rem;
    font-size: 1.05rem;
}

.ritual-select:focus,
.ritual-input:focus {
    outline: 2px solid var(--night-gold);
    outline-offset: 1px;
}

.ritual-input::placeholder { color: var(--night-muted); }
.ritual-input[type="date"] { color-scheme: dark; }
.ritual-question { min-height: 5.5rem; resize: vertical; }

.ritual-title {
    margin: 0.25rem 0;
    font-family: var(--oracle-font-display);
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    line-height: 1.15;
    color: var(--night-gold-light);
}

.ritual-heading {
    margin: 0;
    font-family: var(--oracle-font-display);
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.2;
    color: var(--night-gold-light);
}

.ritual-subtitle {
    margin: 0 0 1.25rem;
    font-size: 1.1rem;
    color: var(--night-text);
}

.ritual-intention {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.ritual-field-error {
    font-size: 0.85rem;
    color: #F2A7A7;
}

.ritual-field-error:empty { display: none; }

.ritual-help {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--night-muted);
}

.ritual-chips {
    display: flex;
    gap: 0.5rem;
    margin: 0 -1rem;
    padding: 0.75rem 1rem 0.25rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.ritual-chips::-webkit-scrollbar { display: none; }

.ritual-chip {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--night-text);
    border: 1px solid var(--night-line);
    border-radius: 999px;
    font-size: 0.95rem;
    white-space: nowrap;
    scroll-snap-align: start;
}

.ritual-chip:hover,
.ritual-chip.is-active {
    border-color: var(--night-gold);
    color: var(--night-gold-light);
}

.ritual-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Dos de carte : image du jeu (--deck-back), sinon dos nuit à double filet doré */
.ritual-card-back {
    display: block;
    border-radius: 0.5rem;
    background: var(--deck-back, none) center / cover, var(--night-card);
    border: 1px solid rgba(232, 196, 160, 0.6);
    box-shadow: inset 0 0 0 4px var(--night-card), inset 0 0 0 5px rgba(232, 196, 160, 0.35);
}

/* === Paquet à maintenir === */
.ritual-pile-stage {
    margin-top: 2rem;
    text-align: center;
}

.ritual-pile {
    position: relative;
    width: 7.5rem;
    aspect-ratio: 5 / 8;
    margin: 0 auto 1.25rem;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.ritual-pile .ritual-card-back {
    position: absolute;
    inset: 0;
    transform: translate(calc(var(--depth) * 1.5px), calc(var(--depth) * -2px)) rotate(calc((var(--depth) - 2.5) * 1.2deg));
}

.ritual-pile-stage.is-locked .ritual-pile { opacity: 0.55; cursor: not-allowed; }
.ritual-pile-stage.is-shuffling .ritual-card-back { animation: ritual-shuffle 0.35s ease-in-out infinite alternate; animation-delay: calc(var(--depth) * -60ms); }
.ritual-pile-stage.is-riffling .ritual-card-back { animation: ritual-riffle 1.1s ease-in-out both; animation-delay: calc(var(--depth) * 40ms); }
.ritual-pile-stage.is-nudging .ritual-pile { animation: ritual-nudge 0.4s ease; }

@keyframes ritual-shuffle {
    from { transform: translateX(-10px) rotate(-4deg); }
    to { transform: translateX(10px) rotate(4deg); }
}

@keyframes ritual-riffle {
    40% { transform: translateX(calc((var(--depth) - 2.5) * 14px)) rotate(calc((var(--depth) - 2.5) * 6deg)); }
    100% { transform: translateY(-8px); opacity: 0; }
}

@keyframes ritual-nudge {
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.ritual-hint {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: var(--night-text);
}

.ritual-note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--night-gold);
}

/* === Éventail en arc et emplacements === */
.ritual-cards-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.ritual-counter {
    flex: 0 0 auto;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--night-line);
    border-radius: 999px;
    font-weight: 600;
    color: var(--night-gold-light);
}

.ritual-fan {
    position: relative;
    margin: 0.5rem -1rem 1rem;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
}

.ritual-fan-card {
    position: absolute;
    top: 24px;
    left: calc(50% - var(--card-w) / 2);
    width: var(--card-w);
    aspect-ratio: 5 / 8;
    transform-origin: 50% var(--fan-radius);
    transform: rotate(var(--angle));
    transition: transform 0.18s ease, opacity 0.25s ease, box-shadow 0.18s ease;
}

.ritual-fan-card.is-hovered {
    z-index: 2;
    transform: rotate(var(--angle)) translateY(-16px);
    box-shadow: 0 0 0 1px var(--night-gold), 0 0 18px rgba(232, 196, 160, 0.45);
}

.ritual-fan-card.is-chosen {
    opacity: 0;
    transform: rotate(var(--angle)) translateY(-40px);
}

.ritual-slots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 0.5rem;
}

.ritual-slot {
    width: calc((100% - 2rem) / 5);
    max-width: 4.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    background: none;
    border: 0;
    color: var(--night-muted);
}

.ritual-slot-card {
    width: 100%;
    aspect-ratio: 5 / 8;
    border: 1px dashed var(--night-line);
    border-radius: 0.45rem;
}

.ritual-slot.is-filled .ritual-slot-card {
    border-style: solid;
    border-color: rgba(232, 196, 160, 0.6);
    background: var(--deck-back, none) center / cover, var(--night-card);
    animation: ritual-land 0.35s ease;
}

.ritual-slot-label {
    font-size: 0.75rem;
    line-height: 1.15;
    text-align: center;
    hyphens: auto;
}

.ritual-slot.is-filled .ritual-slot-label { color: var(--night-text); }

@keyframes ritual-land {
    from { transform: translateY(-12px); opacity: 0; }
}

/* === Barre d'action fixe === */
.ritual-actionbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1020;
    padding: 1.25rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--night-bg) 72%, transparent);
    text-align: center;
}

.ritual-actionbar > * {
    max-width: 528px;
    margin-left: auto;
    margin-right: auto;
}

.ritual-cta {
    display: block;
    width: 100%;
    min-height: 3.25rem;
    border: 1px solid var(--night-gold);
    border-radius: 999px;
    background: var(--night-gold);
    color: var(--night-ink);
    font-family: var(--oracle-font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ritual-cta[hidden] { display: none; }
.ritual-cta:disabled { background: transparent; color: var(--night-gold); }
.ritual-cta.is-loading { opacity: 0.6; }

.ritual-actionbar .ritual-hint {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--night-muted);
}

/* === Révélation et reprise === */
.ritual-reveal-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 0.5rem;
    margin: 1.5rem 0 1rem;
    perspective: 900px;
}

.ritual-flip {
    width: calc((100% - 2rem) / 5);
    max-width: 7rem;
    margin: 0;
    text-align: center;
}

.ritual-reveal-cards:has(> .ritual-flip:nth-child(3):last-child) .ritual-flip,
.ritual-reveal-cards:has(> .ritual-flip:nth-child(2):last-child) .ritual-flip,
.ritual-reveal-cards:has(> .ritual-flip:only-child) .ritual-flip { width: calc((100% - 1rem) / 3); }

.ritual-flip-inner {
    position: relative;
    display: block;
    aspect-ratio: 5 / 8;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ritual-flip.is-flipped .ritual-flip-inner { transform: rotateY(180deg); }

.ritual-flip .ritual-card-back,
.ritual-flip-front {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    backface-visibility: hidden;
}

.ritual-flip-front {
    transform: rotateY(180deg);
    object-fit: cover;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.ritual-flip-front.is-reversed { transform: rotateY(180deg) rotate(180deg); }

.ritual-flip figcaption {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: var(--night-muted);
}

.ritual-reveal-names {
    text-align: center;
    font-size: 0.95rem;
    color: var(--night-gold);
}

.ritual-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.25rem;
    text-align: center;
    color: var(--night-text);
}

.ritual-status.is-stopped { color: var(--night-gold-light); }

.ritual-spinner {
    flex: 0 0 auto;
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid var(--night-line);
    border-top-color: var(--night-gold);
    border-radius: 50%;
    animation: ritual-spin 1s linear infinite;
}

.ritual-status.is-stopped .ritual-spinner { display: none; }

@keyframes ritual-spin {
    to { transform: rotate(360deg); }
}

.ritual-error {
    margin-top: 1rem;
    text-align: center;
    color: #F2A7A7;
}

.ritual-error[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
    .ritual *,
    .ritual *::before,
    .ritual *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === Texte « À propos » et catalogue en mode nuit === */
.night-about {
    max-width: 560px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
    border-top: 1px solid rgba(91, 69, 89, 0.5);
    color: var(--night-muted);
}

.night-about p { color: var(--night-muted); }

/* Le texte de présentation ne sert qu'à l'étape de la question (ensuite, la barre d'action occupe le bas) */
.night-page:has([data-reading-target="questionStep"][hidden]) .night-about { display: none; }

.night-about__title {
    font-family: var(--oracle-font-display);
    font-size: 1.1rem;
    color: var(--night-gold);
}

.theme-night .night-catalog .mystical-title,
.theme-night .night-catalog .section-title { color: var(--night-gold-light); }

.theme-night .night-catalog .mystical-subtitle,
.theme-night .night-catalog .text-muted-light { color: var(--night-muted) !important; }

.theme-night .reading-type-card {
    background: var(--night-surface);
    border: 1px solid var(--night-line);
    color: var(--night-text);
}

.theme-night .reading-type-card .card-title { color: var(--night-gold-light); }
.theme-night .reading-type-card .card-text { color: var(--night-muted); }

/* === Résultat : lecture en stories === */
.reading-result { padding-bottom: 6.5rem; }

.stories {
    max-width: 560px;
    margin: 0 auto;
    padding: 0.5rem 1rem 1rem;
    touch-action: pan-y;
}

.stories-progress {
    display: flex;
    gap: 0.3rem;
}

.stories-bar {
    position: relative;
    flex: 1;
    height: 16px;
    padding: 0;
    background: none;
    border: 0;
}

.stories-bar::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 6px;
    height: 3px;
    border-radius: 2px;
    background: var(--night-line);
    transition: background 0.3s ease;
}

.stories-bar.is-done::before,
.stories-bar.is-current::before { background: var(--night-gold); }

.stories-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.stories-nav {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    color: var(--night-text);
    font-size: 1.75rem;
    line-height: 1;
    text-decoration: none;
}

.stories-nav:hover { color: var(--night-gold-light); }
.stories-nav.is-hidden { visibility: hidden; }

.stories-label {
    font-size: 0.9rem;
    color: var(--night-muted);
    text-align: center;
}

.story[hidden] { display: none; }
.story { animation: story-in 0.25s ease; }

@keyframes story-in {
    from { opacity: 0; transform: translateX(12px); }
}

.story-question {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--night-text);
}

.story-trend {
    margin: 0;
    font-family: var(--oracle-font-display);
    font-size: clamp(2.4rem, 11vw, 3.4rem);
    line-height: 1.05;
    color: var(--night-gold-light);
}

.story-trend--open { font-size: clamp(1.8rem, 8vw, 2.4rem); margin-bottom: 1rem; }

.story-nuance {
    margin: 0.25rem 0 1.25rem;
    font-size: 1.35rem;
    color: var(--night-text);
}

.story-text {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--night-text);
}

.story-thumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 1.25rem 0;
}

.story-thumb {
    width: 3rem;
    padding: 0;
    overflow: hidden;
    background: var(--night-card);
    border: 1px solid rgba(232, 196, 160, 0.4);
    border-radius: 0.35rem;
}

.story-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 8;
    object-fit: cover;
}

.story-link {
    min-height: 44px;
    padding: 0 0.25rem;
    background: none;
    border: 0;
    color: var(--night-gold-light);
    font-size: 1rem;
}

.theme-night img.is-reversed { transform: rotate(180deg); }

.story--card { text-align: center; }

.story-card-image {
    display: block;
    max-width: 70%;
    max-height: 42vh;
    margin: 0 auto 1.25rem;
    border: 2px solid rgba(232, 196, 160, 0.55);
    border-radius: 0.6rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.story-card-name {
    margin: 0 0 1rem;
    font-family: var(--oracle-font-display);
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    color: var(--night-gold-light);
}

.story-badge {
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--night-line);
    border-radius: 999px;
    font-family: var(--oracle-font-body);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--night-muted);
    vertical-align: middle;
}

.story-keywords {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.story-keywords li {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--night-line);
    border-radius: 999px;
    color: var(--night-text);
}

.story-deadline {
    display: inline-block;
    margin: 0 0 1.5rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(232, 196, 160, 0.45);
    border-radius: 999px;
    color: var(--night-gold);
}

.story-resonance {
    margin: 2rem 0 1rem;
    padding: 1.25rem;
    background: var(--night-surface);
    border: 1px solid var(--night-line);
    border-radius: 1rem;
    text-align: center;
}

.story-resonance__title {
    font-family: var(--oracle-font-display);
    font-size: 1.2rem;
    color: var(--night-gold-light);
}

.story-resonance .ritual-toggle { justify-content: center; }

.story-resonance__thanks {
    margin: 0.75rem 0 0;
    color: var(--night-muted);
}

.story-next { text-align: center; }

.theme-night .ai-disclosure { color: var(--night-muted); }

.legacy-reading {
    margin: 1rem 0;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--night-text);
}

.legacy-reading :is(p, li, strong, em) { color: inherit; }

.legacy-reading h1,
.legacy-reading h2,
.legacy-reading h3 {
    margin-top: 1.5rem;
    font-family: var(--oracle-font-display);
    font-size: 1.2rem;
    color: var(--night-gold-light);
}

.belline-planetary-profile .profile-row { margin-bottom: 0.75rem; }

.belline-planetary-profile .profile-row__head {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.belline-planetary-profile .profile-bar-track {
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
}

.belline-planetary-profile .profile-bar-fill { height: 100%; }

/* === Barre d'actions du résultat === */
.result-actionbar {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    z-index: 1020;
    max-width: 536px;
    margin: 0 auto;
    display: flex;
    background: rgba(34, 20, 42, 0.96);
    border: 1px solid var(--night-line);
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
}

.result-action {
    flex: 1;
    min-height: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    padding: 0.5rem 0.25rem;
    background: none;
    border: 0;
    color: var(--night-text);
}

.result-action + .result-action { border-left: 1px solid rgba(91, 69, 89, 0.5); }
.result-action:disabled { opacity: 0.6; }

.result-action__icon {
    font-size: 1.15rem;
    line-height: 1;
    color: var(--night-gold);
}

.result-action__label {
    font-size: 0.95rem;
    font-weight: 600;
}

.result-action__price {
    font-size: 0.75rem;
    color: var(--night-gold);
}

/* === Conversation : panneau qui monte du bas === */
.night-sheet.offcanvas-bottom {
    --bs-offcanvas-height: min(88dvh, 52rem);
    max-width: 640px;
    margin: 0 auto;
    background: var(--night-surface);
    color: var(--night-text);
    border-top: 1px solid var(--night-line);
    border-radius: 1.25rem 1.25rem 0 0;
}

.night-sheet .offcanvas-header { border-bottom: 1px solid rgba(91, 69, 89, 0.5); }

.night-sheet__title {
    margin: 0;
    font-family: var(--oracle-font-display);
    font-size: 1.15rem;
    color: var(--night-gold-light);
}

.night-sheet__empty {
    margin: 1rem 0;
    text-align: center;
    color: var(--night-muted);
}

.night-sheet__footer {
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(91, 69, 89, 0.5);
}

.night-sheet .chat-messages-container { padding: 0; }
.night-sheet .chat-messages-container::after { display: none; }
.night-sheet .chat-message .message-bubble { max-width: 88%; box-shadow: none; }
.night-sheet .message-bubble.ai-bubble { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--night-line); }
.night-sheet .message-bubble .message-text { color: var(--night-text); }
.night-sheet .message-bubble .message-time { color: var(--night-muted); }
.night-sheet .message-bubble.user-bubble { background: var(--night-gold); }
.night-sheet .message-bubble.user-bubble .message-text { color: var(--night-ink); }
.night-sheet .message-bubble.user-bubble .message-time { color: rgba(42, 22, 34, 0.6); }
.night-sheet .clarification-cta,
.night-sheet .tile-card-name { color: var(--night-text); }
.night-sheet .tile-position-name,
.night-sheet .clarification-pick-title,
.night-sheet .clarification-zone .btn-link { color: var(--night-muted); }

.night-sheet .chat-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.night-sheet .chat-send {
    flex: 0 0 auto;
    width: 3.25rem;
    letter-spacing: 0;
}

.night-sheet .chat-limit-reached {
    text-align: center;
    color: var(--night-muted);
}

.clarification-card-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0;
}

.clarification-card-image {
    width: 3.5rem;
    aspect-ratio: 5 / 8;
    object-fit: cover;
    border-radius: 0.35rem;
}

/* === Fenêtres en panneau (connexion, mur de crédits) : panneau du bas sur mobile, peau de nuit === */
.auth-reading-only { display: none; }
#authModal.is-reading .auth-reading-only { display: revert; }
#authModal.is-reading .auth-default-only { display: none; }

.sheet-badge {
    margin-left: auto;
    margin-right: 0.75rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(232, 196, 160, 0.16);
    color: #B8905A;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .modal .sheet-dialog {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        min-height: 0;
        margin: 0;
        align-items: flex-end;
    }

    .modal.fade .sheet-dialog { transform: translateY(100%); transition: transform 0.3s ease-out; }
    .modal.show .sheet-dialog { transform: none; }

    .modal .sheet-dialog .modal-content {
        max-height: 92dvh;
        overflow-y: auto;
        border: 0;
        border-radius: 1.25rem 1.25rem 0 0;
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* La fenêtre de connexion prend la peau de nuit sur le parcours de tirage ; le mur l'a toujours. */
.night-modal {
    --night-bg: #140A16;
    --night-surface: #22142A;
    --night-line: #5b4559;
    --night-text: #F4ECE4;
    --night-muted: #A8948C;
    --night-gold: #E8C4A0;
    --night-gold-light: #F0D4B8;
    --night-ink: #2A1622;
}

:is(.theme-night #authModal, .night-modal) .modal-content {
    background: var(--night-surface);
    color: var(--night-text);
    border: 1px solid var(--night-line);
}

:is(.theme-night #authModal, .night-modal) :is(.modal-header, .modal-body) { background: transparent; }
:is(.theme-night #authModal, .night-modal) .modal-header { border-bottom-color: rgba(91, 69, 89, 0.5); }
:is(.theme-night #authModal, .night-modal) .modal-title { font-family: var(--oracle-font-display); color: var(--night-gold-light); }
:is(.theme-night #authModal, .night-modal) .btn-close { filter: invert(1) grayscale(1) brightness(1.6); }
:is(.theme-night #authModal, .night-modal) .sheet-badge { color: var(--night-gold); }
.theme-night #authModal :is(.form-label, .email-code-intro, .text-muted-light, .form-text, .auth-reading-only) { color: var(--night-muted) !important; }

.theme-night #authModal .form-control {
    background: var(--night-bg);
    color: var(--night-text);
    border-color: var(--night-line);
    border-radius: 999px;
    padding: 0.8rem 1.1rem;
}

.theme-night #authModal .form-control::placeholder { color: var(--night-muted); }

.theme-night #authModal .btn-primary {
    background: var(--night-gold);
    border-color: var(--night-gold);
    color: var(--night-ink);
    border-radius: 999px;
    font-family: var(--oracle-font-display);
    letter-spacing: 0.08em;
}

.theme-night #authModal .btn-google { border-radius: 999px; }
.theme-night #authModal .btn-link { color: var(--night-gold-light); }

/* === Mur de crédits et packs comptés en tirages === */
.credits-wall__message { color: var(--night-text); }

.credits-wall__gift {
    margin: 1rem 0 1.25rem;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--night-line);
    border-radius: 1rem;
}

.credits-wall__gift-title {
    margin: 0;
    font-weight: 600;
    color: var(--night-text);
}

.credits-wall__gift-title::first-letter { text-transform: uppercase; }

.credits-wall__gift-text {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    color: var(--night-muted);
}

.pack-grid__tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 0.75rem 0 1.25rem;
}

.pack-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 1.1rem 0.4rem 0.8rem;
    border: 1px solid var(--night-line);
    border-radius: 1rem;
    color: var(--night-text);
    text-align: center;
    cursor: pointer;
}

.pack-tile input { position: absolute; opacity: 0; pointer-events: none; }
.pack-tile:has(input:checked) { border-color: var(--night-gold); background: rgba(232, 196, 160, 0.08); }
.pack-tile:has(input:focus-visible) { outline: 2px solid var(--night-gold); outline-offset: 2px; }

.pack-tile__label {
    position: absolute;
    top: -0.65rem;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background: var(--night-gold);
    color: var(--night-ink);
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.pack-tile__count {
    font-family: var(--oracle-font-display);
    font-size: 2rem;
    line-height: 1.1;
    color: var(--night-gold-light);
}

.pack-tile__unit { font-size: 0.85rem; color: var(--night-muted); }
.pack-tile__price { margin-top: 0.35rem; font-weight: 700; }
.pack-tile__each { font-size: 0.75rem; color: var(--night-muted); }

.pack-grid__note {
    margin: 0.6rem 0 0;
    font-size: 0.8rem;
    text-align: center;
    color: var(--night-muted);
}

/* Page /credits (claire) : la grille des packs garde sa scène de nuit */
.pack-stage {
    --night-line: #5b4559;
    --night-text: #F4ECE4;
    --night-muted: #A8948C;
    --night-gold: #E8C4A0;
    --night-gold-light: #F0D4B8;
    --night-ink: #2A1622;
    padding: 1.25rem;
    background: #22142A;
    border-radius: 1.25rem;
    color: var(--night-text);
}

.credits-wall__subscription {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--night-line);
    border-radius: 1rem;
    color: var(--night-text);
    text-decoration: none;
}

.credits-wall__subscription strong {
    display: block;
    font-family: var(--oracle-font-display);
    color: var(--night-gold-light);
}

.credits-wall__subscription > span:first-child,
.credits-wall__subscription span span { display: block; line-height: 1.4; }
.credits-wall__subscription span span { font-size: 0.85rem; color: var(--night-muted); }
.credits-wall__subscription-price { flex: 0 0 auto; font-weight: 700; color: var(--night-text); }

.credits-wall__gift:has(.credits-wall__notify) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.credits-wall__notify {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 1rem;
    background: transparent;
    border: 1px solid var(--night-gold);
    border-radius: 999px;
    color: var(--night-gold-light);
    font-weight: 600;
}

/* === Encart par défaut au milieu des articles du blog === */
.blog-default-cta {
    padding: 1.25rem;
    border: 1px solid rgba(184, 144, 90, 0.35);
    border-radius: 1rem;
    background: rgba(184, 144, 90, 0.06);
    text-align: center;
}

.blog-default-cta__text {
    margin: 0 0 0.75rem;
    font-family: var(--oracle-font-display);
    font-size: 1.1rem;
}
