/* ============================================================
   assets/css/style.css — CCM Design System — Front-office
   ============================================================ */

/* ============================================================
   1. VARIABLES CSS
   ============================================================ */
:root {
    --primary:        #58c3bb;
    --primary-dark:   #27607f;
    --primary-light:  #e8f1f5;
    --secondary:      #f37020;
    --secondary-dark: #ef4122;
    --accent:         #5a8f73;
    --danger:         #e53e3e;
    --warning:        #d69e2e;
    --success:        #38a169;
    --info:           #3182ce;

    --text:           #1a202c;
    --text-muted:     #718096;
    --border:         #e2e8f0;
    --bg:             #f8fafc;
    --white:          #ffffff;

    --shadow-sm:      0 1px 3px rgba(0,0,0,.08);
    --shadow-md:      0 4px 16px rgba(0,0,0,.10);
    --shadow-lg:      0 8px 32px rgba(0,0,0,.14);

    --radius-sm:      6px;
    --radius:         10px;
    --radius-lg:      16px;
    --radius-xl:      24px;

    --font-heading:   'Crimson Pro', Georgia, serif;
    --font-body:      'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --header-h:       80px;
    --container:      1180px;
    --transition:     .22s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

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

a { color: var(--primary-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 3px; }

button { cursor: pointer; font-family: inherit; }
button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

ul, ol { list-style: none; }
address { font-style: normal; }

/* ============================================================
   3. TYPOGRAPHIE
   ============================================================ */
h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--primary-dark);
}
h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }
code { font-family: 'Courier New', monospace; background: var(--primary-light); padding: .1em .4em; border-radius: 3px; font-size: .88em; }

/* ============================================================
   4. UTILITAIRES
   ============================================================ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.p-1  { padding: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.fade-in-up { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.fade-in-up.visible { opacity: 1; transform: none; }

/* ============================================================
   5. BOUTONS
   ============================================================ */
.btn-primary, .btn-secondary, .btn-outline, .btn-text {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-body); font-weight: 500; font-size: .95rem;
    border-radius: var(--radius); border: 2px solid transparent;
    padding: .65rem 1.4rem; transition: all var(--transition); cursor: pointer;
    text-decoration: none; white-space: nowrap; line-height: 1;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 2px 10px rgba(88,195,187,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 18px rgba(88,195,187,.45); color: var(--white); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--white);
    box-shadow: 0 2px 10px rgba(243,112,32,.3);
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 4px 18px rgba(243,112,32,.4); color: var(--white); }

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

.btn-text { background: none; border: none; color: var(--primary); padding: .4rem .6rem; }
.btn-text:hover { color: var(--primary-dark); }

.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .4rem .9rem; font-size: .85rem; }
.btn-xs { padding: .25rem .6rem; font-size: .78rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-sm.btn-outline { border-width: 1.5px; }

/* ============================================================
   6. ALERTES
   ============================================================ */
.alert {
    display: flex; align-items: flex-start; gap: .75rem;
    padding: .9rem 1.2rem; border-radius: var(--radius);
    margin-bottom: 1rem; font-size: .92rem;
}
.alert ul { margin: .25rem 0 0; padding-left: 1rem; list-style: disc; }
.alert-success { background: #f0fff4; border: 1px solid #c6f6d5; color: #276749; }
.alert-error   { background: #fff5f5; border: 1px solid #fed7d7; color: #c53030; }
.alert-warning { background: #fffbeb; border: 1px solid #fef3c7; color: #92400e; }
.alert-info    { background: #ebf8ff; border: 1px solid #bee3f8; color: #2c5282; }

/* ============================================================
   7. BADGES
   ============================================================ */
.badge {
    display: inline-flex; align-items: center;
    padding: .18em .6em; border-radius: 20px;
    font-size: .75rem; font-weight: 600; letter-spacing: .02em;
}
.badge-featured { background: linear-gradient(135deg, var(--secondary), var(--secondary-dark)); color: white; }
.badge-success  { background: #c6f6d5; color: #276749; }
.badge-warning  { background: #fef3c7; color: #92400e; }
.badge-danger   { background: #fed7d7; color: #c53030; }
.badge-muted    { background: #e2e8f0; color: var(--text-muted); }
.badge-info     { background: #bee3f8; color: #2c5282; }

/* ============================================================
   8. HEADER & NAVIGATION
   ============================================================ */
.site-header {
    position: sticky; top: 0; z-index: 900;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

/* Top bar */
.header-top {
    background: var(--primary-dark);
    color: rgba(255,255,255,.85);
    font-size: .82rem;
    padding: .35rem 0;
}
.header-top-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.header-contact { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.header-contact-item { display: flex; align-items: center; gap: .35rem; }
.header-top-actions { display: flex; gap: .5rem; }

.btn-sm.btn-outline.header-top-actions a {
    border-color: rgba(255,255,255,.4); color: white;
}

/* Header main */
.header-main { padding: .75rem 0; }
.header-main-inner { display: flex; align-items: center; gap: 1.5rem; }

/* Logo */
.site-logo { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.site-logo img { height: 60px; width: auto; }
.logo-fallback { display: flex; flex-direction: column; }
.logo-abbr { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.logo-full { font-size: .72rem; color: var(--text-muted); max-width: 140px; line-height: 1.3; }

/* Nav */
.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .15rem; }
.nav-item { position: relative; }
.nav-link {
    display: flex; align-items: center; gap: .3rem;
    padding: .55rem .8rem; border-radius: var(--radius-sm);
    font-weight: 500; font-size: .9rem; color: var(--text);
    transition: all var(--transition); white-space: nowrap;
}
.nav-link:hover, .nav-item.active .nav-link { color: var(--primary); background: var(--primary-light); }
.submenu-arrow { transition: transform var(--transition); }

/* Desktop submenu */
.submenu {
    position: absolute; top: calc(100% + 4px); left: 0;
    min-width: 220px; background: var(--white);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all var(--transition); pointer-events: none;
    z-index: 800;
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    opacity: 1; visibility: visible; transform: none; pointer-events: auto;
}
.has-submenu:hover .submenu-arrow { transform: rotate(180deg); }

.submenu-item { }
.submenu-link {
    display: flex; justify-content: space-between; align-items: center;
    padding: .6rem 1rem; font-size: .88rem; color: var(--text);
    transition: all var(--transition);
}
.submenu-link:hover, .submenu-link.active { background: var(--primary-light); color: var(--primary-dark); }
.submenu-link:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.submenu-link:last-child  { border-radius: 0 0 var(--radius) var(--radius); }
.article-count { font-size: .75rem; color: var(--text-muted); background: var(--border); padding: .1em .4em; border-radius: 10px; }

/* Hamburger */
.mobile-menu-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; padding: .5rem; border-radius: var(--radius-sm);
    cursor: pointer; margin-left: auto;
}
.mobile-menu-toggle span {
    display: block; width: 24px; height: 2px; background: var(--text);
    border-radius: 2px; transition: all var(--transition);
}
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay */
.mobile-menu-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.5); z-index: 800; backdrop-filter: blur(2px);
}
.mobile-menu-overlay.active { display: block; }

/* ============================================================
   9. HERO
   ============================================================ */
.hero {
    position: relative; overflow: hidden;
    /* Pas de min-height ni padding : l'image dicte la hauteur */
}
/* Quand il n'y a pas de hero-content, la section s'adapte à l'image */
.hero-bg {
    display: block; line-height: 0;
    /* position normale : l'image pousse le conteneur */
}
.hero-bg img {
    display: block;
    width: 100%;
    height: auto;       /* l'image garde ses proportions, rien n'est rogné */
    max-height: none;
}

/* Overlay sur l'image */
.hero-bg::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    /*background: linear-gradient(135deg, rgba(27,60,84,.45) 0%, rgba(27,60,84,.15) 100%);*/
}
.hero-overlay-light .hero-bg::after  { background: rgba(255,255,255,.3); }
.hero-overlay-dark .hero-bg::after   { background: rgba(0,0,0,.50); }
.hero-overlay-none .hero-bg::after   { display: none; }
.hero-overlay-top .hero-bg::after    { background: linear-gradient(to bottom, rgba(27,60,84,.7) 0%, transparent 100%); }
.hero-overlay-bottom .hero-bg::after { background: linear-gradient(to top,   rgba(27,60,84,.8) 0%, transparent 60%); }
.hero-overlay-left .hero-bg::after   { background: linear-gradient(to right,  rgba(27,60,84,.75) 0%, transparent 70%); }
.hero-overlay-right .hero-bg::after  { background: linear-gradient(to left,   rgba(27,60,84,.75) 0%, transparent 70%); }

/* ── Contenu en surimpression ── */
.hero-content {
    position: absolute; z-index: 1;
    /* Positionnement par défaut : haut gauche avec marges */
    /*top: 50%; */ bottom: 0; left: 0; right: 0;
    transform: translateY(-50%);
    display: flex; flex-direction: column;
    align-items: flex-start; gap: 1.5rem;
    padding: 2rem 0;
}

/* Centré */
.hero-center .hero-content      { align-items: center; text-align: center; }
/* Droite */
.hero-right .hero-content       { align-items: flex-end; text-align: right; }
/* Haut gauche */
.hero-top-left .hero-content    { top: 0; transform: none; padding-top: 2.5rem; }
/* Haut centre */
.hero-top-center .hero-content  { top: 0; transform: none; padding-top: 2.5rem; align-items: center; text-align: center; }
/* Haut droite */
.hero-top-right .hero-content   { top: 0; transform: none; padding-top: 2.5rem; align-items: flex-end; text-align: right; }
/* Bas gauche */
.hero-bottom-left .hero-content   { top: auto; bottom: 0; transform: none; padding-bottom: 2.5rem; }
/* Bas centre */
.hero-bottom-center .hero-content { top: auto; bottom: 0; transform: none; padding-bottom: 2.5rem; align-items: center; text-align: center; }
/* Bas droite */
.hero-bottom-right .hero-content  { top: auto; bottom: 0; transform: none; padding-bottom: 2.5rem; align-items: flex-end; text-align: right; }

/* ── Bloc texte ── */
.hero-text {
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.15);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    max-width: 640px;
}
.hero-text-solid { background: rgba(255,255,255,.92); }
.hero-text-dark  { background: rgba(0,0,0,.45); }
.hero-text-none  { background: none; border: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; }

/* Tailles prédéfinies — forcent une min-height si l'image est petite */
.hero-tall  .hero-bg { min-height: 500px; } .hero-tall  .hero-bg img { min-height: 500px; object-fit: cover; }
.hero-full  .hero-bg { min-height: 600px; } .hero-full  .hero-bg img { min-height: 600px; object-fit: cover; }
.hero-short .hero-bg { min-height: 260px; } .hero-short .hero-bg img { min-height: 260px; object-fit: cover; }

.hero-badge {
    display: inline-block; background: rgba(88,195,187,.2);
    color: var(--primary); border: 1px solid rgba(88,195,187,.4);
    border-radius: 20px; padding: .35rem .9rem; font-size: .85rem; font-weight: 500;
}
.hero-title {
    font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700; color: var(--white); line-height: 1.15;
    text-shadow: 0 1px 4px rgba(0,0,0,.3); margin: 0;
}
.hero-text-solid .hero-title { color: var(--primary-dark); text-shadow: none; }
.hero-subtitle {
    font-size: 1.05rem; color: rgba(255,255,255,.9);
    line-height: 1.7; text-shadow: 0 1px 2px rgba(0,0,0,.2); margin: 0;
}
.hero-text-solid .hero-subtitle { color: var(--text); text-shadow: none; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-number { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--primary); line-height: 1; }
.hero-stat-label  { font-size: .8rem; color: rgba(255,255,255,.65); margin-top: .2rem; }

@media(max-width: 640px) {
    .hero-content { padding: 1.25rem 0; }
    .hero-text    { padding: .9rem 1rem; }
    .hero-title   { font-size: clamp(1.5rem, 7vw, 2.2rem); }
}

/* ── Section featured events ── */
.section-featured-events { padding: 4rem 0; background: var(--bg); }
.featured-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}
.featured-event-card {
    display: flex; gap: 0; overflow: hidden;
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary-dark);
    background: #fff;
    box-shadow: 0 2px 12px rgba(245,166,35,.12);
    transition: transform var(--transition), box-shadow var(--transition);
}
.featured-event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245,166,35,.2);
}
.featured-event-past { opacity: .75; border-color: var(--border); }
.featured-event-date {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff; padding: 1rem .85rem; min-width: 72px; flex-shrink: 0;
    text-align: center; gap: .05rem;
}
.featured-event-past .featured-event-date { background: var(--text-muted); }
.featured-event-day   { font-size: 1.8rem; font-weight: 800; line-height: 1; font-family: var(--font-heading); }
.featured-event-month { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.featured-event-year  { font-size: .68rem; opacity: .75; }
.featured-event-multiday {
    font-size: .64rem; background: rgba(255,255,255,.2); border-radius: 3px;
    padding: .1em .35em; margin-top: .25rem; line-height: 1.4;
}
.featured-event-body { padding: 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.featured-event-badges { display: flex; gap: .3rem; flex-wrap: wrap; }
.featured-event-title { font-size: 1rem; font-weight: 700; margin: 0; line-height: 1.3; }
.featured-event-title a { color: var(--text); text-decoration: none; }
.featured-event-title a:hover { color: var(--primary-dark); }
.featured-event-location { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--text-muted); margin: 0; }
.featured-event-desc { font-size: .83rem; color: var(--text-muted); margin: 0; line-height: 1.55; flex: 1; }
.featured-event-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .25rem; }

@media(max-width: 640px) {
    .featured-events-grid { grid-template-columns: 1fr; }
}


/* Page hero */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark), #1a3a52);
    color: var(--white); padding: 3rem 0;
}
.page-hero-sm { padding: 2.5rem 0; }
.page-hero-title { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.5rem); }
.page-hero-subtitle { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-top: .5rem; }
.page-hero-success .success-icon { color: var(--primary); margin-bottom: 1rem; }
.page-hero-success .success-icon svg { width: 64px; height: 64px; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-bottom: .75rem; font-size: .85rem; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span[aria-hidden] { color: rgba(255,255,255,.4); }
.breadcrumb span[aria-current] { color: var(--white); }

/* ============================================================
   10. SECTIONS FRONT
   ============================================================ */
.section-content { padding: 3rem 0; }
.section-presentation { padding: 4rem 0; background: var(--bg); }
.section-news     { padding: 4rem 0; }
.section-events   { padding: 4rem 0; background: var(--bg); }
.section-cta      { padding: 4rem 0; background: linear-gradient(135deg, var(--primary-dark), #1a3a52); color: var(--white); }
.content-section  { margin-bottom: 3rem; }
.content-section:last-child { margin-bottom: 0; }
.content-section-title { font-size: 1.6rem; color: var(--primary-dark); margin-bottom: 1.5rem; padding-bottom: .6rem; border-bottom: 2px solid var(--primary-light); }
.content-intro { color: var(--text-muted); max-width: 700px; margin-bottom: 2rem; }

.section-header { margin-bottom: 2rem; }
.section-header-flex { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.section-tag { display: inline-block; color: var(--primary); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem; }
.section-title { font-size: clamp(1.4rem, 2.5vw, 2rem); color: var(--primary-dark); }
.section-subtitle { color: var(--text-muted); margin-top: .4rem; }

/* CTA section */
.cta-content { max-width: 700px; margin: 0 auto; }
.cta-title { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.cta-text  { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 1rem; }
.cta-fiscal { display: flex; align-items: center; gap: .5rem; color: var(--primary); margin-bottom: 1.5rem; font-size: .9rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   11. GRILLES
   ============================================================ */
.grid-2    { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3    { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4    { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

/* ============================================================
   12. CARDS
   ============================================================ */
.card {
    background: var(--white); border-radius: var(--radius-lg);
    border: 1px solid var(--border); overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-feature { padding: 2rem; text-align: center; }
.card-feature .card-icon {
    width: 64px; height: 64px; margin: 0 auto 1.25rem;
    background: var(--primary-light); border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center; color: var(--primary-dark);
}
.card-feature .card-title { margin-bottom: .6rem; }
.card-feature .card-text { color: var(--text-muted); margin-bottom: 1rem; }
.card-link { color: var(--primary); font-weight: 500; font-size: .9rem; display: inline-flex; align-items: center; gap: .3rem; }
.card-link:hover { color: var(--primary-dark); }

/* News cards */
.news-card { display: flex; flex-direction: column; }
.card-img-wrapper { aspect-ratio: 16/9; overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .card-img { transform: scale(1.05); }
.card-img-placeholder {
    aspect-ratio: 16/9; background: var(--primary-light);
    display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .8rem; color: var(--text-muted); margin-bottom: .6rem; }
.card-title { margin-bottom: .5rem; font-size: 1.05rem; }
.card-title-news { font-size: 1rem; line-height: 1.4; }
.card-title a:hover { color: var(--primary); }
.card-text { color: var(--text-muted); font-size: .9rem; flex: 1; margin-bottom: .8rem; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.card-author { font-size: .8rem; color: var(--text-muted); }

/* Event cards */
.event-card { display: flex; align-items: stretch; }
.event-card-date {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 70px; min-width: 70px; background: var(--primary); color: var(--white);
    padding: 1rem .5rem; text-align: center;
}
.event-day   { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; line-height: 1; }
.event-month { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; margin-top: .2rem; }
.event-card-body { padding: 1.25rem; flex: 1; }
.event-location { display: flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--text-muted); margin-bottom: .5rem; }
.event-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }

/* Subsection cards */
.card-subsection { padding: 1.5rem; text-decoration: none; display: block; }
.card-subsection:hover { background: var(--primary-light); }
.card-icon-text { font-size: 2rem; display: block; margin-bottom: .5rem; }
.article-count-badge { font-size: .78rem; color: var(--primary); background: var(--primary-light); padding: .2em .6em; border-radius: 10px; display: inline-block; margin-top: .5rem; }

/* ============================================================
   13. ARTICLES LIST
   ============================================================ */
.articles-list { display: flex; flex-direction: column; gap: 1.2rem; }
.article-list-item {
    background: var(--white); border-radius: var(--radius); border: 1px solid var(--border);
    padding: 1.25rem 1.5rem; transition: all var(--transition);
}
.article-list-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.article-list-item.article-featured { border-left: 4px solid var(--secondary); }
.article-list-title { font-size: 1.15rem; margin-bottom: .4rem; }
.article-list-title a:hover { color: var(--primary); }
.article-list-excerpt { color: var(--text-muted); font-size: .92rem; margin-bottom: .75rem; }

/* Article page */
.article-layout { max-width: 840px; margin: 0 auto; }
.article-main {}
.article-cover { margin-bottom: 2rem; border-radius: var(--radius-lg); overflow: hidden; }
.article-cover-img { width: 100%; max-height: 480px; object-fit: cover; }
.article-footer { padding-top: 1.5rem; border-top: 1px solid var(--border); }
.related-section { margin-top: 4rem; padding-top: 2rem; border-top: 2px solid var(--primary-light); }

/* ============================================================
   14. CONTENT HTML (article, page)
   ============================================================ */
.content-html { line-height: 1.8; font-size: 1.02rem; }
.content-html h2 { font-size: 1.55rem; color: var(--primary-dark); margin: 2rem 0 .75rem; }
.content-html h3 { font-size: 1.2rem; color: var(--primary-dark); margin: 1.5rem 0 .6rem; }
.content-html p  { margin-bottom: 1.1rem; }
.content-html img { border-radius: var(--radius); margin: 1.5rem auto; max-width: 100%; }
.content-html blockquote {
    border-left: 4px solid var(--primary); padding: .8rem 1.2rem;
    margin: 1.5rem 0; background: var(--primary-light);
    border-radius: 0 var(--radius) var(--radius) 0; color: var(--primary-dark);
    font-style: italic;
}
.content-html ul, .content-html ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.content-html ul { list-style: disc; }
.content-html ol { list-style: decimal; }
.content-html li { margin-bottom: .35rem; }
.content-html a { color: var(--primary-dark); text-decoration: underline; }
.content-html table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .92rem; }
.content-html th { background: var(--primary-light); padding: .6rem 1rem; text-align: left; }
.content-html td { padding: .55rem 1rem; border-bottom: 1px solid var(--border); }

/* Vidéos responsives 16/9 — iframes wrappées automatiquement par wrap_iframes() */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-md);
}
.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* ============================================================
   15. EVENTS PAGE
   ============================================================ */
.events-list { display: flex; flex-direction: column; gap: 1.5rem; }
.event-item {
    display: flex; gap: 1.5rem; background: var(--white);
    border-radius: var(--radius-lg); border: 1px solid var(--border);
    padding: 1.5rem; transition: all var(--transition);
}
.event-item:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.event-item-past { opacity: .8; }
.event-date-block {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    min-width: 72px; text-align: center; padding-top: .2rem;
}
.event-date-past .event-day { color: var(--text-muted); }
.event-year  { font-size: .75rem; color: var(--text-muted); margin-top: .15rem; }
.event-header { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .5rem; }
.event-title { font-size: 1.25rem; color: var(--primary-dark); }
.event-desc  { color: var(--text-muted); margin-bottom: .75rem; }
.event-content { margin-top: .75rem; font-size: .95rem; }
.registration-count { font-size: .78rem; opacity: .8; }
.replay-text { background: var(--primary-light); border-radius: var(--radius); padding: 1rem; }

/* ============================================================
   16. CORRESPONDANTS
   ============================================================ */
.region-group { margin-bottom: 2.5rem; }
.region-title {
    display: flex; align-items: center; gap: .5rem;
    font-size: 1.1rem; color: var(--primary-dark); font-weight: 600;
    padding: .6rem 0; border-bottom: 2px solid var(--primary-light); margin-bottom: 1.25rem;
}
.correspondent-card {
    display: flex; align-items: flex-start; gap: 1.25rem;
    padding: 1.25rem; border-radius: var(--radius); border: 1px solid var(--border);
    margin-bottom: 1rem; background: var(--white);
    transition: all var(--transition);
}
.correspondent-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.correspondent-photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--primary-light); }
.correspondent-avatar {
    width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 600; font-family: var(--font-heading);
}
.correspondent-name   { font-weight: 600; font-size: 1.05rem; color: var(--primary-dark); margin-bottom: .15rem; }
.correspondent-region { font-size: .82rem; color: var(--text-muted); margin-bottom: .4rem; }
.correspondent-bio    { font-size: .88rem; color: var(--text); }

/* CA */
.ca-card { padding: 1.5rem; display: flex; align-items: flex-start; gap: 1rem; }
.ca-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ca-avatar {
    width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 600;
}
.ca-name     { font-weight: 600; margin-bottom: .15rem; }
.ca-position { font-size: .85rem; color: var(--text-muted); margin-bottom: .4rem; }
.ca-bio-toggle { font-size: .82rem; color: var(--primary); display: flex; align-items: center; gap: .25rem; }
.ca-bio-toggle svg { transition: transform var(--transition); }
.ca-bio { margin-top: .6rem; font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   17. TABS
   ============================================================ */
.tabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--border); margin-bottom: 2rem; overflow-x: auto; }
.tab-btn {
    display: flex; align-items: center; gap: .5rem;
    padding: .7rem 1.2rem; font-size: .9rem; font-weight: 500;
    background: none; border: none; border-bottom: 2px solid transparent;
    margin-bottom: -2px; color: var(--text-muted); cursor: pointer;
    transition: all var(--transition); white-space: nowrap;
}
.tab-btn:hover { color: var(--primary-dark); }
.tab-btn.active { color: var(--primary-dark); border-bottom-color: var(--primary); }
.tab-badge { background: var(--primary); color: white; border-radius: 10px; padding: .1em .5em; font-size: .72rem; font-weight: 700; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tabs-sm .tab-btn { padding: .5rem .8rem; font-size: .85rem; }

/* ============================================================
   18. FORMULAIRES
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: .4rem; color: var(--text); }
.required { color: var(--danger); }
.form-control {
    width: 100%; padding: .65rem .9rem; font-family: var(--font-body); font-size: .95rem;
    border: 2px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text); background: var(--white); transition: border-color var(--transition), box-shadow var(--transition);
    -webkit-appearance: none; appearance: none;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(88,195,187,.2); }
.form-control:disabled { background: var(--bg); color: var(--text-muted); cursor: not-allowed; }
.form-control.is-invalid { border-color: var(--danger); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23718096' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .78rem; color: var(--text-muted); margin-top: .3rem; }
.form-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.checkbox-label { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .9rem; }
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }
.password-group { position: relative; }
.password-group .form-control { padding-right: 2.8rem; }
.password-toggle { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); padding: .25rem; cursor: pointer; }
.password-toggle:hover { color: var(--primary); }

/* ============================================================
   19. MODAL
   ============================================================ */
.modal {
    display: none; position: fixed; inset: 0; z-index: 1000;
    align-items: center; justify-content: center; padding: 1rem;
    background: rgba(0,0,0,.55); backdrop-filter: blur(3px);
}
.modal.active { display: flex; animation: modalIn .22s ease; }
@keyframes modalIn { from { opacity: 0; } to { opacity: 1; } }

.modal-dialog { width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; }
.modal-content {
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); overflow: hidden;
    animation: modalSlide .22s ease;
}
@keyframes modalSlide { from { transform: scale(.95) translateY(-10px); } to { transform: none; } }

.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
}
.modal-title  { font-size: 1.1rem; font-weight: 600; color: var(--primary-dark); margin: 0; }
.modal-close  { background: none; border: none; font-size: 1.6rem; line-height: 1; color: var(--text-muted); cursor: pointer; padding: .25rem .5rem; border-radius: var(--radius-sm); transition: all var(--transition); }
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-body   { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: .75rem; }
.modal-intro  { font-weight: 500; color: var(--primary-dark); }

/* ============================================================
   20. PAGINATION
   ============================================================ */
.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination-btn {
    display: flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 .6rem;
    border-radius: var(--radius-sm); border: 1.5px solid var(--border);
    color: var(--text); font-size: .9rem; font-weight: 500;
    text-decoration: none; transition: all var(--transition);
}
.pagination-btn:hover, .pagination-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ============================================================
   21. FOOTER
   ============================================================ */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.8); padding: 3.5rem 0 0; margin-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-logo-link { display: inline-block; margin-bottom: 1rem; }
.footer-logo-link img { height: 50px; }
.footer-about-text { font-size: .88rem; line-height: 1.7; margin-bottom: 1.25rem; }
.footer-title { font-family: var(--font-heading); font-size: 1.1rem; color: var(--white); font-weight: 600; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: .45rem; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-contact-list { display: flex; flex-direction: column; gap: .75rem; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; }
.footer-contact-list svg { flex-shrink: 0; margin-top: .15rem; color: var(--primary); }
.footer-contact-list a { color: rgba(255,255,255,.7); }
.footer-contact-list a:hover { color: var(--primary); }
.footer-social { display: flex; gap: .5rem; }
.social-link {
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.7); transition: all var(--transition);
}
.social-link:hover { background: var(--primary); color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0;
}
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; font-size: .82rem; }
.footer-legal-links { display: flex; gap: 1.25rem; }
.footer-legal-links a { color: rgba(255,255,255,.55); }
.footer-legal-links a:hover { color: var(--primary); }

/* ============================================================
   22. CONTACT PAGE
   ============================================================ */
.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; }
.contact-form {}
.contact-info-card { background: var(--primary-dark); color: var(--white); border-radius: var(--radius-lg); padding: 1.75rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.contact-info-title { color: var(--white); margin-bottom: 1.5rem; font-size: 1.2rem; }
.contact-info-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.contact-info-list li { display: flex; align-items: flex-start; gap: .75rem; }
.contact-info-icon { width: 36px; height: 36px; background: rgba(255,255,255,.1); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-list strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--primary); margin-bottom: .2rem; }
.contact-info-list a { color: rgba(255,255,255,.8); }
.contact-correspondents-cta { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.25rem; }
.contact-correspondents-cta p { font-size: .88rem; margin-bottom: .75rem; }

/* ============================================================
   23. DON PAGE
   ============================================================ */
.don-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.don-intro { max-width: 700px; margin: 0 auto 2rem; }
.don-card, .don-info-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 1.75rem; }
.don-card-title { font-size: 1.2rem; margin-bottom: 1.25rem; }
.don-fiscal-info { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--success); margin-bottom: 1.25rem; }
.don-amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1rem; }
.don-amount-btn {
    padding: .75rem .5rem; border: 2px solid var(--border); border-radius: var(--radius);
    background: var(--white); font-size: 1rem; font-weight: 600; color: var(--primary-dark);
    cursor: pointer; transition: all var(--transition); display: flex; flex-direction: column; align-items: center; gap: .2rem;
}
.don-amount-btn:hover, .don-amount-btn.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }
.don-deduction { font-size: .68rem; color: var(--success); font-weight: 400; }
.don-input-group { position: relative; }
.don-currency { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-weight: 600; }
.don-deduction-info { color: var(--success); font-size: .85rem; }
.don-actions { display: flex; flex-direction: column; gap: .75rem; }
.bank-info { background: var(--bg); border-radius: var(--radius); padding: 1rem; margin: 1rem 0; }
.bank-info-row { display: flex; align-items: center; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--border); }
.bank-info-row:last-child { border-bottom: none; }
.bank-info-label { font-size: .78rem; color: var(--text-muted); min-width: 90px; font-weight: 500; }
.bank-iban { font-family: monospace; font-size: .9rem; }
.btn-copy { background: none; border: none; color: var(--primary); cursor: pointer; padding: .25rem; }
.don-receipt-note { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--text-muted); }
.don-usage-list { display: flex; flex-direction: column; gap: .5rem; }
.don-usage-list li { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.don-usage-list svg { color: var(--success); flex-shrink: 0; }

/* ============================================================
   24. ADHÉSION PAGE
   ============================================================ */
.adhesion-layout { display: flex; flex-direction: column; gap: 2.5rem; }
.tarif-card { padding: 1.5rem; text-align: center; cursor: pointer; position: relative; transition: all var(--transition); }
.tarif-card:hover, .tarif-card-selected { border-color: var(--primary); background: var(--primary-light); }
.tarif-card-featured { border-color: var(--primary); }
.tarif-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--secondary); color: white; font-size: .72rem; font-weight: 700; padding: .2em .7em; border-radius: 20px; white-space: nowrap; }
.tarif-icon { width: 56px; height: 56px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto .75rem; color: var(--primary-dark); }
.tarif-label { font-size: 1rem; font-weight: 600; margin-bottom: .35rem; }
.tarif-desc  { font-size: .82rem; color: var(--text-muted); margin-bottom: .75rem; }
.tarif-price { display: flex; align-items: baseline; justify-content: center; gap: .2rem; }
.tarif-amount { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700; color: var(--primary-dark); }
.tarif-currency { font-size: 1rem; color: var(--text-muted); }
.adhesion-form-card { padding: 1.75rem; }
.adhesion-form-title { font-size: 1.2rem; margin-bottom: .3rem; }
.adhesion-form-subtitle { font-size: .88rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.adhesion-summary { background: var(--primary-light); border-radius: var(--radius); padding: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .75rem; align-items: center; }
.adhesion-summary-label { font-size: .8rem; color: var(--text-muted); font-weight: 500; }
.adhesion-summary-value { font-weight: 600; color: var(--primary-dark); }
.adhesion-summary-note { grid-column: 1/-1; font-size: .78rem; color: var(--success); display: flex; align-items: center; gap: .3rem; }
.adhesion-secure-note { font-size: .78rem; color: var(--text-muted); display: flex; align-items: center; gap: .35rem; margin-top: .5rem; justify-content: center; }

/* ============================================================
   25. AUTH (login / espace membre)
   ============================================================ */
.auth-layout { max-width: 460px; margin: 0 auto; padding: 2rem 0; }
.auth-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 2rem; box-shadow: var(--shadow-md); }
.auth-note { font-size: .85rem; color: var(--text-muted); text-align: center; }
.auth-note a { color: var(--primary); }

/* Espace membre */
.member-hero-content { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; width: 100%; }
.member-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 600; flex-shrink: 0; }
.member-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; }
.member-section-title { font-size: 1.1rem; margin-bottom: 1.25rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border); }
.adhesion-history-item { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.adhesion-year   { font-weight: 700; color: var(--primary-dark); min-width: 45px; }
.adhesion-type   { flex: 1; }
.adhesion-amount { color: var(--success); font-weight: 600; }

/* ============================================================
   26. DOCUMENTS
   ============================================================ */
.documents-list { display: flex; flex-direction: column; gap: .75rem; }
.document-item { display: flex; align-items: center; gap: 1rem; padding: .9rem 1rem; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); }
.document-item svg { color: var(--secondary); flex-shrink: 0; }
.document-info { flex: 1; }
.document-title { font-weight: 500; display: block; }
.document-year  { font-size: .8rem; color: var(--text-muted); }
.document-desc  { font-size: .82rem; color: var(--text-muted); margin-top: .15rem; }

/* Success card */
.success-card { max-width: 560px; margin: 0 auto; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 2.5rem; box-shadow: var(--shadow-md); }

/* ============================================================
   27. VIDE / EMPTY STATE
   ============================================================ */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
.empty-state svg { margin: 0 auto 1.5rem; opacity: .35; }
.empty-state h2 { font-size: 1.3rem; margin-bottom: .5rem; }

/* ============================================================
   28. RESPONSIVE TABLET 768px
   ============================================================ */
@media (max-width: 768px) {
    :root { --header-h: 65px; }

    /* Menu mobile */
    .header-top { display: none; }
    .mobile-menu-toggle { display: flex; }
    .main-nav {
        position: fixed; top: 0; right: -100%; bottom: 0;
        width: min(320px, 85vw); background: var(--white);
        box-shadow: var(--shadow-lg); overflow-y: auto;
        transition: right .3s ease; z-index: 901;
        padding: 4.5rem 0 2rem;
    }
    .main-nav.active { right: 0; }
    .nav-list { flex-direction: column; padding: 0 1rem; }
    .nav-item { width: 100%; }
    .nav-link { padding: .75rem .9rem; border-radius: var(--radius); width: 100%; justify-content: space-between; }

    /* Submenu accordéon */
    .submenu {
        position: static; box-shadow: none; border: none; background: var(--primary-light);
        opacity: 1; visibility: visible; transform: none;
        border-radius: var(--radius); margin: .25rem 0;
        max-height: 0; overflow: hidden;
        transition: max-height .3s ease;
    }
    .has-submenu.active .submenu { max-height: 500px; }
    .submenu-link { padding: .6rem 1.25rem; font-size: .85rem; }

    /* Grids */
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .grid-auto { grid-template-columns: 1fr; }

    /* Hero */
    .hero { min-height: 70vh; padding: 3rem 0; }
    .hero-actions { flex-direction: column; }
    .hero-stats { gap: 1.5rem; }

    /* Forms */
    .form-row { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .don-layout { grid-template-columns: 1fr; }
    .don-amount-grid { grid-template-columns: repeat(2, 1fr); }
    .member-layout { grid-template-columns: 1fr; }
    .adhesion-layout .grid-3 { grid-template-columns: 1fr; }

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

    /* Events */
    .event-item { flex-direction: column; gap: 1rem; }
    .event-date-block { flex-direction: row; align-items: center; gap: .5rem; min-width: auto; }

    /* Correspondent */
    .correspondent-card { flex-direction: column; align-items: center; text-align: center; }

    /* Section header */
    .section-header-flex { flex-direction: column; align-items: flex-start; }

    /* Tabs scroll */
    .tabs { -webkit-overflow-scrolling: touch; }
}

/* ============================================================
   29. RESPONSIVE MOBILE 480px
   ============================================================ */
@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .section-content { padding: 2rem 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .hero-badge { font-size: .78rem; }
    .modal-dialog { max-height: 95vh; }
    .don-amount-grid { grid-template-columns: repeat(2, 1fr); }
    .member-hero-content { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   30. PRINT
   ============================================================ */
@media print {
    .site-header, .site-footer, .admin-sidebar, .btn-primary, .btn-outline { display: none !important; }
    body { font-size: 12pt; color: #000; }
    .content-html a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
