/* ==========================================================================
   global.css — fondations communes à toutes les pages front.
   Chargé après Bootstrap dans AbstractFrontPage::$css.

   Tout ce qui apparaît dans plusieurs pages (variables, layout, composants
   réutilisables) doit vivre ici, pas dans les CSS de page (fiche.css, etc.).
   ========================================================================== */

/* ───────────────────── Variables ───────────────────── */
:root {
    --bg-light: #0f0c1a;        /* fond principal violet sombre (cohérent avec home) */
    --text-dark: #e0e0e0;
    --primary-color: #b39ddb;
    --secondary-color: #d1c4e9;
    --accent-color: #ffd700;
}

/* ───────────────────── Reset & typographie ───────────────────── */
body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 {
    font-family: 'Cinzel', serif;
    color: #ede7f6;
}

.text-muted, .small, small {
    color: #a0a0a0 !important;
}

/* Liens : pas de soulignement par défaut (override du natif Bootstrap 5). */
a {
    text-decoration: none;
}

/* ───────────────────── Layout : navbar + footer ───────────────────── */
.navbar {
    background: transparent;
    box-shadow: none;
}
.navbar-brand {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #ede7f6 !important;
    font-weight: 500;
    letter-spacing: 0.05em;
}

footer {
    background: #1a0b2e;
    color: #ccc;
    padding: 50px 0;
    margin-top: 0;
}
footer a { color: #ccc; }
footer a:hover { color: var(--accent-color); }

/* ───────────────────── Composants UI partagés ───────────────────── */
.content-box {
    background-color: rgba(30, 30, 30, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255,255,255,0.08);
}

.btn-call {
    background-color: var(--primary-color);
    color: #121212;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
}
.btn-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(179, 157, 219, 0.3);
}

.btn-website {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
}
.btn-website:hover {
    background-color: var(--primary-color);
    color: #121212;
}

.badge-custom {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: default;
    transition: all 0.3s ease;
    text-transform: capitalize;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
    background: linear-gradient(145deg, #7e57c2, #512da8);
    color: #fdfdfd;
    border-color: transparent;
}

.rating-stars {
    color: var(--accent-color);
}

/* Bouton "Explorer" — utilisé sur la home (formulaire hero) et sur /annuaire
   (à côté de la barre de recherche). Style minimaliste pour ne pas concurrencer
   les CTA primaires. */
.btn-search {
    background: #ffffff;
    color: var(--bg-light);
    border: none;
    border-radius: 20px;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Cinzel', serif;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}
.btn-search:hover {
    background: var(--accent-color);
    transform: scale(1.02);
}

/* ───────────────────── Effet de fond cosmique (nebulas) ───────────────────── */
.nebula-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.nebula {
    position: absolute; width: 600px; height: 600px; border-radius: 50%;
    filter: blur(100px); opacity: 0.3;
    animation: breathe 10s infinite alternate;
}
.nebula-1 { top: -100px; left: -100px; background: radial-gradient(circle, #5b247a, transparent); }
.nebula-2 { top: 40%; right: -200px; background: radial-gradient(circle, #2a2a72, transparent); }

@keyframes breathe {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.1); opacity: 0.4; }
}

/* ───────────────────── Utilitaires ───────────────────── */
.bg-light { background-color: var(--bg-light) !important; }
.border-bottom { border-color: #333 !important; }

/* ───────────────────── Breadcrumb SEO (rendu en pied de contenu) ───────────────────── */
.seo-breadcrumb {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0.6;
    transition: opacity 0.2s ease;
}
.seo-breadcrumb:hover {
    opacity: 0.9;
}
.seo-breadcrumb .breadcrumb {
    margin-bottom: 0;
    font-size: 0.85rem;
    background: transparent;
}
.seo-breadcrumb .breadcrumb-item,
.seo-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
}
.seo-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.85);
}
.seo-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.3);
}
