@import url('https://fonts.googleapis.com/css2?family=Rye&family=Special+Elite&family=IM+Fell+English:ital@0;1&display=swap');

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

:root {
    --wood:      #1a0f08;
    --wood-mid:  #2c1a0e;
    --wood-light:#3d2410;
    --paper:     #f2e6d0;
    --paper-mid: #e8d8b8;
    --paper-dark:#d4c4a0;
    --ink:       #1e110a;
    --ink-mid:   #3d2410;
    --ink-faded: #5c3d20;
    --sepia:     #8b5e3c;
    --sepia-light:#b08060;
    --gold:      #c9940a;
    --gold-light:#e8b84b;
    --rust:      #8b2500;
    --rust-light:#c43800;
    --navbar-h:  62px;
}

html { scroll-behavior: smooth; }

body {
    background: #c8b490;
    font-family: 'Special Elite', cursive;
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── NAVBAR ── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--navbar-h);
    background: linear-gradient(180deg, #1a0f08 0%, #2c1810 60%, #1e1208 100%);
    border-bottom: 3px solid var(--sepia);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    gap: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* grain bois navbar */
.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent, transparent 12px,
        rgba(255,255,255,0.008) 12px, rgba(255,255,255,0.008) 13px
    );
    pointer-events: none;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 1.5rem;
    position: relative;
    z-index: 1;
}

.navbar-logo img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}

.navbar-logo-text {
    font-family: 'Rye', cursive;
    font-size: 1rem;
    color: var(--gold-light);
    letter-spacing: 0.08em;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
    line-height: 1.1;
}

.navbar-logo-sub {
    font-family: 'Special Elite', cursive;
    font-size: 0.55rem;
    color: var(--sepia-light);
    letter-spacing: 0.2em;
    display: block;
}

.navbar-sep {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, var(--sepia), transparent);
    margin: 0 1rem;
    flex-shrink: 0;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: var(--paper-mid);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    height: var(--navbar-h);
}

.nav-link:hover {
    color: var(--gold-light);
    background: rgba(201,148,10,0.08);
    border-bottom-color: rgba(201,148,10,0.4);
}

.nav-link.active {
    color: var(--gold-light);
    border-bottom-color: var(--gold);
    background: rgba(201,148,10,0.12);
}

.nav-link .nav-icon { font-size: 0.8rem; }

.navbar-discord {
    margin-left: auto;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Rye', cursive;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--paper);
    background: var(--rust);
    border: 2px solid rgba(255,255,255,0.1);
    padding: 7px 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.4);
}

.btn-discord:hover {
    background: var(--rust-light);
    transform: translate(-1px,-1px);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.4);
}

/* ── MAIN ── */
.main-content {
    margin-top: var(--navbar-h);
    flex: 1;
    background: #c8b490;
    min-height: calc(100vh - var(--navbar-h));
}

/* ── PAGE HEADER ── */
.page-header {
    background: linear-gradient(180deg, var(--wood-mid) 0%, var(--wood-light) 100%);
    padding: 2.5rem 3rem 2rem;
    text-align: center;
    border-bottom: 3px solid var(--sepia);
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.page-header-badge {
    display: inline-block;
    font-family: 'Rye', cursive;
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    color: var(--paper);
    background: var(--sepia);
    padding: 3px 16px;
    margin-bottom: 1rem;
    position: relative;
}
.page-header-badge::before, .page-header-badge::after {
    content: '✦'; position: absolute; top: 50%; transform: translateY(-50%);
    color: var(--gold); font-size: 0.5rem;
}
.page-header-badge::before { left: 5px; }
.page-header-badge::after  { right: 5px; }

.page-title {
    font-family: 'Rye', cursive;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--gold-light);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.4);
    letter-spacing: 0.06em;
}

.page-subtitle {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    color: var(--paper-mid);
    font-size: 1rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* ── CONTENT ── */
.content-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

/* ── PANELS ── */
.panel {
    background: linear-gradient(180deg, #f5ead8 0%, #ede0c4 100%);
    border: 2px solid var(--sepia);
    border-radius: 2px;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2), inset 0 0 40px rgba(139,94,60,0.06);
}
.panel::before { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(139,94,60,0.25); pointer-events: none; }

.panel-header {
    background: linear-gradient(180deg, var(--wood-mid) 0%, var(--wood-light) 100%);
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--sepia);
    display: flex;
    align-items: center;
    gap: 10px;
}
.panel-header h2 { font-family: 'Rye', cursive; font-size: 1.1rem; color: var(--gold-light); letter-spacing: 0.06em; }
.panel-header .panel-icon { color: var(--gold); font-size: 1rem; }
.panel-body { padding: 1.5rem; }

/* ── SECTION TITLE ── */
.section-title {
    font-family: 'Rye', cursive;
    font-size: 1rem;
    color: var(--rust);
    letter-spacing: 0.08em;
    margin: 1.5rem 0 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title::before, .section-title::after { content: ''; flex: 1; height: 1px; }
.section-title::before { background: linear-gradient(to right, transparent, var(--sepia)); }
.section-title::after  { background: linear-gradient(to left,  transparent, var(--sepia)); }

/* ── DIVIDER ── */
.w-divider { display: flex; align-items: center; gap: 12px; margin: 1.5rem 0; }
.w-divider-line { flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--sepia), transparent); }
.w-divider-star { color: var(--gold); font-size: 0.8rem; }

/* ── TABLES ── */
.w-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.w-table th { background: var(--wood-mid); color: var(--gold-light); font-family: 'Rye', cursive; font-size: 0.8rem; letter-spacing: 0.08em; padding: 10px 14px; text-align: left; border: 1px solid var(--sepia); }
.w-table td { padding: 9px 14px; border: 1px solid rgba(139,94,60,0.35); color: var(--ink-mid); background: rgba(255,255,255,0.25); }
.w-table tr:nth-child(even) td { background: rgba(139,94,60,0.08); }
.w-table tr:hover td { background: rgba(201,148,10,0.1); }

/* ── BUTTONS ── */
.btn-western {
    display: inline-block;
    font-family: 'Rye', cursive;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--paper);
    background: var(--rust);
    border: 2px solid var(--ink);
    padding: 9px 24px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 3px 3px 0 var(--ink);
}
.btn-western:hover { background: var(--rust-light); transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }

/* ── FOOTER ── */
.site-footer {
    background: linear-gradient(90deg, var(--wood-mid), var(--wood-light), var(--wood-mid));
    border-top: 2px solid var(--sepia);
    padding: 10px 20px;
    text-align: center;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--sepia-light);
}

/* ── PROSE ── */
.prose { font-family: 'IM Fell English', serif; font-size: 1rem; line-height: 1.8; color: var(--ink-mid); }
.prose p { margin-bottom: 1rem; }
.prose strong { color: var(--rust); }
.hl { color: var(--rust); font-weight: bold; }
.hl-gold { color: var(--gold); font-weight: bold; }

/* ── MÉTIERS GRID ── */
.metiers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; margin: 1.5rem 0; }
.metier-card { background: rgba(255,255,255,0.3); border: 1px solid rgba(139,94,60,0.4); padding: 1.2rem; position: relative; }
.metier-card::before { content: '✦'; position: absolute; top: 8px; right: 10px; color: var(--gold); font-size: 0.6rem; opacity: 0.5; }
.metier-card h4 { font-family: 'Rye', cursive; font-size: 0.85rem; color: var(--rust); margin-bottom: 0.5rem; }
.metier-card p  { font-size: 0.85rem; color: var(--ink-faded); line-height: 1.5; }

/* ── NEWS ── */
.news-item { background: linear-gradient(180deg, #f5ead8 0%, #ede0c4 100%); border: 2px solid var(--sepia); margin-bottom: 2rem; position: relative; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.news-item::before { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(139,94,60,0.2); pointer-events: none; }
.news-item-header { background: var(--wood-mid); padding: 0.9rem 1.5rem; border-bottom: 2px solid var(--sepia); display: flex; align-items: center; justify-content: space-between; }
.news-item-header h2 { font-family: 'Rye', cursive; font-size: 1rem; color: var(--gold-light); letter-spacing: 0.06em; }
.news-date { font-size: 0.7rem; color: var(--sepia-light); letter-spacing: 0.08em; }
.news-body { padding: 1.4rem 1.5rem; }
.news-body p { font-family: 'IM Fell English', serif; font-size: 0.95rem; line-height: 1.75; color: var(--ink-mid); margin-bottom: 0.5rem; }
.news-body strong { color: var(--rust); }
.news-entry { margin: 0.8rem 0 0.4rem; }
.news-entry-title { font-family: 'Rye', cursive; font-size: 0.8rem; color: var(--rust); letter-spacing: 0.04em; margin-bottom: 0.3rem; }

/* ── GALERIE ── */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery-item { position: relative; overflow: hidden; border: 3px solid var(--sepia); box-shadow: 4px 4px 0 rgba(0,0,0,0.3); cursor: pointer; }
.gallery-item::before { content: ''; position: absolute; inset: 0; border: 1px solid rgba(201,148,10,0.3); z-index: 1; pointer-events: none; }
.gallery-item img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform 0.4s ease, filter 0.4s ease; filter: sepia(20%); }
.gallery-item:hover img { transform: scale(1.06); filter: sepia(0%); }

/* ── REGION CARDS ── */
.region-card { background: rgba(255,255,255,0.25); border-left: 4px solid var(--gold); padding: 1.2rem 1.4rem; margin-bottom: 1.2rem; }
.region-card h3 { font-family: 'Rye', cursive; font-size: 1rem; color: var(--rust); margin-bottom: 0.6rem; }
.region-card p  { font-family: 'IM Fell English', serif; font-size: 0.95rem; line-height: 1.7; color: var(--ink-mid); }

/* ── HERO ── */
.hero { position: relative; height: 520px; background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.6)), url('images/750001bd09b2452ef0d01fab0965ff76.jpg') center/cover; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 2rem; border-bottom: 4px solid var(--sepia); }
.hero::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: linear-gradient(to right, transparent, var(--gold), transparent); }
.hero h1 { font-family: 'Rye', cursive; font-size: clamp(2rem, 5vw, 3.5rem); color: var(--gold-light); text-shadow: 2px 2px 8px rgba(0,0,0,0.7); margin-bottom: 1rem; }
.hero p  { font-family: 'IM Fell English', serif; font-style: italic; color: var(--paper-mid); font-size: 1.1rem; max-width: 700px; line-height: 1.7; margin-bottom: 1.5rem; text-shadow: 1px 1px 4px rgba(0,0,0,0.6); }

/* ── FAQ ── */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.faq-card { background: linear-gradient(180deg, #f5ead8, #ede0c4); border: 2px solid var(--sepia); padding: 1.5rem; text-align: center; position: relative; }
.faq-card::before { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(139,94,60,0.2); pointer-events: none; }
.faq-card img { width: 70px; height: 70px; object-fit: contain; margin-bottom: 1rem; filter: sepia(30%); }
.faq-card h3 { font-family: 'Rye', cursive; font-size: 0.85rem; color: var(--rust); margin-bottom: 0.8rem; }
.faq-card p  { font-family: 'IM Fell English', serif; font-size: 0.9rem; color: var(--ink-faded); line-height: 1.6; }

/* ── FEATURE CARDS ── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.feature-card { background: linear-gradient(180deg, #f5ead8, #ede0c4); border: 2px solid var(--sepia); overflow: hidden; position: relative; box-shadow: 4px 4px 0 rgba(0,0,0,0.25); }
.feature-card::before { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(139,94,60,0.2); pointer-events: none; z-index: 1; }
.feature-card img { width: 100%; height: 160px; object-fit: cover; display: block; filter: sepia(30%); transition: filter 0.3s; }
.feature-card:hover img { filter: sepia(0%); }
.feature-card-body { padding: 1rem; position: relative; z-index: 2; }
.feature-card h3 { font-family: 'Rye', cursive; font-size: 0.85rem; color: var(--rust); margin-bottom: 0.5rem; }
.feature-card p  { font-family: 'IM Fell English', serif; font-size: 0.85rem; color: var(--ink-faded); line-height: 1.5; }
.feature-card ul { list-style: none; padding: 0; margin-top: 0.5rem; }
.feature-card li { font-family: 'IM Fell English', serif; font-size: 0.82rem; color: var(--ink-faded); padding: 2px 0 2px 14px; position: relative; }
.feature-card li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); font-size: 0.5rem; top: 6px; }

/* ── TEAM ── */
.team-section { background: rgba(0,0,0,0.08); border: 2px solid var(--sepia); padding: 2rem; margin: 2rem 0; }
.team-list { list-style: none; margin-top: 1rem; }
.team-list li { font-family: 'IM Fell English', serif; font-size: 0.95rem; color: var(--ink-mid); padding: 6px 0 6px 24px; position: relative; border-bottom: 1px solid rgba(139,94,60,0.15); }
.team-list li::before { content: '★'; position: absolute; left: 0; color: var(--gold); font-size: 0.7rem; top: 9px; }

/* ── AIDE ── */
.steps-list { counter-reset: steps; list-style: none; margin: 1rem 0; }
.steps-list li { counter-increment: steps; display: flex; gap: 14px; align-items: flex-start; margin-bottom: 0.9rem; font-family: 'IM Fell English', serif; font-size: 0.95rem; color: var(--ink-mid); line-height: 1.6; }
.steps-list li::before { content: counter(steps); font-family: 'Rye', cursive; font-size: 0.85rem; color: var(--paper); background: var(--rust); border: 2px solid var(--ink); min-width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
code { font-family: 'Special Elite', cursive; background: rgba(139,94,60,0.15); border: 1px solid rgba(139,94,60,0.3); padding: 1px 6px; font-size: 0.85em; color: var(--rust); }

/* ── MODAL ── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.88); z-index: 9999; justify-content: center; align-items: center; }
.modal-overlay.open { display: flex; }
.modal-img { max-width: 92vw; max-height: 88vh; object-fit: contain; border: 4px solid var(--sepia); }
.modal-close { position: absolute; top: 20px; right: 30px; color: var(--paper); font-size: 2.5rem; cursor: pointer; }
.modal-close:hover { color: var(--gold-light); }

/* ── RÈGLEMENT ── */
.rule-block { background: rgba(255,255,255,0.25); border-left: 3px solid var(--gold); padding: 1rem 1.2rem; margin-bottom: 0.8rem; font-family: 'IM Fell English', serif; font-size: 0.95rem; line-height: 1.75; color: var(--ink-mid); }
.rule-block strong { color: var(--rust); font-style: normal; }
.rule-number { font-family: 'Rye', cursive; font-size: 0.75rem; color: var(--gold); margin-right: 8px; }

@media (max-width: 900px) {
    .nav-link span.nav-icon { display: none; }
    .nav-link { padding: 8px 10px; font-size: 0.72rem; }
    .navbar-logo-text { display: none; }
}

@media (max-width: 640px) {
    .navbar-nav { display: none; }
}
