:root {
    --color-primary: #fc9737;
    --color-primary-dark: #e07f1f;
    --color-secondary: #33a1db;
    --color-secondary-dark: #2a8fbf;
    --azur: #27768f;
    --azur-light: #6D9FB0;
    --green: #5de3bd;
    --green-light: #a2ebd4;
    --green-mid: #5fe3b9;
    --green-pale: #afe0d3;
    --green-dark: #21785f;
    --color-text: #000000;
    --color-text-dark: #1f2937;
    --color-text-muted: #6b7280;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-bg-footer: #f5f5f5;
    --color-bg-infographic: #f5f6f8;
    --color-border: #e5e7eb;
    --font-sans: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
    --container: 1200px;
    --radius: 14px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-text-dark);
    background: var(--color-bg);
    line-height: 1.6;
}

main {
    padding-top: 80px;
}

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

a { color: var(--color-secondary); text-decoration: none; }
a:hover { color: var(--color-secondary-dark); text-decoration: underline; }

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

/* --- HEADER & NAVIGATION --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header--solid {
    background: var(--color-secondary);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: #fff;
    box-shadow: var(--shadow);
    border-bottom: none;
}

.site-header a { color: #fff; text-decoration: none; }
.site-header--solid a:hover { opacity: 0.9; text-decoration: none; }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem 0;
    transition: padding 0.3s;
}

.site-header--solid .header-inner {
    padding: 0.75rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.brand-logo {
    height: clamp(2.5rem, 7vw, 5rem);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius);
    cursor: pointer;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
}

.main-nav a {
    padding: 0.5rem 0;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
}

.main-nav a.cta-primary {
    padding: 0.6rem 1.25rem;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    color: #fff;
    overflow: hidden;
    margin-top: -80px;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    align-items: flex-end;
    justify-content: space-between;
    padding: 4rem 0;
}

.hero-main {
    max-width: 60%;
    padding-left: 30px;
}

.hero-main h1 {
    margin: 0;
    font-size: clamp(2.5rem, 8vw, 6rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.hero-latest {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.hero-card {
    background: var(--azur);
    border-radius: 1.25rem;
    overflow: hidden;
    width: 380px;
}

.hero-card-img {
    height: 180px;
    background: rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    overflow: hidden;
}

.hero-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card-body {
    padding: 1.5rem;
}

.hero-card-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.hero-card-body h3 {
    margin: 0 0 1.25rem;
    font-size: 1.15rem;
    line-height: 1.4;
    color: #fff;
}

/* --- BOUTONS --- */
.cta-primary {
    display: inline-block;
    background: var(--color-primary);
    color: black !important;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: background 0.15s;
}
.cta-primary:hover { background: var(--color-primary-dark); }

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--color-primary);
    color: black !important;
}
.btn-primary:hover { background: var(--color-primary-dark); }

.btn-secondary {
    background: #fff;
    color: var(--color-secondary) !important;
}

.btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff !important;
}

.btn-orange {
    background: var(--color-primary);
    color: #000 !important;
    border-radius: 50px;
    padding: 0.75rem 2.5rem;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    display: inline-block;
    transition: background 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
}
.btn-orange:hover {
    background: #e07f1f;
    transform: translateY(-2px);
}

/* --- GRILLES & STRUCTURES GLOBALES --- */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--color-bg-alt); }

.section-title {
    color: var(--color-text-dark);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 1.5rem;
}
.section-title-accent {
    display: inline-block;
    position: relative;
}
.section-title-accent::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
    margin-bottom: 0.5rem;
}

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

.card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; color: var(--color-secondary); }

.stat-card {
    text-align: center;
    border-top: 4px solid var(--color-primary);
}
.stat-card .value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.1;
}
.stat-card .label { color: var(--color-text-muted); font-size: 0.95rem; }

/* --- COMMUNIQUÉS DE PRESSE --- */
.press-card { padding: 0; overflow: hidden; }
.press-card-img { display: block; width: 100%; height: 180px; overflow: hidden; }
.press-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.press-card:hover .press-card-img img { transform: scale(1.05); }
.press-card-body { padding: 1.25rem; }
.press-card time { display: block; color: var(--color-text-muted); font-size: 0.875rem; margin-bottom: 0.5rem; }
.press-card .badge { display: inline-block; background: rgba(51, 161, 219, 0.12); color: #33a1db; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; margin-bottom: 0.5rem; }

.section-communiques {
    padding: 0;
    overflow: hidden;
}
.communiques-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}
.communiques-visual {
    width: 100%;
    overflow: hidden;
}
.communiques-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.communiques-content {
    padding: 3rem 3rem;
    background: #33a1db;
}
.communiques-content .section-title {
    color: #fff;
}
.communiques-content .section-title-accent::before {
    background: #fc9737;
}
.communiques-content .btn-orange {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .communiques-split {
        grid-template-columns: 1fr;
    }
    .communiques-visual {
        height: 280px;
    }
    .communiques-content {
        padding: 2rem 1.5rem;
    }
}

.press-horizontal-grid {
    display: grid;
    gap: 1.25rem;
}
.press-horizontal-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.press-horizontal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.press-horizontal-link {
    display: grid;
    grid-template-columns: 200px 1fr;
    text-decoration: none !important;
    color: inherit;
    min-height: 150px;
}
.press-horizontal-img {
    overflow: hidden;
}
.press-horizontal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.press-horizontal-card:hover .press-horizontal-img img {
    transform: scale(1.05);
}
.press-horizontal-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.press-horizontal-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.press-horizontal-meta .badge {
    display: inline-block;
    background: rgba(51, 161, 219, 0.12);
    color: #33a1db;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.press-horizontal-meta time {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}
.press-horizontal-body h3 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.3;
}
.press-horizontal-card:hover .press-horizontal-body h3 {
    color: #33a1db;
}
.press-horizontal-body p {
    margin: 0 0 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.press-horizontal-cta {
    font-weight: 700;
    font-size: 0.85rem;
    color: #fc9737;
    transition: transform 0.2s;
    display: inline-block;
    width: fit-content;
}
.press-horizontal-card:hover .press-horizontal-cta {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .press-horizontal-link {
        grid-template-columns: 1fr;
    }
    .press-horizontal-img {
        height: 200px;
    }
    .press-horizontal-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* --- FOOTER --- */
.site-footer {
    background: var(--color-bg-footer);
    color: #000;
    padding: 3rem 0 2rem;
    font-family: var(--font-sans);
}
.site-footer a {
    color: var(--color-text-dark);
    text-decoration: none;
    transition: color 0.2s;
}
.site-footer a:hover {
    color: var(--color-primary);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
}

.footer-logo img {
    height: clamp(40px, 6vw, 65px);
    width: auto;
    object-fit: contain;
}

.footer-divider {
    border: none;
    border-top: 1px solid #000;
    margin: 0 0 3rem 0;
    opacity: 0.3;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 4rem;
}

.footer-col strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #000;
}

.footer-col p {
    margin: 0 0 1.25rem 0;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
}

.newsletter-input-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #000;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

input[type="text"].newsletter-input-text {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-style: italic;
    font-size: 1.05rem;
    color: #000;
    padding: 0 !important;
    width: 100%;
    outline: none;
    box-shadow: none !important;
}

input[type="text"].newsletter-input-text::placeholder {
    color: #000;
    font-style: italic;
}

.newsletter-submit {
    background: none;
    border: none;
    font-weight: 800;
    font-size: 1.15rem;
    color: #000;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
}

.newsletter-submit:hover {
    color: var(--color-primary);
}

.newsletter-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.4;
}

.newsletter-checkbox-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #fff;
    border: none;
    border-radius: 0;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
}

.newsletter-checkbox-group input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 14px;
    font-weight: bold;
}

.footer-bottom {
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.9;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    text-decoration: underline;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-top {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* --- FORMULAIRES & NOTIFICATIONS --- */
.flash { padding: 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.flash-success { background: #dcfce7; color: #166534; }
.flash-error { background: #fee2e2; color: #991b1b; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="number"], select, textarea { 
    width: 100%; 
    padding: 0.65rem 0.75rem; 
    border: 1px solid var(--color-border); 
    border-radius: var(--radius); 
    font: inherit; 
}
.form-errors { color: #b91c1c; font-size: 0.875rem; margin-top: 0.25rem; }

/* --- STYLE DESIGN MISSIONS & TRÈFLES --- */
.wave-top { margin-bottom: -4px; line-height: 0; background: transparent; fill: var(--azur);}
.wave-top svg { width: 100%; height: 220px; display: block; }
.wave-top--alt { background: var(--color-secondary); }
.sectors-wave-bg svg { fill: var(--green); }
.wave-bottom-footer { fill: var(--color-bg-footer); }
.section-missions { background: var(--azur); color: #fff; padding: 2rem 0 14rem; position: relative; overflow: hidden; }
.section-main-title { font-size: 2.3rem; font-weight: 700; margin-bottom: 3.5rem; text-align: left; letter-spacing: -0.01em; }

.missions-block { margin-bottom: 6rem; }
.mission-card { text-align: center; padding: 1rem; }
.mission-card h3 { font-size: 1.3rem; font-weight: 700; margin: 1.5rem 0 0.85rem; color: #fff; }
.mission-card p { font-size: 0.95rem; line-height: 1.5; opacity: 0.9; max-width: 320px; margin: 0 auto; }
.clover-container { position: relative; width: 270px; height: 270px; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.clover-bg { position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='37.3' cy='37.3' r='23' fill='%235de3bd'/%3E%3Ccircle cx='62.7' cy='37.3' r='23' fill='%235de3bd'/%3E%3Ccircle cx='37.3' cy='62.7' r='23' fill='%235de3bd'/%3E%3Ccircle cx='62.7' cy='62.7' r='23' fill='%235de3bd'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; transform: rotate(45deg); z-index: 1; }
.clover-img { position: relative; width: 260px; height: 260px; object-fit: cover; z-index: 2; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='37.3' cy='37.3' r='23'/%3E%3Ccircle cx='62.7' cy='37.3' r='23'/%3E%3Ccircle cx='37.3' cy='62.7' r='23'/%3E%3Ccircle cx='62.7' cy='62.7' r='23'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='37.3' cy='37.3' r='23'/%3E%3Ccircle cx='62.7' cy='37.3' r='23'/%3E%3Ccircle cx='37.3' cy='62.7' r='23'/%3E%3Ccircle cx='62.7' cy='62.7' r='23'/%3E%3C/svg%3E"); -webkit-mask-size: contain; mask-size: contain; }

.action-row { margin-top: 3rem; text-align: center; }

/* --- SECTEURS D'ACTIVITÉ & VAGUE INTERMÉDIAIRE --- */
.sectors-block { position: relative; width: 100%; padding: 4rem 0; min-height: 480px; }
.sectors-wave-bg { position: absolute; top: 50%; left: 0; width: 100%; height: 480px; transform: translateY(-45%); z-index: 1; pointer-events: none; }
.sectors-wave-bg svg { width: 200%; height: 100%; display: block; }
.relative-z { position: relative; z-index: 2; }
.sector-card { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 1 / 1; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
.sector-card-img { width: 100%; height: 100%; object-fit: cover; }
.sector-card-badge { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, 0.95); padding: 0.4rem 2.8rem; border-radius: 50px; width: max-content; max-width: 85%; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.sector-card-name { margin: 0; font-size: 1.15rem; color: #000; font-weight: 700; font-style: italic; }
.sectors-footer { text-align: right; margin-top: 1.5rem; padding-right: 0.5rem; }
.federation-text { font-size: 1.15rem; font-weight: 700; font-style: italic; }

.wave-bottom-container { position: absolute; bottom: 0; left: 0; width: 100%; z-index: 5; }
.wave-bottom-container-relative { position: relative;}
.wave-bottom-svg { width: 100%; height: 220px; display: block; }
.wave-bottom-svg path { filter: drop-shadow(0 -10px 16px rgba(0, 0, 0, 0.25)); }
.wave-bottom-shadow { aria-hidden: true; }

/* --- CONSEIL ADMINISTRATION & COORDONNÉES INTERNES --- */
.board-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.board-member { text-align: center; }
.board-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--color-bg-alt);
    border: 3px solid var(--color-primary);
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--color-secondary);
    font-size: 1.5rem;
}
.bureau-visual{
    position: relative;
}

.bureau-visual img {
    z-index: 2;
    position: relative;
}

.bureau-wave-bg{
    position: absolute;
    left: -40px;
    width: calc(100% + 60px);
    min-height: 100px;
    height: 100%;
}

.bureau-wave-bg svg{
    width: 100%;
    height: 100%;
    display: block;
    transform: rotateY(180deg);
}

.map-embed {
    width: 100%;
    min-height: 320px;
    border: 0;
    border-radius: var(--radius);
}

.prose h2, .prose h3 { color: var(--color-secondary); }
.prose p { margin-bottom: 1rem; }

/* --- SLIDER DES MEMBRES --- */
.member-slider-section {
    padding: 4rem 0 2rem;
    overflow: hidden;
}
.member-slider-title {
    text-align: center;
    margin-bottom: 3rem;
}
.member-slider-track { overflow: hidden; }
.member-slider-inner {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: member-slide 60s linear infinite;
}
.member-slider-item { flex-shrink: 0; }
.member-slider-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none !important;
    width: 280px;
}
.member-slider-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
    filter: grayscale(1) brightness(1.3) opacity(0.7);
    transition: filter 0.3s ease;
}
.member-slider-link:hover .member-slider-logo {
    filter: brightness(1.1) sepia(1) saturate(8) hue-rotate(-20deg);
}
.member-slider-link:hover .member-slider-name {
    color: var(--color-primary);
}
.member-slider-name {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.3;
    max-width: 160px;
    overflow-wrap: break-word;
}

@keyframes member-slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- PAGINATION & FILTRES --- */
.pagination {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}
.pagination a, .pagination span {
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}
.pagination .active {
    background: var(--color-secondary);
    color: #fff;
    border-color: var(--color-secondary);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: end;
}
.filters .form-group { margin: 0; min-width: 180px; }

/* --- ECOSYSTEME COMPLET PANNEAU ADMIN --- */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}
.admin-sidebar {
    background: var(--color-secondary-dark);
    color: #fff;
    padding: 1.5rem 1rem;
}
.admin-sidebar a {
    display: block;
    color: #fff;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius);
    margin-bottom: 0.25rem;
    text-decoration: none;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    background: rgba(255,255,255,0.15);
}
.admin-main { background: var(--color-bg-alt); }
.admin-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-content { padding: 1.5rem; }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.admin-table th, .admin-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}
.admin-table th { background: var(--color-bg-alt); }
.admin-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* --- CONNEXION ET MODULES EXTERNES --- */
.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
}
.login-card {
    width: min(100% - 2rem, 420px);
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

#tarteaucitronRoot { z-index: 9999; }

/* --- NOUVELLES SECTIONS EXTRAITES DE LA MAQUETTE --- */

/* Section 1 : Bureau Région */
.section-bureau-region {
    background: var(--azur);
    color: #fff;
    padding: 5rem 0;
}
.bureau-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 3rem 0;
}
.bureau-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.bureau-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    object-fit: cover;
}
.bureau-info-box h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #fff;
}
.bureau-facility {
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}
.bureau-address {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}
.bureau-phone {
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* Section 2 : Accompagnement */
.section-accompagnement {
    background: #ffffff;
    padding: 0;
    overflow: hidden;
}
.accompagnement-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}
.accompagnement-visual {
    width: 100%;
}
.accompagnement-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.accompagnement-content-block {
    background-color: var(--green);
    color: #000000;
    padding: 5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.accompagnement-content-block h2 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 2rem 0;
}
.accompagnement-lead {
    font-size: 1.15rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}
.accompagnement-lead strong {
    font-weight: 700;
}
.accompagnement-text {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 2.5rem;
}
.accompagnement-content-block .btn-orange {
    align-self: flex-start;
}

/* --- SECTION 3 : AGENDA REVISÉE & CORRIGÉE (Pixel-Perfect Maquette) --- */
.section-agenda {
    background-color: #33a1db;
    padding: 5rem 0;
    color: #fff;
}

.agenda-container-highlighted {
    margin-bottom: 5rem;
}

/* Bannière d'illustration supérieure sombre */
.agenda-banner-hero {
    position: relative;
    width: 100%;
    height: 340px;
    border-radius: 28px; /* Correspond aux coins très arrondis du visuel */
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 2.5rem;
}

.agenda-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agenda-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
    display: flex;
    align-items: flex-start;
    padding: 2.5rem 3rem;
}

.agenda-banner-title-text {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Structure asymétrique sous la bannière */
.agenda-highlighted-details {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 3.5rem;
    align-items: center;
}

.agenda-event-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 1rem 0;
}

.agenda-event-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #fff;
}

.agenda-event-desc {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
}

/* Ticket / Badge Orange d'accès */
.agenda-orange-ticket {
    background-color: var(--color-primary);
    border-radius: 20px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.agenda-ticket-left {
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: right;
    line-height: 1.2;
    letter-spacing: -0.01em;
    padding-right: 1.5rem;
    border-right: 2px solid rgba(255, 255, 255, 0.4);
}

.agenda-ticket-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 90px;
}

.ticket-day {
    font-size: 4.2rem;
    font-weight: 900;
    line-height: 0.85;
}

.ticket-month {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.05em;
}

.ticket-time {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

/* Section Liste des autres rendez-vous */
.agenda-list-section {
    margin-top: 4rem;
}

.agenda-list-main-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2rem;
}

.agenda-custom-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Cartes horizontales blanches conformes au rendu */
.agenda-horizontal-card {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 115px;
    transition: transform 0.2s ease;
}

.agenda-horizontal-card:hover {
    transform: translateY(-3px);
}

.agenda-card-left-img {
    width: 140px;
    flex-shrink: 0;
}

.agenda-card-left-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.agenda-card-right-body {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.agenda-card-main-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #000000;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.agenda-card-action-row {
    margin-top: auto;
}

.agenda-card-custom-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: #707070;
}

.agenda-card-styled-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: #707070 !important;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    transition: color 0.2s;
}

.agenda-horizontal-card:hover .agenda-card-styled-link {
    color: var(--color-primary) !important;
}

/* --- Section 4 : Le mot du président --- */
.section-president {
    background: var(--azur);
    color: #fff;
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
}

.president-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

.president-img-container {
    display: flex;
    justify-content: center;
}

.president-photo {
    width: 100%;
    max-width: 420px;
    height: 480px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.president-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.75;
    margin-bottom: 0.5rem;
}

.president-title {
    font-size: 2.3rem;
    font-weight: 800;
    margin: 0 0 1.5rem;
    line-height: 1.15;
    color: #fff;
}

.president-message {
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: italic;
    text-align: justify;
    opacity: 0.92;
    margin: 0 0 2rem;
}

.president-signature {
    font-size: 1rem;
    font-weight: 700;
    text-align: right;
    margin: 0 0 2rem;
    color: #fff;
}

.president-text-container .btn-orange {
    float: right;
}

/* --- Bento département swap (scroll vertical dans la carte) --- */
.bento-card.bento-dept-trigger {
    cursor: default;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0 !important;
    height: 180px;
    align-items: normal;
    justify-content: normal;
    text-align: left;
}

.bento-card.bento-dept-trigger::-webkit-scrollbar {
    display: none;
}

.bento-dept-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    box-sizing: border-box;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
}

.bento-dept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    width: 100%;
}

.bento-dept-item {
    border-radius: 10px;
    padding: 0.6rem 0.4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bento-dept-name {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.15;
    margin-bottom: 0.15rem;
}

.bento-dept-num {
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.1rem;
}

.bento-dept-label {
    font-size: 0.6rem;
    opacity: 0.8;
    line-height: 1.1;
}

.bento-dept-item.bento-orange,
.bento-dept-item.bento-blue,
.bento-dept-item.bento-lightgreen,
.bento-dept-item.bento-green,
.bento-dept-item.bento-teal {
    grid-area: auto;
}

@media (max-width: 600px) {
    .bento-dept-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- REGLAGES RESPONSIVES ET COMPATIBILITÉS ÉCRANS --- */
@media (max-width: 992px) {
    .bureau-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .accompagnement-split-container {
        grid-template-columns: 1fr;
    }
    .accompagnement-content-block {
        padding: 4rem 2rem;
    }
    .accompagnement-split-container {
        display: flex;
        flex-direction: column-reverse;
    }
    .agenda-highlighted-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .agenda-ticket-left {
        border-right: none;
        padding-right: 0;
        text-align: center;
    }
    .agenda-orange-ticket {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 1rem;
    }
    .agenda-custom-grid {
        grid-template-columns: 1fr;
    }
    .president-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .president-photo {
        height: 360px;
        max-width: 100%;
    }
    .president-message {
        text-align: center;
    }
    .president-signature {
        text-align: center;
    }
    .president-text-container .btn-orange {
        float: none;
        display: block;
        width: max-content;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .section-main-title { text-align: center; font-size: 1.9rem; }
    .sectors-footer { text-align: center; }
    .sector-card { aspect-ratio: 4 / 3; }
    .nav-toggle { display: block; }
    .main-nav { display: none; width: 100%; }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; padding: 0.5rem 0 1rem; }
    .header-inner { flex-wrap: wrap; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .hero-content { flex-direction: column; align-items: stretch; padding: 2rem 0; }
    .hero-main h1 { font-size: clamp(2rem, 12vw, 4rem); margin-bottom: 2rem; }
    .hero-latest { position: static; transform: none; }
    .hero-card { width: 100%; }
    .hero { min-height: 70vh; }
    .wave-top svg, .wave-bottom-svg { height: 120px; }
    .wave-top svg path { fill: var(--color-secondary); }
    .sectors-wave-bg { height: 320px; }
    .bureau-main-title { font-size: 2rem; text-align: center; }
    .bureau-info-box { text-align: center; }
    .bureau-info-box .btn-orange { width: 100%; }
    .accompagnement-content-block h2 { font-size: 2rem; text-align: center; }
    .accompagnement-content-block .btn-orange { width: 100%; text-align: center; }
    
    .agenda-banner-title-text { font-size: 2.2rem; padding: 1rem; }
    .agenda-event-title { font-size: 1.8rem; }
    .agenda-horizontal-card { flex-direction: column; }
    .agenda-card-left-img { width: 100%; height: 150px; }
    .agenda-card-right-body { padding: 1rem; }
    .agenda-list-main-title { font-size: 1.6rem; }

    .president-layout { grid-template-columns: 1fr; text-align: center; }
    .president-photo { height: 300px; max-width: 100%; }
    .president-message { text-align: center; }
    .president-signature { text-align: center; }
    .president-text-container .btn-orange { float: none; }
}

/* --- SECTION : L'UNAPL C'EST... (BENTO GRID FIXÉE) --- */
.section-infographic {
    background-color: var(--color-bg-infographic);
    padding: 5rem 0;
}

.infographic-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 2.5rem 0;
    color: #000;
    letter-spacing: -0.02em;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
    /* On laisse la hauteur des lignes s'adapter au contenu */
    grid-auto-rows: minmax(110px, auto);
}

.bento-card {
    border-radius: 12px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    position: relative;
}

/* Texte adaptatif (clamp) pour empêcher "Milliards €" de casser les cases */
.bento-num {
    font-size: clamp(2rem, 3vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.bento-pill {
    border: 2px solid currentColor;
    border-radius: 50px;
    padding: 0.25rem 1.25rem;
    font-size: clamp(0.85rem, 1.2vw, 1.1rem);
    font-weight: 800;
    display: inline-block;
    max-width: 95%;
}

/* COORDONNÉES STRICTES POUR CHAQUE CARTE */
/* Format : grid-area: ligne-départ / colonne-départ / ligne-fin / colonne-fin */

.bento-orange { grid-area: 1 / 1 / 3 / 3; background-color: var(--color-primary); color: #fff; }
.bento-orange .bento-num { font-size: clamp(3.5rem, 6vw, 6rem); margin-top: 1rem; }
.bento-orange .bento-pill { font-size: 1.6rem; padding: 0.2rem 1.8rem; margin-bottom: 2.5rem; }

.bento-blue { grid-area: 1 / 3 / 2 / 5; background-color: #33a1db; color: #fff; }
.bento-lightgreen { grid-area: 2 / 3 / 3 / 5; background-color: var(--green-light); color: var(--green-dark); }

.bento-green { grid-area: 1 / 5 / 2 / 7; background-color: var(--green-mid); color: var(--green-dark); }

.bento-small-1 { grid-area: 2 / 5 / 3 / 6; background-color: var(--green-pale); color: var(--green-dark); padding: 1rem 0.5rem; }
.bento-small-2 { grid-area: 2 / 6 / 3 / 7; background-color: var(--green-pale); color: var(--green-dark); padding: 1rem 0.5rem; }
.bento-small-1 .bento-num, .bento-small-2 .bento-num { font-size: 2.2rem; }
.bento-small-1 .bento-pill, .bento-small-2 .bento-pill { font-size: 0.85rem; padding: 0.15rem 0.7rem; }

.bento-horizontal-1 { grid-area: 3 / 1 / 4 / 5; background-color: var(--azur-light); color: #fff; }
.bento-horizontal-2 { grid-area: 4 / 1 / 5 / 5; background-color: var(--azur-light); color: #fff; }
.bento-horizontal-3 { grid-area: 5 / 1 / 6 / 5; background-color: var(--azur-light); color: #fff; }

.bento-horizontal-1 .bento-pill,
.bento-horizontal-2 .bento-pill,
.bento-horizontal-3 .bento-pill {
    width: 75%;
}

.bento-teal { grid-area: 3 / 5 / 6 / 7; background-color: var(--azur); color: #fff; }
.bento-teal .bento-num { font-size: clamp(3rem, 4.5vw, 4.5rem); margin-top: auto; }
.bento-teal .bento-pill { font-size: 1.25rem; padding: 0.2rem 1.5rem; }

/* Styles pour d'éventuels éléments additionnels (comme vos "2500 Adhérents") */
.bento-default { 
    grid-column: 1 / -1; /* Prend toute la largeur en bas */
    background-color: #ffffff; 
    border: 2px solid var(--color-border);
    color: #1f2937; 
    margin-top: 1rem;
}

/* RESPONSIVE : Affichage en colonne sur mobile */
@media (max-width: 992px) {
    .bento-grid {
        display: flex;
        flex-direction: column;
    }
    .bento-card {
        width: 100%;
        grid-area: auto !important; /* Libère les éléments des coordonnées fixes */
        min-height: 140px;
    }
    .bento-horizontal-1 .bento-pill,
    .bento-horizontal-2 .bento-pill,
    .bento-horizontal-3 .bento-pill {
        width: 95%;
    }
}