/* ============================================================
   VERSION 1 — "GRIMOIRE NOIR"
   Ambiance : Dark luxury, encre de nuit, or brûlé, manuscrit ancien
   Palette : Noir profond, or antique, bordeaux mystique, parchemin
   Typo : Cinzel Decorative (titres) + EB Garamond (corps)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400;600&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

/* ── Variables ── */
:root {
    --ink:          #0d0a0e;        /* Noir d'encre */
    --ink-deep:     #181020;        /* Noir violacé profond */
    --gold:         #c9a84c;        /* Or antique */
    --gold-light:   #e8cc7a;        /* Or lumineux */
    --gold-dim:     rgba(201,168,76,0.15);
    --blood:        #7a1a2e;        /* Bordeaux mystique */
    --parchment:    #f5ede0;        /* Parchemin */
    --parchment-dim:#f0e4cf;
    --silver:       #b8b0c0;        /* Argent de lune */
    --text-body:    #e8ddd0;        /* Texte principal sur fond sombre */
    --border-gold:  rgba(201,168,76,0.35);
    --shadow-gold:  rgba(201,168,76,0.25);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { min-height: 100%; scroll-behavior: smooth; }

body {
    background-color: var(--ink-deep);
    color: var(--text-body);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='4' fill='%23c9a84c' opacity='0.8'/%3E%3C/svg%3E") 10 10, auto;
}

body.fade-in { opacity: 1; }

/* ── Fond texturé avec grille ésotérique ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(122,26,46,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(201,168,76,0.06) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z' fill='none' stroke='rgba(201,168,76,0.04)' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: auto, auto, 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ── Étoiles / particules ── */
.stars { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.star  { position: absolute; background: var(--gold-light); border-radius: 50%; animation: twinkle var(--dur, 4s) var(--delay, 0s) infinite alternate ease-in-out; }
@keyframes twinkle { from { opacity: 0.1; transform: scale(0.8); } to { opacity: 0.6; transform: scale(1.2); } }

/* ── Ornement décoratif horizontal ── */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem auto;
    color: var(--gold);
    font-size: 1.2rem;
    opacity: 0.7;
}
.ornament::before,
.ornament::after {
    content: '';
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
.navbar {
    background: rgba(13,10,14,0.92) !important;
    border-bottom: 1px solid var(--border-gold);
    backdrop-filter: blur(12px);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-family: 'Cinzel Decorative', serif !important;
    font-size: 1.1rem !important;
    color: var(--gold) !important;
    letter-spacing: 0.05em;
    text-shadow: 0 0 20px rgba(201,168,76,0.5);
    transition: text-shadow 0.3s;
}
.navbar-brand:hover { text-shadow: 0 0 30px rgba(201,168,76,0.9); }

.nav-link {
    font-family: 'Cinzel', serif !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--silver) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s;
}
.nav-link:hover, .nav-link.active {
    color: var(--gold) !important;
    text-shadow: 0 0 15px rgba(201,168,76,0.6);
}
.nav-link:hover::after, .nav-link.active::after { width: 60%; }

.navbar-toggler {
    border-color: var(--border-gold) !important;
    filter: invert(1) sepia(1) saturate(2) hue-rotate(5deg);
}

/* ══════════════════════════════════════════
   HEADER / HERO
══════════════════════════════════════════ */
header.hero {
    position: relative;
    padding: 5rem 1rem 4rem;
    text-align: center;
    overflow: hidden;
}

header.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(122,26,46,0.25) 0%, transparent 70%);
    pointer-events: none;
}

/* Cercle ésotérique décoratif en hero */
header.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(500px, 90vw);
    height: min(500px, 90vw);
    border-radius: 50%;
    border: 1px solid rgba(201,168,76,0.12);
    box-shadow:
        0 0 0 30px rgba(201,168,76,0.04),
        0 0 0 80px rgba(201,168,76,0.02),
        inset 0 0 80px rgba(122,26,46,0.1);
    pointer-events: none;
    animation: pulse-circle 6s ease-in-out infinite;
}
@keyframes pulse-circle {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50%       { transform: translate(-50%, -50%) scale(1.05); opacity: 0.9; }
}

/* ══════════════════════════════════════════
   TITRES
══════════════════════════════════════════ */
h1, h2, h3, h4, h5 {
    font-family: 'Cinzel Decorative', serif !important;
    color: var(--gold) !important;
    text-align: center;
    width: 100%;
    line-height: 1.3;
}

h1 { font-size: clamp(1.6rem, 5vw, 3rem); text-shadow: 0 0 40px rgba(201,168,76,0.4); margin-bottom: 1rem; }
h2 { font-size: clamp(1.2rem, 3vw, 1.8rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1rem, 2.5vw, 1.3rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: 0.95rem; letter-spacing: 0.08em; }

.display-3 { font-size: clamp(1.8rem, 6vw, 3.5rem) !important; }
.display-4 { font-size: clamp(1.5rem, 4vw, 2.5rem) !important; }

.lead {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    color: var(--silver) !important;
    font-size: 1.15rem !important;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
}

p { margin-bottom: 1rem; }

/* ══════════════════════════════════════════
   CARTES
══════════════════════════════════════════ */
.card {
    background: rgba(24,16,32,0.85) !important;
    border: 1px solid var(--border-gold) !important;
    border-radius: 4px !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: var(--text-body) !important;
}

/* Coin décoratif sur les cartes */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border-top: 2px solid var(--gold);
    border-left: 2px solid var(--gold);
    opacity: 0.5;
    transition: opacity 0.3s;
}
.card::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 40px; height: 40px;
    border-bottom: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 50px rgba(0,0,0,0.6),
        0 0 30px rgba(201,168,76,0.2),
        inset 0 0 30px rgba(201,168,76,0.03) !important;
    border-color: var(--gold) !important;
}
.card:hover::before,
.card:hover::after { opacity: 1; }

/* Texte dans les cartes */
.card p, .card .mb-0 { color: var(--text-body) !important; }
.card .small, .card .text-muted { color: var(--silver) !important; }
.card h6.fw-bold { color: var(--gold-light) !important; font-family: 'Cinzel', serif; }
.card .text-warning { filter: brightness(0.9) sepia(0.3); }

/* Carte prix — icône */
.card .price-icon { color: var(--gold); font-size: 2.5rem; margin-bottom: 0.8rem; }
.card .price-amount {
    font-family: 'Cinzel Decorative', serif !important;
    font-size: 1.8rem !important;
    color: var(--gold) !important;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(201,168,76,0.5);
}

/* Carte spéciale gold background */
.card-gold {
    background: rgba(201,168,76,0.06) !important;
    border-color: rgba(201,168,76,0.4) !important;
}

/* ══════════════════════════════════════════
   BOUTONS
══════════════════════════════════════════ */
.btn-primary {
    background: transparent !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
    font-family: 'Cinzel', serif !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.75rem 2.5rem !important;
    border-radius: 0 !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
    z-index: 1;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}
.btn-primary:hover {
    color: var(--ink) !important;
    text-shadow: none;
}
.btn-primary:hover::before { transform: scaleX(1); }

/* ══════════════════════════════════════════
   FORMULAIRES
══════════════════════════════════════════ */
.form-control, .form-select {
    background: rgba(13,10,14,0.6) !important;
    border: 1px solid var(--border-gold) !important;
    color: var(--text-body) !important;
    border-radius: 2px !important;
    font-family: 'EB Garamond', serif;
    font-size: 1rem;
    padding: 0.6rem 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-control:focus, .form-select:focus {
    background: rgba(13,10,14,0.8) !important;
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 2px rgba(201,168,76,0.2) !important;
    color: var(--text-body) !important;
    outline: none;
}
.form-control::placeholder { color: rgba(184,176,192,0.5) !important; font-style: italic; }
.form-label { color: var(--silver) !important; font-family: 'Cinzel', serif; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; text-align: left; }
.form-select option { background: var(--ink-deep); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
    background: rgba(13,10,14,0.95) !important;
    border-top: 1px solid var(--border-gold);
    flex-shrink: 0;
    margin-top: 4rem;
    padding: 3rem 0 2rem;
}
footer h5 {
    font-family: 'Cinzel Decorative', serif !important;
    font-size: 0.9rem !important;
    color: var(--gold) !important;
    letter-spacing: 0.1em;
}
footer p { color: var(--silver); font-size: 0.95rem; }
footer a { color: var(--gold) !important; text-decoration: none; transition: text-shadow 0.3s; }
footer a:hover { text-shadow: 0 0 15px rgba(201,168,76,0.7); }
footer .small { color: rgba(184,176,192,0.6) !important; font-size: 0.8rem; }
footer hr { border-color: var(--border-gold) !important; }

/* ══════════════════════════════════════════
   UTILITAIRES
══════════════════════════════════════════ */
main { flex: 1 0 auto; position: relative; z-index: 2; }
section, .container { position: relative; z-index: 2; }

.text-end.fw-bold { color: var(--gold) !important; font-family: 'Cinzel', serif; }

/* Signature Sindy */
.signature {
    font-family: 'EB Garamond', serif !important;
    font-style: italic;
    font-size: 1.3rem !important;
    color: var(--gold) !important;
    text-align: right;
}

/* Liste sans puces avec icônes */
.list-unstyled li { color: var(--text-body); margin-bottom: 0.5rem; }
.list-unstyled li strong { color: var(--gold-light); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--ink-deep); }
::-webkit-scrollbar-thumb { background: var(--border-gold); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Section header ── */
.page-header {
    padding: 4rem 1rem 3rem;
    text-align: center;
    position: relative;
}
.page-header::after {
    content: '✦ ✦ ✦';
    display: block;
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 0.5em;
    margin-top: 1rem;
    opacity: 0.6;
}

/* ── Animation d'entrée des cards ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.card { animation: fadeUp 0.6s ease both; }
.col-md-6:nth-child(1) .card,
.col-lg-4:nth-child(1) .card  { animation-delay: 0.1s; }
.col-md-6:nth-child(2) .card,
.col-lg-4:nth-child(2) .card  { animation-delay: 0.2s; }
.col-md-6:nth-child(3) .card,
.col-lg-4:nth-child(3) .card  { animation-delay: 0.3s; }
.col-md-6:nth-child(4) .card,
.col-lg-4:nth-child(4) .card  { animation-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 768px) {
    h1 { font-size: 1.6rem !important; }
    h2 { font-size: 1.2rem !important; }
    .card { margin-bottom: 1rem; }
    header.hero { padding: 3rem 1rem 2.5rem; }
    header.hero::after { display: none; }
    .btn-primary { padding: 0.6rem 1.5rem !important; }
}
