/* ─────────────────────────────────────────────────────────────────────────
   Visite Papale Monaco 2026 — components.css
   Classes réutilisables — chargé après design-tokens.css, avant Site.css
   Sources : Maquette/src/index.css @layer utilities + composants TSX
   ───────────────────────────────────────────────────────────────────────── */

/* ── Placeholders ─────────────────────────────────────────────────────── */
::placeholder { color: hsl(220,10%,72%); opacity: 1; }
::-ms-input-placeholder { color: hsl(220,10%,72%); }

/* ── Gradients texte & fond ───────────────────────────────────────────── */
/* Source : Maquette/src/index.css @layer utilities */

.text-gold-gradient {
    /* Fallback solide — visible si background-clip:text non supporté */
    color: hsl(40, 60%, 50%);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
    .text-gold-gradient {
        background: linear-gradient(135deg, hsl(40, 60%, 50%), hsl(40, 50%, 65%), hsl(40, 60%, 50%));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

.bg-gold-gradient {
    background: linear-gradient(135deg, hsl(40, 60%, 50%), hsl(40, 50%, 60%));
}

/* Overlay sombre pour sections hero avec image de fond */
.bg-hero-overlay {
    background: linear-gradient( to bottom, hsla(220, 35%, 10%, 0.6) 0%, hsla(220, 35%, 10%, 0.4) 40%, hsla(220, 35%, 10%, 0.7) 100% );
}

/* ── Utilitaires de bordure ───────────────────────────────────────────── */

.border-gold {
    border-color: hsl(40, 60%, 50%) !important;
}

/* ── Séparateur décoratif ─────────────────────────────────────────────── */
/* Source : Maquette/src/index.css .section-divider */

.section-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, hsl(40, 60%, 50%), transparent);
    margin: 0 auto;
    border: none;
}

/* ── Section hero ─────────────────────────────────────────────────────── */
/* Source : usage dans Maquette/src/pages/Home.tsx (section hero plein écran) */

.vp-hero {
    position: relative;
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* ── Cartes ───────────────────────────────────────────────────────────── */
/* Source : Maquette/src/components/* — cartes fond cream, bordure gold subtile */

.vp-card {
    background-color: var(--vp-cream);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--vp-radius);
    box-shadow: 0 2px 12px rgba(26, 58, 107, 0.08);
    padding: 1.5rem;
}

/* ── Badges de statut ─────────────────────────────────────────────────── */
/* Source : statuts de la data model — en_attente/valide/rejete */

.vp-badge-statut {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

    .vp-badge-statut.en_attente {
        background-color: #FFC107;
        color: #000000;
    }

    .vp-badge-statut.valide {
        background-color: #198754;
        color: #FFFFFF;
    }

    .vp-badge-statut.rejete {
        background-color: #DC3545;
        color: #FFFFFF;
    }

    .vp-badge-statut.invitation_envoyee {
        background-color: #0D6EFD;
        color: #FFFFFF;
    }

    .vp-badge-statut.non_complete {
        background-color: #6C757D;
        color: #FFFFFF;
    }

/* ── Bouton gold ──────────────────────────────────────────────────────── */
/* Source : Maquette/src/components/Header.tsx CTA button + usage dans pages */

.btn-gold {
    background: linear-gradient(135deg, hsl(40, 60%, 50%), hsl(40, 50%, 60%));
    border-color: hsl(40, 60%, 50%);
    color: hsl(220, 35%, 15%);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

    .btn-gold:hover,
    .btn-gold:focus {
        background: linear-gradient(135deg, hsl(40, 65%, 40%), hsl(40, 65%, 45%));
        border-color: hsl(40, 65%, 35%);
        color: hsl(220, 35%, 10%);
        /* display: inline-flex; */
        /* align-items:center; */
        /* gap:0.5rem; */
        /* padding:0.875rem 2rem; */
        /* font-size:0.875rem; */
        /* font-weight:600; */
        /* letter-spacing:0.05em; */
    }

    .btn-gold:active {
        background: linear-gradient(135deg, hsl(40, 65%, 35%), hsl(40, 65%, 40%));
        border-color: hsl(40, 65%, 30%);
        color: hsl(220, 35%, 10%);
    }

/* ── Hero typographie responsive ──────────────────────────────────────── */
/* Source : Maquette/src/pages/Index.tsx — text-5xl md:text-7xl lg:text-8xl */

.vp-hero-surtitle {
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--vp-gold);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .vp-hero-surtitle {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }
}

.vp-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem; /* text-5xl */
    font-weight: 700;
    color: var(--vp-ivory);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .vp-hero-title {
        font-size: 4.5rem; /* text-7xl */
    }
}

@media (min-width: 1024px) {
    .vp-hero-title {
        font-size: 6rem; /* text-8xl */
    }
}

.vp-hero-subtitle {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.125rem; /* text-lg */
    color: rgba(250, 248, 243, 0.8);
    margin-bottom: 2.5rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .vp-hero-subtitle {
        font-size: 1.25rem; /* text-xl */
    }
}

/* ── Animations ───────────────────────────────────────────────────────── */
/* Source : Maquette/tailwind.config.ts keyframes — traduit en CSS pur */

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out forwards;
}

/* ── Photo upload zone — Inscription.aspx ─────────────────────────────── */

.photo-upload-zone {
    border: 2px dashed var(--vp-navy-light);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

    .photo-upload-zone:hover {
        border-color: var(--vp-gold);
    }

.photo-preview-img {
    width: 128px;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    margin: 0 auto 0.5rem;
    display: block;
}
