:root {
    --color-primary: #8b0000; /* rouge bordeaux */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray: #f2f2f2;
    --color-text: #222222;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

.site-logo {
    max-height: 55px;
    width: auto;
    display: block;
}

body {
    background: var(--color-white);
    color: var(--color-text);
}

/* Containers */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.top-bar a {
    color: var(--color-white);
    margin-left: 10px;
    text-decoration: none;
}

.top-bar i {
    margin-right: 5px;
}

/* ===== MAIN HEADER ===== */
.main-header {
    background: var(--color-white);
    border-bottom: 1px solid #ddd;
}

.main-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

/* Logo */
.logo-placeholder {
    width: 140px;
    height: 50px;
    border: 1px solid #ccc;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--color-primary);
}

/* Account icon */
.account a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
}

.account a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .main-header-content {
        flex-wrap: wrap;
        gap: 15px;
    }

    .main-nav ul {
        gap: 15px;
        flex-wrap: wrap;
    }
}

/* ===== FOOTER ===== */
.site-footer {
    margin-top: auto;
}

/* Partners section */
.partners {
    background: var(--color-white);
    padding: 60px 0 40px;
    text-align: center;
}

.partners-title {
    font-size: 26px;
    color: #0b3a82; /* bleu titre comme image */
    margin-bottom: 40px;
    font-weight: 700;
}

/* ===== PARTNERS LOGOS ===== */
.partners-logos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
    align-items: stretch;
}

/* Case uniforme */
.partner-logo {
    border: 1px solid #e0e0e0;
    background: #ffffff;
    height: 130px;                 /* hauteur fixe = uniformité */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

/* Image normalisée */
.partner-logo img {
    max-width: 100%;
    max-height: 70px;              /* TOUTES les images rentrent ici */
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0%);
}

/* Optionnel : effet pro au hover */
.partner-logo:hover img {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.footer-illustration {
    width: 100%;
    height: 223px;
    overflow: hidden;
}

.footer-illustration img {
    width: 100%;
    height: 223px; /* hauteur exacte */
    background-image: url("../img/footerimg/brs-bg-national-partner-ok.png");
    background-repeat: repeat-x;      
    background-position: top center;    
    background-size: auto 223px;    
    object-fit: scale-down;
}



/* Bottom bar */
.footer-bottom {
    background: #0a0a5c; /* bleu foncé */
    color: var(--color-white);
    text-align: center;
    padding: 18px 10px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .partners-title {
        font-size: 20px;
    }

    .partner-logo img {
        max-height: 60px;
    }
}

/* ===== HERO ===== */
.hero {
    background: #f4f7ff; /* fond bleu clair */
    padding: 80px 0 100px;
}

.hero-content {
    display: flex;
    align-items: center;
}

.hero-text {
    width: auto;
}

.hero h1 {
    font-size: 38px;
    color: #0b1fa8; /* bleu titre */
    margin-bottom: 25px;
    line-height: 1.3;
}

.hero p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
}

/* Bouton */
.btn-primary {
    display: inline-block;
    background: #001f8f;
    color: #fff;
    padding: 14px 26px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
}

.btn-primary:hover {
    background: #000f5e;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 28px;
    }
}

/* ===== PAGE TITLE ===== */
.page-title {
    background: #f2f2f2;
    padding: 70px 0;
    text-align: center;
}

.page-title h1 {
    font-size: 28px;
    color: #002a7f;
    letter-spacing: 1px;
    font-weight: 700;
}

/* ===== ABOUT PAGE ===== */
.about {
    background: #ffffff;
    padding: 80px 0;
    text-align: justify;
}

.about-content {
    max-width: 820px;
}

.about-subtitle {
    font-size: 26px;
    color: #002a7f;
    margin-bottom: 30px;
    font-weight: 700;
}

.about p {
    font-size: 15.5px;
    line-height: 1.9;
    margin-bottom: 18px;
    color: #333;
}

.about-priorities-title {
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 15px;
}

.about-list {
    margin-left: 20px;
    margin-bottom: 25px;
}

.about-list li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.about-message {
    margin-top: 25px;
}

.about-signature {
    margin-top: 30px;
    font-weight: 500;
}

/* CTA */
.about-cta {
    margin-top: 50px;
}

.btn-secondary {
    display: inline-block;
    background: #ffeb00;
    color: #000;
    padding: 16px 30px;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}

.btn-secondary:hover {
    background: #f5de00;
}

/* Responsive */
@media (max-width: 768px) {
    .about {
        padding: 50px 0;
    }

    .about-subtitle {
        font-size: 22px;
    }

    .page-title h1 {
        font-size: 24px;
    }
}

.main-nav a.active {
    background: #001f8f;
    color: #fff;
    padding: 8px 14px;
}

/* ===== PRIORITIES – DESIGN AVEC IMAGES ===== */

.priorities {
    padding: 20px 0 20px;
}

.priorities-intro{
    padding: 60px 0 60px;
    text-align: center;
}

.priorities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Carte */
.priority-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.priority-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Image */
.priority-image {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.priority-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Badge numéro */
.priority-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #2f80ed;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 4px;
}

/* Titre */
.priority-card h3 {
    padding: 22px;
    font-size: 15px;
    font-weight: 700;
    color: #002a7f;
    line-height: 1.5;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 992px) {
    .priorities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .priorities-grid {
        grid-template-columns: 1fr;
    }
}

.priorities-cta{
    text-align: center;
}

.nenthol{
    color: #ff9900;
}

/* =========================
   ACTIVITÉS
========================= */

.activities {
    padding: 80px 0;
    background: #ffffff;
}

.activities-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.activity-card {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.activity-image {
    flex: 0 0 55%;
}

.activity-image img {
    width: 100%;
    height: auto;
    display: block;
}

.activity-content {
    flex: 1;
}

.activity-category {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

.activity-content h3 {
    font-size: 22px;
    line-height: 1.3;
    color: #002a7f;
    margin-bottom: 15px;
}

.activity-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
}

/* Bouton Lire la suite */
.btn-secondary {
    display: inline-block;
    background: #ffea00;
    color: #000;
    font-weight: 700;
    padding: 12px 22px;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.2s ease;
}

.btn-secondary:hover {
    background: #f5dd00;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {
    .activity-card {
        flex-direction: column;
    }

    .activity-image {
        flex: 1;
    }
}

/* ===== ARTICLE DETAIL ===== */

.article-detail {
    padding: 80px 0;
}

.article-category {
    display: inline-block;
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.article-title {
    font-size: 32px;
    color: #002a7f;
    margin-bottom: 30px;
}

.article-image img {
    width: 100%;
    height: auto;
    margin-bottom: 40px;
}

.article-content {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
}

/* =========================
   HOME SLIDER
========================= */

.home-slider {
    width: 100%;
    background: #000;
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    height: 420px;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    filter: brightness(60%);
}

.slide-content {
    position: absolute;
    left: 8%;
    bottom: 20%;
    color: #fff;
    max-width: 600px;
}

.slide-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 16px;
    margin-bottom: 15px;
}

.slide-content .btn-secondary {
    background: #ffd500;
    color: #000;
    padding: 10px 18px;
    font-weight: bold;
    text-decoration: none;
}

/* =========================
   HOME SLIDER
========================= */

.home-slider {
    position: relative;
    width: 100%;
    height: 70vh; /* 👈 ESSENTIEL */
    overflow: hidden;
    background: #000;
}

/* =========================
   HOME SLIDER
========================= */

.home-slider {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: #000;
}

.home-slider .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.home-slider .slide.active {
    opacity: 1;
    z-index: 1;
}

/* Overlay sombre pour lisibilité */
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.75) 0%,
        rgba(0,0,0,0.55) 50%,
        rgba(0,0,0,0.25) 100%
    );
}

/* Contenu */
.slide-inner {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    z-index: 2;
}

/* Bloc gauche */
.slide-box {
    max-width: 600px;
    color: #fff;
}

.slide-box h2 {
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.slide-box p {
    font-size: 17px;
    line-height: 1.6;
    opacity: 0.95;
}

/* Bloc droit automatique */
.slide-side-auto {
    background: rgba(255,255,255,0.95);
    padding: 30px;
    border-radius: 8px;
    min-width: 260px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Catégorie */
.slide-category {
    display: inline-block;
    background: #002a7f;
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Bouton */
.btn-slide-more {
    display: inline-block;
    background: #ffcc00;
    color: #000;
    padding: 12px 20px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-slide-more:hover {
    background: #e6b800;
    transform: translateY(-2px);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {
    .home-slider {
        height: auto;
    }

    .slide-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 20px;
    }

    .slide-side-auto {
        margin-top: 30px;
        width: 100%;
    }

    .slide-box h2 {
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .slide-box h2 {
        font-size: 24px;
    }

    .slide-box p {
        font-size: 15px;
    }
}

/* =========================
   ACCOUNT LOGIN / LOGOUT
========================= */

.account {
    position: relative;
}

.account-link {
    font-size: 18px;
    color: #002a7f;
}

.account-dropdown {
    position: relative;
    cursor: pointer;
}

.account-dropdown i {
    font-size: 18px;
    color: #002a7f;
}

.account-menu {
    position: absolute;
    right: 0;
    top: 35px;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 6px;
    padding: 10px 0;
    display: none;
    z-index: 1000;
}

.account-dropdown:hover .account-menu {
    display: block;
}

.account-menu a,
.account-menu span {
    display: block;
    padding: 10px 18px;
    color: #222;
    font-size: 14px;
    text-decoration: none;
}

.account-menu a:hover {
    background: #f4f6f9;
}

.account-name {
    font-weight: bold;
    color: #002a7f;
    border-bottom: 1px solid #eee;
}
