/* ============================================
   A.F.3C.SNJ - Site Web Officiel
   Couleurs du Mali : Vert #14B53A, Or #FCD116, Rouge #CE1126
   ============================================ */

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

:root {
    --vert: #14B53A;
    --vert-fonce: #0D7A27;
    --or: #FCD116;
    --or-fonce: #D4A800;
    --rouge: #CE1126;
    --rouge-fonce: #A00D1E;
    --noir: #1a1a1a;
    --gris-fonce: #2d2d2d;
    --gris: #555;
    --gris-clair: #f5f5f5;
    --blanc: #ffffff;
    --ombre: 0 4px 20px rgba(0, 0, 0, 0.1);
    --ombre-forte: 0 8px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--noir);
    background: var(--blanc);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}


ul, ol {
    padding-left: 0;
    margin-bottom: 0;
}
.row > * { padding-right: calc(var(--bs-gutter-x) * .5); padding-left: calc(var(--bs-gutter-x) * .5); }

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--or);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(26, 26, 26, 0.98);
    box-shadow: var(--ombre-forte);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    margin-left: -22px;
    margin-right: 20px;
}

.nav-brand .logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--vert), var(--or), var(--rouge));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--blanc);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.nav-brand .brand-text {
    color: var(--blanc);
}

.nav-brand .brand-text .brand-name {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.nav-brand .brand-text .brand-sub {
    font-size: 0.7rem;
    color: var(--or);
    font-weight: 400;
    letter-spacing: 0.3px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 40px;
    flex: 1;
}

.nav-spacer {
    flex: 1;
    min-width: 1px;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 6px;
    position: relative;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--or);
    background: rgba(252, 209, 22, 0.1);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--or);
    border-radius: 2px;
}

.nav-cta {
    background: var(--vert) !important;
    color: var(--blanc) !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    margin-left: 8px;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--vert-fonce) !important;
    color: var(--blanc) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 181, 58, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    width: 25px;
    height: 2.5px;
    background: var(--blanc);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #0a1628 0%, #1a2a3a 40%, #0d1f2d 100%);
    overflow: hidden;
    text-align: center;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(20, 181, 58, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(206, 17, 38, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 20%, rgba(252, 209, 22, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(252, 209, 22, 0.15);
    border: 1px solid rgba(252, 209, 22, 0.3);
    color: var(--or);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease;
}

.hero-emblem {
    width: 140px;
    height: 140px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--vert), var(--or), var(--rouge));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(252, 209, 22, 0.3);
    animation: fadeInUp 1s ease;
    position: relative;
}

.hero-emblem::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(252, 209, 22, 0.4);
}

.hero-emblem::after {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px solid rgba(252, 209, 22, 0.15);
}

.hero-emblem span {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--blanc);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--blanc);
    line-height: 1.2;
    margin-bottom: 10px;
    animation: fadeInUp 1.2s ease;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--or), #FFE066);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .promotion {
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    color: rgba(255,255,255,0.7);
    font-weight: 400;
    margin-bottom: 20px;
    animation: fadeInUp 1.4s ease;
}

.hero .devise {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--or);
    font-style: italic;
    margin-bottom: 15px;
    animation: fadeInUp 1.6s ease;
    text-shadow: 0 2px 10px rgba(252, 209, 22, 0.3);
}

.hero .devise::before,
.hero .devise::after {
    content: '★';
    margin: 0 12px;
    font-style: normal;
    font-size: 0.8em;
}

.hero-date {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    margin-bottom: 35px;
    animation: fadeInUp 1.7s ease;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.8s ease;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    animation: fadeInUp 2s ease;
}

.hero-stat {
    text-align: center;
}

.hero-stat .number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--or);
    display: block;
    line-height: 1;
}

.hero-stat .label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Decorative line under hero */
.hero-divider {
    height: 4px;
    background: linear-gradient(90deg, var(--vert) 33%, var(--or) 33%, var(--or) 66%, var(--rouge) 66%);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--or), var(--or-fonce));
    color: var(--noir);
    box-shadow: 0 4px 15px rgba(252, 209, 22, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(252, 209, 22, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--blanc);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--or);
    color: var(--or);
    background: rgba(252, 209, 22, 0.05);
}

.btn-vert {
    background: linear-gradient(135deg, var(--vert), var(--vert-fonce));
    color: var(--blanc);
    box-shadow: 0 4px 15px rgba(20, 181, 58, 0.3);
}

.btn-vert:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 181, 58, 0.4);
}

.btn-rouge {
    background: linear-gradient(135deg, var(--rouge), var(--rouge-fonce));
    color: var(--blanc);
}

.btn-rouge:hover {
    transform: translateY(-2px);
}

/* === SECTIONS === */
.section {
    padding: 80px 0;
}

.section-dark {
    background: var(--gris-fonce);
    color: var(--blanc);
}

.section-light {
    background: var(--gris-clair);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .overline {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--vert);
    margin-bottom: 10px;
}

.section-dark .section-header .overline {
    color: var(--or);
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--gris);
    font-size: 1.05rem;
}

.section-dark .section-header p {
    color: rgba(255,255,255,0.6);
}

.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--vert), var(--or), var(--rouge));
    margin: 15px auto 0;
    border-radius: 3px;
}

/* === OBJECTIFS === */
.objectifs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.objectif-card {
    background: var(--blanc);
    border-radius: 12px;
    padding: 35px 30px;
    box-shadow: var(--ombre);
    border-top: 4px solid var(--vert);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.objectif-card:nth-child(2) {
    border-top-color: var(--or);
}

.objectif-card:nth-child(3) {
    border-top-color: var(--rouge);
}

.objectif-card:nth-child(4) {
    border-top-color: var(--vert);
}

.objectif-card:nth-child(5) {
    border-top-color: var(--or);
}

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

.objectif-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(20, 181, 58, 0.1), rgba(20, 181, 58, 0.05));
}

.objectif-card:nth-child(2) .icon {
    background: linear-gradient(135deg, rgba(252, 209, 22, 0.15), rgba(252, 209, 22, 0.05));
}

.objectif-card:nth-child(3) .icon {
    background: linear-gradient(135deg, rgba(206, 17, 38, 0.1), rgba(206, 17, 38, 0.05));
}

.objectif-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.objectif-card p {
    color: var(--gris);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* === VALEURS === */
.valeurs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.valeur-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.valeur-item:hover {
    background: rgba(252, 209, 22, 0.08);
    border-color: rgba(252, 209, 22, 0.3);
    transform: translateY(-3px);
}

.valeur-item .v-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
    display: block;
}

.valeur-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--or);
    margin-bottom: 8px;
}

.valeur-item p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
}

/* === ORGANES === */
.organes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.organe-card {
    background: var(--blanc);
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: var(--ombre);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.organe-card:hover {
    border-bottom-color: var(--or);
    transform: translateY(-3px);
}

.organe-card .o-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

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

.organe-card p {
    font-size: 0.85rem;
    color: var(--gris);
    line-height: 1.6;
}

/* === BUREAU MEMBERS === */
.bureau-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.bureau-member {
    background: var(--blanc);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--ombre);
    transition: var(--transition);
}

.bureau-member:hover {
    transform: translateY(-3px);
    box-shadow: var(--ombre-forte);
}

.bureau-member .member-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vert), var(--or));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--blanc);
    font-weight: 700;
    flex-shrink: 0;
}

.bureau-member .member-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.bureau-member .member-info p {
    font-size: 0.8rem;
    color: var(--gris);
}

.bureau-president {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto 15px;
    border-left: 4px solid var(--or);
    padding: 30px;
}

.bureau-president .member-avatar {
    width: 70px;
    height: 70px;
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--or), var(--or-fonce));
}

.is-hidden {
    display: none !important;
}

.admin-sub-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--noir);
}

.admin-sub-title--spaced {
    margin-top: 30px;
}

.required {
    color: var(--rouge);
}

.bureau-admin-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bureau-admin-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--blanc);
    border: 1px solid var(--gris-clair, #e8e8e8);
    border-radius: 10px;
    padding: 12px 16px;
}

.bureau-admin-row-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.bureau-admin-row-initials {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vert), var(--or));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--blanc);
    flex-shrink: 0;
}

.bureau-admin-row-info {
    flex: 1;
    min-width: 0;
}

.bureau-admin-row-info strong {
    display: block;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bureau-admin-row-info span {
    font-size: 0.78rem;
    color: var(--gris);
}

.bureau-admin-empty {
    color: var(--gris);
    font-style: italic;
    padding: 20px 0;
}

.bureau-add-form {
    background: var(--fond, #f8f9fa);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 10px;
}

.bureau-loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--gris);
}

.bureau-member .member-name {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--vert);
    margin-bottom: 2px;
}

.member-ville-badge {
    display: inline-block;
    font-size: 0.72rem;
    background: rgba(20, 181, 58, 0.1);
    color: var(--vert);
    border-radius: 20px;
    padding: 2px 8px;
    margin-top: 4px;
}

.commissaires-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.objectif-card--rouge {
    border-top-color: var(--rouge);
}

.commissaires-icon {
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(206, 17, 38, 0.1), rgba(206, 17, 38, 0.05));
}

/* === DOCUMENTS / STATUTS / REGLEMENT === */
.document-section {
    padding: 100px 0 80px;
}

.document-content {
    max-width: 850px;
    margin: 0 auto;
    background: var(--blanc);
    border-radius: 16px;
    padding: 50px;
    box-shadow: var(--ombre);
}

.document-content h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 5px;
    color: var(--noir);
}

.document-content .doc-subtitle {
    text-align: center;
    color: var(--gris);
    font-size: 0.95rem;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--gris-clair);
}

.document-content h2 {
    font-size: 1.4rem;
    color: var(--vert-fonce);
    margin-top: 40px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(20, 181, 58, 0.2);
}

.document-content h3 {
    font-size: 1.15rem;
    color: var(--noir);
    margin-top: 30px;
    margin-bottom: 12px;
}

.document-content h4 {
    font-size: 1.05rem;
    color: var(--gris-fonce);
    margin-top: 25px;
    margin-bottom: 10px;
    font-style: italic;
}

.document-content p {
    margin-bottom: 12px;
    text-align: justify;
    color: #333;
}

.document-content ul, .document-content ol {
    margin: 10px 0 15px 25px;
    list-style: disc;
}

.document-content ul li, .document-content ol li {
    margin-bottom: 6px;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.7;
}

.article-box {
    background: var(--gris-clair);
    border-left: 4px solid var(--or);
    padding: 20px 25px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.article-box strong {
    color: var(--noir);
}

/* === PAGE HEADER (for inner pages) === */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #0a1628 0%, #1a2a3a 100%);
    text-align: center;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--vert) 33%, var(--or) 33%, var(--or) 66%, var(--rouge) 66%);
}

.page-header h1 {
    color: var(--blanc);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 10px;
}

.page-header p {
    color: rgba(255,255,255,0.6);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.85rem;
}

.breadcrumb a {
    color: var(--or);
}

.breadcrumb span {
    color: rgba(255,255,255,0.4);
}

/* === ADHESION === */
.adhesion-conditions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.condition-card {
    background: var(--blanc);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--ombre);
    text-align: center;
}

.condition-card .c-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.condition-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.condition-card p {
    color: var(--gris);
    font-size: 0.9rem;
}

.cotisation-table {
    background: var(--blanc);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--ombre);
    margin-bottom: 40px;
}

.cotisation-table h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    text-align: center;
}

.cotisation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--gris-clair);
}

.cotisation-item:last-child {
    border-bottom: none;
}

.cotisation-item .label {
    font-weight: 500;
    color: var(--noir);
}

.cotisation-item .amount {
    font-weight: 700;
    color: var(--vert-fonce);
    font-size: 1.1rem;
}

/* === FORMS === */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--blanc);
    border-radius: 16px;
    padding: 45px;
    box-shadow: var(--ombre);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--noir);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--blanc);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--vert);
    box-shadow: 0 0 0 3px rgba(20, 181, 58, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-submit {
    text-align: center;
    margin-top: 10px;
}

/* === CONTACT INFO === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: var(--blanc);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    box-shadow: var(--ombre);
}

.contact-card .cc-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(20, 181, 58, 0.1), rgba(252, 209, 22, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-card p {
    font-size: 0.88rem;
    color: var(--gris);
    line-height: 1.5;
}

/* === SOCIAL / AIDE === */
.aide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.aide-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.05);
    padding: 20px 25px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.aide-item .event {
    font-weight: 600;
    color: var(--blanc);
}

.aide-item .montant {
    color: var(--or);
    font-weight: 700;
    font-size: 1.1rem;
}

/* === ABOUT TIMELINE === */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--vert), var(--or), var(--rouge));
    border-radius: 3px;
}

.timeline-item {
    padding-left: 55px;
    margin-bottom: 35px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--or);
    border: 3px solid var(--blanc);
    box-shadow: 0 0 0 3px var(--or);
}

.timeline-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--vert-fonce);
}

.timeline-item p {
    color: var(--gris);
    font-size: 0.92rem;
}

/* === PREAMBULE === */
.preambule-box {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border-left: 5px solid var(--or);
    padding: 35px 40px;
    border-radius: 0 12px 12px 0;
    margin: 30px 0;
    font-style: italic;
    line-height: 1.9;
    color: var(--gris);
}

.preambule-box p {
    margin-bottom: 8px;
}

/* === FOOTER === */
.footer {
    background: var(--noir);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blanc);
    margin-bottom: 5px;
}

.footer-brand .brand-sub {
    font-size: 0.8rem;
    color: var(--or);
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blanc);
    margin-bottom: 18px;
}

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

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.footer-links a:hover {
    color: var(--or);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.footer-contact .fc-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom .mali-flag {
    display: flex;
    gap: 3px;
}

.footer-bottom .mali-flag span {
    width: 20px;
    height: 12px;
    border-radius: 2px;
}

.footer-bottom .mali-flag .f-vert { background: var(--vert); }
.footer-bottom .mali-flag .f-or { background: var(--or); }
.footer-bottom .mali-flag .f-rouge { background: var(--rouge); }

/* === SCROLL TO TOP === */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--or);
    color: var(--noir);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

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

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

.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === PRINCIPES & MEMBRES GRIDS === */
.principes-grid {
    max-width: 900px;
    margin: 0 auto;
    grid-template-columns: repeat(3, 1fr);
}

.membres-grid {
    max-width: 1000px;
    margin: 0 auto;
    grid-template-columns: repeat(3, 1fr);
}

/* ============================================
   RESPONSIVE - Tous les écrans
   ============================================ */

/* --- XL: Large desktops (>1200px) --- */
@media (min-width: 1201px) {
    .container {
        max-width: 1200px;
    }
}

/* --- LG: Desktops & petits portables (992px - 1200px) --- */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .nav-menu a {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .nav-dropdown .dropdown-toggle {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .carousel-slide img {
        height: 450px;
    }
}

/* --- MD: Tablettes paysage (768px - 991px) --- */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 30px;
    }

    .partenaires-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .bureau-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .president-section {
        grid-template-columns: 220px 1fr;
        gap: 35px;
    }

    .carousel-slide img {
        height: 400px;
    }

    .nav-menu a {
        padding: 8px 8px;
        font-size: 0.78rem;
    }

    .nav-dropdown .dropdown-toggle {
        padding: 8px 8px;
        font-size: 0.78rem;
    }
}

/* --- SM: Tablettes portrait & grands mobiles (576px - 767px) --- */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }

    /* Nav mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--noir);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 5px;
        transition: var(--transition);
        box-shadow: -5px 0 30px rgba(0,0,0,0.3);
        overflow-y: auto;
        z-index: 1002;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        width: 100%;
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .nav-toggle {
        display: flex;
    }

    /* Dropdown mobile */
    .nav-dropdown .dropdown-menu {
        position: static;
        transform: none;
        min-width: 100%;
        background: rgba(255, 255, 255, 0.05);
        border: none;
        box-shadow: none;
        padding: 5px 0 5px 15px;
        display: none;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .nav-dropdown.open .dropdown-menu {
        display: grid;
    }

    .nav-dropdown:hover .dropdown-menu {
        display: none;
    }

    .nav-dropdown.open .dropdown-menu {
        display: grid;
    }

    .dropdown-menu a {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    /* Hero */
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .hero-emblem {
        width: 110px;
        height: 110px;
    }

    .hero-emblem span {
        font-size: 2rem;
    }

    .hero-logo-img {
        width: 100px;
        height: 100px;
    }

    /* Sections */
    .section {
        padding: 60px 0;
    }

    .carousel-section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* Grids */
    .objectifs-grid {
        grid-template-columns: 1fr;
    }

    .principes-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .membres-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .valeurs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .organes-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bureau-grid {
        grid-template-columns: 1fr;
    }

    .contingent-grid {
        grid-template-columns: 1fr;
    }

    .cohorte-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partenaires-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .adhesion-conditions {
        grid-template-columns: 1fr;
    }

    .aide-grid {
        grid-template-columns: 1fr;
    }

    /* Carousel */
    .carousel-slide img {
        height: 300px;
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .gallery-item img {
        height: 200px;
    }

    /* Realisations */
    .realisation-card {
        flex-direction: column;
        gap: 15px;
    }

    .realisation-date {
        flex-direction: row;
        gap: 8px;
        padding: 8px 15px;
    }

    /* President */
    .president-section {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .president-photo img {
        width: 180px;
        height: 180px;
    }

    /* Documents */
    .document-content {
        padding: 25px 20px;
    }

    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 30px 20px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* Bureau */
    .bureau-president {
        max-width: 100%;
    }
}

/* === LOGO IMAGE === */
.nav-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(252, 209, 22, 0.4);
}

.hero-logo-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
}

/* === PHOTO CAROUSEL === */
.carousel-section {
    padding: 80px 0;
    background: var(--gris-clair);
}

.carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--ombre-forte);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.carousel-slide .slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: var(--blanc);
}

.carousel-slide .slide-overlay p {
    font-size: 0.95rem;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--blanc);
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.carousel-btn:hover {
    background: rgba(252, 209, 22, 0.8);
    color: var(--noir);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.carousel-dot.active {
    background: var(--or);
    transform: scale(1.3);
}

.carousel-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    color: var(--blanc);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* (responsive rules moved to unified block above) */

/* === DROPDOWN NAV === */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-toggle {
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.nav-dropdown .dropdown-toggle:hover,
.nav-dropdown .dropdown-toggle.active {
    color: var(--or);
    background: rgba(252, 209, 22, 0.1);
}

.nav-dropdown .dropdown-toggle.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--or);
    border-radius: 2px;
}

.dropdown-arrow {
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--noir);
    border-radius: 12px;
    padding: 20px;
    min-width: 420px;
    display: none;
    gap: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
    grid-template-columns: 1fr 1fr;
}

.nav-dropdown:hover .dropdown-menu {
    display: grid;
}

.dropdown-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--or);
    padding: 6px 12px;
    margin-bottom: 5px;
}

.dropdown-menu a {
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 12px;
    font-size: 0.82rem;
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
}

.dropdown-menu a:hover {
    color: var(--or);
    background: rgba(252, 209, 22, 0.1);
}

/* === MEMBER PHOTO === */
.member-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--or);
}

.bureau-member:not(.bureau-president) .member-photo {
    width: 55px;
    height: 55px;
}

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

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

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--ombre-forte);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay p {
    font-size: 0.9rem;
    font-weight: 500;
}

/* === GALLERY ROTATION === */
.gallery-grid {
    transition: opacity 0.4s ease;
}
.gallery-visible {
    opacity: 1;
}
.gallery-fade-out {
    opacity: 0;
}

.gallery-rotation-nav {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.gallery-progress-track {
    width: 100%;
    max-width: 400px;
    height: 3px;
    background: rgba(0,0,0,0.1);
    border-radius: 2px;
    overflow: hidden;
}
.gallery-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primaire, #c8102e);
    border-radius: 2px;
}

.gallery-nav-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gallery-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primaire, #c8102e);
    background: transparent;
    color: var(--primaire, #c8102e);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}
.gallery-nav-btn:hover {
    background: var(--primaire, #c8102e);
    color: #fff;
}

.gallery-dots {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 320px;
}
.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.2s;
}
.gallery-dot.active {
    background: var(--primaire, #c8102e);
    transform: scale(1.3);
}
.gallery-dot:hover {
    background: var(--primaire-clair, #e85a72);
}

.gallery-counter {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* === REALISATIONS === */
.realisations-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.realisation-card {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: var(--blanc);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--ombre);
    transition: var(--transition);
    border-left: 4px solid var(--vert);
}

.realisation-card:nth-child(2) {
    border-left-color: var(--or);
}

.realisation-card:nth-child(3) {
    border-left-color: var(--rouge);
}

.realisation-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ombre-forte);
}

.realisation-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    background: linear-gradient(135deg, var(--gris-fonce), #3a3a3a);
    padding: 15px 10px;
    border-radius: 10px;
    flex-shrink: 0;
}

.realisation-date .r-month {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--or);
    text-transform: uppercase;
}

.realisation-date .r-year {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--blanc);
}

.realisation-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--noir);
}

.realisation-content p {
    font-size: 0.9rem;
    color: var(--gris);
    line-height: 1.7;
}

/* === CONTINGENTS === */
.contingent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.contingent-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--blanc);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--ombre);
    transition: var(--transition);
    scroll-margin-top: 100px;
}

.contingent-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ombre-forte);
}

.contingent-number {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vert), var(--vert-fonce));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--blanc);
    flex-shrink: 0;
}

.contingent-card:nth-child(2) .contingent-number {
    background: linear-gradient(135deg, var(--or), var(--or-fonce));
    color: var(--noir);
}

.contingent-card:nth-child(3) .contingent-number {
    background: linear-gradient(135deg, var(--rouge), var(--rouge-fonce));
}

.contingent-card:nth-child(4) .contingent-number {
    background: linear-gradient(135deg, var(--vert), var(--or));
}

.contingent-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contingent-info p {
    font-size: 0.9rem;
    color: var(--gris);
    line-height: 1.7;
}

/* === COHORTES === */
.cohorte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.cohorte-card {
    background: var(--blanc);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--ombre);
    transition: var(--transition);
    scroll-margin-top: 100px;
}

.cohorte-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ombre-forte);
}

.cohorte-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(20, 181, 58, 0.1), rgba(252, 209, 22, 0.1));
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--vert-fonce);
    margin-bottom: 15px;
}

.cohorte-badge.cohorte-highlight {
    background: linear-gradient(135deg, var(--or), var(--or-fonce));
    color: var(--noir);
    box-shadow: 0 4px 15px rgba(252, 209, 22, 0.3);
}

.cohorte-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.cohorte-card p {
    font-size: 0.88rem;
    color: var(--gris);
    line-height: 1.7;
}

/* === MOT DU PRESIDENT === */
.president-section {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.president-photo {
    text-align: center;
}

.president-photo img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--or);
    box-shadow: 0 0 40px rgba(252, 209, 22, 0.2);
}

.president-message blockquote {
    border: none;
    padding: 0;
    margin: 0;
}

.president-message blockquote p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 12px;
    font-style: italic;
}

.president-message blockquote p:first-child {
    font-size: 1.05rem;
    color: var(--or);
    font-weight: 600;
    font-style: normal;
}

.president-signature {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.president-signature strong {
    color: var(--or);
    font-size: 0.95rem;
}

/* === PARTENAIRES === */
.partenaires-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.partenaire-card {
    display: block;
    background: var(--blanc);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--ombre);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.partenaire-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ombre-forte);
    border-bottom-color: var(--or);
}

.partenaire-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.partenaire-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--noir);
}

.partenaire-card p {
    font-size: 0.82rem;
    color: var(--gris);
    line-height: 1.5;
}

/* === HOMMAGE === */
.hommage-section {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: start;
    max-width: 950px;
    margin: 0 auto;
}

.hommage-photo {
    text-align: center;
}

.hommage-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(252, 209, 22, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin: 0 auto 20px;
    border: 4px solid rgba(252, 209, 22, 0.3);
    box-shadow: 0 0 40px rgba(252, 209, 22, 0.1);
}

.hommage-dates {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    font-style: italic;
}

.hommage-etoile {
    color: var(--or);
    font-style: normal;
}

.hommage-citation {
    background: rgba(252, 209, 22, 0.08);
    border-left: 4px solid var(--or);
    padding: 20px 25px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 25px;
}

.hommage-citation p {
    color: var(--or);
    font-size: 1.05rem;
    font-style: italic;
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
}

.hommage-texte p {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 14px;
    text-align: justify;
}

.hommage-engagements {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hommage-engagement-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255,255,255,0.05);
    padding: 18px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
}

.hommage-engagement-item .he-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.hommage-engagement-item strong {
    color: var(--or);
    font-size: 0.92rem;
    display: block;
    margin-bottom: 4px;
}

.hommage-engagement-item p {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 767px) {
    .hommage-section {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .hommage-avatar {
        width: 160px;
        height: 160px;
        font-size: 3rem;
    }

    .hommage-texte p {
        text-align: left;
    }
}

@media (max-width: 575px) {
    .hommage-avatar {
        width: 130px;
        height: 130px;
        font-size: 2.5rem;
    }
}

/* === MOT DU MAJOR === */
.major-section {
    /* inherit president-section styles */
}

.major-avatar {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vert), var(--or));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border: 5px solid var(--or);
    box-shadow: 0 0 40px rgba(20, 181, 58, 0.2);
    margin: 0 auto;
}

.major-message blockquote p {
    color: var(--gris);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 12px;
    font-style: italic;
}

.major-message blockquote p:first-child {
    font-size: 1.05rem;
    color: var(--vert-fonce);
    font-weight: 600;
    font-style: normal;
}

.major-message .president-signature strong {
    color: var(--vert-fonce);
}

/* === MODAL CONTINGENTS/COHORTES === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--blanc);
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: var(--gris-clair);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--rouge);
    color: var(--blanc);
}

.modal-content h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--noir);
}

.modal-content .modal-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.modal-badge.contingent-type {
    background: rgba(20, 181, 58, 0.1);
    color: var(--vert-fonce);
}

.modal-badge.cohorte-type {
    background: rgba(252, 209, 22, 0.15);
    color: var(--or-fonce);
}

.modal-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.modal-info-item {
    background: var(--gris-clair);
    border-radius: 10px;
    padding: 15px;
}

.modal-info-item .info-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gris);
    margin-bottom: 4px;
    display: block;
}

.modal-info-item .info-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--noir);
}

.modal-description {
    color: var(--gris);
    font-size: 0.92rem;
    line-height: 1.8;
    margin-top: 15px;
}

.btn-savoir-plus {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--vert), var(--vert-fonce));
    color: var(--blanc);
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-savoir-plus:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(20, 181, 58, 0.3);
}

/* === SOCIAL LINKS === */
.social-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.social-link.facebook {
    background: rgba(24, 119, 242, 0.1);
    color: #1877F2;
}

.social-link.facebook:hover {
    background: #1877F2;
    color: var(--blanc);
}

.social-link.youtube {
    background: rgba(255, 0, 0, 0.1);
    color: #FF0000;
}

.social-link.youtube:hover {
    background: #FF0000;
    color: var(--blanc);
}

.social-link.twitter {
    background: rgba(0, 0, 0, 0.08);
    color: #000000;
}

.social-link.twitter:hover {
    background: #000000;
    color: var(--blanc);
}

/* --- XS: Petits mobiles (<576px) --- */
@media (max-width: 575px) {
    .container {
        padding: 0 12px;
    }

    .hero-content {
        padding: 30px 15px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero .promotion {
        font-size: 0.85rem;
    }

    .hero .devise {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-stat .number {
        font-size: 1.8rem;
    }

    .nav-brand .brand-text .brand-name {
        font-size: 0.8rem;
    }

    .nav-brand .brand-text .brand-sub {
        font-size: 0.6rem;
    }

    .nav-logo-img {
        width: 40px;
        height: 40px;
    }

    .section {
        padding: 45px 0;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    .page-header {
        padding: 100px 0 40px;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    /* Grids single column */
    .valeurs-grid {
        grid-template-columns: 1fr;
    }

    .organes-grid {
        grid-template-columns: 1fr;
    }

    .cohorte-grid {
        grid-template-columns: 1fr;
    }

    .partenaires-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 220px;
    }

    /* Carousel */
    .carousel-slide img {
        height: 220px;
    }

    .carousel-section {
        padding: 45px 0;
    }

    .carousel-slide .slide-overlay {
        padding: 15px;
    }

    .carousel-slide .slide-overlay p {
        font-size: 0.8rem;
    }

    /* President */
    .president-photo img {
        width: 150px;
        height: 150px;
    }

    .president-message blockquote p {
        font-size: 0.88rem;
    }

    /* Cards */
    .objectif-card,
    .condition-card,
    .organe-card,
    .contingent-card,
    .cohorte-card,
    .partenaire-card {
        padding: 20px 15px;
    }

    .cotisation-table {
        padding: 25px 15px;
    }

    .preambule-box {
        padding: 20px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 0;
    }

    /* Scroll top */
    .scroll-top {
        width: 38px;
        height: 38px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }

    /* Document */
    .document-content {
        padding: 20px 15px;
    }

    .document-content h1 {
        font-size: 1.5rem;
    }

    .document-content h2 {
        font-size: 1.2rem;
    }

    .form-container {
        padding: 25px 15px;
    }

    /* Member photo */
    .member-photo {
        width: 55px;
        height: 55px;
    }

    .bureau-president .member-photo {
        width: 60px;
        height: 60px;
    }

    .bureau-president {
        padding: 20px;
    }

    /* Realisation */
    .realisation-content h3 {
        font-size: 1rem;
    }
}

/* === ADMINISTRATION === */
.admin-login-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.82);
    z-index: 2000;
    padding: 20px;
}

.admin-login-box {
    width: min(520px, 100%);
    background: #121212;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.admin-login-box h2 {
    margin-bottom: 12px;
    color: var(--or);
}

.admin-login-box p {
    margin-bottom: 24px;
    color: rgba(255,255,255,0.75);
}

.admin-login-error {
    display: none;
    margin-bottom: 16px;
    color: #ffdddd;
    background: rgba(255, 0, 0, 0.12);
    border: 1px solid rgba(255, 0, 0, 0.2);
    padding: 10px 14px;
    border-radius: 12px;
}

.admin-locked {
    overflow: hidden;
}

.admin-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.admin-page {
    padding: 120px 0 80px;
}

.admin-card {
    background: var(--blanc);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--ombre);
    margin-bottom: 30px;
}

.admin-header h2 {
    font-size: 1.9rem;
    margin-bottom: 0.35rem;
    color: var(--vert);
}

.admin-header p {
    color: var(--gris-fonce);
    margin-bottom: 24px;
}

.admin-note {
    border-left: 4px solid var(--or);
    background: rgba(252, 209, 22, 0.12);
    padding: 18px 20px;
    border-radius: 14px;
    color: var(--gris-fonce);
    margin-bottom: 24px;
}

.admin-field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 25px;
}

.gallery-item-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 18px;
    background: var(--gris-clair);
    border: 1px solid rgba(0,0,0,0.05);
}

.gallery-row-preview {
    min-width: 220px;
    height: 140px;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-row-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-row-fields .form-group {
    margin-bottom: 14px;
}

.gallery-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.admin-footer {
    padding: 30px 0 40px;
    text-align: center;
    background: rgba(20, 181, 58, 0.05);
    color: var(--gris-fonce);
}

.admin-footer a {
    color: var(--vert);
    font-weight: 700;
}

.admin-message {
    border-radius: 18px;
    padding: 18px 22px;
    font-weight: 600;
    margin-bottom: 24px;
    display: none;
}

.admin-message--success {
    background: rgba(20, 181, 58, 0.12);
    border: 1px solid rgba(20, 181, 58, 0.2);
    color: var(--vert);
}

.admin-message--info {
    background: rgba(252, 209, 22, 0.14);
    border: 1px solid rgba(252, 209, 22, 0.2);
    color: var(--or);
}

/* === VIDEO PLAYER === */
.video-player-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.video-wrapper {
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: var(--ombre-forte);
    width: 100%;
}

.video-wrapper video {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-playlist {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
}

.video-playlist-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: var(--transition);
}

.video-playlist-item:hover {
    background: rgba(252, 209, 22, 0.12);
    border-color: rgba(252, 209, 22, 0.3);
    transform: translateY(-2px);
}

.video-playlist-item.active {
    background: rgba(252, 209, 22, 0.15);
    border-color: var(--or);
    box-shadow: 0 0 20px rgba(252, 209, 22, 0.15);
}

.video-thumb {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.video-play-icon {
    font-size: 1.2rem;
    color: var(--or);
}

.video-playlist-item.active .video-play-icon {
    color: var(--vert);
}

.video-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blanc);
    margin-bottom: 2px;
}

.video-info p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

@media (max-width: 767px) {
    .video-playlist {
        grid-template-columns: 1fr;
    }
}
