:root {
    --bg: #f7f7ff;
    --bg-alt: #ffffff;
    --accent: #c7161d;               /* rouge chœur Tornacum */
    --accent-soft: rgba(199, 22, 29, 0.09);
    --text: #111322;
    --muted: #4a4f6b;
    --border: #d4d7f0;
    --radius-lg: 18px;
    --radius-md: 10px;
    --shadow-soft: 0 18px 40px rgba(12, 16, 40, 0.18);
    --transition-fast: 0.25s ease;
    --max-width: 1100px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    background:
        radial-gradient(circle at top left, #e2e5ff, #f7f7ff 55%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.page {
    width: 100%;
    max-width: var(--max-width);
    padding: 24px 20px 40px;
}

/* HEADER / NAV */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.9),
        0 0 18px 4px rgba(199, 22, 29, 0.6),
        0 0 40px 10px rgba(199, 22, 29, 0.35);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-title {
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

/* Liste de navigation horizontale */

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

.nav li {
    display: flex;
}

.nav-link {
    border-radius: 999px;
    padding: 8px 15px;
    font-size: 14px;
    color: var(--muted);
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: background var(--transition-fast),
        color var(--transition-fast),
        border var(--transition-fast),
        transform var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    text-decoration: none;
}

.nav-link span.dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: transparent;
}

.nav-link.active {
    background: var(--accent-soft);
    color: var(--text);
    border-color: rgba(199, 22, 29, 0.5);
    transform: translateY(-1px);
}

.nav-link.active span.dot {
    background: var(--accent);
    box-shadow: 0 0 8px rgba(199, 22, 29, 0.7);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.05);
    color: #111322;
}

/* CONTENT CARD (carte principale) */

.card {
    background: radial-gradient(circle at top left, #ffffff, #f1f2ff);
    border-radius: var(--radius-lg);
    padding: 24px 22px 26px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: -40%;
    opacity: 0.35;
    background:
        radial-gradient(circle at 0% 0%, rgba(199, 22, 29, 0.2), transparent 55%),
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.5), transparent 50%);
    pointer-events: none;
}

.card-inner {
    position: relative;
    z-index: 1;
}

.section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1,
h2 {
    margin: 0 0 12px;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 18px;
}

p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

/* GRID ROWS / COLS (membres & autres sections) */

.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    padding: 5px;
}

.col {
    background: var(--bg-alt);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(12, 16, 40, 0.05);
    box-shadow: 0 6px 16px rgba(12, 16, 40, 0.08);
}

.img-center {
    text-align: center;
}

.div-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.justifie {
    text-align: justify;
}

/* BADGE */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--muted);
    border: 1px solid rgba(12, 16, 40, 0.08);
    margin-bottom: 12px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(199, 22, 29, 0.6);
}

/* PANELS & GRID */

.grid-two {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

.panel {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 14px 14px 16px;
    border: 1px solid rgba(12, 16, 40, 0.08);
    box-shadow: 0 8px 20px rgba(12, 16, 40, 0.08);
}

.panel-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #111322;
    margin-bottom: 8px;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.pill {
    font-size: 11px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(12, 16, 40, 0.12);
    background: #f3f4ff;
    color: var(--muted);
}

/* ARTICLES (si tu les utilises) */

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.article {
    padding: 12px 13px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid rgba(12, 16, 40, 0.08);
    display: grid;
    grid-template-columns: 1fr 110px;
    gap: 12px;
    align-items: center;
    box-shadow: 0 6px 18px rgba(12, 16, 40, 0.1);
}

.article-main-title {
    font-size: 14px;
    font-weight: 600;
    color: #111322;
    margin-bottom: 4px;
}

.article-meta {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 6px;
}

.article-text {
    font-size: 13px;
    color: var(--muted);
}

.article-image-placeholder {
    width: 100%;
    height: 70px;
    border-radius: 12px;
    background: linear-gradient(135deg, #c7161d33, #ffffffaa);
    border: 1px dashed rgba(12, 16, 40, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #111322;
    text-align: center;
    padding: 4px;
}

/* ACTIVITES (cartes d’activités) */

.activities {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 10px 0 0;
}

.activities > h1 {
    text-align: left;
    margin-bottom: 18px;
}

.activity-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 16px 16px 18px;
    border: 1px solid rgba(12, 16, 40, 0.08);
    box-shadow: 0 10px 24px rgba(12, 16, 40, 0.16);
    margin-bottom: 18px;
}

.activity-header {
    margin-bottom: 8px;
}

.activity-header h2 {
    margin: 0 0 4px 0;
    font-size: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.activity-header p {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.activity-header p + p {
    margin-top: 2px;
}

.activity-content {
    margin-top: 8px;
}

.activity-content p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.activity-images {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.activity-images figure {
    margin: 0;
    background: #f5f6ff;
    border-radius: 10px;
    padding: 6px;
    border: 1px solid rgba(12, 16, 40, 0.08);
}

.activity-images img {
    display: block;
    width: 220px;
    max-width: 100%;
    border-radius: 8px;
}

/* ARCHIVES */

.archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 18px;
}

.archive-filter-btn {
    border-radius: 999px;
    border: 1px solid rgba(12, 16, 40, 0.15);
    background: #ffffff;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    color: var(--muted);
    transition: background var(--transition-fast),
                color var(--transition-fast),
                border var(--transition-fast),
                transform var(--transition-fast);
}

.archive-filter-btn.active,
.archive-filter-btn:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: #111322;
    transform: translateY(-1px);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 4px;
}

.archive-item {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(12, 16, 40, 0.08);
    box-shadow: 0 8px 20px rgba(12, 16, 40, 0.12);
    overflow: hidden;
}

.archive-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.archive-image {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.archive-caption {
    padding: 10px 12px 12px;
}

.archive-caption h2 {
    margin: 0 0 4px 0;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0.02em;
}

.archive-caption p {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

/* FORMS */

form {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

label {
    font-size: 12px;
    color: #111322;
}

input,
textarea,
select {
    width: 100%;
    padding: 8px 9px;
    border-radius: 8px;
    border: 1px solid rgba(12, 16, 40, 0.2);
    background: #ffffff;
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(199, 22, 29, 0.35);
    background: #fdfcff;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.btn {
    border-radius: 999px;
    border: none;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: linear-gradient(135deg, #c7161d, #ff8c4a);
    color: #fff7f7;
    justify-self: flex-start;
    box-shadow: 0 10px 24px rgba(199, 22, 29, 0.45);
    transition: transform var(--transition-fast),
        box-shadow var(--transition-fast),
        filter var(--transition-fast);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(199, 22, 29, 0.6);
    filter: brightness(1.05);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(199, 22, 29, 0.5);
}

.helper-text {
    font-size: 11px;
    color: var(--muted);
    margin-top: -4px;
}

.alert {
    margin: 8px 0 14px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.alert-success {
    background: #e6f9ed;
    border: 1px solid #4bb873;
    color: #165334;
}

.alert-error {
    background: #ffe9ea;
    border: 1px solid #d64545;
    color: #7c171a;
}

/* FOOTER */

footer {
    margin-top: 14px;
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    opacity: 0.9;
}

/* RESPONSIVE */

@media (max-width: 800px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        width: 100%;
        justify-content: space-between;
        overflow-x: auto;
    }

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

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

    .activity-images {
        justify-content: center;
    }

    .activity-images img {
        width: 46%;
    }
}

@media (max-width: 600px) {
    .archive-image {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .activity-images {
        flex-direction: column;
        align-items: center;
    }

    .activity-images img {
        width: 100%;
    }
}