/* ============================================
   INFLUENTIA RDC - STYLE PRINCIPAL
   Palette : Bleu (#1E3A8A / #2563EB) | Jaune (#F59E0B) | Blanc (#FFFFFF)
   ============================================ */

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1E3A8A;
    --primary-blue-light: #2563EB;
    --primary-blue-dark: #172554;
    --accent-yellow: #F59E0B;
    --accent-yellow-dark: #D97706;
    --white: #FFFFFF;
    --gray-light: #F8FAFC;
    --gray: #E2E8F0;
    --gray-dark: #64748B;
    --text-dark: #0F172A;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--gray-light);
}

/* ---------- TYPOGRAPHIE ---------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; color: var(--primary-blue); }
h2 { font-size: 2rem; color: var(--primary-blue); border-left: 4px solid var(--accent-yellow); padding-left: 1rem; margin: 2rem 0 1.5rem; }
h3 { font-size: 1.5rem; color: var(--primary-blue-dark); }
h4 { font-size: 1.25rem; }

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-yellow);
}

/* ---------- HEADER & NAVIGATION ---------- */
header {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

.logo a span {
    color: var(--accent-yellow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-yellow);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-yellow);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-connexion {
    background: var(--accent-yellow);
    color: var(--primary-blue-dark);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
}

.btn-connexion:hover {
    background: var(--accent-yellow-dark);
    color: white;
}

.btn-connexion::after {
    display: none;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--white);
    cursor: pointer;
}

/* ---------- BOUTONS ---------- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    background: var(--accent-yellow);
    color: var(--primary-blue-dark);
}

.btn-secondary:hover {
    background: var(--accent-yellow-dark);
    transform: translateY(-2px);
    color: white;
}

.btn-wa {
    background: #25D366;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-wa:hover {
    background: #128C7E;
    color: white;
}

/* ---------- HERO SECTION (Accueil) ---------- */
.hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: var(--white);
    padding: 4rem 5%;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero h1 span {
    color: var(--accent-yellow);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

/* ---------- CARDS (Formations, Articles) ---------- */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.5rem;
}

.card-content .prix {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0.75rem 0;
}

.card-content .duree {
    color: var(--gray-dark);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ---------- SECTION ACCÈS RAPIDE ---------- */
.quick-access {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 3rem 0;
}

.quick-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    width: 250px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.quick-card:hover {
    transform: translateY(-5px);
    border-bottom: 3px solid var(--accent-yellow);
}

.quick-card i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* ---------- FORMULAIRES ---------- */
.form-container {
    max-width: 500px;
    margin: 3rem auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ---------- GALERIE PHOTOS (Activités) ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ---------- ÉQUIPE ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--white);
    border-radius: 1rem;
    text-align: center;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.team-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-card h3 {
    margin-top: 1rem;
}

.team-card .poste {
    color: var(--accent-yellow);
    font-weight: 600;
    margin: 0.5rem 0;
}

.team-card .bio {
    padding: 0 1rem 1rem;
    color: var(--gray-dark);
    font-size: 0.9rem;
}

/* ---------- FOOTER ---------- */
footer {
    background: var(--primary-blue-dark);
    color: var(--white);
    padding: 3rem 5% 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-section h3 {
    color: var(--accent-yellow);
    margin-bottom: 1rem;
}

.footer-section p, .footer-section a {
    color: var(--gray);
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: var(--accent-yellow);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ---------- ALERTS & MESSAGES ---------- */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #DCFCE7;
    color: #166534;
    border: 1px solid #86EFAC;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    
    .navbar {
        padding: 0.75rem 5%;
    }
}

/* ---------- UTILITAIRES ---------- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center { text-align: center; }
.text-yellow { color: var(--accent-yellow); }
.bg-blue { background: var(--primary-blue); }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }