:root {
    --bg: #050f1c;
    --bg-alt: #081527;
    --bg-panel: rgba(14, 27, 47, 0.75);
    --text: #e8f4ff;
    --muted: #c9d8ea;
    --accent: #67d4ff;
    --accent-strong: #21a6f5;
    --alert: #f97316;
    --border: rgba(255, 255, 255, 0.14);
    --radius: 28px;
    --radius-sm: 16px;
    --shadow: 0 25px 60px rgba(3, 10, 20, 0.45);
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    scroll-behavior: smooth;
    padding-top: 84px;
}

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

a {
    color: inherit;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: var(--accent);
    color: #04101f;
    padding: 10px 14px;
    border-radius: 999px;
    z-index: 200;
    text-decoration: none;
}

.skip-link:focus {
    left: 12px;
}

.fixed-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 25, 38, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.fixed-header.is-sticky {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-shell {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px clamp(16px, 3vw, 32px);
}

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

.logo-big {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.brand-name {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.location {
    font-size: 12px;
    color: #79d7f2;
    font-weight: 400;
}

.nav-center {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-center.open .nav-cta a {
    background: #79d7f2;
    color: #0d1926;
    padding: 10px 14px;
    border-radius: 12px;
}

.nav-center a {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-center .nav-cta a {
    color: #79d7f2;
    font-weight: 700;
}

.nav-center a:hover,
.nav-center a:focus-visible {
    color: #79d7f2;
}

.btn-primary-large {
    background: #79d7f2;
    color: #0d1926;
    padding: 12px 26px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-large:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(121, 215, 242, 0.4);
}

.nav-right {
    display: flex;
    align-items: center;
}

.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero {
    min-height: 100vh;
    background: linear-gradient(140deg, rgba(5, 15, 28, 0.6), rgba(5, 10, 20, 0.75)), url('63671A69-59CB-4521-B475-5F6DD4A7D174_1_105_c.jpeg') center/cover no-repeat;
    padding: clamp(32px, 7vw, 72px) clamp(18px, 4vw, 52px) clamp(64px, 8vw, 120px);
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 11, 21, 0.65) 0%, rgba(5, 11, 21, 0.85) 60%, rgba(5, 11, 21, 0.9) 100%);
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin: auto;
    max-width: var(--max-width);
    width: 100%;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(32px, 4.2vw, 58px);
    line-height: 1.05;
    margin: 10px 0;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-size: 12px;
    color: var(--accent);
    margin: 0 0 8px;
}

.lead {
    max-width: 640px;
    color: var(--muted);
    margin-bottom: 18px;
}

.cta-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.cta-stack .btn {
    flex: 1 1 180px;
}

.hero-kpi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
}

.hero-kpi div {
    background: rgba(255, 255, 255, 0.08);
    padding: 12px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.hero-panel {
    background: rgba(4, 8, 14, 0.75);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.floating-card {
    transform: translateY(20px);
}

.scroll-cue {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 2px;
}

.panel-list {
    list-style: none;
    margin: 12px 0 18px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.panel-list li {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
}

.panel-list strong {
    color: var(--text);
}

main {
    padding: 80px clamp(18px, 4.5vw, 52px) 120px;
    display: flex;
    flex-direction: column;
    gap: 96px;
    background: radial-gradient(circle at 20% 0, rgba(28, 70, 110, 0.2), transparent 35%), var(--bg);
}

section {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
}

.section-header {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: flex-end;
}

.section-with-bg {
    padding: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.photo-background {
    position: relative;
    background: var(--bg-alt) url('80C36263-C68D-447E-A64B-73C0A40627F7_1_105_c.jpeg') center/cover no-repeat fixed;
    isolation: isolate;
}

.photo-background .bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 8, 14, 0.65), rgba(4, 8, 14, 0.85));
    z-index: 0;
}

.photo-background .content {
    position: relative;
    z-index: 1;
    padding: clamp(28px, 5vw, 48px);
    display: grid;
    gap: 24px;
}

.section-header h2 {
    margin: 6px 0;
    letter-spacing: -0.5px;
}

.values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.values article {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 20px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.mission-card {
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.inline-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.card-photo,
.side-photo {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
}

.side-photo {
    margin: 20px 0;
}

.photo-band {
    max-width: none;
    width: 100%;
    margin: 0;
}

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

.band-item {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.band-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 0.6s ease;
}

.band-item:hover img {
    transform: scale(1.12);
}

.programme .toggle {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px;
    border-radius: 999px;
}

.toggle-btn {
    border: none;
    background: transparent;
    color: var(--muted);
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
}

.toggle-btn.active {
    background: var(--accent-strong);
    color: #04111f;
}

.levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 32px;
}

.level-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-alt);
    padding: 0;
    display: grid;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-with-photo {
    position: relative;
    height: 100%;
    background: var(--bg-alt);
}

.card-with-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.7)), var(--card-bg, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.4s ease;
}

.card-with-photo .card-content {
    position: relative;
    z-index: 1;
    padding: 22px;
    display: grid;
    gap: 14px;
    color: #fff;
    height: 100%;
}

.card-with-photo:hover::before {
    transform: scale(1.05);
}

.level-top h3 {
    margin: 6px 0;
}

.level-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--muted);
    display: grid;
    gap: 6px;
}

.badge {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.inscriptions {
    background: linear-gradient(135deg, rgba(10, 24, 43, 0.95), rgba(6, 14, 26, 0.95));
    border-radius: var(--radius);
    padding: 36px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.form-card {
    background: rgba(4, 10, 18, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: grid;
    gap: 14px;
}

.question-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.form-card label {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-family: inherit;
}

textarea {
    resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.nav-links a:focus-visible,
.nav-toggle:focus-visible,
.link-pill:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.payment-card {
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 18px;
    display: grid;
    gap: 10px;
}

.form-note,
.small {
    color: var(--muted);
    font-size: 13px;
}

.table {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}

.table-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 12px 0;
}

.table-controls label {
    font-weight: 600;
}

.table-controls select {
    min-width: 180px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-weight: 600;
}

.row {
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.8fr;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.row.header {
    background: rgba(255, 255, 255, 0.08);
    font-weight: 600;
}

.row.empty {
    grid-template-columns: 1fr;
    color: var(--muted);
    text-align: center;
}

.contact-block {
    display: grid;
    gap: 4px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.4);
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #04101f;
    box-shadow: var(--shadow);
}

.btn.ghost {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.btn.outline {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
}

.btn.full {
    width: 100%;
}

.benevolat {
    display: grid;
    gap: 24px;
}

.benevolat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.benevolat-grid article {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    background: var(--bg-panel);
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.don-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    background: var(--bg-alt);
}

.don-panel {
    display: grid;
    gap: 10px;
}

.temoignages {
    display: grid;
    gap: 18px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.testimonial {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

.testimonial .author {
    color: var(--accent);
    font-weight: 700;
    margin-top: 12px;
}

.galerie {
    display: grid;
    gap: 18px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.photo-grid-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-grid-item:hover img {
    transform: scale(1.08);
}

.photo-grid-item figcaption {
    position: absolute;
    inset: auto 12px 10px 12px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
}

.photo-divider {
    max-width: none;
    width: 100%;
    height: 360px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.65)), url('63671A69-59CB-4521-B475-5F6DD4A7D174_1_105_c.jpeg') center/cover no-repeat fixed;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: grid;
    place-items: center;
    z-index: 150;
    padding: 24px;
}

.lightbox[hidden] {
    display: none !important;
}

.lightbox img {
    max-width: min(90vw, 920px);
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.lightbox p {
    color: #fff;
    margin: 12px 0 0;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid var(--border);
    padding-left: 16px;
    display: grid;
    gap: 14px;
}

.timeline li {
    position: relative;
}

.timeline li::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    left: -21px;
    top: 6px;
    background: var(--accent-strong);
}

.event-card {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
}

.event-form {
    margin-top: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    display: grid;
    gap: 12px;
}

.event-form label {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

.event-form button {
    justify-self: flex-start;
}

.map-card iframe {
    width: 100%;
    border: none;
    height: 220px;
    border-radius: var(--radius-sm);
}

.meteo {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    background: var(--bg-panel);
    min-height: 220px;
}

.legal {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--border);
    display: grid;
    gap: 14px;
}

.legal-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.legal-links a {
    color: var(--accent);
}

.footer {
    max-width: var(--max-width);
    width: 100%;
    margin: 60px auto 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    color: var(--muted);
}

.volunteer-page {
    position: fixed;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    background: #040b13;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    width: min(560px, 90vw);
    max-height: 90vh;
    overflow: auto;
    box-shadow: var(--shadow);
    z-index: 101;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
}

.close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 26px;
    cursor: pointer;
}

.to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(4, 12, 24, 0.8);
    color: var(--text);
    cursor: pointer;
    box-shadow: var(--shadow);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 120;
}

.to-top.visible {
    display: inline-flex;
}

@media (max-width: 1024px) {
    .nav-center {
        display: none;
        position: absolute;
        right: 16px;
        top: 74px;
        flex-direction: column;
        background: rgba(13, 25, 38, 0.98);
        padding: 16px;
        border-radius: var(--radius-sm);
        border: 1px solid var(--border);
        min-width: 240px;
        box-shadow: var(--shadow);
    }

    .nav-center.open {
        display: flex;
    }

    .nav-right {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-shell {
        position: relative;
    }
}

@media (max-width: 900px) {
    .hero {
        padding-bottom: 40px;
    }

    .hero-content {
        margin-top: auto;
        gap: 24px;
    }

    .hero-panel {
        width: 100%;
    }

    .forms-grid,
    .question-flow {
        grid-template-columns: 1fr;
    }

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

    .photo-background {
        background-attachment: scroll;
    }

    .photo-divider {
        background-attachment: scroll;
    }
}

@media (max-width: 640px) {
    main {
        padding: 48px 16px 80px;
        gap: 56px;
    }

    section {
        padding-inline: 0;
    }

    .hero-text h1 {
        font-size: clamp(30px, 8vw, 42px);
    }

    .hero-panel {
        order: -1;
        width: 100%;
    }

    .cta-stack {
        flex-direction: column;
    }

    .btn.full,
    .cta-stack .btn,
    .don-panel .btn,
    .payment-card .btn {
        width: 100%;
    }

    .band-item {
        height: 220px;
    }

    .hero {
        min-height: 75vh;
    }

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