/* =============================================================================
   Fenou Expo Manage : charte graphique
   Orange → jaune en dégradé, noir profond, blanc. Titres en Montserrat très gras
   et italique, interface en Inter. Mobile d'abord.
   ============================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:ital,wght@0,700;0,800;0,900;1,800;1,900&display=swap');

:root {
  /* Marque */
  --orange: #ef4f17;
  --orange-2: #f7811f;
  --jaune: #f9b218;
  --grad: linear-gradient(100deg, #ea3e14 0%, #f47a1f 55%, #f9b218 100%);
  --grad-doux: linear-gradient(135deg, #fff1e8, #fff8e6);
  --noir: #0f0f11;
  --noir-2: #1b1b1f;
  --noir-3: #2a2a30;

  /* Interface */
  --ink: #16161a;
  --ink-2: #5d5d66;
  --ink-3: #8d8d97;
  --paper: #f4f4f6;
  --surface: #ffffff;
  --line: #e7e7ec;
  --accent: var(--orange);
  --accent-soft: #fff0e8;
  --ok: #1f8a4c;    --ok-soft: #e3f5ea;
  --warn: #b46a00;  --warn-soft: #fff3d6;
  --bad: #d0281e;   --bad-soft: #fde6e4;
  --info: #2459c9;  --info-soft: #e6eefc;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 16, 20, .04), 0 6px 24px rgba(16, 16, 20, .06);
  --shadow-fort: 0 10px 40px rgba(16, 16, 20, .14);
  --ombre-orange: 0 8px 24px rgba(239, 79, 23, .32);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Montserrat", "Inter", sans-serif;
  --sidebar: 252px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15.5px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.55rem, 4vw, 2.1rem); font-weight: 800; }
h2 { font-size: 1.2rem; font-weight: 800; }
h3 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; flex: none; }

/* --------------------------------------------------------------- Mise en page */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 540px; }
.wide { max-width: 1320px; }
.stack > * + * { margin-top: 18px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.muted { color: var(--ink-2); }
.small { font-size: .86rem; }
main { padding: 28px 0 56px; }

/* --------------------------------------------------------------- Logo */
.logo { display: inline-flex; flex-direction: column; line-height: .9; font-family: var(--display); font-style: italic; color: var(--noir); text-decoration: none; }
.logo-haut { display: flex; align-items: flex-end; gap: 4px; }
.logo-fenou { font-weight: 900; font-size: 1.55em; letter-spacing: -.02em; }
.logo-picto { width: 1.15em; height: 1.15em; stroke-width: 1.8; margin-bottom: .1em; }
.logo-bas { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.logo-expo { background: var(--grad); color: #fff; font-weight: 900; font-size: .78em; letter-spacing: .14em; padding: .14em .4em .1em; border-radius: 3px; transform: skewX(-10deg); }
.logo-manage { font-weight: 900; font-size: .92em; letter-spacing: .02em; }
.logo.clair { color: #fff; }
.logo.sm { font-size: 14px; }
.logo { font-size: 17px; }
.logo.lg { font-size: clamp(26px, 6vw, 44px); }
.logo .logo-fenou::first-letter { color: inherit; }

/* Bandeau incliné façon affiche */
.bandeau-incline { display: inline-block; background: var(--grad); color: #fff; font-family: var(--display); font-weight: 900; text-transform: uppercase;
  line-height: 1.1; padding: .45em .9em; transform: skewX(-8deg) rotate(-1.5deg); box-shadow: var(--ombre-orange); }
.bandeau-incline > span { display: inline-block; transform: skewX(8deg); }

/* --------------------------------------------------------------- En-têtes */
.bandeau-local { background: #fff3d6; color: #7a4a00; font-size: .8rem; text-align: center; padding: 5px 16px; }
.bandeau-local button { background: none; border: 0; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; }

.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar .container { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.topbar.sombre { background: var(--noir); border-bottom: 0; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .93rem; }
.nav a:hover { color: var(--ink); background: var(--paper); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.topbar.sombre .nav a { color: #c9c9d1; }
.topbar.sombre .nav a:hover { color: #fff; background: var(--noir-3); }
.topbar.sombre .nav a[aria-current="page"] { color: #fff; background: var(--grad); }
.btn-icone { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); cursor: pointer; position: relative; text-decoration: none; }
.topbar.sombre .btn-icone { background: var(--noir-2); border-color: var(--noir-3); color: #fff; }
.btn-icone .pastille { position: absolute; top: -4px; right: -4px; }

/* Barre d'onglets en bas (exposant, mobile) */
.tabbar { display: none; }
@media (max-width: 760px) {
  .exposant .topbar .nav { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface);
    border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(0,0,0,.05); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px; font-size: .74rem; font-weight: 600; color: var(--ink-3); text-decoration: none; }
  .tabbar a[aria-current="page"] { color: var(--accent); }
  .exposant main { padding-bottom: 96px; }
  .public .topbar .nav a:not(.btn) { display: none; }
}

/* --------------------------------------------------------------- Administration : barre latérale */
.admin .sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: var(--noir); color: #fff; z-index: 40; display: flex; flex-direction: column;
  padding: 22px 14px; overflow-y: auto; transition: transform .25s ease; }
.sidebar .logo { margin: 0 8px 28px; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar .titre-groupe { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: #6f6f7a; margin: 18px 12px 6px; font-weight: 700; }
.sidebar a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius-sm); color: #c4c4cc; text-decoration: none; font-weight: 600; font-size: .93rem; }
.sidebar a:hover { background: var(--noir-2); color: #fff; }
.sidebar a[aria-current="page"] { background: var(--grad); color: #fff; box-shadow: var(--ombre-orange); }
.sidebar a .pastille { margin-left: auto; background: #fff; color: var(--orange); }
.sidebar a[aria-current="page"] .pastille { background: rgba(255,255,255,.25); color: #fff; }
.sidebar .pied { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--noir-3); display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-family: var(--display); flex: none; }
.sidebar .pied .qui { min-width: 0; flex: 1; }
.sidebar .pied .qui strong { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .pied .qui span { font-size: .75rem; color: #8d8d97; }
.sidebar .pied button { background: none; border: 0; color: #8d8d97; cursor: pointer; padding: 6px; border-radius: 8px; }
.sidebar .pied button:hover { color: #fff; background: var(--noir-2); }
.admin .barre-haut { display: none; }
.admin main, .admin .bandeau-local { margin-left: var(--sidebar); }
.admin main { padding: 32px 28px 56px; width: auto; max-width: none; margin-right: 0; }
.voile { display: none; }
@media (max-width: 960px) {
  .admin .sidebar { transform: translateX(-100%); }
  .admin.menu-ouvert .sidebar { transform: none; box-shadow: var(--shadow-fort); }
  .admin.menu-ouvert .voile { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 35; }
  .admin main, .admin .bandeau-local { margin-left: 0; }
  .admin main { padding: 20px 16px 56px; }
  .admin .barre-haut { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 30;
    background: var(--noir); padding: 10px 16px; }
}

/* --------------------------------------------------------------- Titres de page */
.entete-page { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; justify-content: space-between; }
.entete-page h1 { margin: 0; }
.entete-page p { margin: 4px 0 0; color: var(--ink-2); }
.retour { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--ink-2); }
.retour:hover { color: var(--accent); }
.retour .ic { width: 16px; height: 16px; }

/* --------------------------------------------------------------- Cartes */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h2:first-child, .card h3:first-child { margin-top: 0; }

/* Chiffres clés */
.kpi { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: var(--shadow); }
.kpi .label { color: var(--ink-2); font-size: .84rem; font-weight: 600; }
.kpi .value { font-family: var(--display); font-size: clamp(1.15rem, 4.2vw, 1.55rem); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; margin-top: 2px; }
.kpi .ic-kpi { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.kpi .ic-kpi .ic { width: 20px; height: 20px; }
.kpi.orange, .kpi.noir, .kpi.jaune { border: 0; color: #fff; }
.kpi.orange { background: var(--grad); box-shadow: var(--ombre-orange); }
.kpi.noir { background: var(--noir); }
.kpi.jaune { background: linear-gradient(120deg, #f7a21a, #fbc531); color: var(--noir); }
.kpi.orange .label, .kpi.noir .label { color: rgba(255,255,255,.82); }
.kpi.jaune .label { color: rgba(15,15,17,.75); }
.kpi.orange .ic-kpi, .kpi.noir .ic-kpi { background: rgba(255,255,255,.16); color: #fff; }
.kpi.jaune .ic-kpi { background: rgba(255,255,255,.4); color: var(--noir); }
.kpi .small { margin-top: 2px; }
.kpi.orange .small, .kpi.noir .small { color: rgba(255,255,255,.8) !important; }
a.kpi { text-decoration: none; color: inherit; transition: transform .15s ease; }
a.kpi:hover { transform: translateY(-2px); }

/* --------------------------------------------------------------- Formulaires */
label { display: block; font-weight: 600; font-size: .92rem; }
label .hint { display: block; font-weight: 400; color: var(--ink-3); font-size: .82rem; }
input, select, textarea {
  width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-size: .95rem; color: inherit;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: #d4d4dc; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(239, 79, 23, .14); }
input:disabled { background: var(--paper); color: var(--ink-2); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; margin: 0 10px 0 0; accent-color: var(--orange); flex: none; }
input[type="file"] { padding: 10px; background: var(--paper); border-style: dashed; cursor: pointer; }
.check { display: flex; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 2px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0; background: var(--surface); }
legend { font-family: var(--display); font-weight: 800; padding: 0 8px; font-size: 1rem; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
details > summary { cursor: pointer; }

/* Champ avec icône */
.champ { position: relative; display: block; }
.champ .ic { position: absolute; left: 14px; bottom: 14px; color: var(--ink-3); width: 18px; height: 18px; pointer-events: none; }
.champ input { padding-left: 44px; }

/* --------------------------------------------------------------- Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 11px 20px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none; white-space: nowrap;
  background: var(--grad); color: #fff; box-shadow: var(--ombre-orange); transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn .ic { width: 18px; height: 18px; }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.secondary:hover { border-color: var(--ink-3); }
.btn.noir { background: var(--noir); box-shadow: none; }
.btn.danger { background: var(--bad); box-shadow: none; }
.btn.ok { background: var(--ok); box-shadow: none; }
.btn.block { width: 100%; }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: .86rem; box-shadow: none; }
.btn.lg { min-height: 54px; padding: 14px 26px; font-size: 1.02rem; }
.lien-fort { font-weight: 700; color: var(--orange); }

/* --------------------------------------------------------------- Statuts */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700;
  background: var(--paper); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge[data-s="validee"], .badge[data-s="valide"], .badge[data-s="solde"] { background: var(--ok-soft); color: var(--ok); }
.badge[data-s="attribuee"] { background: var(--info-soft); color: var(--info); }
.badge[data-s="en_attente_paiement"], .badge[data-s="en_attente"], .badge[data-s="partiel"] { background: var(--warn-soft); color: var(--warn); }
.badge[data-s="annulee"], .badge[data-s="rejete"], .badge[data-s="non_paye"] { background: var(--bad-soft); color: var(--bad); }
.badge[data-s="trop_percu"] { background: var(--accent-soft); color: var(--accent); }
.pastille { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: #fff;
  font-size: .72rem; font-weight: 800; text-align: center; line-height: 20px; }

/* --------------------------------------------------------------- Tableaux */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); background: #fafafb; white-space: nowrap; font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
tfoot th { background: #fafafb; color: var(--ink); font-size: .85rem; text-transform: none; letter-spacing: 0; border-top: 1px solid var(--line); border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.lien { cursor: pointer; }
tr.lien:hover td { background: #fff8f3; }

/* --------------------------------------------------------------- Alertes, notifications */
.alert { padding: 13px 16px; border-radius: var(--radius-sm); background: var(--info-soft); color: var(--info); border: 1px solid transparent; }
.alert.erreur { background: var(--bad-soft); color: var(--bad); }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
a.alert { display: flex; align-items: center; gap: 12px; text-decoration: none; background: var(--grad-doux); color: var(--ink); border-color: #fbd9c4; }
a.alert .ic { color: var(--orange); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; max-width: calc(100% - 32px);
  padding: 13px 20px; border-radius: 12px; background: var(--noir); color: #fff; box-shadow: var(--shadow-fort); font-weight: 600; }
.toast[data-type="erreur"] { background: var(--bad); }
.toast[data-type="ok"] { background: var(--ok); }
.exposant .toast { bottom: 92px; }

/* --------------------------------------------------------------- Pages publiques : vitrine */
.vitrine { position: relative; overflow: hidden; background: var(--noir); color: #fff; isolation: isolate; }
.vitrine::before { content: ""; position: absolute; z-index: -1; width: 70vw; max-width: 900px; aspect-ratio: 1; right: -22vw; top: -30%;
  border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(247,129,31,.55), rgba(239,79,23,.15) 45%, transparent 70%); }
.vitrine::after { content: ""; position: absolute; z-index: -1; left: -10%; right: -10%; bottom: -2px; height: 90px; background: var(--paper);
  clip-path: polygon(0 70%, 100% 0, 100% 100%, 0 100%); }
.vitrine .container { padding-top: 56px; padding-bottom: 130px; }
.vitrine .slogan { font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(1.6rem, 5.5vw, 3rem); line-height: 1.05; margin: 22px 0 6px; }
.vitrine .slogan .point { color: var(--orange-2); }
.vitrine .sous-slogan { font-family: var(--display); font-style: italic; font-weight: 700; font-size: clamp(1rem, 2.6vw, 1.25rem); color: #e4e4ea; margin: 0 0 20px; }
.vitrine .dates { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12); padding: 8px 14px; border-radius: 999px; font-size: .9rem; }
.vitrine .dates .ic { color: var(--orange-2); width: 18px; height: 18px; }
.vitrine .btn.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.vitrine .btn.secondary:hover { border-color: #fff; }
.trait { width: 64px; height: 5px; border-radius: 3px; background: var(--grad); margin: 18px 0; }

.atouts { display: grid; gap: 0; grid-template-columns: repeat(2, 1fr); background: var(--noir); color: #fff; border-radius: var(--radius); overflow: hidden;
  margin-top: -70px; position: relative; box-shadow: var(--shadow-fort); }
.atouts > div { display: flex; align-items: center; gap: 14px; padding: 20px; border-right: 1px solid var(--noir-3); border-bottom: 1px solid var(--noir-3); }
.atouts .ic { width: 30px; height: 30px; color: var(--orange-2); }
.atouts strong { font-family: var(--display); font-weight: 800; line-height: 1.2; font-size: .98rem; }
@media (min-width: 860px) { .atouts { grid-template-columns: repeat(4, 1fr); } .atouts > div { border-bottom: 0; } }

.section-titre { display: flex; align-items: center; gap: 12px; margin: 44px 0 18px; }
.section-titre h2 { margin: 0; font-size: 1.45rem; font-style: italic; font-weight: 900; text-transform: uppercase; }
.section-titre::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--line), transparent); }
.famille { margin-top: 26px; }
.famille h3 { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.famille h3 .ic { color: var(--orange); width: 18px; height: 18px; }
.tarif { display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.tarif:hover { transform: translateY(-3px); box-shadow: var(--shadow-fort); }
.tarif::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.tarif strong { font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.tarif .prix { font-family: var(--display); font-size: 1.6rem; font-weight: 900; font-variant-numeric: tabular-nums; margin-top: 6px; }
.tarif .prix small { font-size: .55em; font-weight: 700; color: var(--ink-2); }
.tarif .periode { display: inline-flex; align-self: flex-start; font-size: .76rem; font-weight: 700; color: var(--orange); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; }
.etapes { counter-reset: e; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding: 0; margin: 0; list-style: none; }
.etapes li { counter-increment: e; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.etapes li::before { content: counter(e); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--grad); color: #fff;
  font-family: var(--display); font-weight: 900; font-style: italic; margin-bottom: 12px; }
.etapes strong { display: block; font-family: var(--display); font-weight: 800; margin-bottom: 4px; }
.pied-site { background: var(--noir); color: #a5a5ae; padding: 28px 0; margin-top: 56px; font-size: .86rem; }
.pied-site .container { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }

/* Écrans d'authentification : panneau sombre + formulaire */
.auth { display: grid; min-height: 100dvh; background: var(--surface); }
.auth-visuel { position: relative; overflow: hidden; background: var(--noir); color: #fff; padding: 28px 24px 44px; isolation: isolate; }
.auth-visuel::before { content: ""; position: absolute; z-index: -1; width: 520px; aspect-ratio: 1; left: -160px; bottom: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(247,129,31,.6), rgba(239,79,23,.15) 50%, transparent 70%); }
.auth-visuel::after { content: ""; position: absolute; z-index: -1; right: -60px; top: 0; bottom: 0; width: 140px; background: var(--grad); transform: skewX(-8deg);
  opacity: .95; display: none; }
.auth-visuel h2 { font-style: italic; font-weight: 900; font-size: clamp(1.4rem, 3.4vw, 2.2rem); text-transform: uppercase; margin: 28px 0 10px; }
.auth-visuel h2 .tag { display: inline-block; background: var(--grad); padding: 0 .3em; transform: skewX(-8deg); }
.auth-visuel p { color: #d6d6dd; max-width: 34ch; }
.auth-visuel .devise { font-family: var(--display); font-style: italic; font-weight: 700; color: #fff; margin-top: 18px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 32px 20px 48px; }
.auth-form > div { width: 100%; max-width: 440px; }
.auth-form h1 { font-size: 1.6rem; margin-bottom: 4px; }
.auth-form .sous-titre { color: var(--ink-2); margin-bottom: 24px; }
.separateur { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: .82rem; margin: 18px 0; }
.separateur::before, .separateur::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.mini-logo { margin-bottom: 26px; display: inline-flex; }
@media (min-width: 900px) {
  .auth { grid-template-columns: 1fr 1fr; }
  .auth-visuel { display: flex; flex-direction: column; justify-content: center; padding: 56px 64px; }
  .auth-visuel::after { display: block; }
  .auth-form { padding: 48px; }
  .auth-form .mini-logo { display: none; }
}
@media (max-width: 899px) { .auth-visuel .masquer-mobile { display: none; } }

/* --------------------------------------------------------------- Espace exposant */
.accueil-exposant { background: var(--noir); color: #fff; border-radius: 0 0 28px 28px; padding: 26px 0 30px; position: relative; overflow: hidden; isolation: isolate; }
.accueil-exposant::before { content: ""; position: absolute; z-index: -1; width: 480px; aspect-ratio: 1; right: -140px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(247,129,31,.5), transparent 65%); }
.accueil-exposant h1 { font-style: italic; font-weight: 900; margin: 0; }
.accueil-exposant .muted { color: #bdbdc6; }
.carte-orange { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--grad); color: #fff; border-radius: var(--radius);
  padding: 18px 20px; text-decoration: none; box-shadow: var(--ombre-orange); }
.carte-orange strong { font-family: var(--display); font-weight: 800; font-size: 1.05rem; display: block; }
.carte-orange span { font-size: .88rem; opacity: .92; }
.carte-orange .rond { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--orange); display: grid; place-items: center; flex: none; }
.tuiles { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .tuiles { grid-template-columns: repeat(4, 1fr); } }
.tuile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; min-height: 112px; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9rem;
  box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.tuile:hover { transform: translateY(-2px); border-color: #fbd0b8; }
.tuile .ic { width: 28px; height: 28px; color: var(--orange); }
.logo-apercu { width: 64px; height: 64px; object-fit: contain; border-radius: 14px; background: #fff; padding: 4px; flex: none; }

.solde { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.solde .reste .value { color: var(--orange); }
.liste-demandes { display: grid; gap: 12px; }
.demande-carte { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.demande-carte:hover { border-color: #fbd0b8; transform: translateY(-1px); }
.demande-carte .numero { font-family: var(--display); font-weight: 800; }
.progression { height: 8px; border-radius: 99px; background: var(--paper); overflow: hidden; margin-top: 12px; }
.progression > span { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.dl dt { color: var(--ink-2); font-size: .9rem; }
.dl dd { margin: 0; font-weight: 600; }
.vide { text-align: center; padding: 40px 16px; color: var(--ink-2); }
.vide .ic { width: 40px; height: 40px; color: var(--orange); margin: 0 auto 10px; }

/* Choix de catégorie */
.choix { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.choix label { position: relative; display: block; padding: 16px 16px 16px 46px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--surface); cursor: pointer; font-weight: 500; transition: border-color .15s, background .15s; }
.choix label:hover { border-color: #f7c4a6; }
.choix input { position: absolute; left: 16px; top: 18px; margin: 0; }
.choix label:has(input:checked) { border-color: var(--orange); background: var(--accent-soft); box-shadow: 0 0 0 3px rgba(239,79,23,.12); }
.choix strong { display: block; font-family: var(--display); font-weight: 800; }
.total { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-radius: var(--radius); background: var(--noir); color: #fff; }
.total .value { font-family: var(--display); font-size: 1.5rem; font-weight: 900; font-variant-numeric: tabular-nums; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.quantite { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.quantite input { width: 90px; text-align: center; margin: 0; font-weight: 800; font-size: 1.1rem; }
.quantite button { width: 46px; height: 46px; font-size: 1.3rem; padding: 0; }
.contrat { max-height: 50vh; overflow-y: auto; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fafafb; font-size: .93rem; }

/* --------------------------------------------------------------- Administration : composants */
.filtres { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }
.filtres label { font-size: .82rem; }
.filtres input, .filtres select { padding: 10px 12px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.barre { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.barre > span { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.justif { max-height: 380px; width: 100%; object-fit: contain; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.attente-carte { display: grid; gap: 20px; }
@media (min-width: 860px) { .attente-carte { grid-template-columns: 1fr 1.1fr; } }
.onglets { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; overflow-x: auto; width: fit-content; max-width: 100%; }
.onglets button { background: none; border: 0; padding: 9px 16px; font: inherit; font-weight: 600; font-size: .9rem; color: var(--ink-2); cursor: pointer; border-radius: 9px; white-space: nowrap; }
.onglets button[aria-selected="true"] { background: var(--noir); color: #fff; }

/* Fenêtres modales */
.dialogue { border: 0; border-radius: 18px; padding: 26px; width: min(580px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; box-shadow: var(--shadow-fort); }
.dialogue::backdrop { background: rgba(15, 15, 17, .55); backdrop-filter: blur(2px); }
.dialogue h2 { font-size: 1.25rem; }

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

/* Ajustements accueil */
.vitrine .dates { border-radius: 14px; }
@media (max-width: 760px) { .vitrine .logo-hero { display: none; } .vitrine .container { padding-top: 28px; } }

/* --------------------------------------------------------------- Photos du marché */
.vitrine { background: linear-gradient(95deg, rgba(15,15,17,.96) 0%, rgba(15,15,17,.86) 42%, rgba(15,15,17,.45) 100%),
  url(/assets/img/site/marche-aerien.jpg) center 40% / cover no-repeat, var(--noir); }
@media (max-width: 760px) { .vitrine { background: linear-gradient(180deg, rgba(15,15,17,.80), rgba(15,15,17,.94)),
  url(/assets/img/site/marche-aerien.jpg) center / cover no-repeat, var(--noir); } }
.vitrine::before { opacity: .55; }
.auth-visuel { background: linear-gradient(160deg, rgba(15,15,17,.93) 10%, rgba(15,15,17,.72) 100%),
  url(/assets/img/site/marche-nuit.jpg) center / cover no-repeat, var(--noir); }
.accueil-exposant { background: linear-gradient(100deg, rgba(15,15,17,.95) 30%, rgba(15,15,17,.78)),
  url(/assets/img/site/allees.jpg) center 35% / cover no-repeat, var(--noir); }

.galerie { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.galerie figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--noir-2, #1b1b1f); box-shadow: var(--shadow); }
.galerie img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.galerie figure:hover img { transform: scale(1.05); }
.galerie figcaption { position: absolute; inset: auto 0 0 0; padding: 28px 14px 12px; color: #fff; font-family: var(--display); font-weight: 800; font-style: italic;
  font-size: .95rem; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.galerie figcaption::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--grad); margin-bottom: 6px; }
@media (min-width: 860px) {
  .galerie { grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: repeat(2, 200px); }
  .galerie figure { aspect-ratio: auto; }
  .galerie figure:first-child { grid-row: span 2; }
}
@media (max-width: 859px) { .galerie figure:first-child { grid-column: span 2; aspect-ratio: 16 / 9; } }

/* --------------------------------------------------------------- Application installable */
.installer-app { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: max(18px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 14px 12px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--noir); color: #fff; font: 700 .92rem var(--display, inherit); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.installer-app .ic { width: 18px; height: 18px; color: var(--orange-2); }
.installer-app .fermer { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--noir-3); font-size: 1rem; line-height: 1; }
.exposant .installer-app { bottom: calc(84px + env(safe-area-inset-bottom)); }
