/* ASK FOR IT — charte : orange dominant, blanc, noir, gris clair. */

:root {
    --orange: #F5941F;
    --orange-dark: #D97D0C;
    --ink: #14110D;
    --ink-soft: #3A3630;
    --muted: #6E6A63;
    --line: #E7E5E1;
    --gray: #F5F4F2;
    --white: #FFF;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(20, 17, 13, .05), 0 8px 24px rgba(20, 17, 13, .06);
    --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(30px, 4.4vw, 46px); }
h2 { font-size: clamp(23px, 2.6vw, 31px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.sect { padding: 56px 20px; }
.sect-sub { color: var(--muted); margin-top: -.6em; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 70ch; }
.note { font-size: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
.empty { padding: 48px 0; text-align: center; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }

/* --- Barre de navigation --- */

.bar {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}

.bar-in {
    max-width: var(--wrap); margin: 0 auto; padding: 10px 20px;
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}

.brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; font-weight: 800; letter-spacing: .06em; font-size: 15px;
    flex: 0 0 auto;
}
.brand img { width: 56px; height: 56px; }

.nav { display: flex; align-items: center; gap: 16px; flex: 1; justify-content: space-between; }
.nav-list { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }

.nav-link {
    display: block; padding: 7px 10px; border-radius: 8px;
    text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
    white-space: nowrap;
}
.nav-link:hover { background: var(--gray); color: var(--ink); }
.nav-link.on { color: var(--orange-dark); background: #FEF3E4; }
.nav-link.soon { color: var(--muted); }
.nav-link.soon::after { content: "•"; margin-left: 5px; color: var(--orange); }
.caret { font-size: 10px; margin-left: 3px; opacity: .6; }

/* Sous-rubriques : menu déroulant au survol sur ordinateur */
.nav-list .has-sub { position: relative; }
.nav-list .sub {
    list-style: none; margin: 0; padding: 6px;
    position: absolute; top: 100%; left: 0; min-width: 190px;
    background: var(--white); border: 1px solid var(--line); border-radius: 10px;
    box-shadow: var(--shadow); z-index: 45;
    opacity: 0; visibility: hidden; transform: translateY(4px);
    transition: opacity .14s ease, transform .14s ease;
}
.nav-list .has-sub:hover > .sub,
.nav-list .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-list .sub .nav-link { white-space: normal; }

.nav-side { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.langs { display: flex; gap: 2px; margin-right: 4px; }
.lang {
    text-decoration: none; color: var(--muted); font-weight: 700; font-size: 12px;
    padding: 5px 8px; border-radius: 6px;
}
.lang.on { color: var(--ink); background: var(--gray); }

.burger-cb, .burger { display: none; }

/* --- Boutons --- */

.btn {
    display: inline-block; cursor: pointer;
    background: var(--orange); color: var(--white);
    border: 2px solid var(--orange);
    text-decoration: none; font-weight: 700; font-size: 15px;
    padding: 11px 22px; border-radius: 10px;
    transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-1px); }
.btn.sm { padding: 7px 14px; font-size: 13.5px; border-width: 1.5px; }
.btn.lg { padding: 14px 30px; font-size: 16.5px; }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: var(--white); }
.btn.ghost { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.btn.ghost:hover { background: var(--gray); color: var(--ink); }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.center .actions { justify-content: center; }

/* --- Accueil --- */

.hero {
    background:
        radial-gradient(1000px 420px at 50% -12%, #FEF0DE 0%, transparent 70%),
        var(--white);
    border-bottom: 1px solid var(--line);
}
.hero-in { max-width: 860px; margin: 0 auto; padding: 68px 20px 76px; text-align: center; }
.hero-logo { width: 164px; height: 164px; }
.hero h1 { margin-top: 22px; }
.hero-lead { color: var(--muted); font-size: 18.5px; max-width: 620px; margin: 0 auto; }
.hero .actions { justify-content: center; }

.band { background: var(--gray); border-block: 1px solid var(--line); }

.stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
    padding: 40px 0 8px; text-align: center;
}
.stat b { display: block; font-size: clamp(26px, 3.4vw, 38px); color: var(--orange-dark); line-height: 1.1; }
.stat span { font-size: 13.5px; color: var(--muted); }
.stats-note { text-align: center; font-size: 12.5px; color: var(--muted); padding-bottom: 32px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.feat {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px;
}
.feat h3 { color: var(--orange-dark); }
.feat p { margin: 0; color: var(--muted); font-size: 14.5px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step-n {
    display: inline-grid; place-items: center; width: 34px; height: 34px;
    border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; margin-bottom: 10px;
}
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* --- Cartes joueur --- */

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 18px; }

.card {
    border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; background: var(--white);
    transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-link { text-decoration: none; display: block; color: inherit; }

.card-photo {
    position: relative; aspect-ratio: 4 / 3; background: var(--gray);
    display: grid; place-items: center; overflow: hidden;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-initials { font-size: 34px; font-weight: 800; color: var(--orange); letter-spacing: .04em; }
.card-initials.big { font-size: 52px; }

.card-body { padding: 14px 16px 16px; }
.card-body h3 { margin: 0 0 4px; font-size: 16px; }
.card-meta { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.card-sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

.tag {
    display: inline-block; font-size: 12px; font-weight: 700;
    padding: 3px 9px; border-radius: 999px;
    background: var(--gray); color: var(--ink-soft); border: 1px solid var(--line);
}
.tag.free { background: #E9F7EC; color: #1F7A38; border-color: #CBEBD3; }
.tag.ok { background: #FEF3E4; color: var(--orange-dark); border-color: #F8DCB4; }
.card-photo .tag { position: absolute; top: 10px; left: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }

/* --- Filtres --- */

.filters {
    background: var(--gray); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 18px; margin-bottom: 28px;
}
.filters-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }

.f { display: flex; flex-direction: column; gap: 5px; min-width: 150px; }
.f.grow { flex: 1 1 240px; }
.f > span { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.f input, .f select, .f textarea {
    font: inherit; font-size: 14px; padding: 9px 11px;
    border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink);
    width: 100%;
}
.f input:focus, .f select:focus, .f textarea:focus {
    outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange);
}
.f.range > div { display: flex; gap: 6px; }
.f.range input { width: 82px; }

.filters-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.count { font-size: 13.5px; color: var(--muted); margin-left: auto; }

/* --- Panneaux / fiche --- */

.panel {
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; margin-bottom: 20px; background: var(--white);
}
.panel h2 { font-size: 20px; }
.panel.todo { background: var(--gray); border-style: dashed; }

.profile { display: flex; gap: 26px; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; }
.profile-photo {
    width: 176px; height: 176px; border-radius: var(--radius); overflow: hidden;
    background: var(--gray); display: grid; place-items: center; flex: 0 0 auto;
    border: 1px solid var(--line);
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-head { flex: 1 1 320px; }
.profile-head h1 { margin-bottom: 4px; }
.profile-meta { color: var(--muted); font-size: 16px; margin-bottom: 12px; }

.back { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.back:hover { color: var(--orange-dark); }

.kv { margin: 0 0 6px; }
.kv b { color: var(--ink-soft); }

.xp { border-left: 3px solid var(--orange); padding: 2px 0 2px 14px; margin-bottom: 18px; }
.xp:last-child { margin-bottom: 0; }
.xp-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.xp p { margin: 0 0 4px; font-size: 14.5px; }
.nums { display: flex; gap: 8px; flex-wrap: wrap; }
.nums span {
    font-size: 12.5px; font-weight: 700; background: var(--gray);
    border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px;
}

.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 460px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tbody tr:hover { background: var(--gray); }

.vframe { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #111; }
.vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ph {
    position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
    background: var(--gray); display: block;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.video { background: #23201C; }
.play {
    position: absolute; inset: 0; display: grid; place-items: center;
    color: #fff; font-size: 26px; text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}

/* --- Services --- */

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 26px; }
.service { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.service header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.service h2 { font-size: 19px; margin: 0; }
.service-lead { font-size: 14px; color: var(--muted); margin: 8px 0 0; }

.pill {
    font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
    padding: 3px 9px; border-radius: 999px; background: var(--gray);
    color: var(--muted); border: 1px solid var(--line); white-space: nowrap;
}
.pill.ok { background: #E9F7EC; color: #1F7A38; border-color: #CBEBD3; }
.pill.big { display: inline-block; font-size: 13px; padding: 5px 14px; }

.ticks { list-style: none; margin: 14px 0 18px; padding: 0; }
.ticks li { padding-left: 24px; position: relative; margin-bottom: 7px; font-size: 14.5px; }
.ticks li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    color: var(--orange); font-weight: 800;
}

/* --- FAQ --- */

.faq { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); padding: 4px 0; }
.qa summary {
    cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 16px;
    list-style: none; display: flex; justify-content: space-between; gap: 12px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--orange); font-size: 22px; line-height: 1; }
.qa[open] summary::after { content: "–"; }
.qa p { color: var(--muted); margin: 0 0 14px; }

/* --- Pages de contenu (CMS : texte riche + sous-rubriques) --- */

.prose { font-size: 16.5px; color: var(--ink-soft); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 24px; margin: 28px 0 10px; color: var(--ink); }
.prose h3 { font-size: 19px; margin: 22px 0 8px; color: var(--ink); }
.prose p { margin: 0 0 1em; }
.prose a { color: var(--orange-dark); text-decoration: underline; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose img { border-radius: 10px; margin: 10px 0; }
.prose blockquote {
    margin: 16px 0; padding: 8px 18px; border-left: 3px solid var(--orange);
    color: var(--muted); font-style: italic;
}

.subpages { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 32px; }
.subpage {
    display: block; text-decoration: none; color: inherit;
    border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
    transition: box-shadow .15s ease, transform .15s ease;
}
.subpage:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.subpage h3 { margin: 0 0 4px; color: var(--orange-dark); }
.subpage p { margin: 0; font-size: 14px; color: var(--muted); }

/* --- Formulaires --- */

.form { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.hp { position: absolute; left: -9999px; }

.flash { padding: 12px 16px; border-radius: 10px; font-size: 14.5px; }
.flash.ok { background: #E9F7EC; color: #1F7A38; border: 1px solid #CBEBD3; }
.flash.err { background: #FDECEC; color: #A32020; border: 1px solid #F5C9C9; list-style: none; margin: 0 0 16px; padding: 12px 16px; }
.flash.err li { margin-left: 4px; }

/* --- Pagination --- */

.pager { margin-top: 32px; }
.pager svg { width: 18px; height: 18px; }

/* --- Pied de page --- */

.foot { background: var(--ink); color: #C9C5BE; margin-top: 40px; }
.foot-in {
    max-width: var(--wrap); margin: 0 auto; padding: 44px 20px 28px;
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
}
.foot h4 { color: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: .07em; }
.foot-tag { font-size: 14px; max-width: 30ch; }
.foot-brand img { margin-bottom: 12px; }
.foot-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; }
.foot-list a { text-decoration: none; font-size: 13.5px; line-height: 2; }
.foot-list a:hover { color: var(--orange); }
.foot-legal {
    text-align: center; font-size: 12.5px; padding: 16px 20px 24px; margin: 0;
    border-top: 1px solid #2C2822; color: #85807A;
}
.foot-legal a { color: #B7B2AB; text-decoration: none; }
.foot-legal a:hover { color: var(--orange); }
.foot-sep { margin: 0 6px; }

/* Pages légales (politique de confidentialité) */
.legal h2 { font-size: 20px; margin-top: 32px; }
.legal .updated { color: var(--muted); font-size: 13.5px; margin-top: -.4em; }
.legal .ticks { margin-top: 6px; margin-bottom: 16px; }
.legal .kv { margin-bottom: 4px; }

/* --- Responsive --- */

@media (max-width: 1080px) {
    .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .bar-in { position: relative; }

    .burger { display: block; margin-left: auto; cursor: pointer; padding: 8px; }
    .burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

    .nav {
        display: none; width: 100%; flex-direction: column; align-items: stretch;
        gap: 12px; padding: 12px 0 6px; border-top: 1px solid var(--line); margin-top: 8px;
    }
    .burger-cb:checked ~ .nav { display: flex; }
    .nav-list { flex-direction: column; gap: 0; }
    .nav-link { padding: 10px 8px; font-size: 15px; }
    .nav-side { justify-content: flex-start; flex-wrap: wrap; }

    /* Sur mobile, les sous-rubriques sont une liste indentée (pas de survol). */
    .nav-list .sub {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; border-left: 2px solid var(--line);
        border-radius: 0; margin: 0 0 4px 12px; padding: 0;
    }
    .caret { display: none; }

    .stats { grid-template-columns: repeat(2, 1fr); gap: 22px; }
    .grid-2 { grid-template-columns: 1fr; }
    .foot-in { grid-template-columns: 1fr; gap: 24px; }
    .profile-photo { width: 128px; height: 128px; }
    .sect { padding: 40px 20px; }
}

@media (max-width: 520px) {
    .grid-4, .steps { grid-template-columns: 1fr; }
    .grid-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .f, .f.grow { min-width: 100%; }
    .count { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
