/* =========================================================
   CDVC — FEUILLE DE STYLE PRINCIPALE
   Couleurs de marque : violet #aa08b4 · orange #ee760c
   (les classes utilitaires Tailwind sont configurées dans tailwind.config.js)
   ========================================================= */

:root {
    --navy: #0f172a;
    --brand-purple: #aa08b4;
    --brand-purple-light: #df63e8;
    --brand-purple-dark: #730a79;
    --brand-purple-deep: #3e0141;
    --brand-orange: #ee760c;
    --brand-orange-light: #f7953a;
    --brand-orange-dark: #d45e07;
}

/* ---------- 1. BASE ---------- */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
}

/* ---------- 2. EN-TÊTE ---------- */
.glass-nav {
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ---------- 3. DÉGRADÉS DE MARQUE ---------- */
.hero-gradient {
    background: linear-gradient(135deg, var(--navy) 0%, var(--brand-purple-deep) 50%, var(--brand-purple-dark) 100%);
}

.orange-badge {
    background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-dark) 100%);
}

.text-gradient {
    background: linear-gradient(90deg, var(--brand-purple-light) 0%, var(--brand-orange-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- 4. CARTES ---------- */
.card-hover {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(170, 8, 180, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ---------- 5. BARRE DE DÉFILEMENT (modaux) ---------- */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--brand-purple);
    border-radius: 4px;
}

/* ---------- 6. ANIMATIONS ---------- */
@keyframes pulse-subtle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.02); }
}

.animate-pulse-subtle {
    animation: pulse-subtle 3s infinite ease-in-out;
}

/* ---------- 7. CADRES PHOTO (fondatrice, Tour École) ----------
   Le fond dégradé + l'icône s'affichent tant que la photo est absente.
   js/photos.js ajoute .is-missing sur une image introuvable. */
.photo-frame {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-purple-dark) 0%, var(--brand-purple) 55%, var(--brand-orange) 100%);
}

.photo-frame__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    padding: 1rem;
}

.photo-frame__placeholder i {
    font-size: 2.25rem;
}

.is-missing {
    display: none !important;
}

/* Effet de zoom sur la galerie Tour École */
.gallery-item img {
    transition: transform 0.5s ease;
}
.gallery-item:hover img,
.gallery-item:focus-visible img {
    transform: scale(1.06);
}

/* ---------- 8. ACCESSIBILITÉ : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================================
   ARTICLES COMPLETS (modale des Actualités)
   ========================================================= */
.article-body > * + * {
    margin-top: 0.75rem;
}
.article-body h4 {
    margin-top: 1.75rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--brand-purple);
}
.article-body h5 {
    margin-top: 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}
.article-body ul,
.article-body ol {
    padding-left: 1.25rem;
}
.article-body ul {
    list-style: disc;
}
.article-body ol {
    list-style: decimal;
}
.article-body li + li {
    margin-top: 0.5rem;
}
.article-body li::marker {
    color: var(--brand-orange);
    font-weight: 700;
}
.article-highlight {
    border-left: 3px solid var(--brand-orange);
    padding-left: 0.75rem;
    font-weight: 600;
    color: #0f172a;
}
.article-partners {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}
.article-tags {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-purple);
    word-break: break-word;
}
