/* ========================================
   STYLES GLOBAUX DU SITE CAP
   ======================================== */

/* Variables globales */
:root {
    --cap-black: #000000;
    --cap-red: #d32f2f;
    --cap-yellow: #ffd700;
    --cap-white: #ffffff;
    --cap-gray-light: #f8f9fa;
    --cap-gray: #6c757d;
    --cap-gray-dark: #343a40;
    --cap-text: #333333;
    --shadow-light: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 15px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
}

/* ========================================
   RESET & BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--cap-text);
    overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHIE
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    color: var(--cap-black);
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--cap-yellow), var(--cap-red));
}

.section-title.text-start:after {
    left: 0;
    transform: none;
}

/* ========================================
   BOUTONS
   ======================================== */
.btn-cap-primary {
    background-color: var(--cap-red);
    color: var(--cap-white);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-cap-primary:hover {
    background-color: var(--cap-black);
    color: var(--cap-yellow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-cap-outline {
    background-color: transparent;
    color: var(--cap-red);
    border: 2px solid var(--cap-red);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-cap-outline:hover {
    background-color: var(--cap-red);
    color: var(--cap-white);
    transform: translateY(-2px);
}

/* ========================================
   NAVIGATION - HEADER UNIFIÉ
   ======================================== */
.navbar-cap {
    background-color: var(--cap-black) !important;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-cap .navbar-brand {
    color: var(--cap-yellow) !important;
    font-weight: bold;
    font-size: 1.5rem;
    transition: var(--transition);
}

.navbar-cap .navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-cap .navbar-brand i {
    margin-right: 5px;
}

.navbar-cap .nav-link {
    color: var(--cap-white) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: var(--transition);
    position: relative;
}

.navbar-cap .nav-link:hover {
    color: var(--cap-yellow) !important;
}

/* Lien actif avec soulignement */
.navbar-cap .nav-link.active {
    color: var(--cap-yellow) !important;
}

.navbar-cap .nav-link.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--cap-yellow), var(--cap-red));
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        width: 0;
        left: 50%;
    }
    to {
        width: 100%;
        left: 0;
    }
}

/* ========================================
   PAGE HEADER UNIFIÉ (POUR TOUTES LES PAGES SAUF ACCUEIL)
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--cap-black) 0%, var(--cap-red) 50%, var(--cap-yellow) 100%);
    color: var(--cap-white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path d="M0 0 L100 100 M100 0 L0 100" stroke="white" stroke-width="1"/></svg>');
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: var(--cap-yellow);
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInDown 0.8s ease;
}

.page-header p {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--cap-white);
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   HERO SECTION (POUR L'ACCUEIL UNIQUEMENT)
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--cap-black) 0%, var(--cap-red) 50%, var(--cap-yellow) 100%);
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path d="M0 0 L100 100 M100 0 L0 100" stroke="white" stroke-width="1"/></svg>');
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInDown 0.8s ease;
}

.hero-section .slogan {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--cap-yellow);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-section .btn-light {
    animation: fadeInUp 0.8s ease 0.4s both;
    padding: 12px 35px;
    font-weight: 600;
}

/* ========================================
   CTA SECTION (APPEL À L'ADHÉSION)
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--cap-red), var(--cap-black));
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.05"><circle cx="50" cy="50" r="40" stroke="white" stroke-width="1" fill="none"/></svg>');
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    color: var(--cap-yellow);
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.cta-section .lead {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.btn-cta {
    background-color: var(--cap-yellow);
    color: var(--cap-black);
    padding: 15px 50px;
    font-size: 1.3rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-cta:hover {
    background-color: var(--cap-white);
    color: var(--cap-red);
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

/* ========================================
   FOOTER UNIFIÉ
   ======================================== */
.footer {
    background-color: var(--cap-black);
    color: var(--cap-white);
    padding: 50px 0 20px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--cap-yellow), var(--cap-red));
}

.footer h5 {
    color: var(--cap-yellow);
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 1.2rem;
}

.footer p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

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

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

.footer-links a {
    color: var(--cap-white);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--cap-yellow);
    transform: translateX(5px);
}

.footer-links i {
    margin-right: 8px;
    font-size: 0.9rem;
    color: var(--cap-yellow);
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    color: var(--cap-white);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: var(--transition);
    display: inline-block;
}

.social-links a:hover {
    color: var(--cap-yellow);
    transform: translateY(-3px);
}

.footer hr {
    background-color: rgba(255,255,255,0.1);
    margin: 30px 0 20px;
}

.footer .copyright {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========================================
   FILTER SECTION (POUR MEMBERS)
   ======================================== */
.filter-section {
    background-color: var(--cap-gray-light);
    padding: 30px 0;
    border-bottom: 1px solid #dee2e6;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--cap-red);
    background: transparent;
    color: var(--cap-red);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 1rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--cap-red);
    color: white;
}

/* ========================================
   MEMBERS GRID
   ======================================== */
.members-grid-section {
    padding: 60px 0;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.member-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    text-align: center;
    padding: 30px 20px;
}

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

.member-photo-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--cap-yellow);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.member-card:hover .member-photo {
    transform: scale(1.1);
}

.member-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--cap-black);
    margin-bottom: 5px;
}

.member-position {
    color: var(--cap-red);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.member-position:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, var(--cap-yellow), var(--cap-red));
}

.member-bio {
    color: var(--cap-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 0 10px;
}

.btn-view-profile {
    background: transparent;
    border: 2px solid var(--cap-red);
    color: var(--cap-red);
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.btn-view-profile:hover {
    background: var(--cap-red);
    color: white;
}

/* ========================================
   NEWS CARDS
   ======================================== */
.news-card {
    border: none;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

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

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.news-date {
    color: var(--cap-red);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-date i {
    margin-right: 5px;
}

/* ========================================
   PRESIDENT SECTION
   ======================================== */
.president-section {
    background-color: var(--cap-gray-light);
    padding: 60px 0;
}

.president-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--cap-yellow);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.president-photo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

/* ========================================
   GALLERY
   ======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* ========================================
   DOCUMENTS
   ======================================== */
.documents-list {
    margin-top: 30px;
}

.document-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    margin-bottom: 15px;
    transition: var(--transition);
}

.document-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.document-icon {
    font-size: 2rem;
    color: var(--cap-red);
    margin-right: 20px;
}

.document-info {
    flex: 1;
}

.document-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--cap-black);
}

.document-meta {
    color: var(--cap-gray);
    font-size: 0.9rem;
}

.btn-download {
    background: var(--cap-yellow);
    color: var(--cap-black);
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-download:hover {
    background: var(--cap-red);
    color: white;
}

/* ========================================
   CONTACT FORM
   ======================================== */
.contact-info {
    background: var(--cap-gray-light);
    padding: 30px;
    border-radius: 10px;
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    background: var(--cap-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contact-info-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--cap-black);
}

.contact-info-text p {
    color: var(--cap-gray);
    margin: 0;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}

.form-control:focus {
    border-color: var(--cap-yellow);
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 992px) {
    .page-header h1 {
        font-size: 2.8rem;
    }
    
    .hero-section h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .navbar-cap .nav-link {
        margin: 5px 0;
        text-align: center;
    }
    
    .navbar-cap .nav-link.active:after {
        bottom: 0;
    }
    
    /* Headers */
    .page-header {
        padding: 60px 0;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-header p {
        font-size: 1.2rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .slogan {
        font-size: 1.2rem;
    }
    
    /* Sections */
    .section-title {
        font-size: 1.8rem;
    }
    
    .president-photo {
        width: 150px;
        height: 150px;
        margin-bottom: 20px;
    }
    
    /* Grids */
    .members-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    /* Filter buttons */
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer {
        text-align: center;
    }
    
    .footer .col-md-4 {
        margin-bottom: 30px;
    }
    
    .footer .social-links {
        display: flex;
        justify-content: center;
        gap: 20px;
    }
    
    .footer-links {
        padding: 0;
    }
    
    .footer-links li {
        list-style: none;
    }
    
    .footer-links a:hover {
        transform: translateX(0);
    }
    
    /* CTA Section */
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .btn-cta {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    
    /* Contact */
    .contact-info {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .hero-section h1 {
        font-size: 1.6rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .member-photo-container {
        width: 150px;
        height: 150px;
    }
    
    .member-name {
        font-size: 1.3rem;
    }
}

/* ========================================
   UTILITAIRES
   ======================================== */
.text-cap-yellow { color: var(--cap-yellow); }
.text-cap-red { color: var(--cap-red); }
.text-cap-black { color: var(--cap-black); }
.bg-cap-yellow { background-color: var(--cap-yellow); }
.bg-cap-red { background-color: var(--cap-red); }
.bg-cap-black { background-color: var(--cap-black); }
.bg-cap-gray-light { background-color: var(--cap-gray-light); }

.mt-6 { margin-top: 4rem; }
.mb-6 { margin-bottom: 4rem; }
.pt-6 { padding-top: 4rem; }
.pb-6 { padding-bottom: 4rem; }