/*=========================================================
  RCPHB / FAPHB — Charte graphique v2 (inspirée du template "Bridge")
=========================================================*/

:root {
    --primary: #1d2066;
    /* navy institutionnel */
    --primary-dark: #12144a;
    /* navy plus foncé (footer, cartes sombres) */
    --primary-light: #eceeff;
    /* fond bleu très clair */
    --accent: #e63946;
    /* rouge d'accent (CTA, titres) */
    --accent-dark: #c92835;
    --text-dark: #23253b;
    --text-muted: #6c7080;
    --border-light: #e9e9f2;
    --radius: 10px;
    --shadow-sm: 0 4px 16px rgba(20, 24, 70, .08);
    --shadow-md: 0 14px 34px rgba(20, 24, 70, .14);
    --font-base: 'Roboto', 'Segoe UI', Arial, sans-serif;
    --font-title: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

body {
    font-family: var(--font-base);
    color: var(--text-dark);
    background: #fff;
}

a {
    color: var(--accent);
}

a:hover {
    color: var(--accent-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-title);
    color: var(--primary);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 700;
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/*=========================================================
  TOPBAR
=========================================================*/
.topbar {
    background: var(--primary-dark);
    color: #c7c9e6;
    font-size: .8rem;
    padding: 7px 0;
}

.topbar a {
    color: #c7c9e6;
    text-decoration: none;
}

.topbar a:hover {
    color: #fff;
}

.topbar .topbar-item {
    margin-right: 22px;
    white-space: nowrap;
}

.topbar .topbar-item i {
    margin-right: 6px;
    color: var(--accent);
}

.topbar .highlight {
    color: var(--accent);
    font-weight: 700;
}

.topbar .social-mini a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    margin-left: 6px;
    font-size: .78rem;
}

.topbar .social-mini a:hover {
    background: var(--accent);
    color: #fff;
}

/*=========================================================
  NAVBAR
=========================================================*/
.main-navbar {
    background: #fff;
    padding: 16px 0;
}

.main-navbar.shadow {
    box-shadow: var(--shadow-sm);
}

.main-navbar .navbar-brand {
    display: flex;
    align-items: center;
}

.main-navbar .navbar-brand img {
    border-radius: 50%;
}

.main-navbar .brand-text {
    margin-left: 12px;
    line-height: 1.15;
}

.main-navbar .brand-text .brand-title {
    display: block;
    font-family: var(--font-title);
    font-weight: 800;
    color: var(--primary);
    font-size: 1.1rem;
    letter-spacing: .5px;
}

.main-navbar .brand-text .brand-sub {
    display: block;
    font-size: .72rem;
    color: var(--text-muted);
}

.main-navbar .nav-link {
    font-weight: 700;
    color: var(--text-dark);
    padding: .6rem 1rem !important;
    font-size: .92rem;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--accent);
}

.navbar-cta-btn {
    background: var(--accent);
    color: #fff !important;
    font-weight: 800;
    font-size: .82rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 12px 26px;
    border-radius: 4px;
    margin-left: 14px;
    text-decoration: none;
    transition: .2s;
}

.navbar-cta-btn:hover {
    background: var(--accent-dark);
    color: #fff !important;
}

/*=========================================================
  PAGE BANNER
=========================================================*/
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #1f2a7a 45%, var(--primary-dark) 100%);
    position: relative;
    padding: 68px 0 54px;
    overflow: hidden;
}

.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
}

.page-banner .container {
    position: relative;
    z-index: 1;
}

.page-banner h1 {
    color: #fff;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -.03em;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: .92rem;
}

.breadcrumb-nav a,
.breadcrumb-nav .current,
.breadcrumb-nav .sep {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    color: #fff;
}

.breadcrumb-nav .sep {
    opacity: .7;
}

/*=========================================================
  HERO (split navy panel + image)
=========================================================*/
.hero-split {
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.hero-split .row {
    min-height: 520px;
}

.hero-text {
    color: #fff;
    padding: 70px 20px;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    color: #fff;
    font-weight: 800;
    font-size: 2.6rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: var(--accent);
}

.hero-text p {
    color: rgba(255, 255, 255, .82);
    font-size: 1.05rem;
    max-width: 460px;
    margin-bottom: 28px;
}

.hero-text .btn {
    padding: 13px 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: .85rem;
    letter-spacing: .5px;
}

.hero-image {
    position: relative;
    min-height: 340px;
    background-size: cover;
    background-position: center;
}

.hero-badge {
    position: absolute;
    top: 26px;
    right: 26px;
    background: #fff;
    color: var(--accent);
    font-weight: 800;
    text-align: center;
    font-size: .95rem;
    line-height: 1.25;
    padding: 16px 20px;
    border-radius: 10px 10px 10px 0;
    box-shadow: var(--shadow-md);
    max-width: 150px;
}

.hero-stat {
    position: absolute;
    right: 26px;
    bottom: -28px;
    background: #fff;
    border-radius: var(--radius);
    padding: 16px 22px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
}

.hero-stat strong {
    display: block;
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.hero-stat span {
    display: block;
    color: var(--text-muted);
    font-size: .78rem;
    font-weight: 600;
}

@media (max-width: 992px) {
    .hero-split .row {
        min-height: auto;
    }

    .hero-text {
        padding: 50px 20px 30px;
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        min-height: 280px;
    }

    .hero-stat {
        position: static;
        margin: 20px auto 0;
        width: fit-content;
    }
}

/*=========================================================
  QUOTE / TESTIMONIAL
=========================================================*/
.home-slider {
    width: 100%;
    padding: 0;
    background: #000;
}

.home-slider .hero-slider-el {
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100svh;
    margin: 0;
}

.home-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
}

.home-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .15);
}

.home-slide-card {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: clamp(20px, 6vw, 80px);
    transform: translateY(-50%);
    width: min(430px, calc(100% - 40px));
    padding: 28px 30px;
    color: #fff;
    background: rgba(29, 32, 102, .68);
    border-radius: var(--radius);
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow-md);
}

.home-slide-card h2 {
    margin-bottom: 14px;
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    font-weight: 800;
}

.home-slide-card p {
    margin: 0;
    color: rgba(255, 255, 255, .92);
    font-size: .9rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

.home-slide-card .btn {
    margin-top: 20px;
}

.home-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: .7;
}

.home-slider .swiper-pagination-bullet-active {
    background: var(--accent);
    opacity: 1;
}

@media (max-width: 576px) {
    .home-slider {
        padding: 0;
    }

    .home-slider .hero-slider-el {
        height: 100vh;
        height: 100svh;
    }

    .home-slide-card {
        left: 20px;
        padding: 22px 20px;
    }
}

.quote-section {
    background: var(--primary-light);
    padding: 60px 0;
}

.quote-section blockquote {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--primary);
    text-align: center;
    max-width: 820px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.quote-section blockquote em {
    color: var(--accent);
    font-style: italic;
}

.quote-section .slogan-text {
    transition: opacity .6s ease;
}

.quote-section .quote-signature {
    text-align: center;
    font-weight: 700;
    color: var(--text-muted);
    font-size: .95rem;
}

/*=========================================================
  FEATURE ROW (Twitter / About / Join+Video)
=========================================================*/
.feature-row {
    padding: 60px 0;
}

.twitter-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.twitter-card h3 i {
    color: #1da1f2;
}

.twitter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.twitter-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: .88rem;
    color: var(--text-dark);
}

.twitter-list li:last-child {
    border-bottom: none;
}

.twitter-list a {
    color: var(--primary);
    font-weight: 600;
}

.about-feature img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.about-feature h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.about-feature p {
    color: var(--text-muted);
    font-size: .94rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.join-card {
    background: var(--primary);
    border-radius: var(--radius);
    padding: 32px 28px;
    color: #fff;
    margin-bottom: 24px;
}

.join-card .join-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 18px;
}

.join-card h3 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.join-card p {
    color: rgba(255, 255, 255, .75);
    font-size: .88rem;
    margin-bottom: 20px;
}

.join-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
}

.join-card ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    font-size: .88rem;
    color: rgba(255, 255, 255, .9);
}

.join-card ul li i {
    color: var(--accent);
}

.join-card .btn {
    width: 100%;
}

.video-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.video-card iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    display: block;
}

/*=========================================================
  NEWS
=========================================================*/
.news-section {
    background: #f7f7fb;
    padding: 65px 0;
}

.news-section.pt-0 {
    padding-top: 0;
}

.news-heading {
    text-align: center;
    margin-bottom: 40px;
}

.news-heading .section-tag {
    display: block;
    color: var(--text-muted);
    font-size: .95rem;
    margin-bottom: 6px;
}

.news-heading h2 {
    font-size: 2rem;
    font-weight: 800;
}

.news-heading h2 .text-accent {
    color: var(--accent);
}

.news-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: .25s;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.news-card .news-thumb {
    height: 170px;
    overflow: hidden;
}

.news-card .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

.news-card:hover .news-thumb img {
    transform: scale(1.08);
}

.news-card .news-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card h3 a {
    color: var(--text-dark);
    text-decoration: none;
}

.news-card h3 a:hover {
    color: var(--accent);
}

.news-card p {
    color: var(--text-muted);
    font-size: .85rem;
    margin-bottom: 14px;
}

.news-card .news-date {
    margin-top: auto;
    color: var(--text-muted);
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.news-card .news-more {
    display: block;
    margin-top: 8px;
    font-weight: 700;
    font-size: .82rem;
    color: var(--accent);
    text-decoration: none;
}

/*=========================================================
  SIDEBAR (used on secondary pages)
=========================================================*/
.side-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 26px;
    margin-bottom: 24px;
}

.side-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
}

.side-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-links li+li {
    margin-top: 10px;
}

.side-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: .88rem;
    padding: 13px 18px;
    border-radius: 8px;
    transition: .2s;
}

.side-links a:hover {
    background: var(--accent);
    padding-left: 22px;
}

.side-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.side-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: .2s;
}

.side-social a:hover {
    background: var(--accent);
    color: #fff;
}

.side-contact p {
    font-size: .88rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.side-contact i {
    color: var(--accent);
    width: 20px;
}

/*=========================================================
  MEMBER CENTERS
=========================================================*/
.members-section {
    background: var(--primary-light);
    padding: 60px 0;
}

.member-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 22px;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: .25s;
    text-align: center;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.member-card .member-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.4rem;
}

.member-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.member-card p {
    color: var(--text-muted);
    font-size: .85rem;
    margin-bottom: 14px;
}

/*=========================================================
  DARK INFO + GALLERY GRID
=========================================================*/
.dark-info-section {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, .8);
    padding: 65px 0;
}

.dark-info-section h2 {
    color: #fff;
    font-weight: 800;
    font-size: 1.9rem;
    margin-bottom: 22px;
    line-height: 1.3;
}

.dark-info-section p {
    font-size: .95rem;
    line-height: 1.85;
    margin-bottom: 18px;
}

.dark-info-section .info-contact p {
    margin-bottom: 8px;
}

.dark-info-section .info-contact i {
    color: var(--accent);
    margin-right: 8px;
}

.dark-info-section h6 {
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: .9rem;
    margin-bottom: 6px;
}

.dark-info-section .subtext {
    color: rgba(255, 255, 255, .6);
    font-size: .85rem;
    margin-bottom: 22px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-grid a {
    display: block;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .3s;
}

.gallery-grid a:hover img {
    transform: scale(1.1);
    opacity: .85;
}

/*=========================================================
  FOOTER
=========================================================*/
.site-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, .75);
    padding-top: 55px;
    border-top: 4px solid var(--accent);
}

.site-footer h6 {
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 22px;
}

.site-footer .footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.site-footer .footer-brand img {
    border-radius: 50%;
}

.site-footer .footer-brand span {
    color: #fff;
    font-weight: 800;
    margin-left: 10px;
    font-size: 1.05rem;
}

.site-footer p {
    font-size: .88rem;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    font-size: .88rem;
    transition: .2s;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    text-decoration: none;
    transition: .2s;
}

.footer-social a:hover {
    background: var(--accent);
}

.footer-bottom {
    background: #0b0c33;
    margin-top: 50px;
    padding: 18px 0;
    font-size: .82rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, .7);
}

/*=========================================================
  PEAS TABLE
=========================================================*/
.peas-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-top: 20px;
}

.peas-table-wrap table {
    min-width: 1100px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.peas-table-wrap thead th {
    background: var(--primary);
    color: #fff;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    vertical-align: middle;
    padding: 12px 10px;
}

.peas-table-wrap tbody td {
    padding: 12px 10px;
    vertical-align: top;
    font-size: .88rem;
    line-height: 1.5;
    border-color: var(--border-light);
}

.peas-table-wrap tbody tr:nth-child(even) {
    background: #f8f9ff;
}

.peas-table-wrap .result-cell {
    background: #eef3ff;
    font-weight: 700;
    color: var(--primary);
    width: 18%;
}

.peas-table-wrap .text-center {
    text-align: center;
}

/*=========================================================
  RESPONSIVE
=========================================================*/
@media (max-width: 768px) {
    .topbar .topbar-item:not(:first-child) {
        display: none;
    }

    .navbar-cta-btn {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.article-main-image {
    display: block;
    width: 100%;
    max-width: none;
    height: 320px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .article-main-image {
        height: 200px;
    }
}

.article-meta-share {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.article-share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 700;
}

.share-button {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: transform .2s, opacity .2s;
}

.share-button:hover {
    color: #fff;
    opacity: .85;
    transform: translateY(-2px);
}

.share-button.facebook {
    background: #1877f2;
}

.share-button.twitter {
    background: #111;
}

.share-button.whatsapp {
    background: #25d366;
}

.share-button.linkedin {
    background: #0a66c2;
}
