/* Site d'ABO Tracker : l'identité du thème « Registre de guilde » de l'app (encre chaude, or patiné, titres à
   empattement), plus le rouge de l'épée du logo. Aucune police ni script externe. */
:root {
    --ink: #17130f;
    --ink-deep: #110e0a;
    --surface: #211b14;
    --surface-2: #2a2219;
    --line: #3a2f20;
    --text: #efe6d2;
    --muted: #a89a85;
    --gold: #d9a441;
    --gold-soft: rgba(217, 164, 65, 0.14);
    --red: #c82e29;
    --positive: #a3c47f;
    --radius: 4px;
    --heading: "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", Georgia, serif;
    --body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font: 17px/1.6 var(--body);
    -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { font-family: var(--heading); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1280px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }

/* En-tête */
/* Bandeau : une barre arrondie qui flotte au-dessus de la page, liens en pastilles, bouton doré à droite. */
/* La page passe sous le bandeau (marge négative) : pas de bande unie derrière lui, le fond continue jusqu'en haut. */
.top { position: sticky; top: 0; z-index: 20; padding: 14px 0; margin-bottom: -92px; pointer-events: none; }
.top-row { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 16px; min-height: 64px; max-width: 1280px;
    transition: max-width 0.35s ease, min-height 0.35s ease, padding 0.35s ease, background-color 0.35s ease;
    padding: 8px 8px 8px 18px; border-radius: 999px; background: rgba(17, 14, 10, 0.74);
    border: 1px solid rgba(217, 164, 65, 0.18); backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
/* Une fois la page défilée, la barre se resserre au centre et devient plus opaque. */
.top.scrolled .top-row { max-width: 940px; min-height: 54px; padding: 5px 6px 5px 14px; background-color: rgba(17, 14, 10, 0.9); }
.top .brand img { transition: height 0.35s ease, width 0.35s ease; }
.top.scrolled .brand img { width: 24px; height: 36px; }
.top.scrolled .cta { padding: 9px 18px; }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.cta { display: inline-flex; align-items: center; padding: 11px 22px; border-radius: 999px; background: var(--gold);
    color: #1b1712; font-weight: 700; box-shadow: 0 0 22px rgba(217, 164, 65, 0.45); }
.cta:hover { text-decoration: none; background: #e6b75a; box-shadow: 0 0 30px rgba(217, 164, 65, 0.6); }
/* Le don, aussi visible que le téléchargement, au rouge de l'épée du logo. */
.cta.donate { gap: 6px; background: var(--red); color: #fff4ea; box-shadow: 0 0 22px rgba(200, 46, 41, 0.45); }
.cta.donate:hover { background: #dd3a34; box-shadow: 0 0 30px rgba(200, 46, 41, 0.6); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--heading); font-size: 1.6rem; font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand.small { font-size: 1.15rem; gap: 8px; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav > a { color: var(--muted); padding: 9px 16px; border-radius: 999px; font-weight: 500; }
.nav > a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.nav > a.active { color: var(--text); background: var(--surface-2); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }

.languages { position: relative; }
.languages summary { list-style: none; cursor: pointer; padding: 10px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); background: rgba(255, 255, 255, 0.03); }
.languages summary::-webkit-details-marker { display: none; }
/* Le drapeau seul, centré dans une pastille ronde : pas de flèche. */
.languages summary { width: 44px; height: 44px; padding: 0; justify-content: center; }
.languages summary, .languages li a { display: flex; align-items: center; gap: 8px; }
.flag { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15); flex: none; }
.languages ul { position: absolute; right: 0; top: calc(100% + 10px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 190px; }
.languages li a { display: block; padding: 6px 10px; color: var(--text); border-radius: var(--radius); }
.languages li a:hover { background: var(--gold-soft); text-decoration: none; }

.menu-toggle, .menu-button { display: none; }

/* Boutons */
.button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius); font-weight: 600; border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.button:hover { text-decoration: none; border-color: var(--gold); }
.button.primary { background: var(--gold); border-color: var(--gold); color: #1b1712; }
.button.primary:hover { background: #e6b75a; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Accueil */
.hero { padding: 164px 0 56px; border-bottom: 1px solid var(--line); background:
    radial-gradient(900px 420px at 80% 30%, rgba(200, 46, 41, 0.12), transparent 70%),
    radial-gradient(700px 360px at 10% 0%, rgba(217, 164, 65, 0.08), transparent 70%); }
/* Les images parlent plus vite que le texte : elles prennent environ 60 % de la largeur. */
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.25fr); gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; color: var(--gold); margin-bottom: 14px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.shot { border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); background: var(--ink-deep); }
.overlay-shot { padding: 18px; }

/* Scène de jeu avec les overlays posés dessus, comme en jeu : captures d'Albion fournies par l'auteur, pseudos
   des joueurs floutés (scene.jpg, scene-2.jpg, scene-3.jpg pour la récolte). Le dégradé ne sert que si l'image manque. */
.scene { position: relative; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    background: url("/img/scene.jpg") center / cover no-repeat,
        radial-gradient(60% 50% at 70% 35%, rgba(217, 164, 65, 0.18), transparent 70%),
        linear-gradient(165deg, #3a4a3a 0%, #232c25 40%, #16140f 100%); }
.scene.alt { background: url("/img/scene-2.jpg") center / cover no-repeat, #15130f; }
.scene.gather { background: url("/img/scene-3.jpg") center / cover no-repeat, #15130f; }
/* Un peu plus grand que la taille réelle (environ un quart de l'écran de jeu) pour rester lisible sur le site. */
.scene .ov { position: absolute; left: 1.5%; width: 34%; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)); }
.scene .ov-meter { bottom: 14%; }
.scene .ov-gains { top: 3%; width: 30%; }
.scene .ov-gathering { top: 14%; width: 31%; }

/* Carrousel de l'accueil : les scènes glissent l'une après l'autre, puis reviennent à la première. */
.carousel { position: relative; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); background: #15130f; }
.carousel .track { display: flex; height: 100%; transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1); }
.carousel .scene { flex: 0 0 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; margin: 0; }
.carousel figcaption { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px;
    background: rgba(17, 14, 10, 0.78); color: var(--text); font-size: 0.85rem; }
.carousel { touch-action: pan-y; }
.carousel:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid rgba(217, 164, 65, 0.6); background: rgba(17, 14, 10, 0.72); color: var(--text);
    font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.arrow:hover { background: var(--gold); color: #1b1712; }
.arrow.prev { left: 10px; }
.arrow.next { right: 10px; }
.dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.dots button { pointer-events: auto; width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid var(--gold);
    background: transparent; cursor: pointer; }
.dots button[aria-current="true"] { background: var(--gold); }
@media (prefers-reduced-motion: reduce) { .carousel .track { transition: none; } }
.stack { display: grid; gap: 18px; margin-top: 24px; }
.stack h3 { margin-bottom: 4px; color: var(--gold); }
.stack p { margin: 0; }

.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 36px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { color: var(--gold); }
.card p { color: var(--muted); margin: 0; }
.tag { display: inline-block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }

.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.25fr); gap: 48px; align-items: center; }
.split.reverse { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr); }
.split.reverse > :first-child { order: 2; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 12px; border: 2px solid var(--gold); transform: rotate(45deg); }

/* Fonctions */
.feature { padding: 56px 0; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; }

/* Pages simples */
.page-head { padding: 148px 0 24px; }
.page-body { padding-bottom: 72px; }
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 52px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); border-radius: 50%; font-family: var(--heading); font-weight: 600; }
.notice { border: 1px solid var(--line); border-left: 3px solid var(--gold); background: var(--surface); padding: 16px 20px; border-radius: var(--radius); margin: 24px 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-family: var(--heading); font-size: 1.2rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Dons */
.goal { margin: 8px 0 32px; }
.goal-bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.goal-bar span { display: block; height: 100%; background: var(--gold); }
.goal-text { display: flex; justify-content: space-between; margin-bottom: 8px; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 12px; max-width: 620px; margin: 24px auto 8px; text-align: center; }
.podium .spot .medal { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 8px; color: #1b1712; font-family: var(--heading); font-weight: 700; font-size: 1.3rem; }
.podium .name { font-weight: 600; }
.podium .amount { color: var(--muted); font-variant-numeric: tabular-nums; }
.podium .block { margin-top: 10px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--line); border-radius: var(--radius); }
.podium .first .block { height: 110px; border-top-color: var(--gold); }
.podium .second .block { height: 76px; }
.podium .third .block { height: 52px; }
.podium .first .medal { background: var(--gold); }
.podium .second .medal { background: #b8bec6; }
.podium .third .medal { background: #b8733e; }
.donor-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 24px; }
.donor-list li { display: flex; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.donor-list .rank { color: var(--muted); width: 2.2em; }
.donor-list .name { flex: 1; }
.donor-list .amount { color: var(--gold); }
.empty { text-align: center; color: var(--muted); padding: 24px 0; }

/* Pied de page */
.bottom { padding: 40px 0 28px; background: var(--ink-deep); }
.bottom-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.bottom-links { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: flex-start; }
.bottom-links a { color: var(--muted); }
.disclaimer { color: var(--muted); font-size: 0.85rem; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }

/* Téléphone */
@media (max-width: 860px) {
    .hero-grid, .split { grid-template-columns: 1fr; gap: 28px; }
    .split.reverse > :first-child { order: 0; }
    .split.reverse { grid-template-columns: 1fr; }
    .top-row { border-radius: 22px; padding: 8px 8px 8px 14px; gap: 8px; }
    .top-actions { gap: 6px; }
    .menu-button { display: grid; gap: 5px; cursor: pointer; padding: 10px; order: 3; }
    .menu-button span { display: block; width: 22px; height: 2px; background: var(--text); }
    .top-actions { order: 2; }
    .cta { padding: 9px 16px; }
    .nav { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; align-items: stretch;
        padding: 10px; background: rgba(17, 14, 10, 0.96); border: 1px solid var(--line); border-radius: 18px; }
    .menu-toggle:checked ~ .nav { display: flex; }
    .podium { gap: 6px; }
}

@media (max-width: 520px) {
    .top-row .brand span { display: none; }
    .cta { padding: 8px 12px; font-size: 0.9rem; }
    .cta.donate .label { display: none; }
}
