/* =========================================
   1. BASE & DESIGN DU SITE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, sans-serif;
    background: #f5f7fb;
    color: #233;
}

header {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(7,20,50,.82), rgba(7,20,50,.82)), url('https://images.unsplash.com/photo-1532094349884-543bc11b234d?auto=format&fit=crop&w=1800&q=80') center/cover;
}

.watermark {
    position: absolute;
    font: 400 12rem 'Great Vibes';
    color: #fff;
    opacity: .05;
    user-select: none;
}

.hero {
    position: relative;
    max-width: 900px;
    padding: 2rem;
}

.hero h1 {
    font: 400 7rem 'Great Vibes';
    color: #fff;
    text-shadow: 0 8px 25px #000;
}

.hero h2 {
    font: 700 1.3rem Cinzel;
    color: #dfe8ff;
    letter-spacing: 6px;
    text-transform: uppercase;
}

.hero p {
    color: #fff;
    max-width: 700px;
    margin: 2rem auto;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    padding: 16px 34px;
    border-radius: 40px;
    background: linear-gradient(135deg, #b58a2d, #efd98f);
    color: #163b66;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

nav {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 1rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.1);
    z-index: 100;
}

nav a {
    text-decoration: none;
    color: #163b66;
    font-weight: 600;
}

section {
    padding: 5rem 10%;
}

h3 {
    text-align: center;
    font: 700 2.2rem Cinzel;
    margin-bottom: 2rem;
    color: #163b66;
}

#apropos p {
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.8;
    text-align: center;
    font-size: 1.1rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.card {
    background: #fff;
    padding: 2rem;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
    text-align: center;
}

footer {
    background: #10253f;
    color: #fff;
    text-align: center;
    padding: 3rem;
}

footer h2 {
    font: 400 3rem 'Great Vibes';
}

/* --- ÉCRAN DE CHARGEMENT INTÉGRAL --- */
body.loading {
    overflow: hidden;
}

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(245, 247, 251, 0.35);
    backdrop-filter: blur(35px) saturate(140%);
    -webkit-backdrop-filter: blur(35px) saturate(140%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.6s ease-in-out, visibility 0.6s, backdrop-filter 0.6s ease-in-out;
}

.fade-out {
    opacity: 0;
    visibility: hidden;
}

.logo-image-container {
    position: relative;
    max-width: 550px;
    width: 85%;
}

.perfect-logo {
    width: 100%;
    height: auto;
    display: block;
    clip-path: inset(0 100% 0 0);
    animation: writeReveal 2.4s cubic-bezier(.65,.05,.36,1) 0.2s forwards;
}

@keyframes writeReveal {
    to {
        clip-path: inset(0 0 0 0);
    }
}

/* =========================================
   2. DESIGN SPÉCIFIQUE DE L'ARTICLE
   ========================================= */

.article-container { 
    background: #ffffff; 
    width: 92%; 
    max-width: 1050px; 
    margin: 4rem auto; 
    padding: 5rem 5%; 
    border-radius: 16px; 
    box-shadow: 0 4px 30px rgba(16, 37, 63, 0.03); 
}

.article-header { 
    display: flex; 
    flex-wrap: wrap; 
    align-items: center; 
    justify-content: center; 
    border-bottom: 1px solid #e2e8f0; 
    padding-bottom: 4rem; 
    margin-bottom: 4rem; 
    gap: 3rem; 
}

.article-main-title { 
    font-family: 'Cinzel', serif; 
    font-size: 2.6rem; 
    color: #10253f; 
    line-height: 1.3; 
    font-weight: 400; 
    letter-spacing: 4px; 
    text-transform: uppercase; 
    flex: 1 1 400px; 
    text-align: right; 
}

.article-meta-date {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-style: italic;
    color: #64748b;
    margin: -1rem 0 1rem 0;
}

.article-meta-date .meta-badge {
    display: inline-block;
    font-style: normal;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #10253f;
    background: #efd98f;
    padding: 3px 10px;
    border-radius: 12px;
}

.dictionary-definition { 
    background: #f1f5f9; 
    border-left: 3px solid #b58a2d; 
    padding: 2rem 2.5rem; 
    font-family: 'Inter', sans-serif; 
    font-size: 1.05rem; 
    border-radius: 0 8px 8px 0; 
    flex: 1 1 350px; 
    text-align: left; 
}

.dictionary-definition p {
    font-weight: 400;
    color: #1e293b;
    line-height: 1.6;
}

.article-body-content {
    max-width: 750px; 
    margin: 0 auto;
}

.article-body-content h2 { 
    font-family: 'Cinzel', serif; 
    font-size: 1.4rem; 
    color: #10253f; 
    margin: 5rem 0 1.5rem 0; 
    letter-spacing: 1.5px; 
    font-weight: 700; 
    text-align: left; 
    border-bottom: 1px solid #f1f5f9; 
    padding-bottom: 0.5rem;
}

.article-body-content h3 { 
    font-family: 'Cinzel', serif; 
    font-size: 1.15rem; 
    color: #b58a2d; 
    margin: 2.5rem 0 1rem 0; 
    font-weight: 600; 
    text-align: left; 
    letter-spacing: 1px;
}

.article-body-content p { 
    margin-bottom: 1.8rem; 
    text-align: justify; 
    color: #334155; 
    line-height: 1.85; 
    font-size: 1.05rem; 
    font-weight: 300;
}

.lead-text { 
    font-size: 1.15rem !important; 
    color: #1e293b !important; 
    font-weight: 400 !important; 
    margin-bottom: 2.5rem !important;
}

.intro-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: #b58a2d;
    text-align: center;
    letter-spacing: 2px;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
}

.intro-divider {
    text-align: center;
    margin-bottom: 3.5rem;
    color: #efd98f;
    font-size: 0.8rem;
    letter-spacing: 4px;
}

.abstract-box { 
    background: #10253f; 
    color: #ffffff; 
    padding: 3rem; 
    border-radius: 8px; 
    margin: 4rem 0; 
    font-size: 1rem; 
    line-height: 1.8; 
    border-top: 3px solid #efd98f; 
    font-weight: 300;
}

.quote-author { 
    margin: 4rem auto; 
    padding: 0 1rem; 
    text-align: center; 
    max-width: 85%; 
}

.quote-author p { 
    font-family: 'Great Vibes', cursive; 
    font-size: 2.8rem; 
    color: #b58a2d; 
    margin-bottom: 1rem; 
    line-height: 1.2; 
    text-align: center;
}

.quote-author cite { 
    font-family: 'Inter', sans-serif; 
    font-style: normal; 
    font-weight: 500; 
    font-size: 0.85rem; 
    color: #64748b; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
}

.article-body-content ul { 
    margin: 1.5rem 0 2.5rem 1.5rem; 
    line-height: 1.8; 
    font-size: 1.05rem; 
    color: #334155; 
    font-weight: 300;
}

.article-body-content li { 
    margin-bottom: 0.8rem; 
}

/* --- FIGURES & ILLUSTRATIONS --- */
.article-figure {
    margin: 3.5rem auto;
    text-align: center;
    max-width: 100%;
}

.article-figure img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 1rem auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16, 37, 63, 0.08);
    border: 1px solid #e2e8f0;
}

.article-figure figcaption {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.2px;
}

/* --- CITATIONS & BIBLIOGRAPHIE --- */
.citation-link {
    color: #b58a2d;
    text-decoration: none;
    font-weight: 600;
    padding: 0 1px;
    border-bottom: 1px dotted #b58a2d;
    transition: color .15s ease, background .15s ease;
}

.citation-link:hover {
    color: #10253f;
    background: #f1f5f9;
}

.citation-link:target,
.biblio-entry:target {
    background: #fdf3d9;
    border-radius: 4px;
}

.biblio-section {
    margin-top: 4rem;
}

.biblio-list {
    list-style: none;
    counter-reset: biblio-counter;
    padding-left: 0;
}

.biblio-entry {
    display: flex;
    gap: 1rem;
    padding: 1.2rem 0.5rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    scroll-margin-top: 2rem;
}

.biblio-number {
    flex-shrink: 0;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: #b58a2d;
    min-width: 2rem;
}

.biblio-text a {
    color: #10253f;
    word-break: break-word;
}

.biblio-back {
    margin-left: 0.6rem;
    text-decoration: none;
    color: #b58a2d;
    font-weight: 600;
}

.biblio-back:hover {
    color: #10253f;
}

.discussion-note {
    font-style: italic;
    color: #64748b;
    font-size: 0.95rem;
    border-left: 3px solid #efd98f;
    padding-left: 1.5rem;
    margin: 3rem 0;
}

.article-metadata-footer {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #64748b;
}

/* --- INFO-BULLES --- */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    font-style: normal;
    color: #fff;
    background: #b58a2d;
    border-radius: 50%;
    margin-left: 3px;
    cursor: help;
    position: relative;
    top: -6px;
    vertical-align: top;
}

.info-icon .info-tooltip {
    position: absolute;
    bottom: 145%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: #10253f;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 400;
    font-style: normal;
    text-align: left;
    line-height: 1.55;
    padding: 0.9rem 1.1rem;
    border-radius: 8px;
    width: 250px;
    box-shadow: 0 10px 28px rgba(0,0,0,.28);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 60;
    pointer-events: none;
}

.info-icon .info-tooltip strong {
    color: #efd98f;
    display: block;
    margin-bottom: 0.35rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.info-icon .info-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #10253f;
}

.info-icon:hover .info-tooltip,
.info-icon:focus .info-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* =========================================
   3. RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 850px) {
    .article-header {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .article-main-title {
        text-align: center;
        flex: none;
        width: 100%;
    }
    .dictionary-definition {
        text-align: left;
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) { 
    .article-container {
        width: 100%;
        margin: 0;
        padding: 2.5rem 1.5rem;
        border-radius: 0;
    } 
    .article-main-title {
        font-size: 2.2rem;
    } 
    .quote-author p {
        font-size: 2.2rem;
    } 
    .article-metadata-footer {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
    .biblio-entry {
        flex-direction: column;
        gap: 0.3rem;
    }
}

@media (max-width: 480px) {
    .article-main-title {
        white-space: normal;
    }
    .info-icon .info-tooltip {
        width: 200px;
        left: 0;
        transform: translateX(0) translateY(6px);
    }
    .info-icon:hover .info-tooltip,
    .info-icon:focus .info-tooltip {
        transform: translateX(0) translateY(0);
    }
    .info-icon .info-tooltip::after {
        left: 12px;
        transform: translateX(0);
    }
}