/* ─────────────────────────────────────────────────────────────────────────
   Visite Papale Monaco 2026 — Site.css
   Layout global, navbar, footer — chargé en dernier (après components.css)
   Les variables CSS sont dans design-tokens.css
   ───────────────────────────────────────────────────────────────────────── */

/* ── Compensation navbar fixe ─────────────────────────────────────────── */

main {
    padding-top: 64px; /* hauteur navbar fixe */
}

/* ── Navbar Visite Papale ─────────────────────────────────────────────── */

.vp-navbar {
    height: 64px;
    background-color: rgba(25, 34, 52, 0.95);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.vp-nav-link {
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.875rem;
    color: rgba(250, 248, 243, 0.8) !important;
    transition: color 0.2s ease;
    border-radius: var(--vp-radius);
    padding: 0.5rem 1rem;
}

.vp-nav-link:hover,
.vp-nav-link.active {
    color: var(--vp-gold) !important;
}

.vp-nav-link.active {
    background-color: rgba(201, 168, 76, 0.1);
}

/* Toggler hamburger : icon-menu visible fermé, icon-close visible ouvert */
.navbar-toggler[aria-expanded="true"] .icon-menu { display: none; }
.navbar-toggler[aria-expanded="false"] .icon-close { display: none; }
.navbar-toggler[aria-expanded="true"] .icon-close { display: inline; }

/* Menu mobile : fond opaque + hauteur auto quand ouvert */
@media (max-width: 991.98px) {
    .vp-navbar {
        height: auto;
        min-height: 64px;
    }
    .vp-navbar .navbar-collapse {
        background-color: rgba(25, 34, 52, 0.98);
        padding: 0.75rem 1rem 1rem;
        margin: 0 -12px;
        border-top: 1px solid rgba(201, 168, 76, 0.15);
    }
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.vp-footer-link {
    font-size: 0.875rem;
    color: rgba(250, 248, 243, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.vp-footer-link:hover {
    color: var(--vp-gold);
}

/* ── Typographie ──────────────────────────────────────────────────────── */

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* ── Cards Bootstrap override ─────────────────────────────────────────── */

.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: var(--vp-navy);
    color: var(--vp-ivory);
    font-weight: 600;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn-primary {
    background-color: var(--vp-navy);
    border-color: var(--vp-navy);
}

.btn-primary:hover {
    background-color: var(--vp-navy);
    opacity: 0.9;
}

/* ── Formulaires ──────────────────────────────────────────────────────── */

.form-section {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.form-section h3 {
    color: var(--vp-navy);
    border-bottom: 2px solid var(--vp-gold);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* ── Token link box ───────────────────────────────────────────────────── */

.token-link-box {
    background-color: var(--vp-cream);
    border: 1px solid var(--vp-gold);
    border-radius: 6px;
    padding: 1rem 1.5rem;
    font-family: monospace;
    word-break: break-all;
}

/* ── Coordinateur espace ──────────────────────────────────────────────── */

.quota-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background-color: var(--vp-gold);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ── Tables admin ─────────────────────────────────────────────────────── */

.table th {
    background-color: var(--vp-navy);
    color: var(--vp-ivory);
    font-weight: 500;
}

/* ── Alert ────────────────────────────────────────────────────────────── */

.alert-info {
    background-color: #E8F0FB;
    border-color: #C5D6F5;
    color: var(--vp-navy);
}

/* ── Photo upload ─────────────────────────────────────────────────────── */

.photo-preview {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--vp-gold);
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    main {
        padding-top: 64px; /* conserver même en mobile */
    }
}
