:root {
    --bg: #f7f4ec;
    --surface: #fffdf7;
    --ink: #101927;
    --ink-soft: #4a5668;
    --primary: #b91521;
    --primary-strong: #8f1019;
    --secondary: #102956;
    --secondary-strong: #07172f;
    --gold: #f0bd43;
    --line: #ddd5c7;
    --radius: 8px;
    --shadow: 0 10px 25px rgba(7, 23, 47, 0.14);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, #fffdf7 0%, var(--bg) 48%, #f4efe3 100%);
    color: var(--ink);
    font-family: 'Manrope', sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    background: rgba(255, 253, 247, 0.92);
    border-bottom: 4px solid var(--primary);
    box-shadow: 0 6px 18px rgba(7, 23, 47, 0.08);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 74px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0;
}

.logo-flag {
    width: 56px;
    height: 36px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px var(--secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.35rem;
}

.nav-link {
    text-decoration: none;
    font-weight: 700;
    color: var(--ink-soft);
    padding-bottom: 0.2rem;
    border-bottom: 2px solid transparent;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary);
    border-color: var(--gold);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--ink);
    margin: 4px 0;
    border-radius: 4px;
}

.hero {
    position: relative;
    isolation: isolate;
    padding: 5.4rem 0 4.2rem;
    background:
        linear-gradient(180deg, var(--secondary-strong) 0%, var(--secondary) 68%, var(--primary) 68%, var(--primary) 100%);
    color: #ffffff;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(8deg, transparent 0 47%, rgba(255, 255, 255, 0.88) 47.3% 48.1%, transparent 48.4%),
        radial-gradient(circle at 18% 30%, rgba(185, 21, 33, 0.82), transparent 18%),
        radial-gradient(circle at 84% 22%, rgba(240, 189, 67, 0.22), transparent 30%);
    opacity: 0.92;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.2;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.brand-motto {
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    color: #ffffff;
    font-size: clamp(1rem, 2.2vw, 1.45rem);
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.35rem 0.8rem;
    margin-bottom: 1.1rem;
    box-shadow: 8px 8px 0 rgba(255, 255, 255, 0.12);
}

.hero-text {
    font-size: 1.08rem;
    max-width: 60ch;
    color: #eef3fb;
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero-card {
    background: #ffffff;
    border: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    color: var(--secondary);
    text-align: center;
}

.hero-card h2 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    color: var(--secondary);
    text-transform: uppercase;
}

.hero-card ul {
    list-style: none;
}

.hero-card li {
    padding: 0.55rem 0;
    border-bottom: 1px dashed var(--line);
    color: var(--ink);
}

.notice-emblem {
    width: min(210px, 80%);
    height: auto;
    margin: 0 auto 1rem;
    border-radius: 0;
    display: block;
    object-fit: contain;
    box-shadow: none;
}

.hero-card li:last-child {
    border-bottom: 0;
}

.section {
    padding: 4.6rem 0;
}

.section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    margin-bottom: 0.7rem;
}

.section-intro {
    color: var(--ink-soft);
    max-width: 65ch;
    margin-bottom: 2rem;
}

.cards-grid {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.3rem;
    box-shadow: 0 4px 15px rgba(30, 42, 53, 0.06);
}

.content-card h3 {
    margin-bottom: 0.6rem;
    color: var(--secondary);
}

.event-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(16, 41, 86, 0.08));
}

.event-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    align-items: start;
}

.feature-list {
    list-style: none;
    margin-top: 1rem;
}

.feature-list li {
    position: relative;
    padding: 0.65rem 0 0.65rem 1.2rem;
    border-bottom: 1px solid var(--line);
}

.feature-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    position: absolute;
    left: 0;
    top: 1.2rem;
}

.event-panel {
    background: var(--secondary-strong);
    color: #f3f7f7;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: grid;
    gap: 0.7rem;
}

.event-panel h3 {
    margin-bottom: 0.45rem;
}

.event-date {
    color: var(--gold);
    font-weight: 800;
    margin-bottom: 0.7rem;
}

.kermesse-carousel {
    position: relative;
    margin-top: 1.3rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    background: #000;
}

.carousel-track {
    display: flex;
    transition: transform 0.55s ease;
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

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

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(16, 47, 58, 0.78);
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

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

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

.carousel-btn:hover {
    background: rgba(7, 23, 47, 0.95);
}

.carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 0.45rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.carousel-dot.active {
    background: #ffffff;
}

.culture-section {
    background: linear-gradient(180deg, rgba(16, 41, 86, 0.04), rgba(255, 255, 255, 0));
}

.history-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 5px solid var(--primary);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 15px rgba(7, 23, 47, 0.08);
}

.food-category-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.category-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: 0 8px 16px rgba(7, 23, 47, 0.08);
}

.category-intro {
    color: var(--ink-soft);
    margin-bottom: 0.75rem;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.food-grid.one-item {
    grid-template-columns: minmax(0, 1fr);
    max-width: 460px;
}

.food-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(7, 23, 47, 0.08);
}

.food-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.food-content {
    padding: 0.9rem;
}

.food-content h4 {
    margin-bottom: 0.4rem;
    color: var(--secondary);
}

.panel-btn {
    width: 100%;
}

.program-card {
    background: var(--secondary-strong);
    color: #f3f7f7;
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--shadow);
}

.program-card h3 {
    margin-bottom: 0.7rem;
}

.program-list {
    list-style: none;
}

.program-list li {
    padding: 0.45rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.28);
}

.program-list li:last-child {
    border-bottom: 0;
}

.program-note {
    margin-top: 0.8rem;
    color: #c8dbde;
    font-size: 0.95rem;
}

.contact-section {
    background: rgba(255, 255, 255, 0.6);
}

.contact-layout {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: 1fr 1fr;
}

.contact-list p {
    margin-bottom: 0.5rem;
}

.contact-list a {
    color: var(--secondary);
    font-weight: 700;
}

.contact-form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem;
    display: grid;
    gap: 0.55rem;
}

.contact-form label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink-soft);
}

.contact-form input,
.contact-form textarea {
    border: 1px solid #c3c8ca;
    border-radius: var(--radius);
    padding: 0.72rem 0.8rem;
    font: inherit;
    background: #ffffff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid transparent;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(16, 41, 86, 0.2);
}

.form-note {
    min-height: 1.25rem;
    font-size: 0.9rem;
    color: var(--secondary);
}

.error-text {
    color: #b3261e;
}

.btn {
    border: 0;
    border-radius: var(--radius);
    padding: 0.72rem 1rem;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

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

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 0 var(--primary-strong);
}

.btn-primary:hover {
    background: var(--primary-strong);
}

.btn-ghost {
    border: 1px solid rgba(16, 41, 86, 0.35);
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.75);
}

.nav-button {
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.nav-button:hover {
    color: var(--secondary);
}

.member-body {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(16, 41, 86, 0.08), transparent 38%),
        radial-gradient(circle at 10% 10%, rgba(185, 21, 33, 0.12), transparent 30%),
        radial-gradient(circle at 85% 5%, rgba(240, 189, 67, 0.16), transparent 34%),
        var(--bg);
}

.member-nav {
    align-items: center;
}

.auth-shell,
.dashboard-shell {
    padding: 3.2rem 0 4rem;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.4rem;
    align-items: start;
}

.auth-panel,
.auth-help,
.dashboard-panel,
.status-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 20px rgba(7, 23, 47, 0.1);
}

.auth-panel {
    padding: 2rem;
}

.auth-panel h1,
.dashboard-hero h1,
.admin-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.1rem);
    margin-bottom: 0.8rem;
    color: var(--secondary);
    text-shadow: none;
}

.auth-help {
    padding: 1.35rem;
    display: grid;
    gap: 0.85rem;
}

.auth-help h2,
.dashboard-panel h2,
.status-card h2 {
    color: var(--secondary);
    font-size: 1.25rem;
}

.auth-form {
    max-width: 460px;
}

.dashboard-hero,
.admin-hero {
    margin-bottom: 1.4rem;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.2rem;
    align-items: stretch;
}

.status-card {
    padding: 1.2rem;
    display: grid;
    gap: 0.7rem;
    align-content: start;
}

.status-pill {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 800;
    background: #eef1f2;
    color: var(--ink-soft);
}

.status-paid,
.status-exempt {
    background: #e4f4ea;
    color: #1d6b3a;
}

.status-unpaid,
.status-failed,
.status-expired {
    background: #fde8df;
    color: #9d3719;
}

.status-pending,
.status-loading,
.status-refunded {
    background: #fff2d5;
    color: #8a5a00;
}

.dashboard-grid,
.admin-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

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

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

.dashboard-panel {
    padding: 1.2rem;
}

.profile-panel {
    align-content: start;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.9rem;
}

.stack-list {
    display: grid;
    gap: 0.8rem;
}

.profile-summary {
    margin-bottom: 1rem;
    color: var(--ink-soft);
}

.list-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.9rem;
    background: #ffffff;
}

.list-card h3 {
    color: var(--secondary);
    margin-bottom: 0.35rem;
}

.list-card small {
    display: block;
    color: var(--ink-soft);
    margin-top: 0.55rem;
}

.empty-state {
    color: var(--ink-soft);
}

.compact-form {
    display: grid;
    gap: 0.55rem;
}

.compact-form label,
.check-row {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink-soft);
}

.compact-form input,
.compact-form textarea,
.compact-form select,
.search-input,
td select {
    border: 1px solid #c3c8ca;
    border-radius: var(--radius);
    padding: 0.68rem 0.75rem;
    font: inherit;
    background: #ffffff;
}

.readonly-input {
    background: #f4efe3;
    color: var(--ink-soft);
    cursor: not-allowed;
}

.check-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.responsive-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--secondary);
    font-size: 0.86rem;
    text-transform: uppercase;
}

.page-status {
    margin-top: 0.7rem;
}

.footer {
    border-top: 1px solid var(--line);
    padding: 1.4rem 0 2rem;
    color: var(--ink-soft);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .hero-grid,
    .event-layout,
    .contact-layout,
    .cards-grid,
    .food-grid,
    .auth-shell,
    .dashboard-hero,
    .dashboard-grid,
    .admin-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        right: 1rem;
        top: 65px;
        width: min(280px, calc(100% - 2rem));
        display: none;
        flex-direction: column;
        background: #faf8f2;
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 0.8rem;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .member-nav {
        position: static;
        width: auto;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        background: transparent;
        border: 0;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
    }
}
