:root {
    --orange: #FF6B35;
    --orange-fonce: #E85A28;
    --orange-soft: #FFEFDE;
    --vert: #00A896;
    --vert-fonce: #00806F;
    --vert-soft: #DEF7F3;
    --violet: #6C3BAA;
    --violet-soft: #F1EAFB;
    --encre: #18181B;
    --gris: #52525B;
    --gris-clair: #E4E4E7;
    --fond: #FAFAFB;
    --surface: #FFFFFF;
    --ombre: 0 2px 10px rgba(24, 24, 27, 0.06);
    --ombre-forte: 0 14px 34px rgba(24, 24, 27, 0.12);
    --rayon: 16px;
    --duree: 0.65s;
    --courbe: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    background: var(--fond);
    color: var(--encre);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: apparition 0.5s ease both;
}

h1, h2, h3, h4 { font-family: 'Poppins', 'Montserrat', sans-serif; line-height: 1.25; color: var(--encre); }

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

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

.container { width: min(1100px, 100% - 2rem); margin-inline: auto; }
.main { flex: 1; padding-block: 2rem; }
.centre { text-align: center; margin-top: 1.5rem; }

/* ---------- Animations ---------- */
@keyframes apparition { from { opacity: 0; } }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: none; }
}
@keyframes flotter {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); }
    50% { transform: translateY(-22px) translateX(14px) scale(1.06); }
}
@keyframes pulser {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}
.header--scrolled { background: rgba(255, 255, 255, 0.95); box-shadow: var(--ombre-forte); }

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.85rem;
    flex-wrap: wrap;
    transition: padding 0.3s ease;
}
.header--scrolled .header__inner { padding-block: 0.55rem; }

.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo__img { height: 30px; width: auto; transition: transform 0.3s ease; }
.logo:hover .logo__img { transform: scale(1.05); }
.logo__text { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--violet); }
.logo__text span { color: var(--orange); }

.nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.nav > a { font-weight: 600; color: var(--encre); font-size: 0.95rem; position: relative; }
.nav > a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--orange);
    transition: width 0.28s ease;
}
.nav > a:not(.btn):hover { text-decoration: none; color: var(--orange-fonce); }
.nav > a:not(.btn):hover::after { width: 100%; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn--primary {
    background: linear-gradient(135deg, var(--orange), #FF8C42);
    color: var(--surface);
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}
.btn--primary:hover {
    box-shadow: 0 10px 26px rgba(255, 107, 53, 0.45);
    color: var(--surface);
    background: linear-gradient(135deg, #FF7A48, #FF9A5B);
}

.btn--accent { background: var(--vert); color: var(--surface); box-shadow: 0 4px 14px rgba(0, 168, 150, 0.3); }
.btn--accent:hover { background: var(--vert-fonce); color: var(--surface); box-shadow: 0 10px 26px rgba(0, 168, 150, 0.4); }

.btn--ghost { background: transparent; color: var(--orange-fonce); border-color: var(--orange); }
.btn--ghost:hover { background: var(--orange-soft); color: var(--orange-fonce); box-shadow: 0 6px 16px rgba(255, 107, 53, 0.18); }

.btn--outline { background: transparent; color: var(--encre); border-color: rgba(24, 24, 27, 0.55); }
.btn--outline:hover { background: rgba(24, 24, 27, 0.05); color: var(--encre); }

.btn--small { padding: 0.35rem 0.85rem; font-size: 0.85rem; }
.btn--large { padding: 0.8rem 2rem; font-size: 1.05rem; width: 100%; }
.btn--disabled { background: var(--gris-clair); color: var(--gris); cursor: not-allowed; box-shadow: none; }
.btn--disabled:hover { transform: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 4.5rem 2rem 4rem;
    text-align: center;
    color: var(--encre);
    background: linear-gradient(135deg, #FFF6EE 0%, #FEFBF7 45%, #EFFCF8 100%);
}
.hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(52px);
    pointer-events: none;
}
.hero__blob--1 { width: 300px; height: 300px; background: rgba(255, 107, 53, 0.35); top: -100px; right: -70px; animation: flotter 11s ease-in-out infinite; }
.hero__blob--2 { width: 230px; height: 230px; background: rgba(0, 168, 150, 0.3); bottom: -90px; left: -60px; animation: flotter 9s ease-in-out infinite reverse; }
.hero__blob--3 { width: 170px; height: 170px; background: rgba(255, 140, 66, 0.3); top: 40%; left: 12%; animation: flotter 13s ease-in-out infinite; }

.hero__contenu { position: relative; z-index: 1; }
.hero h1 {
    font-size: clamp(1.9rem, 5vw, 3rem);
    font-weight: 800;
    animation: fadeUp 0.7s var(--courbe) both;
}
.hero p {
    font-size: 1.08rem;
    color: var(--gris);
    margin: 1rem auto 1.9rem;
    max-width: 620px;
    animation: fadeUp 0.7s 0.15s var(--courbe) both;
}
.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 0.7s 0.3s var(--courbe) both;
}
.hero__stats {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.6rem;
    animation: fadeUp 0.7s 0.45s var(--courbe) both;
}
.hero__stat {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(24, 24, 27, 0.07);
    border-radius: 999px;
    padding: 0.55rem 1.25rem;
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    box-shadow: var(--ombre);
}
.hero__stat strong { font-family: 'Poppins', sans-serif; font-size: 1.15rem; color: var(--orange-fonce); }
.hero__stat span { font-size: 0.82rem; color: var(--gris); }

/* ---------- Sections ---------- */
.section { margin-block: 3rem; }
.section__title {
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.6rem;
}
.section__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 58px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--orange), var(--vert));
}
.section--paiements { text-align: center; }
.section--paiements .section__title::after { left: 50%; transform: translateX(-50%); }

.page-titre { font-size: 2rem; margin-bottom: 1.5rem; }
.vide { color: var(--gris); font-style: italic; margin-block: 1rem; }
.note { color: var(--gris); font-size: 0.9rem; margin-top: 1rem; }

/* ---------- Grille + cartes ---------- */
.grille {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.carte {
    position: relative;
    background: var(--surface);
    border-radius: var(--rayon);
    box-shadow: var(--ombre);
    overflow: hidden;
    transition: transform 0.3s var(--courbe), box-shadow 0.3s var(--courbe);
}
.carte::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.5) 50%, transparent 68%);
    transform: translateX(-85%);
    transition: transform 0.75s ease;
    pointer-events: none;
}
.carte:hover { transform: translateY(-6px); box-shadow: var(--ombre-forte); }
.carte:hover::after { transform: translateX(85%); }

.carte__image { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.carte__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--courbe);
}
.carte:hover .carte__image img { transform: scale(1.07); }
.carte__badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: rgba(24, 24, 27, 0.72);
    color: var(--surface);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    z-index: 1;
}
.carte__badge--date { background: rgba(232, 90, 40, 0.9); }

.carte__corps { padding: 1.1rem; }
.carte__corps h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.carte__corps h3 a { color: var(--encre); transition: color 0.2s ease; }
.carte__corps h3 a:hover { color: var(--orange-fonce); }
.carte__meta { font-size: 0.9rem; color: var(--gris); margin-bottom: 0.25rem; }
.carte__orga { font-size: 0.85rem; color: var(--vert-fonce); font-weight: 600; margin: 0.5rem 0 1rem; }
.carte__resume { font-size: 0.88rem; color: var(--gris); margin: 0.4rem 0 1rem; }

/* ---------- Reveal au scroll ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.985);
    transition: opacity var(--duree) var(--courbe), transform var(--duree) var(--courbe);
}
.js .reveal.visible { opacity: 1; transform: none; }
.js .grille .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .grille .reveal:nth-child(3) { transition-delay: 0.16s; }
.js .grille .reveal:nth-child(4) { transition-delay: 0.24s; }
.js .grille .reveal:nth-child(5) { transition-delay: 0.32s; }
.js .grille .reveal:nth-child(6) { transition-delay: 0.4s; }
.js .etapes .reveal:nth-child(2) { transition-delay: 0.1s; }
.js .etapes .reveal:nth-child(3) { transition-delay: 0.2s; }

/* ---------- Detail evenement / actu ---------- */
.detail, .actu-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--surface);
    border-radius: var(--rayon);
    box-shadow: var(--ombre);
    overflow: hidden;
    animation: fadeUp 0.6s var(--courbe) both;
}
.detail__image, .actu-detail__image { position: relative; overflow: hidden; }
.detail__image img, .actu-detail__image img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.detail__info, .actu-detail__info { padding: 2rem; }
.detail__info h1, .actu-detail__info h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 0.5rem; }
.detail__artiste { color: var(--orange-fonce); font-weight: 600; margin-bottom: 1rem; }

.detail__meta, .actu-detail__date { list-style: none; margin-block: 1.25rem; }
.detail__meta li { padding-block: 0.55rem; border-bottom: 1px solid #F1F1F3; }
.detail__meta li span, .actu-detail__date {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gris);
    font-weight: 600;
}
.detail__desc, .actu-detail__contenu { margin-top: 1rem; color: #3F3F46; }
.actu-detail__contenu { margin-block: 1.5rem; font-size: 1.02rem; line-height: 1.7; }

@media (max-width: 720px) {
    .detail, .actu-detail { grid-template-columns: 1fr; }
    .detail__image img, .actu-detail__image img { min-height: 220px; }
    .actu-detail__image img { max-height: 240px; }
}

/* ---------- Badges statut ---------- */
.badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: capitalize;
}
.badge--statut-publie { background: var(--vert-soft); color: var(--vert-fonce); }
.badge--statut-brouillon { background: var(--orange-soft); color: var(--orange-fonce); }
.badge--statut-archive { background: var(--gris-clair); color: var(--gris); }
.badge--statut-annule { background: #FEE2E2; color: #B91C1C; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { padding: 0.85rem 1.1rem; text-align: left; }
.table thead th {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gris);
    border-bottom: 2px solid #F1F1F3;
}
.table tbody tr:not(:last-child) td { border-bottom: 1px solid #F4F4F5; }
.table tbody tr { transition: background 0.15s ease; }
.table tbody tr:hover { background: #FFF9F4; }
.prix { font-weight: 700; color: var(--orange-fonce); white-space: nowrap; }

/* ---------- Formulaires ---------- */
.auth { max-width: 480px; margin-inline: auto; }
.auth h1 { margin-bottom: 1.25rem; }

.form { display: flex; flex-direction: column; gap: 1.1rem; background: var(--surface); padding: 1.75rem; border-radius: var(--rayon); box-shadow: var(--ombre); animation: fadeUp 0.55s var(--courbe) both; }
.form--large { max-width: 640px; }
.form label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; color: var(--encre); }
.form input, .form select, .form textarea {
    font: inherit;
    padding: 0.65rem 0.85rem;
    border: 2px solid var(--gris-clair);
    border-radius: 10px;
    background: #FCFCFD;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
    outline: none;
    border-color: var(--orange);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.12);
}
.form__rangee { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .form__rangee { grid-template-columns: 1fr; } }

.form--inline { background: #FCFCFD; box-shadow: none; margin-top: 1rem; }
.form--inline label { flex-direction: column; font-size: 0.85rem; }
@media (min-width: 720px) {
    .form--inline { display: grid; grid-template-columns: 2fr 1fr 1fr auto; align-items: end; gap: 0.75rem; }
}

.choix-role { border: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.choix-role legend { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.5rem; }
.radio input { position: absolute; opacity: 0; }
.radio span {
    display: block;
    padding: 0.85rem;
    border: 2px solid var(--gris-clair);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.radio:hover span { border-color: var(--orange); transform: translateY(-2px); }
.radio input:checked + span { border-color: var(--orange); background: var(--orange-soft); box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15); }
.radio input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }

.auth__lien { margin-top: 1.25rem; text-align: center; color: var(--gris); }

/* ---------- Afficher / masquer le mot de passe ---------- */
.champ-mdp { position: relative; display: block; }
.champ-mdp input { width: 100%; padding-right: 2.9rem; }
.champ-mdp__oeil {
    position: absolute;
    top: 50%;
    right: 0.6rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gris);
    display: inline-flex;
    padding: 0.3rem;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}
.champ-mdp__oeil:hover { color: var(--orange-fonce); background: var(--orange-soft); }
.champ-mdp__oeil:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.champ-mdp__oeil svg { width: 20px; height: 20px; }
.champ-mdp__oeil .icone-ouverte { display: none; }
.champ-mdp__oeil--actif .icone-ouverte { display: block; }
.champ-mdp__oeil--actif .icone-fermee { display: none; }

/* ---------- Flash ---------- */
.flash { padding: 0.85rem 1.1rem; border-radius: 10px; margin-bottom: 1.25rem; font-weight: 600; animation: fadeUp 0.45s var(--courbe) both; }
.flash--succes { background: var(--vert-soft); color: var(--vert-fonce); border: 1px solid rgba(0, 168, 150, 0.4); }
.flash--erreur { background: #FEE2E2; color: #B91C1C; border: 1px solid rgba(220, 38, 38, 0.3); }

/* ---------- Moyens de paiement ---------- */
.logos-paiement {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
    justify-content: center;
}
.logos-paiement img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    background: var(--surface);
    padding: 11px;
    border-radius: 18px;
    border: 1px solid var(--gris-clair);
    box-shadow: var(--ombre);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.logos-paiement img:hover { transform: translateY(-4px) scale(1.05); box-shadow: var(--ombre-forte); border-color: var(--orange); }

/* ---------- Etapes ---------- */
.etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.etape {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--rayon);
    box-shadow: var(--ombre);
    text-align: center;
    transition: transform 0.3s var(--courbe), box-shadow 0.3s var(--courbe);
}
.etape:hover { transform: translateY(-6px); box-shadow: var(--ombre-forte); }
.etape__num {
    display: inline-flex;
    width: 2.6rem;
    height: 2.6rem;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--orange), #FF8C42);
    color: var(--surface);
    border-radius: 50%;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
    animation: pulser 3.5s ease-in-out infinite;
}
.etape h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.etape p { font-size: 0.9rem; color: var(--gris); }

/* ---------- Dashboard organisateur ---------- */
.dash-titre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.dash-titre h1 { font-size: 1.8rem; }

.carte-event {
    background: var(--surface);
    border-radius: var(--rayon);
    box-shadow: var(--ombre);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    animation: fadeUp 0.5s var(--courbe) both;
}
.carte-event__entete { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.carte-event__mini { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.carte-event__infos { flex: 1; min-width: 200px; }
.carte-event__infos h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.carte-event__actions { display: flex; gap: 0.5rem; align-items: center; }
.carte-event__actions form { display: inline; }

.billets-box { margin-top: 1rem; border-top: 1px dashed var(--gris-clair); padding-top: 0.85rem; }
.billets-box summary { font-weight: 600; color: var(--orange-fonce); cursor: pointer; margin-bottom: 0.85rem; }
.billets-box .table-wrap { margin-bottom: 0.5rem; }

.carte-compte { background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1.75rem; margin-bottom: 1rem; animation: fadeUp 0.55s var(--courbe) both; }
.carte-compte__role { margin-bottom: 1rem; font-size: 1.1rem; }
.carte-compte .btn { margin-top: 1rem; }

/* ---------- Footer ---------- */
.footer { background: #18181B; color: #F4F4F5; margin-top: 3rem; }
.footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding-block: 2.5rem 1.5rem;
}
.footer__col h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.9rem; color: #F4F4F5; }
.footer__desc { font-size: 0.9rem; opacity: 0.75; max-width: 380px; margin-top: 0.5rem; }
.footer__marque { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.footer__logo { height: 26px; width: auto; }
.footer__logos { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.footer__logos img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    background: var(--surface);
    padding: 8px;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: transform 0.25s ease;
}
.footer__logos img:hover { transform: translateY(-3px); }
.footer__paiement { font-size: 0.8rem; opacity: 0.75; margin-top: 0.85rem; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-block: 1rem; font-size: 0.85rem; opacity: 0.75; text-align: center; }
.footer a { color: #FFB399; }

/* ---------- Fil d'ariane ---------- */
.fil-ariane { font-size: 0.85rem; color: var(--gris); margin-bottom: 1rem; }
.fil-ariane a { color: var(--gris); font-weight: 600; }
.fil-ariane a:hover { color: var(--orange-fonce); }

/* ---------- Bandeau de statistiques ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.stat {
    background: var(--surface);
    border-radius: var(--rayon);
    box-shadow: var(--ombre);
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    animation: fadeUp 0.5s var(--courbe) both;
}
.stat__valeur { font-family: 'Poppins', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--violet); }
.stat__label { font-size: 0.78rem; color: var(--gris); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
.stat__detail { font-size: 0.85rem; color: var(--gris); }
.stat__lien { font-size: 0.85rem; margin-top: 0.35rem; }

/* ---------- Sous-navigation (onglets des espaces) ---------- */
.sous-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.sous-nav a {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1.5px solid var(--gris-clair);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gris);
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.sous-nav a:hover { border-color: var(--orange); color: var(--orange-fonce); text-decoration: none; transform: translateY(-2px); }
.sous-nav__actif, .sous-nav a.sous-nav__actif:hover {
    background: linear-gradient(135deg, var(--orange), #FF8C42);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.25rem; justify-content: center; }
.pagination__info { font-size: 0.9rem; color: var(--gris); font-weight: 600; }

/* ---------- Compte acheteur ---------- */
.compte-grille { display: grid; grid-template-columns: 340px 1fr; gap: 1.5rem; align-items: start; }
.compte-colonne > .section__title { margin-top: 1.75rem; }
.compte-colonne > .section__title:first-child { margin-top: 0; }
@media (max-width: 900px) { .compte-grille { grid-template-columns: 1fr; } }

/* ---------- Billets : apercus et groupes ---------- */
.billets-liste { display: grid; gap: 0.9rem; }
.billet-apercu {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--surface);
    border-radius: var(--rayon);
    box-shadow: var(--ombre);
    padding: 1rem 1.25rem;
}
.billet-apercu__infos { flex: 1; min-width: 220px; }
.billet-apercu__infos h3 { font-size: 1.02rem; margin-bottom: 0.2rem; }
.billet-apercu > .badge { align-self: flex-start; }
.grp-billets { margin-bottom: 2rem; }
.grp-billets__entete { margin-bottom: 0.9rem; }
.grp-billets__entete h2 { font-size: 1.25rem; margin-bottom: 0.2rem; }

/* ---------- Carte billet + QR ---------- */
.billet-hero {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    background: var(--surface);
    border-radius: var(--rayon);
    box-shadow: var(--ombre-forte);
    padding: 2rem;
    animation: fadeUp 0.55s var(--courbe) both;
}
.billet-hero__qr { text-align: center; align-self: start; }
.billet-hero__qr img {
    margin-inline: auto;
    border-radius: 14px;
    box-shadow: var(--ombre);
    border: 1px solid var(--gris-clair);
    background: #FFFFFF;
    padding: 8px;
    width: 190px;
    height: 190px;
}
.billet-hero__qr .note { margin-top: 0.75rem; }
.billet-hero__infos h1 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.billet-hero__infos > .badge { margin-bottom: 1rem; }
.billet-actions { margin-top: 1.25rem; display: grid; gap: 0.75rem; }
.billet-carte { display: flex; gap: 1.25rem; background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1.25rem; flex-wrap: wrap; }
.billet-carte__qr { width: 150px; height: 150px; border: 1px solid var(--gris-clair); border-radius: 12px; padding: 6px; background: #FFFFFF; flex-shrink: 0; }
.billet-carte__infos { flex: 1; min-width: 230px; }
.billet-carte__infos h3 { margin-bottom: 0.4rem; }
@media (max-width: 720px) {
    .billet-hero { grid-template-columns: 1fr; padding: 1.25rem; }
    .billet-hero__qr img { width: 170px; height: 170px; }
}

/* ---------- Page commande ---------- */
.commande-entete { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.commande-attente {
    display: grid;
    place-items: center;
    text-align: center;
    background: var(--surface);
    border-radius: var(--rayon);
    box-shadow: var(--ombre);
    padding: 2.5rem 1.5rem;
    gap: 0.75rem;
    margin-block: 1rem 1.5rem;
}
.commande-attente h2 { font-size: 1.3rem; }
.commande-attente p { color: var(--gris); max-width: 520px; }
.attente-pulse { width: 18px; height: 18px; border-radius: 50%; background: var(--orange); animation: pulser 1.2s ease-in-out infinite; box-shadow: 0 0 0 8px var(--orange-soft); }
.commande-grille { margin-block: 1.5rem; }

/* ---------- Formulaire d'achat ---------- */
.choix-billet { border: none; display: grid; gap: 0.75rem; }
.choix-billet legend { font-weight: 700; font-family: 'Poppins', sans-serif; font-size: 1.05rem; padding-bottom: 0.5rem; }
.radio--billet span { text-align: left; line-height: 1.55; }
.radio--billet small { display: block; color: var(--gris); font-size: 0.78rem; margin-top: 0.2rem; }
.radio--inactif { opacity: 0.55; }
.radio--inactif:hover span { border-color: var(--gris-clair); transform: none; }
.vente-fenetre { font-style: italic; }
.champ-quantite input { max-width: 140px; }
.moyens-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
.radio--moyen span { display: flex; align-items: center; gap: 0.6rem; justify-content: flex-start; }
.radio--moyen img { width: 40px; height: 40px; object-fit: contain; border-radius: 9px; background: #FFFFFF; padding: 4px; border: 1px solid var(--gris-clair); flex-shrink: 0; }
.achat-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, var(--violet-soft), var(--orange-soft));
    border-radius: var(--rayon);
    padding: 1rem 1.5rem;
    font-weight: 600;
}
.achat-total strong { font-family: 'Poppins', sans-serif; font-size: 1.35rem; color: var(--orange-fonce); }

/* ---------- Notifications ---------- */
.notif {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    background: var(--surface);
    border-radius: var(--rayon);
    box-shadow: var(--ombre);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    border-left: 4px solid transparent;
}
.notif--non-lue { border-left-color: var(--orange); background: #FFFDF9; }
.notif__corps { flex: 1; min-width: 240px; }
.notif__corps h3 { font-size: 1rem; margin-bottom: 0.15rem; }
.notif__corps p { color: var(--gris); font-size: 0.92rem; }
.notif__date { font-size: 0.8rem; color: var(--gris); white-space: nowrap; align-self: center; }

/* ---------- Filtres (barres admin et listes) ---------- */
.filtres {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: end;
    background: var(--surface);
    padding: 1rem 1.25rem;
    border-radius: var(--rayon);
    box-shadow: var(--ombre);
    margin-bottom: 1.25rem;
}
.filtres label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gris); }
.filtres input, .filtres select {
    font: inherit;
    font-weight: 400;
    text-transform: none;
    padding: 0.5rem 0.7rem;
    border: 2px solid var(--gris-clair);
    border-radius: 10px;
    background: #FCFCFD;
    min-width: 150px;
}
.filtres input:focus, .filtres select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.12); }

/* ---------- Actions en ligne dans les tableaux ---------- */
.actions-ligne { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.actions-ligne form { display: inline-flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.actions-ligne .btn { padding: 0.35rem 0.8rem; font-size: 0.8rem; }
.actions-ligne input[type="text"], .actions-ligne input[type="number"], .actions-ligne select {
    font: inherit;
    font-size: 0.85rem;
    padding: 0.35rem 0.6rem;
    border: 2px solid var(--gris-clair);
    border-radius: 8px;
    background: #FCFCFD;
    width: 190px;
}
.actions-ligne input:focus, .actions-ligne select:focus { outline: none; border-color: var(--orange); }
.btn--danger { background: #FEE2E2; color: #B91C1C; }
.btn--danger:hover { background: #FECACA; color: #B91C1C; }
.btn--ok { background: var(--vert-soft); color: var(--vert-fonce); }
.btn--ok:hover { background: #CBF0EA; color: var(--vert-fonce); }
.sha { font-family: 'Courier New', monospace; font-size: 0.78rem; color: var(--gris); }

/* ---------- Badges statut complementaires ---------- */
.badge--statut-en_attente, .badge--statut-initie, .badge--statut-demande { background: var(--orange-soft); color: var(--orange-fonce); }
.badge--statut-en_validation { background: #FEF3C7; color: #92400E; }
.badge--nature-publicite { background: var(--violet-soft); color: var(--violet); }
.badge--statut-payee, .badge--statut-succes, .badge--statut-confirme, .badge--statut-valide, .badge--statut-actif, .badge--statut-approuve { background: var(--vert-soft); color: var(--vert-fonce); }
.badge--statut-expiree, .badge--statut-expire { background: var(--gris-clair); color: var(--gris); }
.badge--statut-emis, .badge--statut-transfere { background: var(--violet-soft); color: var(--violet); }
.badge--statut-annulee, .badge--statut-refuse, .badge--statut-echoue { background: #FEE2E2; color: #B91C1C; }
.badge--statut-suspendu { background: #FEF3C7; color: #92400E; }
.badge--statut-execute { background: var(--vert); color: #FFFFFF; }

/* ---------- Pages legales ---------- */
.legal { background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 2rem; animation: fadeUp 0.55s var(--courbe) both; }
.legal h1 { margin-bottom: 0.5rem; }
.legal h2 { font-size: 1.15rem; margin: 1.6rem 0 0.5rem; color: var(--violet); }
.legal p, .legal li { color: #3F3F46; font-size: 0.95rem; }
.legal ul { padding-left: 1.2rem; margin-block: 0.5rem; }
.legal li { margin-bottom: 0.3rem; }
.legal .maj { color: var(--gris); font-size: 0.85rem; margin-top: 1.5rem; }
@media (max-width: 720px) { .legal { padding: 1.25rem; } }

/* ---------- Responsive supplementaire ---------- */
@media (max-width: 720px) {
    .stat-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
    .actions-ligne { flex-direction: column; align-items: stretch; }
    .actions-ligne input[type="text"], .actions-ligne input[type="number"], .actions-ligne select { width: 100%; }
    .actions-ligne .btn { text-align: center; }
}
@media (max-width: 520px) {
    .achat-total { flex-direction: column; text-align: center; gap: 0.25rem; }
}

/* ---------- Accessibilite ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Formulaires : case a cocher seule ---------- */
.form__case { flex-direction: row !important; align-items: center; gap: 0.6rem !important; font-size: 0.92rem !important; cursor: pointer; }
.form__case input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--orange); cursor: pointer; }

