/* ==========================================
   ASSOCIATION VAAN - STYLES PRINCIPAUX
   ========================================== */

:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --accent-color: #06b6d4;
    --dark-color: #0f172a;
    --text-color: #4b5563;
    --text-light: #94a3b8;
    --white: #ffffff;
    --light-bg: #f9fafb;
    --border-color: #e5e7eb;
    --success: #10b981;
    --danger: #e11d48;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.logo-text h1 {
    font-family: 'Poppins', sans-serif;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

nav ul li a {
    display: block;
    padding: 0.5rem 0.85rem;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all var(--transition);
    position: relative;
    white-space: nowrap;
}

nav ul li a:hover {
    color: var(--primary-color);
    background-color: rgba(79, 70, 229, 0.05);
}

nav ul li a.active {
    color: var(--primary-color);
    font-weight: 700;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* Menu burger */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}

.burger-menu span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: all var(--transition);
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================
   CONTENEUR PRINCIPAL
   ========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
}

/* ==========================================
   HERO (ACCUEIL)
   ========================================== */

.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 6rem 1.5rem;
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(79, 70, 229, 0.75)), url('../images/sam4.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(15, 23, 42, 0.4) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: heroFadeIn 0.8s ease-out;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   BOUTONS
   ========================================== */

.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    font-family: inherit;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* ==========================================
   BANDE DE STATISTIQUES
   ========================================== */

.stats-band {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 3rem 1.5rem;
    color: var(--white);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================
   GRILLES
   ========================================== */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ==========================================
   CARTES
   ========================================== */

.card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(79, 70, 229, 0.3);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1;
    display: inline-block;
    transition: transform var(--transition);
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.card h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.card p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.card p:last-child {
    margin-bottom: 0;
}

/* ==========================================
   FORMULAIRES
   ========================================== */

.form-container {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
    background-color: var(--white);
    color: var(--dark-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.form-control::placeholder {
    color: var(--text-light);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

button[type="submit"] {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
    font-family: inherit;
}

button[type="submit"]:hover:not(:disabled) {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

button[type="submit"]:disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 1.5rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.4rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================
   BOUTON FLOTTANT
   ========================================== */

.floating-help-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: var(--white);
    padding: 0.85rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform var(--transition), box-shadow var(--transition);
    font-size: 0.95rem;
}

.floating-help-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 25px rgba(79, 70, 229, 0.55);
    color: var(--white);
}

.floating-help-btn svg {
    width: 20px;
    height: 20px;
}

/* ==========================================
   RESPONSIVE - TABLETTE
   ========================================== */

@media (max-width: 968px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */

@media (max-width: 768px) {
    /* Menu burger */
    .burger-menu {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        padding: 5rem 1.5rem 2rem;
        transition: right 0.35s ease;
        z-index: 1050;
        overflow-y: auto;
    }

    nav.nav-open {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0.25rem;
        align-items: stretch;
    }

    nav ul li a {
        padding: 0.85rem 1rem;
        font-size: 1rem;
        border-radius: 8px;
    }

    nav ul li a.active::after {
        display: none;
    }

    nav ul li a.active {
        background-color: rgba(79, 70, 229, 0.08);
    }

    /* Container */
    .container {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    /* Grilles */
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Hero */
    .hero {
        min-height: 400px;
        padding: 4rem 1rem;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* Stats */
    .stats-band {
        padding: 2rem 1rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Formulaires */
    .form-container {
        padding: 1.5rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Bouton flottant */
    .floating-help-btn {
        bottom: 20px;
        right: 20px;
        padding: 0.7rem 1.1rem;
        font-size: 0.85rem;
    }

    .floating-help-btn svg {
        width: 16px;
        height: 16px;
    }

    /* Cartes */
    .card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 0.95rem !important;
    }
    .logo-text span {
        font-size: 0.65rem !important;
    }
    .logo-area img {
        width: 38px !important;
        height: 38px !important;
    }
    .stats-container {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   ACCESSIBILITÉ
   ========================================== */

:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Scrollbar personnalisée (Webkit) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}