/*
  big.css — Thème La BIIG (Buvette Itinérante d'Intérêt Général)
  Un style chaleureux, convivial et festif pour rassembler les villages
*/

:root {
    /* Thème de base — Rouge festif #ff0100 */
    --theme-h: 0;
    /* Hue rouge (0) */
    --theme-s: 100%;
    /* Saturation maximale pour un rouge vif */
    /* Intensité de l'infusion de la couleur de marque dans l'UI */
    --theme-tint: 12%;

    /* Mode clair uniquement pour le thème blanc */
    --theme-dark-default: 0;
    --k: 0;

    /* Echelle de rayons & ombres — légèrement plus arrondis pour la convivialité */
    --radius-s: 10px;
    --radius-m: 14px;
    --radius-l: 20px;
    --shadow-1: 0 2px 4px rgba(0, 0, 0, .05), 0 4px 12px rgba(0, 0, 0, .05);
    --shadow-2: 0 8px 32px rgba(0, 0, 0, .08);
    --shadow-festive: 0 4px 20px rgba(255, 1, 0, .12);

    /* Largeurs de contenu */
    --content-w: 72rem;
    --wide-w: 96rem;

    /* Palette de marque — Rouge BIIG #ff0100 */
    --brand-700: #cc0000;
    --brand-600: #e60000;
    --brand-500: #ff0100;
    --brand-400: #ff3333;
    --brand-300: #ff6666;
    --brand-200: #ff9999;
    --brand-100: #ffebeb;
    --brand-50: #fff5f5;

    /* Accent décalé — Orange chaleureux pour la convivialité */
    --accent-700: #cc5500;
    --accent-600: #e66000;
    --accent-500: #ff7a00;
    --accent-400: #ff9933;
    --accent-300: #ffb366;
    --accent-200: #ffcc99;
    --accent-100: #fff2e6;

    /* Couleurs secondaires — Jaune festif */
    --festive-500: #ffc107;
    --festive-400: #ffca28;
    --festive-300: #ffd54f;
    --festive-100: #fff8e1;

    /* Neutres — Blancs et gris chauds */
    --bg: #ffffff;
    --surface: #fefefe;
    --surface-2: #fafafa;
    --surface-warm: #fffaf9;
    --border: #f0e8e6;
    --border-strong: #e0d5d3;
    --muted: #8b7b78;
    --text: #2d2524;
    --text-soft: #5c4f4d;

    /* Ligne décorative rouge */
    --line-accent: #ff0100;
    --line-width: 3px;

    /* Espacements */
    --section-spacing: 5rem;
    --card-spacing: 1.75rem;

    /* Lavis de marque */
    --wash-weak: 8%;
    --wash-strong: 14%;
    --wash-heavy: 20%;
}

/* Reset moderne et base typographique */
*,
*::before,
*::after {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background-color: var(--bg) !important;
    font-family: 'Nunito', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

img,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
    display: block
}

:focus-visible {
    outline: 2px solid var(--brand-400);
    outline-offset: 2px
}

main {
    display: block
}

/* Fond chaud qui s'étend jusqu'au header */
main:has(.hero:first-child),
main:has(> section:first-child .hero) {
    background: linear-gradient(180deg, var(--surface-warm) 0, var(--surface-warm) 200px, var(--bg) 400px);
}

.backcolor {
    background: radial-gradient(ellipse 1000px 500px at 15% -15%, rgba(255, 1, 0, .06), transparent 60%), radial-gradient(ellipse 800px 400px at 85% 110%, rgba(255, 122, 0, .04), transparent 60%), linear-gradient(180deg, var(--surface-warm), var(--bg) 60%);
}

.container {
    max-width: var(--content-w);
    margin-inline: auto;
    padding-inline: 1.25rem
}

.wide {
    max-width: var(--wide-w)
}

.full-bleed {
    width: 100%;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

/* Titres & textes — Style chaleureux */
h1 {
    font-size: clamp(2rem, 3.6vw, 3rem);
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--text);
    margin-top: 0;
}

h2 {
    font-size: clamp(1.5rem, 2.6vw, 2.25rem);
    line-height: 1.25;
    position: relative;
    margin-top: 0;
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: var(--text);
    margin-top: 0;
    margin-bottom: .75rem;
}

h4 {
    font-size: 1.125rem;
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    font-weight: 700
}

/* Pas de ligne sous h3/h4 */
h3::after,
h4::after {
    display: none;
}

/* Ligne rouge décorative sous les h2 */
h2::after {
    content: "";
    display: block;
    width: 60px;
    height: var(--line-width);
    background: linear-gradient(90deg, var(--line-accent), var(--accent-500));
    margin-top: .6rem;
    margin-bottom: 1rem;
    border-radius: 2px;
}

header.center h2::after {
    margin-inline: auto;
}

section h2:first-child {
    margin-top: 0;
}

p {
    margin: 0 0 1em
}

p:last-child {
    margin-bottom: 0;
}

small {
    color: var(--muted)
}

.muted {
    color: var(--muted);
}

.lead {
    font-size: clamp(1.125rem, 2.1vw, 1.35rem);
    color: var(--text-soft);
}

/* Affinage lecture article */
article.prose {
    max-width: 72ch;
    margin-inline: auto;
}

article.prose img,
article.prose figure,
article.prose pre {
    width: 100%;
}

/* Liens & boutons — Style festif */
a {
    color: var(--brand-600);
    text-decoration-thickness: from-font;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease
}

a:hover {
    color: var(--brand-700)
}

button,
input[type=submit],
input[type=button],
input[type=reset],
a[role=button] {
    appearance: none;
    border: none;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    color: white;
    padding: .8rem 1.25rem;
    border-radius: 50px;
    box-shadow: var(--shadow-1), var(--shadow-festive);
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease
}

button:hover,
[type=submit]:hover,
a[role=button]:hover {
    background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
    transform: translateY(-2px);
    box-shadow: var(--shadow-2), 0 6px 24px rgba(255, 1, 0, .2);
}

button.ghost,
a.ghost {
    background: transparent;
    color: var(--brand-600);
    border: 2px solid var(--brand-400);
    box-shadow: none;
}

button.ghost:hover,
a.ghost:hover {
    border-color: var(--brand-600);
    background: var(--brand-50);
    color: var(--brand-700);
    box-shadow: none;
    transform: translateY(-2px);
}

/* Header & Nav — Style blanc avec ligne rouge, sticky */
header:has(nav) {
    backdrop-filter: saturate(120%) blur(12px);
    -webkit-backdrop-filter: saturate(120%) blur(12px);
    background-color: rgba(255, 255, 255, 0.92);
    border-bottom: var(--line-width) solid var(--line-accent);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* Première section après header — pas de marge */
header+main .hero,
header+main>section:first-child {
    margin-top: 0;
}

article header {
    position: relative;
    width: 100%;
    margin-left: 0;
    transform: none;
    z-index: 0;
    border-bottom: none;
}

article header h1 {
    margin-top: 0;
}

header .nav {
    max-width: var(--wide-w);
    margin: auto;
    padding: .75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative
}

header .brand {
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text);
    text-decoration: none;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

header .brand:hover {
    color: var(--brand-600);
}

nav {
    margin-left: auto
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: .5rem;
    align-items: center
}

nav a {
    display: inline-block;
    padding: .5rem .9rem;
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-soft);
    font-weight: 600;
    transition: background-color .2s ease, color .2s ease
}

nav a:hover {
    background: var(--brand-50);
    color: var(--brand-600);
}

/* Sous-menus */
nav ul li {
    position: relative;
}

nav ul li>a:has(+ ul.submenu)::after {
    content: "▾";
    margin-left: .25rem;
    font-size: .8em;
    color: var(--text-soft);
}

nav ul li>ul.submenu {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    display: none;
    min-width: 220px;
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-top: var(--line-width) solid var(--line-accent);
    border-radius: 0 0 var(--radius-m) var(--radius-m);
    padding: .5rem;
    box-shadow: var(--shadow-2);
    z-index: 60;
}

nav ul li:hover>ul.submenu {
    display: block;
}

nav ul li>ul.submenu li {
    list-style: none;
}

nav ul li>ul.submenu a {
    display: block;
    padding: .6rem .75rem;
    border-radius: var(--radius-s);
    color: var(--text-soft);
}

nav ul li>ul.submenu a:hover {
    background: var(--brand-50);
    color: var(--brand-600);
}

nav ul li:focus-within>ul.submenu {
    display: block;
}

@media (min-width: 901px) {
    nav ul li.has-sub>a::after {
        content: "▾";
        margin-left: .25rem;
        font-size: .8em;
        color: var(--text-soft);
    }
}

@media (max-width:900px) {
    nav ul li.has-sub>a::after {
        content: none;
    }
}

/* Burger */
#nav-check {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

label[for="nav-check"].burger {
    display: none;
    width: 44px;
    height: 40px;
    border-radius: 50px;
    border: 2px solid var(--border-strong);
    background-color: var(--bg);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-1);
    transition: border-color .2s ease;
}

label[for="nav-check"].burger:hover {
    border-color: var(--brand-400);
}

label[for="nav-check"].burger {
    position: relative
}

label[for="nav-check"].burger span,
label[for="nav-check"].burger::before,
label[for="nav-check"].burger::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2px;
    background-color: var(--text);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: transform .25s ease, opacity .25s ease, background-color .25s ease
}

label[for="nav-check"].burger::before {
    top: 12px
}

label[for="nav-check"].burger span {
    top: 19px
}

label[for="nav-check"].burger::after {
    top: 26px
}

header:has(#nav-check:checked) label[for="nav-check"].burger::before {
    transform: translate(-50%, 7px) rotate(45deg);
    background-color: var(--brand-500);
}

header:has(#nav-check:checked) label[for="nav-check"].burger span {
    opacity: 0
}

header:has(#nav-check:checked) label[for="nav-check"].burger::after {
    transform: translate(-50%, -7px) rotate(-45deg);
    background-color: var(--brand-500);
}

/* Hero — Style festif et accueillant */
.hero {
    padding: min(10vh, 5rem) 0 min(12vh, 6rem);
    border-bottom: var(--line-width) solid var(--line-accent);
    position: relative;
    overflow: hidden;
    /* Full bleed */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* Pas de décoration en haut du hero */

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: var(--wide-w);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.hero h1 {
    margin-top: 0;
    color: var(--brand-600);
}

.hero h1::after {
    display: none;
}

.hero p.lead {
    font-size: clamp(1.125rem, 2.1vw, 1.35rem);
    color: var(--text-soft)
}

.hero .actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem
}

.hero figure {
    margin: 0;
    filter: drop-shadow(var(--shadow-2));
}

.hero figure img {
    border-radius: var(--radius-l);
    border: 3px solid var(--bg);
    box-shadow: var(--shadow-2);
    width: 100%;
    object-fit: cover;
}

/* Grilles utilitaires */
.grid {
    display: grid;
    gap: 1.5rem
}

.grid.cols-3 {
    grid-template-columns: repeat(3, 1fr)
}

.grid.cols-2 {
    grid-template-columns: repeat(2, 1fr)
}

/* Espacement après grille features */
.grid.features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 2rem;
    margin-top: 1rem;
}

.grid.features>* {
    min-width: 0;
    padding: 0;
    background: var(--bg);
    border-radius: var(--radius-l);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-1);
    transition: transform .2s ease, box-shadow .2s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.grid.features>*:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-2), var(--shadow-festive);
}

.grid.features figure {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.grid.features figure img {
    border-radius: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid.features h3 {
    margin: 1.25rem 1.5rem .5rem;
    color: var(--brand-600);
    font-size: 1.15rem;
}

.grid.features h3::after {
    display: none;
}

.grid.features p {
    margin: 0 1.5rem 1.5rem;
    color: var(--text-soft);
    font-size: .95rem;
    flex-grow: 1;
}

/* Sections & cartes */
section {
    padding: var(--section-spacing) 0;
    border-bottom: 1px solid var(--border);
}

section:last-of-type {
    border-bottom: none;
}

/* Section avec ID — espacement propre */
section[id] {
    scroll-margin-top: 80px;
}

header.center {
    text-align: center;
    padding: 0 1.25rem 2rem;
    max-width: var(--content-w);
    margin: 0 auto;
}

header.center h2 {
    margin-bottom: .5rem;
}

header.center h2::after {
    margin-inline: auto;
    margin-bottom: 1.5rem;
}

header.center p {
    max-width: 60ch;
    margin-inline: auto;
    color: var(--text-soft);
}

section.kit {
    background: linear-gradient(180deg, var(--brand-50), var(--surface-warm));
    border-top: var(--line-width) solid var(--line-accent);
    border-bottom: var(--line-width) solid var(--line-accent);
    position: relative;
    /* Full bleed */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

section.kit header.center {
    padding-top: .5rem;
}

section.kit>.container {
    max-width: var(--content-w);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

section.kit h3 {
    color: var(--brand-600);
    margin-top: 1.5rem;
    margin-bottom: .5rem;
}

section.kit h3::after {
    display: none;
}

section.kit>.container>div {
    margin-bottom: 1rem;
}

section.kit>.container>div:last-child {
    margin-bottom: 0;
}

section.kit>.container>p {
    color: var(--text-soft);
}

section.kit small {
    display: block;
    margin-top: .25rem;
}

/* CTA dans section kit */
section.kit .cta {
    background: var(--bg);
    padding: 2rem 2.5rem;
    border-radius: var(--radius-l);
    border: 2px solid var(--brand-200);
    margin-top: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-1);
}

section.kit .cta h3 {
    margin-top: 0;
    margin-bottom: .75rem;
    color: var(--brand-600);
}

section.kit .cta p {
    color: var(--text-soft);
    margin-bottom: 1rem;
}

section.kit .cta .actions {
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Tableaux */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
    overflow: hidden;
    background-color: var(--bg)
}

thead th {
    background: linear-gradient(180deg, var(--brand-50), var(--surface-warm));
    text-align: left;
    border-bottom: var(--line-width) solid var(--line-accent);
}

th,
td {
    padding: .875rem 1rem;
    border-bottom: 1px solid var(--border)
}

tr:nth-child(even) td {
    background: var(--surface-warm);
}

/* FAQ */
details {
    border: 1px solid var(--border);
    border-left: var(--line-width) solid var(--line-accent);
    border-radius: 0 var(--radius-s) var(--radius-s) 0;
    padding: 1rem 1.25rem;
    background-color: var(--bg);
    box-shadow: var(--shadow-1);
    transition: box-shadow .2s ease, border-color .2s ease;
}

details:hover {
    box-shadow: var(--shadow-2);
}

details[open] {
    border-left-width: 5px;
    background: var(--surface-warm);
}

details+details {
    margin-top: 1rem
}

summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    padding: .25rem 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: .5rem;
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: "▶";
    font-size: .7em;
    color: var(--brand-500);
    transition: transform .2s ease;
}

details[open] summary::before {
    transform: rotate(90deg);
}

details p {
    margin-top: 1rem;
    margin-bottom: 0;
    color: var(--text-soft);
    padding-left: 1rem;
    border-left: 2px solid var(--border);
}

/* Section FAQ */
section#faq header.center {
    padding-bottom: 1.5rem;
}

section#faq .container>p.actions {
    margin-top: 1.5rem;
}

/* Citation, code, médias */
blockquote {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--brand-400);
    background: linear-gradient(90deg, var(--brand-50), var(--bg));
    color: var(--text-soft);
    border-radius: 0 var(--radius-m) var(--radius-m) 0;
    font-style: italic;
}

code,
kbd,
pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace
}

pre {
    background-color: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-s);
    padding: 1rem;
    overflow: auto
}

/* Images & figures */
figure {
    margin: 0
}

figure img {
    border-radius: var(--radius-m)
}

figcaption {
    font-size: .9rem;
    color: var(--muted);
    margin-top: .5rem;
    font-style: italic;
}

/* Split section — Image + texte */
.split {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 3rem;
    align-items: center;
    padding: 1rem 0;
}

.split .media {
    margin: 0;
}

.split .media img {
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-2);
    width: 100%;
    max-width: 350px;
}

.split .media center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.split .content {
    max-width: 58ch;
}

.split .content h2 {
    margin-top: 0;
}

.split .content .muted {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: block;
}

.split.reverse .media {
    order: 2;
}

.split.reverse .content {
    order: 1;
}

/* Actions */
.actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.actions:last-child {
    margin-bottom: 0;
}

p.actions {
    margin-top: 2rem;
}

/* Listes */
ul,
ol {
    padding-left: 1.25rem
}

ul li::marker {
    color: var(--brand-500);
}

/* Formulaires */
form {
    display: grid;
    gap: 1.25rem
}

label {
    font-weight: 600;
    color: var(--text);
}

input,
select,
textarea {
    width: 100%;
    padding: .75rem 1rem;
    border-radius: 50px;
    border: 2px solid var(--border);
    background-color: var(--bg);
    color: var(--text);
    box-shadow: var(--shadow-1);
    transition: box-shadow .2s ease, border-color .2s ease
}

textarea {
    border-radius: var(--radius-m);
}

input::placeholder,
textarea::placeholder {
    color: var(--muted);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand-400);
    box-shadow: 0 0 0 4px rgba(255, 1, 0, .12);
}

.help {
    color: var(--muted);
    font-size: .92rem
}

/* Badges */
mark {
    background: linear-gradient(135deg, var(--brand-100), var(--accent-100));
    color: var(--brand-700);
    padding: .15rem .5rem;
    border-radius: 50px;
    font-weight: 600;
}

/* Footer — Sobre avec ligne rouge */
footer {
    background: linear-gradient(180deg, var(--surface-warm), var(--bg));
    border-top: var(--line-width) solid var(--line-accent);
    padding: 2.5rem 0 2rem;
    position: relative;
    /* Full bleed */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

footer>.container {
    max-width: var(--content-w);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

footer a {
    color: var(--muted);
}

footer a:hover {
    color: var(--brand-600);
}

footer small {
    display: block;
    text-align: center;
}

/* Sélection de texte */
::selection {
    background: rgba(255, 1, 0, .2);
    color: var(--text);
}

/* Responsivité */
@media (max-width: 1100px) {
    .grid.cols-3 {
        grid-template-columns: repeat(2, 1fr)
    }

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

@media (max-width:900px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    .hero .actions {
        justify-content: center;
    }

    .hero figure {
        max-width: 400px;
        margin-inline: auto;
    }

    .grid.cols-3,
    .grid.cols-2 {
        grid-template-columns: 1fr
    }

    .split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .split .media,
    .split .content {
        order: initial;
    }

    .split .media {
        text-align: center;
    }

    .split .media img {
        max-width: 250px;
        margin-inline: auto;
    }

    .split .content {
        text-align: center;
    }

    .split .content h2::after {
        margin-inline: auto;
    }

    header .nav {
        gap: .5rem
    }

    nav {
        margin-left: 0
    }

    label[for="nav-check"].burger {
        display: flex
    }

    header .nav nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 1.25rem;
        right: 1.25rem;
        background-color: var(--bg);
        border: 1px solid var(--border);
        border-top: var(--line-width) solid var(--line-accent);
        border-radius: 0 0 var(--radius-m) var(--radius-m);
        padding: .5rem;
        box-shadow: var(--shadow-2)
    }

    header .nav #nav-check:checked~nav {
        display: block
    }

    header:has(#nav-check:checked) nav {
        display: block
    }

    nav ul {
        flex-direction: column;
        align-items: stretch
    }

    nav a {
        padding: .75rem 1rem;
        border-radius: var(--radius-s);
    }

    nav ul li {
        position: relative;
    }

    nav ul li>ul.submenu {
        position: static;
        display: none;
        border: none;
        border-radius: var(--radius-s);
        padding: 0 .25rem .5rem;
        box-shadow: none;
        background: transparent;
    }

    nav ul li.has-sub {
        position: relative;
    }

    nav ul li.has-sub>input {
        position: absolute;
        inset: 0 0 auto auto;
        opacity: 0;
        pointer-events: none;
    }

    nav ul li.has-sub>.sub-toggle {
        display: inline-flex;
        position: absolute;
        right: .5rem;
        top: .45rem;
        width: 32px;
        height: 32px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        border: 2px solid var(--border);
        background-color: var(--bg);
        box-shadow: var(--shadow-1);
        cursor: pointer;
    }

    nav ul li.has-sub>.sub-toggle::after {
        content: "▾";
        color: var(--brand-500);
        font-size: .85em;
    }

    nav ul li.has-sub>input:checked~.sub-toggle::after {
        content: "▴";
    }

    nav ul li.has-sub>input:checked~ul.submenu {
        display: block;
    }

    nav ul li>a:has(+ ul.submenu)::after {
        content: none;
    }

    .grid.features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    h2::after {
        margin-inline: auto;
    }

    section {
        padding: 3.5rem 0;
    }

    header.center {
        padding-bottom: 2rem;
    }
}

@media (max-width:700px) {
    .container {
        padding-inline: 1rem
    }

    section {
        padding: 2.5rem 0;
    }

    .hero {
        padding: 3rem 0 4rem;
    }

    button,
    input[type=submit],
    input[type=button],
    input[type=reset],
    a[role=button] {
        padding: .7rem 1rem;
        font-size: .95rem;
    }
}

nav .sub-toggle {
    display: none;
}

/* =========================================
   ÉLÉMENTS DÉCORATIFS — ESPRIT ITINÉRANT
   ========================================= */

/* Badge "Buvette" style guinguette */
.badge-itinerant {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
    color: white;
    padding: .4rem 1rem;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    box-shadow: var(--shadow-festive);
}

/* Icône de localisation animée */
.badge-itinerant::before {
    content: "📍";
    animation: bounce-pin 2s ease-in-out infinite;
}

@keyframes bounce-pin {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* Style pour les emojis festifs */
.emoji-festive {
    font-size: 1.5em;
    display: inline-block;
    animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(-3deg);
    }

    50% {
        transform: rotate(3deg);
    }
}

/* Séparateur décoratif */
.divider-festive {
    height: 3px;
    background: linear-gradient(90deg, var(--brand-500), var(--accent-500));
    border-radius: 2px;
    margin: 2rem 0;
}

/* Carte "Prochain événement" */
.card-event {
    background: var(--bg);
    border-radius: var(--radius-l);
    border: 2px solid var(--brand-200);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.card-event::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-500), var(--accent-500), var(--festive-500));
}

.card-event h4 {
    color: var(--brand-600);
    margin-bottom: .5rem;
}

.card-event .date {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--brand-50);
    color: var(--brand-700);
    padding: .3rem .75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: .9rem;
}

.card-event .location {
    color: var(--muted);
    font-size: .95rem;
    margin-top: .5rem;
}

/* Style pour liste avec check marks */
ul.checklist {
    list-style: none;
    padding-left: 0;
}

ul.checklist li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: .75rem;
}

ul.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--brand-500);
    font-weight: 700;
}

/* Highlight text */
.highlight {
    background: linear-gradient(180deg, transparent 50%, var(--festive-300) 50%);
    padding: 0 .25rem;
}

/* Effet de survol sur les images — plus prononcé */
.grid.features figure img,
.hero figure img,
.split .media img {
    transition: transform .4s ease;
}

.grid.features>*:hover figure img {
    transform: scale(1.05);
}

/* Animation d'entrée douce */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Centre les images dans center */
center img {
    display: inline-block;
    margin: 0 auto;
}

/* Amélioration des figcaption */
figcaption {
    text-align: center;
    font-size: .875rem;
    color: var(--muted);
    margin-top: .75rem;
    font-style: italic;
}