/* ==========================================================
   DevBen Photo — thème Grav
   Couleurs : modifier les variables ci-dessous
   ========================================================== */
:root {
    --bg: #0d0c12;
    --bg-2: #15131d;
    --surface: #1c1927;
    --line: #2b2739;
    --text: #efedf5;
    --text-soft: #d4d0de;
    --muted: #a19cb2;
    --accent: #c084fc;
    --accent-2: #f472b6;
    --accent-3: #fb923c;
    --grad: linear-gradient(120deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
    --radius: 16px;
    --container: 1180px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-title: 'Unbounded', var(--font);
    --header-h: 70px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 1.05rem/1.7 var(--font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-2); }

h1, h2, h3 {
    font-family: var(--font-title);
    line-height: 1.15;
    margin: 0 0 .6em;
    letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.7rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 500; }
p { margin: 0 0 1.1em; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.narrow { max-width: 760px; margin-inline: auto; }
.muted { color: var(--muted); }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Boutons ---------- */
.btn, .button, button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    padding: .85em 1.6em;
    border: 0;
    border-radius: 999px;
    background: var(--grad);
    color: #160f1f;
    font: 600 1rem/1.2 var(--font);
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.btn:hover, .button:hover, button[type="submit"]:hover {
    color: #160f1f;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -12px rgba(244, 114, 182, .7);
}
.btn-ghost {
    background: transparent;
    color: var(--text);
    box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-ghost:hover { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-small { padding: .55em 1.15em; font-size: .92rem; }

/* ---------- En-tête ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(13, 12, 18, .85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}
.brand {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand span {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.site-nav { display: flex; align-items: center; gap: 1.7rem; }
.site-nav a:not(.btn) {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: .97rem;
    transition: color .2s;
}
.site-nav a:not(.btn):hover,
.site-nav a.active { color: var(--text); }
.nav-toggle { display: none; }

@media (max-width: 880px) {
    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 10px;
        margin-right: -10px;
        background: none;
        border: 0;
        cursor: pointer;
    }
    .nav-toggle span:not(.sr-only) {
        width: 24px; height: 2px;
        background: var(--text);
        transition: transform .25s, opacity .25s;
    }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: -16px;
        right: -16px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 16px 20px;
        background: var(--bg-2);
        border-bottom: 1px solid var(--line);
    }
    .site-nav.open { display: flex; }
    .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
    .site-nav .btn { margin-top: 16px; }
}

/* ---------- Héro ---------- */
.hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: min(88vh, 860px);
    padding: 120px 0 clamp(56px, 8vw, 96px);
    overflow: hidden;
    background:
        radial-gradient(60% 60% at 80% 20%, rgba(192, 132, 252, .28), transparent 70%),
        radial-gradient(50% 50% at 10% 90%, rgba(244, 114, 182, .22), transparent 70%),
        var(--bg);
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 12, 18, .25) 0%, rgba(13, 12, 18, .55) 50%, var(--bg) 100%);
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { max-width: 820px; }
.hero .lead { max-width: 620px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Cadres photo flottants de la bannière (modifiables dans l'admin) */
.hero-stickers.has-frames {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    right: max(16px, calc((100vw - var(--container)) / 2));
    z-index: 2;
    width: min(36vw, 440px);
    pointer-events: none;
}
.hero-frame {
    position: absolute;
    display: block;
    width: clamp(130px, 15vw, 200px);
    aspect-ratio: 1;
    margin: 0;
    padding: 8px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .65);
    animation: frame-float 7s ease-in-out infinite;
    pointer-events: auto;
    transition: scale .25s;
}
.hero-frame img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
a.hero-frame:hover, a.hero-frame:focus-visible { scale: 1.06; animation-play-state: paused; z-index: 3; }
.hero-frame-1 { top: 12%; right: 2%; --r: 6deg; }
.hero-frame-2 { top: 34%; right: 48%; --r: -7deg; animation-delay: -2.3s; }
.hero-frame-3 { top: 58%; right: 8%; --r: 3deg; animation-delay: -4.6s; }
@keyframes frame-float {
    0%, 100% { transform: rotate(var(--r)) translateY(0); }
    50% { transform: rotate(var(--r)) translateY(-12px); }
}
.hero-frame-label {
    position: absolute;
    left: 50%;
    bottom: -14px;
    transform: translateX(-50%);
    padding: .3em .9em;
    border-radius: 999px;
    background: var(--accent);
    color: #160f1f;
    font-size: .85rem;
    font-weight: 700;
    white-space: nowrap;
}
@media (min-width: 961px) {
    .hero.hero--frames .hero-content h1, .hero.hero--frames .hero-content .lead { max-width: min(820px, calc(100% - min(36vw, 440px) - 24px)); }
}
@media (max-width: 960px) {
    .hero-stickers.has-frames {
        position: relative;
        inset: auto;
        width: auto;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 4vw;
        margin: 34px 16px 0;
        padding-bottom: 20px;
    }
    .hero-frame { position: relative; top: auto; right: auto; width: min(27vw, 170px); padding: 5px; }
    .hero-frame-2 { margin-top: 18px; }
    .hero-frame-label { font-size: .72rem; bottom: -12px; }
}
@media (prefers-reduced-motion: reduce) { .hero-frame { animation: none; transform: rotate(var(--r)); } }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section-tight { padding-top: 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 700px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }
.section-foot { margin: 40px 0 0; text-align: center; }

.prose { color: var(--text-soft); }
.prose h2, .prose h3 { color: var(--text); margin-top: 1.4em; }
.prose h2:first-child, .prose .eyebrow + h2 { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--accent-2); }
.prose strong { color: var(--text); }
.prose blockquote {
    margin: 1.5em 0;
    padding: .2em 0 .2em 1.2em;
    border-left: 3px solid var(--accent-2);
    color: var(--text);
    font-style: italic;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}
.split.image-left .split-media { order: -1; }
.split-media img { width: 100%; border-radius: var(--radius); }
@media (max-width: 820px) {
    .split { grid-template-columns: 1fr; }
    .split.image-left .split-media { order: 0; }
}

/* ---------- Page simple ---------- */
.page-head { padding: clamp(56px, 9vw, 100px) 0 32px; }
.page-cover { width: 100%; margin-bottom: 40px; border-radius: var(--radius); }

/* ---------- Cartes prestations ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .25s, border-color .25s;
}
.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--grad);
}
.card:hover { transform: translateY(-4px); border-color: #3d3752; }
.card p { color: var(--muted); flex: 1; }
.badge {
    align-self: flex-start;
    padding: .3em .9em;
    border-radius: 999px;
    background: rgba(192, 132, 252, .12);
    color: var(--accent);
    font-size: .88rem;
    font-weight: 600;
}

/* ---------- Galerie ---------- */
.gallery { columns: 3 300px; column-gap: 14px; }
.gallery a {
    display: block;
    margin-bottom: 14px;
    border-radius: 12px;
    overflow: hidden;
    break-inside: avoid;
    background: var(--surface);
}
.gallery img { width: 100%; transition: transform .5s, opacity .3s; }
.gallery a:hover img { transform: scale(1.04); }

/* ---------- Agenda ---------- */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.event {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 22px;
    align-items: center;
    padding: 16px 22px 16px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.event-cal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    padding: 8px 4px;
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(192, 132, 252, .22), rgba(244, 114, 182, .12));
    border: 1px solid rgba(192, 132, 252, .3);
    text-align: center;
}
.event-day { font-family: var(--font-title); font-size: 1.45rem; font-weight: 700; line-height: 1.1; }
.event-month { margin-top: 4px; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); }
.event h3 { margin: 0; font-size: 1.08rem; }
.event p { margin: .25em 0 0; color: var(--muted); font-size: .95rem; }
.event .event-note { color: var(--accent); font-size: .88rem; }
.event.is-past { opacity: .6; }
.event.is-past .event-cal { background: var(--bg-2); border-color: var(--line); }
.month {
    margin: 40px 0 14px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.month:first-child { margin-top: 0; }
.past-events { margin-top: 48px; }
.past-events summary {
    margin-bottom: 14px;
    color: var(--muted);
    font-weight: 600;
    cursor: pointer;
}
.past-events summary:hover { color: var(--text); }
.event-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.event-ics {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--muted);
    box-shadow: inset 0 0 0 1.5px var(--line);
    transition: color .2s, box-shadow .2s;
}
.event-ics:hover { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent); }
@media (max-width: 640px) {
    .event { grid-template-columns: 76px 1fr; gap: 14px; padding: 12px; }
    .event-cal { min-height: 72px; }
    .event-day { font-size: 1.15rem; }
    .event-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Abonnement au calendrier */
.subscribe {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 56px;
    padding: 24px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.subscribe h2 { margin: 0 0 .3em; font-size: 1.15rem; }
.subscribe p { margin: 0; max-width: 420px; font-size: .95rem; }
.subscribe-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Bandeau « en convention » ---------- */
.con-banner {
    position: relative;
    z-index: 60;
    background: var(--grad);
    color: #160f1f;
    font-size: .95rem;
}
.con-banner-inner { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 0; }
.con-banner p { flex: 1; margin: 0; line-height: 1.4; }
.con-banner-event { margin-left: 6px; font-weight: 500; }
.con-banner-links a {
    padding: .4em .95em;
    border-radius: 999px;
    background: #160f1f;
    color: #fff;
    font-weight: 600;
    font-size: .88rem;
    text-decoration: none;
    white-space: nowrap;
}
.con-banner-links a:hover { color: #fff; background: #2a1f38; }
.con-banner-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(22, 15, 31, .12);
    color: #160f1f;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}
.con-banner-close:hover { background: rgba(22, 15, 31, .22); }
.con-banner-dot {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #160f1f;
    animation: con-pulse 1.6s ease-in-out infinite;
}
@keyframes con-pulse { 50% { opacity: .3; transform: scale(.75); } }
@media (max-width: 640px) {
    .con-banner-inner { flex-wrap: wrap; row-gap: 6px; }
    .con-banner p { flex-basis: calc(100% - 70px); }
    .con-banner-event { display: block; margin: 0; }
    .con-banner-links { order: 3; flex-basis: 100%; padding-left: 22px; }
    .con-banner-close { order: 2; }
}

/* ---------- FAQ ---------- */
.faq-group {
    margin: 48px 0 14px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.faq-group:first-child { margin-top: 0; }
.faq-list { display: grid; gap: 10px; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .2s;
}
.faq-item[open] { border-color: #3d3752; }
.faq-item summary {
    position: relative;
    padding: 18px 56px 18px 22px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--accent);
    transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { padding: 0 22px 18px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-cta { margin-top: 56px; }

/* Champs masqués du formulaire (réservation) */
.form-field[hidden], .form-field select[hidden], .form-field input[hidden] { display: none; }

/* ---------- Formulaire : choix de la convention, du jour et du moment ---------- */
.booking-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
    padding: 2px;
    border-radius: 14px;
}
.booking-cards.is-invalid { outline: 2px solid #f87171; outline-offset: 4px; }
.booking-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 14px 16px;
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.booking-card:hover { border-color: var(--accent); }
.booking-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(192, 132, 252, .25); }
.booking-card-date { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); }
.booking-card-name { font-weight: 700; line-height: 1.3; }
.booking-card-city { font-size: .88rem; color: var(--muted); }
.booking-card-note { font-size: .82rem; color: var(--accent); }
.booking-card.is-selected .booking-card-name::before { content: "✓ "; color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    padding: .55em 1.05em;
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: 999px;
    color: var(--text-soft);
    font: 600 .92rem/1.2 var(--font);
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}
.chip:first-letter { text-transform: uppercase; }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.is-selected { background: var(--accent); border-color: var(--accent); color: #160f1f; }
.form-field.is-empty .chips::before { content: "Choisis d'abord une convention."; color: var(--muted); font-size: .92rem; }

/* ---------- Formulaire : choix d'une photo PicPeak ---------- */
.photo-picker.is-invalid .pp-galleries, .photo-picker.is-invalid .pp-grid { outline: 2px solid #f87171; outline-offset: 4px; border-radius: 12px; }
.pp-status { margin: 12px 0 0; color: var(--muted); font-size: .92rem; }
.pp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 10px; font-size: .9rem; color: var(--text-soft); }
.pp-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.form-field .pp-nav select {
    width: auto;
    padding: .45em 2em .45em .7em;
    background: var(--bg);
    color: var(--text);
    border: 1.5px solid var(--line);
    border-radius: 8px;
    font: inherit;
    font-size: .88rem;
}
.pp-photo.is-hidden { opacity: .25; cursor: not-allowed; }
.pp-photo.is-hidden:hover { transform: none; border-color: transparent; }
.pp-goto { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; }
.pp-goto input { width: 80px; padding: .45em .6em; background: var(--bg); color: var(--text); border: 1.5px solid var(--line); border-radius: 8px; font: inherit; }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
@media (max-width: 640px) { .pp-grid { grid-template-columns: repeat(4, 1fr); } }
.pp-photo {
    position: relative;
    aspect-ratio: 1;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 10px;
    background: var(--bg);
    cursor: pointer;
    transition: border-color .15s, transform .15s;
}
.pp-photo:hover { border-color: var(--accent); transform: translateY(-2px); }
.pp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .35s; }
.pp-photo.is-loaded img { opacity: 1; }

/* Animation de chargement dans chaque cadre */
.pp-loader {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    background: linear-gradient(110deg, var(--surface) 30%, rgba(255, 255, 255, .07) 50%, var(--surface) 70%);
    background-size: 220% 100%;
    animation: pp-shimmer 1.5s linear infinite;
    transition: opacity .35s;
    pointer-events: none;
}
.pp-loader i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .14);
    border-top-color: var(--accent);
    animation: pp-spin .8s linear infinite;
}
.pp-loader em { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.pp-photo:not(.is-loading):not(.is-loaded) .pp-loader i { animation: none; opacity: .5; }
.pp-photo.is-loaded .pp-loader { opacity: 0; animation: none; }
.pp-photo.is-error .pp-loader { animation: none; }
.pp-photo.is-error .pp-loader i { border-color: #f87171; animation: none; }
.pp-photo.is-error .pp-loader em { color: #f87171; }
@keyframes pp-shimmer { to { background-position: -120% 0; } }
@keyframes pp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pp-loader, .pp-loader i { animation: none !important; } }

/* Progression globale */
.pp-progress { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.pp-progress[hidden] { display: flex; visibility: hidden; } /* garde sa place : la grille ne bouge pas */

/* Changement de page : la grille reste en place, grisée, le temps de charger la suivante */
.pp-grid { transition: min-height .35s, opacity .2s; }
.photo-picker.is-busy .pp-grid, .photo-picker.is-busy .pp-bar, .photo-picker.is-busy .pp-pager { opacity: .45; pointer-events: none; }
.photo-picker.is-busy .pp-pager span::after, .photo-picker.is-busy .pp-bar strong::after { content: ' — chargement…'; font-weight: 400; }
@media (hover: none) { .pp-photo:hover { transform: none; border-color: transparent; } .pp-photo.is-selected:hover { border-color: var(--accent); } } /* mobile : pas d'effet de survol qui reste collé */
.pp-progress-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.pp-progress-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width .3s; }
.pp-progress em { font-style: normal; font-size: .8rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

.pp-photo .pp-num {
    position: absolute;
    left: 5px;
    bottom: 5px;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
}
.pp-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; font-size: .88rem; color: var(--muted); }
.pp-pager .chip[disabled] { opacity: .4; pointer-events: none; }
.pp-photo.is-selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(192, 132, 252, .35); }
.pp-photo.is-selected::after {
    content: "✓";
    position: absolute;
    top: 5px;
    right: 5px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: #160f1f;
    font-weight: 800;
    font-size: .85rem;
}
.pp-selection.is-sticky { position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; }
.pp-selected {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 14px;
    padding: 10px 12px;
    background: var(--bg);
    border: 1.5px solid var(--accent);
    border-radius: 14px;
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .7);
}
.pp-selected-thumbs { display: flex; align-items: center; flex: none; }
.pp-selected-thumbs img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; border: 2px solid var(--bg); margin-left: -12px; }
.pp-selected-thumbs img:first-child { margin-left: 0; }
.pp-more { margin-left: 6px; color: var(--muted); font-size: .85rem; font-weight: 700; }
.pp-selected > div:last-child { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.pp-selected strong { color: var(--text); margin-right: 4px; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.pp-chip {
    padding: 2px 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(192, 132, 252, .18);
    color: var(--text);
    font: 600 .8rem/1.4 var(--font);
    cursor: pointer;
}
.pp-chip:hover { background: rgba(248, 113, 113, .3); }
@media (max-width: 640px) { .pp-selected-thumbs { display: none; } }

/* ---------- Fiches convention ---------- */
.convention-head { position: relative; overflow: hidden; }
.convention-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .28;
    -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent);
    mask-image: linear-gradient(180deg, #000 30%, transparent);
}
.convention-head .container { position: relative; }
.back-link { display: block; width: fit-content; margin-bottom: 18px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; }
.back-link:hover { color: var(--text); }
.convention-place { margin: 0; font-size: 1.1rem; color: var(--text-soft); }
.convention-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.convention-requests { margin: 18px 0 0; color: var(--muted); font-size: .92rem; }

.convention-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.convention-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    transition: transform .25s, border-color .25s;
}
.convention-card:hover { color: var(--text); transform: translateY(-4px); border-color: var(--accent); }
.convention-card-media { position: relative; aspect-ratio: 10 / 7; background: var(--bg-2) var(--grad); }
.convention-card-media img { width: 100%; height: 100%; object-fit: cover; }
.convention-card-date {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: .3em .8em;
    border-radius: 999px;
    background: rgba(13, 12, 18, .85);
    font-size: .8rem;
    font-weight: 700;
}
.convention-card-body { padding: 18px 20px 20px; }
.convention-card-body h2 { margin: 0 0 4px; font-size: 1.15rem; }
.convention-card-body p { margin: 0 0 10px; color: var(--muted); font-size: .95rem; }
.convention-card-more { color: var(--accent); font-weight: 600; font-size: .9rem; }

/* ---------- Témoignages ---------- */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.testimonial {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.testimonial blockquote { position: relative; margin: 0; padding-top: 18px; color: var(--text-soft); }
.testimonial blockquote::before {
    content: "“";
    position: absolute;
    top: -22px;
    left: -4px;
    font: 700 4rem/1 Georgia, serif;
    color: var(--accent);
    opacity: .6;
}
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 48px; height: 48px; flex: none; border-radius: 50%; object-fit: cover; }
.testimonial-initial { display: grid; place-items: center; background: var(--grad); color: #160f1f; font-weight: 700; font-size: 1.2rem; }
.testimonial-name { display: block; font-weight: 700; color: var(--text); text-decoration: none; }
a.testimonial-name:hover { color: var(--accent); }
.testimonial-role { display: block; font-size: .88rem; color: var(--muted); }

/* ---------- Statistiques ---------- */
.stats-range { margin: 18px 0 0; }
.stats-range .view-btn { text-decoration: none; }
.stats-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stats-kpi { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stats-kpi span { display: block; font-size: .85rem; color: var(--muted); }
.stats-kpi strong { font-family: var(--font-title); font-size: 2rem; line-height: 1.2; }
.stats-card { padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; }
.stats-card h2 { margin: 0 0 16px; font-size: 1.05rem; }
.stats-chart { display: grid; grid-template-columns: repeat(var(--bars), 1fr); align-items: end; gap: 3px; height: 220px; }
.stats-bar { position: relative; height: 100%; }
.stats-bar span { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 4px 4px 0 0; }
.stats-bar-views { background: rgba(192, 132, 252, .3); }
.stats-bar-visitors { background: var(--accent-2); }
.stats-bar:hover .stats-bar-views { background: rgba(192, 132, 252, .55); }
.stats-axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: .8rem; color: var(--muted); }
.stats-legend { margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
.stats-legend .dot { display: inline-block; width: 10px; height: 10px; margin: 0 4px 0 12px; border-radius: 3px; vertical-align: middle; }
.stats-legend .dot:first-child { margin-left: 0; }
.dot-visitors { background: var(--accent-2); }
.dot-views { background: rgba(192, 132, 252, .45); }
.stats-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.stats-columns .stats-card { margin: 0; }
.stats-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.stats-list li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; font-size: .92rem; }
.stats-list-bar { position: absolute; inset: 0 auto 0 0; background: rgba(192, 132, 252, .14); border-radius: 6px; }
.stats-list-name, .stats-list-count { position: relative; }
.stats-list-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-list-count { font-weight: 700; }

/* ---------- Agenda : vue calendrier ---------- */
.view-switch {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
}
.view-btn {
    padding: .5em 1.2em;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font: 600 .92rem/1.2 var(--font);
    cursor: pointer;
}
.view-btn:hover { color: var(--text); }
.view-btn.active { background: var(--grad); color: #160f1f; }

.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.cal-title { flex: 1; margin: 0; font-size: clamp(1.1rem, 2.4vw, 1.4rem); text-align: center; }
.cal-nav, .cal-today {
    border: 0;
    background: var(--surface);
    color: var(--text);
    box-shadow: inset 0 0 0 1px var(--line);
    cursor: pointer;
    font: 600 .9rem/1 var(--font);
}
.cal-nav { width: 40px; height: 40px; border-radius: 50%; font-size: 1.4rem; }
.cal-today { order: 3; padding: .7em 1em; border-radius: 999px; }
.cal-nav:hover, .cal-today:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}
.cal-weekday {
    padding: 6px 0;
    text-align: center;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.cal-day {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    min-height: 96px;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    font: inherit;
    text-align: left;
    overflow: hidden;
}
button.cal-day { cursor: pointer; transition: border-color .2s; }
button.cal-day:hover, .cal-day.is-selected { border-color: var(--accent); }
.cal-day.is-other { opacity: .38; }
.cal-num { font-size: .85rem; font-weight: 600; color: var(--muted); }
.cal-day.is-today .cal-num {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--grad);
    color: #160f1f;
}
.cal-chip {
    display: block;
    padding: 2px 6px;
    border-radius: 5px;
    background: linear-gradient(120deg, rgba(192, 132, 252, .35), rgba(244, 114, 182, .3));
    color: var(--text);
    font-size: .74rem;
    font-weight: 500;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cal-chip.is-past { background: var(--bg-2); color: var(--muted); }
.cal-chip.is-absent { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .25); }
.event .event-presence { color: var(--accent-2); font-weight: 600; font-size: .9rem; }
.event .event-presence em { font-weight: 400; color: var(--muted); }
.booking-card-presence { font-size: .82rem; font-weight: 600; color: var(--accent-2); }
.cal-details { margin-top: 24px; }
.cal-details-title { margin: 0 0 12px; font-size: 1rem; font-weight: 500; text-transform: capitalize; color: var(--muted); }

@media (max-width: 640px) {
    .cal-head { flex-wrap: wrap; }
    .cal-today { order: 0; margin-left: auto; }
    .cal-title { order: -1; flex-basis: 100%; text-align: left; }
    .cal-grid { gap: 2px; }
    .cal-day { min-height: 52px; padding: 4px; align-items: center; border-radius: 8px; }
    .cal-num { font-size: .8rem; }
    /* Sur mobile, les événements deviennent des points */
    .cal-chip { width: 7px; height: 7px; padding: 0; border-radius: 50%; font-size: 0; background: var(--accent-2); }
    .cal-chip.is-past { background: var(--muted); }
}

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
    padding: .5em 1.1em;
    border: 0;
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    box-shadow: inset 0 0 0 1px var(--line);
    font: 500 .95rem/1.2 var(--font);
    cursor: pointer;
    transition: color .2s, box-shadow .2s;
}
.filter:hover { color: var(--text); }
.filter.active { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent); }
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.pf-item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
}
.pf-item[hidden] { display: none; }
.pf-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pf-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(13, 12, 18, .9) 100%);
    pointer-events: none;
}
.pf-caption { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; }
.pf-caption h3 { margin: 0; font-size: 1rem; }
.pf-caption span { color: var(--text-soft); font-size: .88rem; }
.pf-cta {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    padding: .4em .9em;
    border-radius: 999px;
    background: var(--grad);
    color: #160f1f;
    font-size: .82rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .25s, transform .25s;
}
a.pf-item:hover img, a.pf-item:focus-visible img { transform: scale(1.05); }
a.pf-item:hover .pf-cta, a.pf-item:focus-visible .pf-cta { opacity: 1; transform: none; }
@media (hover: none) { .pf-cta { opacity: 1; transform: none; } }

/* ---------- Appel à l'action ---------- */
.cta {
    position: relative;
    padding: clamp(36px, 6vw, 72px);
    text-align: center;
    border-radius: 24px;
    background:
        radial-gradient(70% 120% at 0% 0%, rgba(192, 132, 252, .25), transparent 60%),
        radial-gradient(70% 120% at 100% 100%, rgba(251, 146, 60, .18), transparent 60%),
        var(--surface);
    border: 1px solid var(--line);
}
.cta h2 { max-width: 700px; margin-inline: auto; }
.cta-text { max-width: 600px; margin: 0 auto 24px; color: var(--text-soft); }

/* ---------- Formulaire ---------- */
.form-card {
    margin-top: 32px;
    padding: clamp(22px, 4vw, 40px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.form-field { margin-bottom: 20px; }
.form-label label, .form-field > label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: .95rem;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
    width: 100%;
    padding: .8em 1em;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.form-field textarea { min-height: 170px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(192, 132, 252, .2);
}
.required { color: var(--accent-2); }
.form-extra-wrapper, .form-description { color: var(--muted); font-size: .9rem; }
.notices {
    margin: 0 0 20px;
    padding: 14px 18px;
    border-radius: 10px;
    background: rgba(192, 132, 252, .12);
    border: 1px solid rgba(192, 132, 252, .35);
}
.notices.red, .notices.error { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .4); }
.notices.green, .notices.success { background: rgba(74, 222, 128, .1); border-color: rgba(74, 222, 128, .4); }
.notices p { margin: 0; }

/* ---------- « Préviens-moi quand les photos sont en ligne » ---------- */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.notify { margin-top: 28px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.notify h2 { margin: 0 0 6px; font-size: 1.25rem; }
.notify > p { margin: 0 0 14px; }
.notify-form { display: flex; flex-wrap: wrap; gap: 8px; }
.notify-form input[type="email"] {
    flex: 1 1 220px;
    min-width: 0;
    padding: .7em 1em;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 999px;
    font: inherit;
}
.notify-form input[type="email"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(192, 132, 252, .2); }
.notify-msg { margin: 10px 0 0; font-size: .92rem; font-weight: 600; }
.notify-msg:empty { display: none; }
.notify-msg.is-ok { color: #4ade80; }
.notify-msg.is-error { color: #f87171; }
.notify.is-done .notify-form { display: none; }
.notify-legal { margin: 10px 0 0 !important; color: var(--muted); font-size: .8rem; }
.notify.notify-compact { margin-top: 8px; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.notify-compact .notify-form { max-width: 420px; }
.notify-compact .notify-legal { margin-top: 6px !important; }
.notify-compact summary { display: inline-block; cursor: pointer; color: var(--accent); font-size: .88rem; font-weight: 600; list-style: none; }
.notify-compact summary::-webkit-details-marker { display: none; }
.notify-compact[open] summary { margin-bottom: 8px; }
.notify-compact .notify-form input[type="email"] { padding: .5em .9em; font-size: .9rem; }
.notify-compact.is-done .notify-form { display: none; }

/* Fenêtre « billet de convention » (agenda → Me prévenir des photos) */
.ticket-modal {
    width: min(620px, calc(100vw - 32px));
    max-width: none;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    overflow: visible;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55)); /* ombre qui suit les encoches du billet */
}
.ticket-modal::backdrop { background: rgba(8, 5, 14, .72); backdrop-filter: blur(3px); }
.ticket-modal[open] { animation: ticket-in .35s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes ticket-in { from { opacity: 0; transform: translateY(18px) rotate(-2deg) scale(.96); } to { opacity: 1; transform: none; } }
.ticket {
    --stub: 132px;
    --notch: 13px;
    position: relative;
    display: grid;
    grid-template-columns: var(--stub) 1fr;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    /* Encoches en haut et en bas, au niveau de la perforation */
    -webkit-mask: radial-gradient(circle var(--notch) at var(--stub) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                  radial-gradient(circle var(--notch) at var(--stub) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
    mask: radial-gradient(circle var(--notch) at var(--stub) 0, transparent 98%, #000) top / 100% 51% no-repeat,
          radial-gradient(circle var(--notch) at var(--stub) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}
.ticket-stub {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 22px 10px;
    background: linear-gradient(160deg, rgba(192, 132, 252, .28), rgba(244, 114, 182, .16));
    border-right: 2px dashed var(--line);
    text-align: center;
}
.ticket-day { font-family: var(--font-title); font-size: 2rem; font-weight: 700; line-height: 1; }
.ticket-month { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
.ticket-admit {
    margin-top: 14px;
    padding: .25em .7em;
    border: 1.5px solid currentColor;
    border-radius: 6px;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    transform: rotate(-6deg);
}
.ticket-body.notify { position: relative; margin: 0; padding: 26px 28px 22px; background: none; border: 0; border-radius: 0; overflow: hidden; }
.ticket-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.ticket-close:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.ticket-label { display: block; margin-bottom: 8px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.ticket-name { margin: 0 34px 4px 0; font-size: 1.45rem; line-height: 1.2; }
.ticket-place { margin: 0; color: var(--muted); }
.ticket-text { margin: 14px 0 16px; color: var(--text-soft); font-size: .95rem; }
.ticket-body .notify-legal { margin: 10px 0 0 !important; }
/* Tampon « C'est noté ! » une fois inscrit */
.ticket-stamp {
    position: absolute;
    right: 22px;
    bottom: 18px;
    padding: .3em .8em;
    border: 3px solid #4ade80;
    border-radius: 10px;
    color: #4ade80;
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: 0;
    transform: rotate(-12deg) scale(1.6);
    pointer-events: none;
}
.ticket-body.is-done .ticket-stamp { opacity: .9; transform: rotate(-12deg) scale(1); transition: opacity .2s, transform .35s cubic-bezier(.2, .9, .3, 1.4); }
.ticket-body.is-done .notify-legal, .ticket-body.is-done .ticket-text { display: none; }
.ticket-body.is-done .notify-msg { margin-top: 16px; padding-right: 150px; }
@media (max-width: 520px) {
    /* Sur mobile : talon en haut, perforation horizontale */
    .ticket {
        grid-template-columns: 1fr;
        -webkit-mask: radial-gradient(circle var(--notch) at 0 96px, transparent 98%, #000) left / 51% 100% no-repeat,
                      radial-gradient(circle var(--notch) at 100% 96px, transparent 98%, #000) right / 51% 100% no-repeat;
        mask: radial-gradient(circle var(--notch) at 0 96px, transparent 98%, #000) left / 51% 100% no-repeat,
              radial-gradient(circle var(--notch) at 100% 96px, transparent 98%, #000) right / 51% 100% no-repeat;
    }
    .ticket-stub { flex-direction: row; gap: 12px; height: 96px; padding: 0 20px; border-right: 0; border-bottom: 2px dashed var(--line); }
    .ticket-admit { margin: 0 0 0 auto; }
    .ticket-body.notify { padding: 22px 20px 20px; }
    .ticket-body.is-done .notify-msg { padding-right: 0; padding-bottom: 54px; }
}
@media (prefers-reduced-motion: reduce) { .ticket-modal[open] { animation: none; } }

/* ---------- Suivi de demande / avis ---------- */
.track-card { padding: clamp(20px, 4vw, 34px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; }
.track-type { margin: 0 0 18px; color: var(--text-soft); }
.track-steps { display: flex; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; counter-reset: step; }
.track-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: .85rem; color: var(--muted); position: relative; }
.track-steps li:not(:last-child)::after { content: ""; position: absolute; top: 16px; left: calc(50% + 22px); right: calc(-50% + 22px); height: 3px; border-radius: 3px; background: var(--line); }
.track-steps li.is-done:has(+ li.is-done)::after { background: var(--accent); }
.track-dot { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); font-weight: 700; }
.track-steps li.is-done { color: var(--text); font-weight: 600; }
.track-steps li.is-done .track-dot { background: var(--accent); border-color: var(--accent); color: #160f1f; }
.track-message { font-size: 1.05rem; margin: 0 0 12px; }
.track-note { margin: 0 0 10px; padding: 10px 14px; border-radius: 10px; background: rgba(192, 132, 252, .1); }
.track-hd { margin: 16px 0; padding: 16px; border-radius: 12px; border: 1px dashed var(--accent); }
.track-hd p { margin: 0 0 10px; }
.track-details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.track-details dt { color: var(--muted); }
.track-details dd { margin: 0; }
.track-review { margin: 18px 0 0; }
.review-form { margin-top: 18px; }
.review-consent { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; font-size: .92rem; }
.review-consent input { margin-top: 4px; }
.form-error { padding: 12px 16px; border-radius: 10px; background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .4); }
@media (max-width: 520px) { .track-details { grid-template-columns: 1fr; gap: 2px; } .track-details dd { margin-bottom: 8px; } }

/* ---------- Pied de page ---------- */
.site-footer { margin-top: 40px; padding: 56px 0 28px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer-inner p { margin: .5em 0 0; }
.footer-nav, .socials { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a, .socials a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover, .socials a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .88rem; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8, 7, 12, .95);
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 100px);
    width: auto;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.lightbox button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, .18); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) {
    .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; }
}

body.no-scroll { overflow: hidden; }

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