:root {
    /* Charte graphique officielle du Kongo Central */
    --kc-blue: #0095C9;
    --kc-yellow: #FFED00;
    --kc-red: #DB0613;
    
    --deep-navy: #001529;
    --card-bg: rgba(255, 255, 255, 0.04);
    
    --text-white: #ffffff;
    --text-slate: #cbd5e1;

    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-handwriting: 'Dancing Script', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--deep-navy);
    /* Arrière-plan global avec dégradé institutionnel et motif du bâtiment */
    background-image: 
        linear-gradient(135deg, rgba(0, 21, 41, 0.95) 0%, rgba(0, 43, 77, 0.92) 100%),
        url('batiment-vecteur.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px 10px;
    overflow-x: hidden;
}

/* Ligne supérieure tricolore fixe */
.top-flag-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    display: flex;
    z-index: 100;
}

.top-flag-line .blue { flex: 3; background-color: var(--kc-blue); }
.top-flag-line .yellow { flex: 1; background-color: var(--kc-yellow); }
.top-flag-line .red { flex: 1; background-color: var(--kc-red); }

/* Conteneur global */
.page-container {
    max-width: 1100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* En-tête avec Logo */
.header-section {
    margin-bottom: -50px; /* Chevauchement fluide desktop */
    text-align: center;
    position: relative;
    z-index: 20;
}

.brand-logo {
    max-height: 130px;
    width: auto;
    object-fit: contain;
}

/* Carte Principale Desktop */
.main-card {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    backdrop-filter: blur(16px);
    display: flex;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    padding-top: 10px;
}

/* Bandeau tricolore sur la carte */
.card-flag-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    display: flex;
    z-index: 10;
}

.card-flag-bar .blue { flex: 3; background-color: var(--kc-blue); }
.card-flag-bar .yellow { flex: 1; background-color: var(--kc-yellow); }
.card-flag-bar .red { flex: 1; background-color: var(--kc-red); }

/* Zone d'information (Gaucherie desktop) */
.info-column {
    width: 100%;
    padding: 60px 45px 50px 45px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(0, 149, 201, 0.18);
    border: 1px solid rgba(0, 149, 201, 0.35);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #5ec8f8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 22px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--kc-yellow);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--kc-yellow);
}

.hero-title {
    font-size: 2.7rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-white);
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--kc-yellow);
    margin-bottom: 22px;
}

.accent-bar {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--kc-blue), var(--kc-yellow), var(--kc-red));
    border-radius: 2px;
    margin-bottom: 22px;
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-slate);
    max-width: 540px;
    margin-bottom: 35px;
}

/* Carte de Contact */
.action-contact-box {
    width: 100%;
    max-width: 500px;
    background: rgba(0, 149, 201, 0.12);
    border: 1px solid rgba(0, 149, 201, 0.3);
    border-radius: 16px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: border-color 0.3s ease;
}

.action-contact-box:hover {
    border-color: var(--kc-yellow);
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(0, 149, 201, 0.25);
    color: var(--kc-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.contact-title {
    font-size: 0.78rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.contact-link {
    color: var(--kc-yellow);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
}

.contact-link:hover {
    color: var(--text-white);
    text-decoration: underline;
}

/* Bloc Visuel Gouverneur (Positionné à droite sur Desktop) */
.visual-column {
    position: absolute;
    right: 0;
    bottom: 0;
    top: 0;
    width: 44%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding-right: 15px;
    background: transparent;
}

.portrait-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end; /* Décalage photo vers la droite */
    position: relative;
}

/* Aucune ombre sur la photo du gouverneur */
.gouverneur-photo {
    max-height: 520px;
    width: auto;
    object-fit: contain;
    object-position: bottom right;
    position: relative;
    z-index: 2;
    filter: none !important;
}

/* Message Calligraphique sans fond au niveau du pantalon */
.governor-quote {
    position: absolute;
    bottom: 35px;
    left: 10px;
    max-width: 220px;
    z-index: 10;
    text-align: left;
    background: transparent !important;
}

.quote-content {
    font-family: var(--font-handwriting);
    font-size: 1.35rem;
    color: var(--text-white);
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85);
}

.quote-signature {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--kc-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.footer-section {
    margin-top: 35px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

/* ==========================================
   ADAPTATION MOBILE (Responsive Strict)
   ========================================== */
@media (max-width: 880px) {
    .header-section {
        margin-bottom: -35px;
    }

    .brand-logo {
        max-height: 85px;
    }

    .main-card {
        flex-direction: column;
        border-radius: 22px;
        padding-top: 20px;
    }

    /* En mobile, le texte RESTE aligné à gauche */
    .info-column {
        padding: 30px 20px 35px 20px;
        align-items: flex-start;
        text-align: left;
    }

    .accent-bar {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-description {
        max-width: 100%;
        margin-bottom: 20px;
    }

    /* Ordre exact sur mobile */
    .order-1 { order: 1; }
    .order-2 { order: 2; }
    .order-3 { order: 3; }
    .order-4 { order: 4; }
    .order-5 { order: 5; }
    .order-6 { order: 6; } /* Gouverneur intercalé après le paragraphe */
    .order-7 { order: 7; } /* Carte contact en dernier */

    /* Bloc Gouverneur Mobile avec le vecteur couvrant tout le fond */
    .visual-column {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: auto;
        margin: 15px 0 25px 0;
        padding: 25px 15px 0 15px;
        
        background-color: var(--kc-blue);
        border-radius: 18px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        display: flex;
        justify-content: flex-end;
        align-items: flex-end;
        position: relative;
        overflow: hidden;
    }

    /* Le vecteur couvre 100% de la zone Gouverneur en mobile */
    .building-overlay {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(180deg, rgba(0, 149, 201, 0.8) 0%, rgba(0, 21, 41, 0.95) 100%), url('batiment-vecteur.png');
        background-size: cover;
        background-position: center;
        z-index: 1;
    }

    .portrait-wrapper {
        justify-content: flex-end;
        width: 100%;
    }

    .gouverneur-photo {
        max-height: 260px;
        width: auto;
        object-fit: contain;
        object-position: bottom right;
        filter: none !important;
    }

    .governor-quote {
        bottom: 20px;
        left: 15px;
        max-width: 165px;
        text-align: left;
    }

    .quote-content {
        font-size: 1.15rem;
    }

    .action-contact-box {
        width: 100%;
        max-width: 100%;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}