/* ===== Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== Variables ===== */
:root {
    /* Charte graphique */
    --color-bg:           #d2091e;
    --color-bg-footer:    #000000;
    --color-bg-header:    #ffffff;
    --color-text:         #ffffff;
    --color-cta:          #a51916;
    --color-cta-hover:    #8b1413;

    /* UI */
    --color-border-page:  rgba(255,255,255,0.2);
    --color-border:       #e5e5e5;
    --color-hover-bg:     rgba(0,0,0,0.04);

    /* Typographie */
    --font-title:         'Elizeth', Arial, sans-serif;
    --font-title-cond:    'Elizeth Cond', Arial, sans-serif;
    --font-main:          'Open Sans', Arial, sans-serif;

    /* Layout
       Breakpoints (référence — non utilisables dans les @media) :
         Desktop  : > 1024px   max-width 1600px
         Tablette : ≤ 1024px
         Téléphone: ≤  600px                          */
    --max-width:          1600px;
    --header-height:      70px;

    /* Décor — barre blanche à 5% du bord du contenu (max-width respecté)
       Formule : max(5vw, 50vw − (max-width/2 − max-width×0.05))
                = max(5vw, 50vw − 720px)
       ≤ 1600px → 5vw · > 1600px → suit le bord gauche/droit du contenu centré */
    --bar-pos:    max(5vw, calc(50vw - 720px));
    --bar-inner:  min(5vw, calc(var(--max-width) * 0.05)); /* distance barre → bord contenu */
    --deco-size:  300px;
    --deco-half:  190px;     /* décalage horizontal de centrage sur la barre */
}

/* ===== Base ===== */
html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

a   { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===== Header ===== */
@keyframes header-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.site-header {
    background: var(--color-bg-header);
    border-bottom: 1px solid var(--color-border);
    color: #000;
    position: sticky;
    top: 0;
    z-index: 100;
    animation: header-in 0.35s ease both;
}

.site-nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ----- Logo ----- */
.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo img {
    /* ratio SVG : 400×250 = 8:5 */
    height: 50px;
    width: auto;
    aspect-ratio: 8 / 5;
}

/* ----- Nav menu (desktop) ----- */
.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 1.0625rem;
    font-weight: 500;
    border-radius: 5px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    line-height: 1;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--color-bg);
    background: var(--color-hover-bg);
}

/* ----- Dropdown ----- */
.nav-item--dropdown { position: relative; }

.nav-arrow {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.nav-item--dropdown.is-open .nav-arrow { transform: rotate(180deg); }

.nav-dropdown {
    list-style: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--color-bg-header);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    min-width: 160px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 200;
    overflow: hidden;
}

.nav-item--dropdown.is-open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-link {
    display: block;
    padding: 0.6rem 1.1rem;
    font-size: 0.9rem;
    color: #000;
    transition: color 0.15s, background 0.15s;
}

.nav-dropdown-link:hover {
    color: var(--color-bg);
    background: #f5f5f5;
}

/* ----- Hamburger (masqué sur desktop) ----- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    flex-shrink: 0;
    transition: background 0.15s;
}

.nav-toggle:hover { background: var(--color-hover-bg); }

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #000;
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Tablette — ≤ 1024px ===== */
@media (max-width: 1024px) {
    .site-nav { padding: 0 1.5rem; }

    .nav-toggle { display: flex; }

    .nav-menu {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--color-bg-header);
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 6px 20px rgba(0,0,0,0.08);
        padding: 0.5rem 0;
    }

    .nav-menu.is-open { display: flex; }

    .nav-item { width: 100%; }

    .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 0.875rem 1.5rem;
        border-radius: 0;
        font-size: 1rem;
        color: #000;
    }

    .nav-item--dropdown { position: static; }

    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        border-top: 1px solid var(--color-border);
        background: #f9f9f9;
        display: none;
        transition: none;
    }

    .nav-item--dropdown.is-open .nav-dropdown { display: block; }

    .nav-dropdown-link { padding: 0.75rem 2.25rem; font-size: 0.95rem; }
}

/* ===== Téléphone — ≤ 600px ===== */
@media (max-width: 600px) {
    .site-nav { padding: 0 1rem; }

    .site-logo img { height: 38px; }

    .site-main { padding: 0 1rem; }
}

/* ===== Éléments de décor ===== */
/* Barres blanches : restent fixes au scroll */
.page-deco {
    position: fixed;
    inset: 0;
    max-width: 100vw;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

/* Décorations SVG : ancrées à la hauteur du document */
.page-deco-floats {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 3;
}

/* --- Barres blanches verticales --- */
.page-deco::before,
.page-deco::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 5px;
    background: rgba(255, 255, 255, 1);
    z-index: 0;
}
.page-deco::before { left:  var(--bar-pos); }
.page-deco::after  { right: var(--bar-pos); }

/* --- SVG ponctuels --- */
.deco {
    --py: 0px;
    position: absolute;
    z-index: 1;                              /* passe devant ::before et ::after */
    width: var(--deco-size);
    height: calc(var(--deco-size) + 50px);  /* deco-size + 2×25px padding */
    padding: 25px 0;
    background-color: var(--color-bg);       /* fond rouge couvrant padding + contenu */
    background-size: contain;
    background-repeat: no-repeat;
    background-origin: content-box;          /* SVG confiné à la zone content (deco-size) */
    will-change: transform;
    animation: deco-in 1.4s ease 0.3s both;
}

.deco--spiral { background-image: url('/assets/images/dotspiral.svg'); }
.deco--ball   { background-image: url('/assets/images/dotball.svg'); }

/* dotspiral — barre gauche, centré à 35% de la hauteur de page */
.deco--left {
    left:      calc(var(--bar-pos) - var(--deco-half));
    top:       35%;
    transform: translateY(calc(-50% + var(--py)));
}

/* dotball — barre droite, centré à 70% de la hauteur de page */
.deco--right {
    right:     calc(var(--bar-pos) - var(--deco-half));
    top:       70%;
    transform: scaleX(-1) translateY(calc(-50% + var(--py)));
}

@keyframes deco-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Décor — responsive */
@media (max-width: 1280px) {
    :root { --deco-size: 280px; --deco-half: 140px; }
}
@media (max-width: 1024px) {
    :root { --deco-size: 200px; --deco-half: 100px; }
}
@media (max-width: 600px) {
    :root { --deco-size: 150px; --deco-half: 75px; }
}

/* ===== Layout ===== */
.site-main {
    flex: 1;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 calc(3 * var(--bar-inner));
    position: relative;
}

.site-footer {
    background: var(--color-bg-footer);
    color: var(--color-text);
    padding: 2.5rem 2rem;
    font-size: 0.875rem;
    position: relative;
    z-index: 4;
    border-top: 5px solid #fff;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.footer-col--contact { text-align: left; }
.footer-col--social  { text-align: center; }
.footer-col--logo    { text-align: right; }

.footer-heading {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.footer-email {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-copy {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0.7;
}
.footer-copy--muted {
    margin-top: 0.25rem;
    opacity: 0.45;
}
.footer-copy--muted a {
    color: inherit;
    text-decoration: none;
}
.footer-copy--muted a:hover { text-decoration: underline; text-underline-offset: 3px; }

.footer-legal {
    display: flex;
    gap: 1rem;
    margin-top: 0.4rem;
}

.footer-legal a {
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0.5;
    text-decoration: none;
    transition: opacity 0.15s;
}

.footer-legal a:hover { opacity: 0.9; text-decoration: underline; text-underline-offset: 3px; }

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0.85;
    transition: opacity 0.15s;
}

.footer-social-link:hover { opacity: 1; }

.footer-logo {
    width: 120px;
    height: auto;
    margin-left: auto;
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col--contact,
    .footer-col--logo { text-align: center; }
    .footer-logo { margin: 0 auto; }
    .footer-legal { justify-content: center; }
}

/* ===== Typographie titres ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    line-height: 1.15;
}

h1             { font-weight: 800; } /* Elizeth Extrabold */
h2, h3, h4, h5, h6 { font-weight: 700; } /* Elizeth Bold */

/* ===== Bouton CTA ===== */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--color-cta);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    padding: 0.25rem 1.75rem;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
}

.btn-cta:hover  { background: var(--color-cta-hover); color: var(--color-text); }
.btn-cta:active { background: var(--color-cta-hover); }

.btn-cta--white {
    background: #fff;
    color: var(--color-bg);
}
.btn-cta--white:hover  { background: #f0f0f0; color: var(--color-bg); }
.btn-cta--white:active { background: #e0e0e0; }

.btn-cta--large {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.6rem 3.5rem;
}
@media (max-width: 600px) {
    .btn-cta--large {
        font-size: clamp(0.65rem, 3vw, 1.25rem);
        padding-left: 1.2rem;
        padding-right: 1.2rem;
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }
}

/* ===== Animations ===== */
.anim-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s ease, transform 0.65s ease;
    transition-delay: var(--anim-delay, 0s);
}
.anim-item.is-visible {
    opacity: 1;
    transform: none;
}

/* Délais pour les colonnes footer */
.footer-col:nth-child(1) { --anim-delay: 0s; }
.footer-col:nth-child(2) { --anim-delay: 0.1s; }
.footer-col:nth-child(3) { --anim-delay: 0.2s; }

/* ===== Arc logo ===== */
.page-arc {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    max-height: 300px;
    aspect-ratio: 2 / 1;
    position: relative;
    top: -50px;
    margin: 0 auto;
    z-index: 4;
}

/* Couche 1 — demi-rond noir, bord plat collé au header */
.page-arc__shape {
    position: relative;
    overflow: visible;
    width: 100%;
    height: 100%;
    background: #000;
    border: 5px solid #fff;
    border-top: none;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

/* Couche 2 — dotcircle, centré sur le bas de l'arc */
.page-arc__deco {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 100%;
    max-width: 600px;
    max-height: 600px;
    aspect-ratio: 1 / 1;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

/* Couche 3 — logo, centré sur le bas de l'arc */
.page-arc__logo {
    position: absolute;
    top: 102%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: block;
    width: 400px;
    height: auto;
}

@media (max-width: 600px) {
    .page-arc__shape { border-width: 3px; }
    .page-arc__logo  { width: 204px; }
}

/* ===== Components ===== */
/* margin-top = max-height de .page-arc (300px)
   margin-bottom = padding-top de .section-cta (4rem) + max-height de .arc-bottom (110px) */
.content {
    padding: 0;
    margin-top: 225px;
    margin-bottom: calc(3rem + 82.5px);
    text-align: center;
}

.content-hero {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 4;
}

.content-subtitle {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1.375rem;
    line-height: 1.4;
    margin-top: 1.25rem;
    margin-bottom: 2rem;
}

.content-body p {
    font-family: var(--font-main);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* ===== Grille villes ===== */
.content-villes {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem 1.5rem;
    margin-top: 3rem;
}

/* Ligne 1 : cartes 1–2 → 3 colonnes chacune */
.ville-card:nth-child(1),
.ville-card:nth-child(2) { grid-column: span 3; }

/* Ligne 2 : cartes 3–5 → 2 colonnes chacune */
.ville-card:nth-child(3),
.ville-card:nth-child(4),
.ville-card:nth-child(5) { grid-column: span 2; }

/* Ligne 3 : cartes 6–7 → 3 colonnes chacune */
.ville-card:nth-child(6),
.ville-card:nth-child(7) { grid-column: span 3; }

.ville-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.15rem;
}

.ville-card__deco {
    order: -1;
    width: 80px;
    height: auto;
}

.ville-card__name {
    text-transform: uppercase;
    font-size: 1.5rem;
}

.ville-card__date {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1rem;
}

/* Responsive grille villes */
@media (max-width: 768px) {
    .content-villes { grid-template-columns: repeat(2, 1fr); }
    .ville-card:nth-child(n) { grid-column: span 1; }
}
@media (max-width: 600px) {
    .content { margin-top: 160px; }
}

@media (max-width: 600px) {
    .content-villes { grid-template-columns: 1fr; }
}
.page-content { padding: 2rem 0; }

/* ===== Page mentions légales ===== */
.legal-content {
    max-width: 680px;
    margin: 3rem auto 0;
    text-align: left;
    position: relative;
    z-index: 4;
}
.legal-content h2 {
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid rgba(255,255,255,0.25);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
    font-family: var(--font-main);
    font-size: 0.92rem;
    line-height: 1.75;
    opacity: 0.85;
    margin-bottom: 0.75rem;
}
.legal-content a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.legal-content a:hover { opacity: 0.7; }
.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin: 1rem 0 1.25rem;
}
.legal-table th,
.legal-table td {
    text-align: left;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.2);
    line-height: 1.5;
    vertical-align: top;
}
.legal-table th {
    font-weight: 800;
    background: rgba(255,255,255,0.1);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}
.legal-table code {
    font-family: monospace;
    font-size: 0.9em;
    background: rgba(255,255,255,0.12);
    padding: 0.1em 0.35em;
    border-radius: 3px;
}
.legal-list {
    margin: 0.5rem 0 1rem 1.25rem;
    padding: 0;
}
.legal-list li {
    font-size: 0.92rem;
    line-height: 1.75;
    opacity: 0.85;
}
@media (max-width: 600px) {
    .legal-table { font-size: 0.78rem; }
    .legal-table th, .legal-table td { padding: 0.4rem 0.5rem; }
}

/* ===== Section CTA — arc bas de page ===== */
.section-cta {
    display: flex;
    justify-content: center;
    padding-top: 4rem;
    overflow: hidden;
    position: relative;
    z-index: 4;
}

.arc-bottom {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 220px;
    max-height: 110px;
    aspect-ratio: 2 / 1;
    margin: 0 auto;
    position: relative;
}

.arc-bottom__shape {
    position: relative;
    overflow: visible;
    width: 100%;
    height: 100%;
    background: #000;
    border: 5px solid #fff;
    border-bottom: none;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    bottom: -20%;
    z-index: 2;
}

.arc-bottom__deco {
    position: absolute;
    top: 124%;
    left: 50%;
    width: min(600px, 100vw);
    max-width: none;
    height: min(600px, 108vw);
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.arc-bottom__text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.25rem;
    color: #fff;
    white-space: nowrap;
    text-align: center;
    line-height: 1;
}

/* ===== CTA inscription — page ville ===== */
.event-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    position: relative;
    z-index: 4;
}

.event-cta__deco {
    width: 160px;
    height: auto;
}

/* ===== Page contact ===== */
.contact-text {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: center;
    color: #fff;
    margin-bottom: 0.5rem;
}

/* ===== Infos événement — page ville ===== */
.event-info {
    max-width: 560px;
    margin: 2.5rem auto 0;
    text-align: center;
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-info__desc p {
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.event-info__address {
    font-style: normal;
    font-size: 1.2rem;
    line-height: 1.3;
    margin-top: 1rem;
}

.event-info__address strong {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.35rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0;
}

/* ===== Bloc événement — page ville ===== */
.event-bar {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(90vw - 15px), 1425px);
    height: 5px;
    background: #fff;
    margin-top: 2.5rem;
}

/* Demi-cercle collé sous la barre */
.event-arc-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 4;
}

.event-arc {
    position: relative;
    width: 500px;
    max-width: 90vw;
    height: 250px;
    background: transparent;
    border: 5px dashed rgba(255,255,255,0.9);
    border-top: none;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 3rem 1.5rem;
    gap: 0.6rem;
}

/* Fond CTA en retrait — crée le gap transparent entre bordure et remplissage */
.event-arc::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: var(--color-cta);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    z-index: 0;
}

.event-arc__title,
.event-arc__subtitle {
    position: relative;
    z-index: 1;
}

.event-arc__title {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1.75rem;
    text-transform: uppercase;
    line-height: 1.2;
    color: #fff;
}

.event-arc__subtitle {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #fff;
}

@media (max-width: 600px) {
    .event-arc { height: 200px; padding-bottom: 1rem; }
    .event-arc__title { font-size: 1.1rem; }
    .event-arc__subtitle { font-size: 0.6rem; }
}

/* ===== Formulaire inscription ===== */
.form-container {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    z-index: 4;
}

/* Indicateur de progression */
.form-progress {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 3rem;
    list-style: none;
}

.form-progress__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.form-progress__line {
    flex: 1 1 auto;
    height: 2px;
    background: rgba(255,255,255,0.25);
    margin-top: 15px;
    min-width: 20px;
    max-width: 60px;
}

.form-progress__dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.35);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    font-size: 0.875rem;
    font-weight: 700;
    color: rgba(255,255,255,0.45);
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.form-progress__step--active .form-progress__dot {
    background: #fff;
    border-color: #fff;
    color: var(--color-bg);
}

.form-progress__step--done .form-progress__dot {
    background: var(--color-cta);
    border-color: var(--color-cta);
    color: #fff;
}

.form-progress__step--done + .form-progress__line {
    background: rgba(255,255,255,0.5);
}

.form-progress__label {
    font-family: var(--font-main);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
    text-align: center;
}

.form-progress__step--active .form-progress__label { color: #fff; }
.form-progress__step--done  .form-progress__label { color: rgba(255,255,255,0.7); }

/* Titre de l'étape */
.form-heading {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.6rem;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 2rem;
}

/* Groupes de champs */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 1rem;
}

.form-label {
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.8);
}

.form-label span {
    font-weight: 400;
    opacity: 0.6;
    text-transform: none;
    letter-spacing: 0;
}

.form-control {
    width: 100%;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.22);
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
    appearance: none;
}

.form-control::placeholder { color: rgba(255,255,255,0.35); font-weight: 400; }
.form-control:focus { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.15); }
.form-control--error {
    border-color: #ff4444;
    background: rgba(255, 60, 60, 0.18);
    box-shadow: 0 0 0 3px rgba(255, 60, 60, 0.25);
}
.form-control--error:focus {
    border-color: #ff4444;
    background: rgba(255, 60, 60, 0.22);
    box-shadow: 0 0 0 3px rgba(255, 60, 60, 0.35);
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,.6)' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

select.form-control option { background: #a51916; color: #fff; }

.form-error {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    background: rgba(220, 30, 30, 0.75);
    border-radius: 5px;
    padding: 0.3rem 0.6rem;
}
.form-error::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1em;
    height: 1.1em;
    min-width: 1.1em;
    border-radius: 50%;
    background: #fff;
    color: #cc1111;
    font-size: 0.75rem;
    font-weight: 900;
    line-height: 1;
}

.form-global-error {
    background: rgba(255,80,80,0.15);
    border: 1px solid rgba(255,80,80,0.35);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: #ffaaaa;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Boutons */
.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions--single { justify-content: center; }

.btn-back {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 100px;
    padding: 0.5rem 1.5rem;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.btn-back:hover { border-color: #fff; color: #fff; }

/* Récapitulatif */
.form-recap {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.form-recap__section {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.form-recap__section:last-child { border-bottom: none; }

.form-recap__label {
    font-family: var(--font-main);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.45);
    margin-bottom: 0.15rem;
}

.form-recap__value {
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
}

/* Succès */
.form-success {
    text-align: center;
    padding: 1rem 0 2rem;
}

.form-success__icon {
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    color: #fff;
    opacity: 0.9;
}

.form-success__title {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.form-success__text {
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.85;
}

@media (max-width: 600px) {
    .form-progress__label { display: none; }
    .form-progress__line  { min-width: 12px; max-width: 30px; }
    .form-row { grid-template-columns: 1fr 1fr; }
}


/* ===== Bloc fidélité — pages villes ===== */
.event-fidelite {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    line-height: 1.65;
}

.event-fidelite a {
    color: #fff;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.event-fidelite a:hover { opacity: 0.8; }

/* ===== Cases à cocher consentements — formulaire ===== */
.form-group--consents {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-check__input {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    appearance: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    position: relative;
}

.form-check__input:checked {
    background: #fff;
    border-color: #fff;
}

.form-check__input:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 6px;
    height: 10px;
    border: 2px solid var(--color-bg);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.form-check__input:focus {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

.form-check--error .form-check__input {
    border-color: #ff4444;
    background: rgba(255, 60, 60, 0.18);
}

.form-check__label {
    font-family: var(--font-main);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.form-check__label a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form-check__label a:hover { opacity: 0.8; }

.form-check__required {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* ===== Consentement cookies ===== */
#consent-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9000;
    background: rgba(20, 10, 10, 0.97);
    border-top: 2px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    transform: translateY(110%);
    transition: transform 0.3s ease;
}
#consent-banner.consent-banner--in { transform: translateY(0); }

.consent-banner__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem calc(3 * var(--bar-inner));
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.consent-banner__text {
    flex: 1;
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.88);
    min-width: 220px;
}
.consent-banner__link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}
.consent-banner__actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Boutons consentement */
.consent-btn {
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 800;
    border-radius: 50px;
    padding: 0.45rem 1.2rem;
    cursor: pointer;
    border: 2px solid #fff;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.consent-btn--outline {
    background: transparent;
    color: #fff;
}
.consent-btn--outline:hover { background: rgba(255,255,255,0.12); }
.consent-btn--accept {
    background: #fff;
    color: var(--color-bg);
}
.consent-btn--accept:hover { background: #e8e8e8; }

/* Overlay + modale */
.consent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9100;
    opacity: 0;
    transition: opacity 0.3s;
}
#consent-modal { visibility: hidden; }
#consent-modal.consent-modal--in { visibility: visible; }
#consent-modal.consent-modal--in .consent-overlay { opacity: 1; }

.consent-box {
    position: fixed;
    bottom: 0; left: 50%; transform: translateX(-50%) translateY(110%);
    z-index: 9200;
    width: min(520px, 96vw);
    background: #1a0a0a;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}
#consent-modal.consent-modal--in .consent-box { transform: translateX(-50%) translateY(0); }

.consent-box__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.consent-box__title {
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    margin: 0;
}
.consent-box__close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem 0.4rem;
    transition: color 0.15s;
}
.consent-box__close:hover { color: #fff; }

.consent-box__body { padding: 0.5rem 1.4rem; }

.consent-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.consent-row:last-child { border-bottom: none; }
.consent-row__info { flex: 1; }
.consent-row__name {
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.2rem;
}
.consent-row__desc {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
    margin: 0;
}
.consent-always {
    font-size: 0.75rem;
    font-weight: 700;
    color: #7cd97c;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Toggle switch */
.consent-toggle {
    position: relative;
    display: inline-block;
    cursor: pointer;
    flex-shrink: 0;
}
.consent-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.consent-toggle__track {
    display: block;
    width: 44px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    transition: background 0.2s;
    position: relative;
}
.consent-toggle input:checked + .consent-toggle__track { background: #e63030; }
.consent-toggle__thumb {
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.consent-toggle input:checked + .consent-toggle__track .consent-toggle__thumb {
    transform: translateX(20px);
}

.consent-box__footer {
    display: flex;
    gap: 0.6rem;
    padding: 0.9rem 1.4rem 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 600px) {
    .consent-banner__inner { padding: 0.9rem 1rem; gap: 0.9rem; }
    .consent-banner__actions { width: 100%; justify-content: stretch; }
    .consent-banner__actions .consent-btn { flex: 1; text-align: center; }
    .consent-box__footer { justify-content: stretch; }
    .consent-box__footer .consent-btn { flex: 1; text-align: center; }
}
