@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
    --bg-deep: #050a1c;
    --bg-mid: #0a1330;
    --gold: #d4af4a;
    --gold-light: #f0d080;
    --blue: #4a9eff;
    --blue-glow: rgba(74, 158, 255, 0.3);
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(212, 175, 74, 0.22);
    --text: #ffffff;
    --text-soft: rgba(255, 255, 255, 0.92);
    --text-dim: rgba(255, 255, 255, 0.7);
    --red-heart: #e84c6e;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(40, 80, 200, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 90%, rgba(212, 175, 74, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(5, 10, 28, 0.9) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--dur, 3s) ease-in-out infinite var(--delay, 0s);
}

@keyframes twinkle {
    0%, 100% { opacity: var(--min-op, 0.1); transform: scale(1); }
    50% { opacity: var(--max-op, 0.8); transform: scale(1.3); }
}

/* ── LANG BAR ── */
.lang-bar {
    position: fixed;
    top: 1.2rem; right: 1.5rem;
    z-index: 100;
    display: flex; gap: 0.4rem;
}

.lang-btn {
    display: flex; align-items: center; gap: 0.35rem;
    padding: 0.38rem 0.75rem;
    background: rgba(5, 10, 28, 0.92);
    border: 1px solid rgba(212, 175, 74, 0.15);
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Lato', sans-serif;
    font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    cursor: pointer; border-radius: 6px;
    transition: all 0.25s ease;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.lang-btn:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.lang-btn.active {
    background: linear-gradient(135deg, rgba(212,175,74,0.15), rgba(74,158,255,0.08));
    border-color: var(--gold);
    color: var(--gold-light);
    box-shadow: 0 0 14px rgba(212,175,74,0.25);
}

.lang-flag { font-size: 0.95rem; }

/* Layout */
.page-wrapper {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* Header */
.site-header {
    text-align: center;
    padding: 60px 0 48px;
    position: relative;
}

.logo-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 32px;
}

.logo-wrap::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse, rgba(212, 175, 74, 0.28) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.logo-wrap img {
    width: 170px;
    height: 170px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    border-radius: 20px;
    filter: drop-shadow(0 0 30px rgba(212, 175, 74, 0.45));
    animation: float 6s ease-in-out infinite;
}

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

.site-header h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 4.5vw, 2.9rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, #e8a030 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
    text-shadow: none;
    margin-bottom: 8px;
}

.site-header .subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 10px;
}

.site-header .tagline {
    font-family: 'Cinzel', serif;
    font-style: italic;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: var(--gold-light);
    opacity: 0.9;
    margin-bottom: 22px;
}

.badge-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    padding: 6px 18px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.05em;
}

.badge-date svg { color: var(--gold); }

/* Decorative divider */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 48px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--glass-border), transparent);
}

.divider-diamond {
    width: 8px;
    height: 8px;
    background: var(--gold);
    transform: rotate(45deg);
    flex-shrink: 0;
    box-shadow: 0 0 12px var(--gold);
}

/* Quick nav */
.toc {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.toc::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.toc h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}

.toc ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.88rem;
    padding: 6px 0;
    transition: color 0.2s;
}

.toc ul li a:hover { color: var(--gold-light); }

.toc ul li a .toc-num {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.75rem;
    min-width: 20px;
}

/* ── SECTIONS (accordion) ── */
.policy-section {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
    animation: slideUp 0.6s ease-out both;
}

.policy-section:hover {
    border-color: rgba(212, 175, 74, 0.4);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(212, 175, 74, 0.1);
}

.policy-section:nth-child(1) { animation-delay: 0.1s; }
.policy-section:nth-child(2) { animation-delay: 0.15s; }
.policy-section:nth-child(3) { animation-delay: 0.2s; }
.policy-section:nth-child(4) { animation-delay: 0.25s; }
.policy-section:nth-child(5) { animation-delay: 0.3s; }
.policy-section:nth-child(6) { animation-delay: 0.35s; }
.policy-section:nth-child(7) { animation-delay: 0.4s; }

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

.policy-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold), transparent);
}

/* Section header — clickable for accordion */
.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.section-header:hover {
    background: rgba(212, 175, 74, 0.04);
}

.section-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(212, 175, 74, 0.1);
    border: 1px solid rgba(212, 175, 74, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.section-title {
    flex: 1;
}

.section-title h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold-light);
    letter-spacing: 0.03em;
    margin-bottom: 2px;
}

.section-num {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.section-chevron {
    color: var(--gold-light);
    font-size: 0.65rem;
    flex-shrink: 0;
    transition: transform 0.35s ease;
    opacity: 0.7;
}

.policy-section.open .section-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* Accordion body */
.section-body {
    padding: 0 28px 24px 28px;
    overflow: hidden;
    max-height: 1600px;
    transition: max-height 0.45s ease, padding 0.35s ease, opacity 0.3s ease;
    opacity: 1;
    border-top: 1px solid rgba(212, 175, 74, 0.08);
}

.section-body.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    border-top-color: transparent;
}

/* Body content spacing */
.section-body > * { margin-top: 16px; }
.section-body > *:first-child { margin-top: 20px; }

/* ⭐ Texte des paragraphes en BLANC ⭐ */
.policy-section p {
    color: #ffffff;
    font-weight: 400;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.policy-section p:last-child { margin-bottom: 0; }

.highlight {
    color: var(--gold-light);
    font-weight: 600;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(74, 158, 255, 0.14);
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 0.82rem;
    color: #a8d1ff;
    font-weight: 500;
}

.pill-gold {
    background: rgba(212, 175, 74, 0.14);
    border-color: rgba(212, 175, 74, 0.3);
    color: var(--gold-light);
}

/* Info boxes */
.info-box {
    border-radius: 12px;
    padding: 16px 20px;
    margin: 16px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-box.safe {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.info-box.notice {
    background: rgba(212, 175, 74, 0.08);
    border: 1px solid rgba(212, 175, 74, 0.3);
}

.info-box-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.info-box p {
    margin: 0 !important;
    font-size: 0.88rem;
    color: #ffffff !important;
}

/* Data table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin: 16px 0;
}

.data-table th {
    text-align: left;
    padding: 10px 14px;
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--glass-border);
}

.data-table td {
    padding: 10px 14px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    vertical-align: top;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.04); }

/* Contact card */
.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(212, 175, 74, 0.08);
    border: 1px solid rgba(212, 175, 74, 0.3);
    border-radius: 14px;
    padding: 20px 24px;
    margin-top: 16px;
    transition: background 0.3s;
}

.contact-card:hover { background: rgba(212, 175, 74, 0.14); }
.contact-card .contact-icon { font-size: 2rem; }

.contact-card a {
    color: var(--gold-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-card a:hover { color: white; text-decoration: underline; }

.contact-card .contact-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* Footer */
footer {
    margin-top: 60px;
    text-align: center;
    padding: 32px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

footer .footer-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

footer p { color: #ffffff; font-size: 0.82rem; }
footer .footer-note { opacity: 0.75; }

footer .footer-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 16px 0;
    font-size: 1.3rem;
}

a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(212,175,74,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Mobile */
@media (max-width: 640px) {
    .lang-bar {
        top: auto; bottom: 1.2rem; right: 50%; transform: translateX(50%);
        background: rgba(5,10,28,0.95); padding: 0.4rem;
        border-radius: 8px; border: 1px solid rgba(212,175,74,0.15);
    }
    .page-wrapper { padding: 20px 16px 80px; }
    .site-header { padding: 40px 0 32px; }
    .logo-wrap img { width: 130px; height: 130px; }
    .policy-section { border-radius: 14px; }
    .section-header { padding: 16px 20px; }
    .section-body { padding: 0 20px 20px; }
    .toc ul { grid-template-columns: 1fr; }
    .contact-card { flex-direction: column; gap: 12px; }
    .data-table { font-size: 0.78rem; }
    .data-table th, .data-table td { padding: 8px 10px; }
}
