/* ---- fonts.css ---- */
/* ==========================================================================
   OBTURA — Polices hébergées sur le site (aucun appel à Google : RGPD)
   Fichiers woff2 « variables » (une seule taille de fichier pour toutes les graisses),
   licence SIL Open Font License 1.1.
   ========================================================================== */
@font-face {
  font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/hanken-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/hanken-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Red Hat Mono'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(../fonts/red-hat-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Red Hat Mono'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(../fonts/red-hat-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Italiana'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/italiana-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- base.css ---- */
/* ==========================================================================
   OBTURA — Socle commun (tokens, typo, en-têtes, composants)
   Univers « lookbook » : fond os mat, encre, angles droits, filets fins,
   grande didone pour les titres, grotesque pour le reste.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Couleurs */
  --bone: #F4F4F1;          /* fond */
  --paper: #EAE9E5;         /* surfaces */
  --stone: #B9B8B1;         /* filets marqués, désactivé */
  --ink: #111111;
  --ink-soft: rgba(17, 17, 17, 0.62);
  --ink-faint: rgba(17, 17, 17, 0.14);
  --line: rgba(17, 17, 17, 0.16);
  --accent: #24427A;        /* bleu cyanotype : seule couleur de la marque */
  --success: #2F6B4A;
  --danger: #A3352B;
  --warn: #9A6A12;
  --viewer-bg: #0E0E0D;

  /* Alias historiques (utilisés dans les autres feuilles et le JS) */
  --cream: var(--bone);
  --cream-light: var(--bone);
  --cream-deep: var(--paper);
  --blue: var(--accent);
  --blue-soft: var(--stone);
  --blue-mist: var(--paper);
  --glass-bg: var(--bone);
  --glass-bg-strong: var(--bone);
  --glass-border: var(--line);
  --glass-blur: none;
  --shadow-soft: none;
  --shadow-lift: 0 18px 50px rgba(17, 17, 17, 0.12);

  /* Typographie */
  --font-display: 'Italiana', 'Didot', 'Bodoni 72', serif;
  --font-title: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-nav: 'Red Hat Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Formes : angles droits partout */
  --radius-s: 0;
  --radius-m: 0;
  --radius-l: 0;
  --radius-pill: 0;

  /* Mouvement */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.2s var(--ease);
  --t: 0.5s var(--ease);

  /* Mise en page */
  --page-max: 1440px;
  --gutter: clamp(16px, 4vw, 56px);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background-color: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }

::selection { background: var(--ink); color: var(--bone); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
html { scrollbar-color: var(--stone) transparent; scrollbar-width: thin; }

[hidden] { display: none !important; }

.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;
}

/* ---------- 3. Typographie ---------- */
.title-xl, .title-l { font-family: var(--font-display); font-weight: 400; line-height: 0.95; letter-spacing: -0.01em; text-wrap: balance; }
.title-xl { font-size: clamp(54px, 8.4vw, 132px); text-transform: uppercase; }
.title-l  { font-size: clamp(42px, 5.6vw, 84px); }
.title-m, .title-s { font-family: var(--font-title); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.title-m  { font-size: clamp(24px, 2.4vw, 32px); }
.title-s  { font-size: 20px; }

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

.eyebrow {
  font-family: var(--font-nav);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.lead { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; color: var(--ink-soft); max-width: 52ch; }

/* ---------- 4. Layout ---------- */
.page { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter) 120px; }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding: clamp(40px, 6vw, 88px) 0 clamp(28px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(28px, 3vw, 44px);
}
.page-head .lead { margin-top: 18px; }
.page-head .eyebrow { display: block; margin-bottom: 18px; }

.section { padding: clamp(64px, 8vw, 120px) 0 0; }
.stack > * + * { margin-top: 16px; }

/* ---------- 5a. Barre du site (plateforme) ---------- */
.site-bar {
  position: sticky; top: 0; z-index: 900;
  max-width: none; padding: 0 var(--gutter);
  background: var(--bone);
  border-bottom: 1px solid var(--line);
}
.site-bar > nav { max-width: var(--page-max); margin: 0 auto; }
.site-bar .nav-grid {
  display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px);
  height: 68px; list-style: none;
}
.site-bar .nav-item { display: flex; }
.site-bar .nav-item.logo { order: -1; margin-right: auto; }
.site-bar .nav-link {
  font-family: var(--font-nav); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), opacity var(--t-fast);
}
.site-bar .nav-link:hover { border-bottom-color: var(--ink); }
.site-bar .nav-link[aria-current="page"] { border-bottom-color: var(--ink); }
.site-bar .nav-item.logo .nav-link {
  font-family: var(--font-display); font-size: 30px; letter-spacing: 0.04em; text-transform: uppercase;
  border: 0; padding: 0; line-height: 1;
}
@media (max-width: 640px) {
  .site-bar .nav-grid { height: auto; flex-wrap: wrap; gap: 4px 18px; padding: 14px 0 10px; }
  .site-bar .nav-item.logo { flex-basis: 100%; margin: 0 0 6px; }
  .site-bar .nav-item.logo .nav-link { font-size: 28px; }
  .site-bar .nav-link { font-size: 11px; letter-spacing: 0.1em; }
}

/* ---------- 5b. En-tête en croix (boutiques, style PICX) ---------- */
.header-container:not(.site-bar) {
  width: 100%;
  padding: clamp(28px, 4vw, 52px) 20px clamp(20px, 3vw, 36px);
  display: flex; justify-content: center;
  overflow-x: hidden;
}
.header-container:not(.site-bar) > nav { display: flex; justify-content: center; width: 100%; }

.header-container:not(.site-bar) .nav-grid {
  display: flex; align-items: stretch; list-style: none; position: relative;
}
.header-container:not(.site-bar) .nav-grid::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background-color: var(--ink); z-index: 1;
}
.header-container:not(.site-bar) .nav-item {
  display: flex; align-items: center; position: relative; padding: 0 clamp(20px, 2.6vw, 40px) 14px;
}
.header-container:not(.site-bar) .nav-item:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: -8px; bottom: -10px;
  width: 1px; background-color: var(--ink); z-index: 2;
}
.header-container:not(.site-bar) .nav-link {
  position: relative; z-index: 3;
  font-family: var(--font-nav); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  line-height: 1; color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: opacity var(--t-fast);
}
.header-container:not(.site-bar) .nav-link:hover { opacity: 0.5; }
.header-container:not(.site-bar) .nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.header-container:not(.site-bar) .nav-item.logo .nav-link {
  font-family: var(--font-display); font-size: clamp(44px, 5vw, 76px);
  letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none;
}

/* Écran étroit : le nom au-dessus, les quatre pages sur une ligne croisée */
@media (max-width: 1100px) {
  .header-container:not(.site-bar) .nav-grid { flex-wrap: wrap; width: 100%; max-width: 640px; }
  .header-container:not(.site-bar) .nav-grid::after { display: none; }
  .header-container:not(.site-bar) .nav-item { flex: 1 1 0; justify-content: center; padding: 14px 4px; border-top: 1px solid var(--ink); }
  .header-container:not(.site-bar) .nav-item::after { display: none; }
  .header-container:not(.site-bar) .nav-item:not(.logo) + .nav-item:not(.logo) { border-left: 1px solid var(--ink); }
  .header-container:not(.site-bar) .nav-item.logo { order: -1; flex-basis: 100%; border-top: 0; padding: 0 0 16px; }
  .header-container:not(.site-bar) .nav-item.logo + .nav-item { border-left: 1px solid var(--ink); }
  .header-container:not(.site-bar) .nav-item.logo .nav-link { font-size: clamp(40px, 11vw, 64px); }
  .header-container:not(.site-bar) .nav-link { font-size: 11px; letter-spacing: 0.1em; }
}
@media (max-width: 480px) {
  .header-container:not(.site-bar) .nav-item:not(.logo) { flex-basis: 50%; }
  .header-container:not(.site-bar) .nav-item.logo + .nav-item { border-left: 0; }
}

/* ---------- 6. Pastille compte flottante ---------- */
.account-pill {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  display: flex; align-items: stretch;
  background: var(--ink); color: var(--bone);
  font-family: var(--font-nav); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
}
.account-pill__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 16px; text-decoration: none;
  transition: background var(--t-fast);
}
.account-pill__chip + .account-pill__chip { border-left: 1px solid rgba(244, 244, 241, 0.2); }
.account-pill__chip:hover { background: rgba(244, 244, 241, 0.12); }
.account-pill__chip svg { width: 16px; height: 16px; }
.account-pill__count {
  min-width: 20px; height: 20px; padding: 0 5px;
  display: inline-grid; place-items: center;
  background: var(--bone); color: var(--ink); font-size: 11px; letter-spacing: 0;
}
.account-pill.is-bumped { animation: bump 0.45s var(--ease); }
.account-pill__count--hot { background: var(--bone); color: var(--ink); }

/* ---------- Barre admin (site public, compte admin connecté) ---------- */
.admin-strip {
  position: sticky; top: 0; z-index: 950;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 8px var(--gutter);
  background: var(--ink); color: var(--bone);
  font-family: var(--font-nav); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
}
.admin-strip__who { display: inline-flex; align-items: center; gap: 8px; opacity: 0.8; }
.admin-strip svg { width: 14px; height: 14px; }
.admin-strip nav { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-strip a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; color: var(--bone); text-decoration: none; transition: background var(--t-fast); }
.admin-strip a:hover { background: rgba(244, 244, 241, 0.12); }
.admin-strip a b { min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; background: rgba(244, 244, 241, 0.16); font-weight: 400; }
.admin-strip a.is-hot b { background: var(--danger); color: #fff; }
.admin-strip__open { background: var(--bone); color: var(--ink) !important; }
.admin-strip__open:hover { background: #fff !important; }

@keyframes bump { 40% { transform: translateY(-3px); } }

/* ---------- 7. Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 14px 26px;
  border-radius: 0;
  font-family: var(--font-nav); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  line-height: 1.15; text-decoration: none; white-space: nowrap; vertical-align: middle;
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), opacity var(--t-fast);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }

.btn--primary { background: var(--ink); color: var(--bone); }
.btn--primary:hover { background: var(--accent); }

.btn--soft { background: var(--paper); color: var(--ink); }
.btn--soft:hover { background: var(--ink); color: var(--bone); }

.btn--ghost, .btn--glass { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ghost:hover, .btn--glass:hover { background: var(--ink); color: var(--bone); }

/* Lien texte souligné (bouton secondaire de l'univers) */
.btn--link { min-height: 0; padding: 4px 0; box-shadow: inset 0 -1px 0 var(--ink); }
.btn--link:hover { box-shadow: inset 0 -2px 0 var(--ink); }

.btn--block { width: 100%; }
.btn--xl { min-height: 56px; padding: 18px 34px; font-size: 13px; }

.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }

.btn[data-state="loading"] { pointer-events: none; color: transparent !important; position: relative; }
.btn[data-state="loading"]::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--bone); border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
.btn--ghost[data-state="loading"]::after,
.btn--glass[data-state="loading"]::after,
.btn--soft[data-state="loading"]::after { border-color: var(--ink); border-right-color: transparent; }

@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px;
  transition: background var(--t-fast);
}
.icon-btn:hover { background: var(--paper); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- 8. Surfaces (ex-« verre ») : filet fin, aucun flou ---------- */
.glass {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
}
.card { padding: clamp(22px, 2.6vw, 36px); }
.card--link { text-decoration: none; display: block; transition: border-color var(--t-fast); }
.card--link:hover { border-color: var(--ink); }

/* ---------- 9. Formulaires ---------- */
.form { display: grid; gap: 22px; }
.form-row { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.field { display: grid; gap: 8px; }
.field label, .field .label {
  font-family: var(--font-nav); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
}

.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-body); font-size: 16px;
  caret-color: var(--accent);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.input::placeholder { color: var(--ink-soft); }
.input:hover { border-color: var(--stone); }
.input:focus { outline: none; border-color: var(--ink); background: #FAFAF8; }
.input[aria-invalid="true"] { border-color: var(--danger); }
textarea.input { min-height: 150px; resize: vertical; line-height: 1.55; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23111111' stroke-width='1.2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }

.field-hint { font-size: 14px; color: var(--ink-soft); }
.field-error { font-size: 14px; color: var(--danger); }

/* Onglets : texte en capitales, trait sous l'actif */
.segmented {
  display: inline-flex; gap: 24px; padding: 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-nav); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  overflow-x: auto; max-width: 100%; scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented button, .segmented a {
  padding: 12px 0; margin-bottom: -1px;
  white-space: nowrap; text-decoration: none; color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.segmented button:hover, .segmented a:hover { color: var(--ink); }
.segmented [aria-selected="true"], .segmented [aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- 10. Badges & états ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px;
  font-family: var(--font-nav); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--line); background: var(--bone); color: var(--ink);
}
.badge svg { width: 12px; height: 12px; }
.badge--blue { border-color: var(--accent); color: var(--accent); }
.badge--ink { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.badge--success { border-color: var(--success); color: var(--success); }

.skeleton {
  background: linear-gradient(100deg, var(--paper) 30%, var(--bone) 50%, var(--paper) 70%);
  background-size: 300% 100%;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.empty-state { padding: 72px 24px; text-align: center; color: var(--ink-soft); border: 1px solid var(--line); }
.empty-state .title-s { color: var(--ink); margin-bottom: 8px; }

/* ---------- 11. Toasts ---------- */
.toast-region {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%);
  z-index: 3000; display: grid; gap: 8px; justify-items: center;
  pointer-events: none; width: min(92vw, 460px);
}
.toast {
  padding: 14px 20px;
  background: var(--ink); color: var(--bone);
  font-family: var(--font-nav); font-size: 12px; letter-spacing: 0.06em;
  animation: toast-in 0.4s var(--ease);
}
.toast.is-leaving { animation: toast-out 0.3s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

.fatal-bar {
  position: fixed; left: 16px; right: 16px; top: 16px; z-index: 5000;
  display: grid; gap: 4px; padding: 16px 20px;
  background: var(--danger); color: #fff;
  font-family: var(--font-nav); font-size: 13px; line-height: 1.5;
}
.fatal-bar a { color: #fff; font-weight: 500; }

/* ---------- 12. Dialogue ---------- */
.dialog {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-items: center; padding: 16px;
  background: rgba(17, 17, 17, 0.46);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}
.dialog.is-open { opacity: 1; visibility: visible; }
.dialog__panel {
  width: min(100%, 500px);
  max-height: calc(100vh - 32px); overflow: auto;
  background: var(--bone);
  padding: clamp(26px, 4vw, 44px);
  position: relative;
  transform: translateY(12px);
  transition: transform var(--t);
}
.dialog.is-open .dialog__panel { transform: none; }
.dialog__close { position: absolute; top: 10px; right: 10px; z-index: 1; }

/* ---------- 13. Pied de page ---------- */
.site-footer {
  max-width: var(--page-max); margin: 0 auto;
  padding: 0 var(--gutter) 100px;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 28px 40px;
  font-family: var(--font-nav); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
}
.site-footer__logo {
  grid-column: 1 / -1;
  display: block; padding: 40px 0 28px; border-top: 1px solid var(--ink);
  font-family: var(--font-display); font-size: clamp(64px, 15vw, 220px); line-height: 0.85;
  letter-spacing: 0.01em; text-transform: uppercase; text-decoration: none; color: var(--ink);
}
.site-footer nav { display: flex; gap: 10px 26px; flex-wrap: wrap; }
.site-footer a, .site-footer .lang-switch { text-decoration: none; color: var(--ink-soft); }
.site-footer a:hover, .site-footer .lang-switch:hover { color: var(--ink); }
@media (max-width: 760px) { .site-footer { grid-template-columns: 1fr; } }

/* ---------- 14. Accessibilité mouvement ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Menu : STUDIO masqué tant qu'on n'est pas connecté */
html:not([data-auth="in"]) .nav-item:has(> [data-nav="studio"]) { display: none; }

/* Menu : « Se connecter / Créer un compte » à la place de « Compte » (visiteur non connecté) */
.nav-auth { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.nav-auth > span { opacity: .45; }
/* ---- pages.css ---- */
/* ==========================================================================
   PIX — Styles spécifiques aux pages
   (Accueil, Événements, À propos, Contact, Panier, Contrat)
   ========================================================================== */

/* ==========================================================================
   ACCUEIL
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: 32px 0 24px;
}

.hero__title { font-size: clamp(48px, 6vw, 100px); }
.hero__title em { font-style: italic; color: var(--blue); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, clamp(90px, 11vw, 170px));
  gap: 10px;
}
.hero__mosaic .tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.hero__mosaic .tile:nth-child(4) { grid-column: span 2; }
.hero__mosaic .tile[data-orientation] { grid-column: auto; grid-row: auto; }
.hero__mosaic .tile:nth-child(1)[data-orientation] { grid-column: span 2; grid-row: span 2; }
.hero__mosaic .tile:nth-child(4)[data-orientation] { grid-column: span 2; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.feature { display: flex; flex-direction: column; gap: 14px; min-height: 260px; }
.feature__icon {
  width: 52px; height: 52px; border-radius: 0;
  display: grid; place-items: center;
  background: var(--ink); color: var(--cream);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature__big { font-family: var(--font-title); font-size: 56px; line-height: 1; margin-top: auto; }
.feature p { color: var(--ink-soft); font-size: 18px; line-height: 1.4; }

.cta-band {
  margin-top: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-l);
  background: var(--ink); color: var(--cream);
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px;
  border-radius: 50%; background: rgba(124, 144, 173, 0.35); filter: blur(60px);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band .btn--primary { background: var(--cream); color: var(--ink); }
.cta-band .btn--primary:hover { background: #fff; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
}

/* ==========================================================================
   ÉVÉNEMENTS
   ========================================================================== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: 18px;
}

.event-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3.2;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--cream-deep);
  text-align: left;
  width: 100%;
  isolation: isolate;
  box-shadow: var(--shadow-soft);
  transition: transform var(--t), box-shadow var(--t);
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.event-card__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter var(--t); }
.event-card:hover .event-card__cover { transform: scale(1.04); }
.event-card[data-visibility="private"] .event-card__cover { filter: blur(14px) saturate(110%); transform: scale(1.1); }

.event-card__info {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius-m);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: blur(24px) saturate(140%);
}
.event-card__title { font-family: var(--font-title); font-size: 30px; line-height: 1.05; }
.event-card__meta { font-size: 16px; color: var(--ink-soft); margin-top: 4px; }
.event-card__arrow {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--cream);
}
.event-card__arrow svg { width: 20px; height: 20px; }
.event-card__flag { position: absolute; top: 14px; left: 14px; z-index: 1; }

.event-card.skeleton { box-shadow: none; }

/* Dialogue de déverrouillage */
.unlock-cover { width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius-m); margin-bottom: 20px; filter: blur(6px); }
.unlock-tabs { margin: 18px 0 22px; }

/* ==========================================================================
   À PROPOS
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.about-card { display: flex; flex-direction: column; gap: 14px; }
.about-card--wide { grid-column: span 2; }
.about-card--tall { grid-row: span 2; }
.about-card p { color: var(--ink-soft); font-size: 20px; line-height: 1.5; }
.about-card .feature__icon { margin-bottom: 6px; }

.about-photo {
  position: relative; border-radius: var(--radius-l); overflow: hidden; min-height: 320px;
  background: var(--cream-deep);
}
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-photo figcaption { position: absolute; left: 12px; bottom: 12px; }

.gear-list { list-style: none; display: grid; gap: 10px; margin-top: 4px; }
.gear-list li {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 12px 16px; border-radius: var(--radius-s); background: var(--paper);
}
.gear-list strong { font-family: var(--font-title); font-weight: 400; font-size: 22px; }
.gear-list span { color: var(--ink-soft); font-size: 16px; text-align: right; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-card--wide { grid-column: auto; }
  .about-card--tall { grid-row: auto; }
}

/* ==========================================================================
   CONTACT & DEVIS
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.contact-aside { display: grid; gap: 16px; position: sticky; top: 24px; }

.estimate__lines { display: grid; gap: 8px; margin: 18px 0; }
.estimate__line { display: flex; justify-content: space-between; gap: 12px; font-size: 18px; }
.estimate__line span:first-child { color: var(--ink-soft); }
.estimate__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 2px solid var(--ink); }
.estimate__total strong { font-family: var(--font-title); font-weight: 400; font-size: 44px; line-height: 1; }

.token-callout {
  display: flex; gap: 14px; align-items: center;
  padding: 16px 18px; border-radius: var(--radius-m);
  background: var(--blue-mist);
}
.token-callout svg { width: 28px; height: 28px; flex: none; }
.token-callout strong { font-family: var(--font-title); font-weight: 400; font-size: 26px; }

.steps { list-style: none; counter-reset: step; display: grid; gap: 16px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--cream);
  font-family: var(--font-nav); font-size: 14px;
}
.steps strong { font-family: var(--font-title); font-weight: 400; font-size: 21px; line-height: 1.2; }
.steps span { color: var(--ink-soft); font-size: 17px; }

.contact-list { list-style: none; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list svg { width: 20px; height: 20px; color: var(--blue); flex: none; }

.range-row { display: flex; align-items: center; gap: 16px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--ink); }
.range-row output { min-width: 3ch; font-family: var(--font-title); font-size: 30px; text-align: right; }

.success-panel { text-align: center; padding: 48px 24px; }
.success-panel .feature__icon { margin: 0 auto 18px; background: var(--success); }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
}

/* ==========================================================================
   MON ESPACE (Panier / Jetons / Photos / Retouches / Contrats)
   ========================================================================== */
.tabs-bar { margin-bottom: 28px; }

/* ---------- Connexion ---------- */
.auth-page { display: grid; place-items: start center; padding-top: 24px; }
.auth-card { width: min(100%, 480px); display: grid; gap: 18px; }
.auth-tabs { justify-self: start; }
.auth-done { font-size: 19px; }

.login-prompt { display: grid; gap: 10px; justify-items: center; text-align: center; }
.login-prompt .actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

.account-card {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 12px; border-radius: var(--radius-m);
}
.account-card__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--cream);
}
.account-card__avatar svg { width: 22px; height: 22px; }
.account-card__who { display: grid; line-height: 1.1; }
.account-card__who strong { font-family: var(--font-title); font-weight: 400; font-size: 24px; }
.account-card__select { width: auto; padding: 10px 40px 10px 14px; font-size: 16px; }
.account-card .btn { padding: 10px 14px; font-size: 13px; }

.client-alerts { display: grid; gap: 8px; margin-bottom: 20px; }
.client-alert {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius-m);
  background: var(--ink); color: var(--cream); text-decoration: none;
  font-size: 18px; transition: transform var(--t-fast);
}
.client-alert:hover { transform: translateY(-2px); }
.client-alert span { flex: 1; }
.client-alert svg { width: 20px; height: 20px; flex: none; }
.client-alert--soft { background: var(--paper); color: var(--ink); border: 1px solid var(--glass-border); }

.cart-notice {
  display: grid; gap: 4px;
  margin-bottom: 16px; padding: 16px 20px;
  border-radius: var(--radius-m);
  background: rgba(162, 67, 59, 0.1);
  border: 1px solid rgba(162, 67, 59, 0.25);
  color: var(--ink);
}
.cart-notice strong { font-family: var(--font-title); font-weight: 400; font-size: 22px; color: var(--danger); }

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 20px; align-items: start;
}

.line-list { display: grid; gap: 10px; }
.line-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto auto;
  gap: 16px; align-items: center;
  padding: 10px; padding-right: 14px;
  border-radius: var(--radius-m);
  background: var(--paper);
}
.line-item__thumb { position: relative; width: 92px; height: 68px; border-radius: 0; overflow: hidden; background: var(--cream-deep); }
.line-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-item__name { font-family: var(--font-title); font-size: 22px; line-height: 1.1; word-break: break-all; }
.line-item__sub { font-size: 16px; color: var(--ink-soft); }
.line-item__price { font-family: var(--font-title); font-size: 24px; }

.summary { position: sticky; top: 24px; display: grid; gap: 14px; }
.summary__row { display: flex; justify-content: space-between; font-size: 19px; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 2px solid var(--ink); }
.summary__total strong { font-family: var(--font-title); font-weight: 400; font-size: 44px; line-height: 1; }
.summary__secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; color: var(--ink-soft); }
.summary__secure svg { width: 16px; height: 16px; }

.wallet {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; align-items: stretch;
}
.wallet__balance { background: var(--ink); color: var(--cream); border: none; display: flex; flex-direction: column; gap: 10px; }
.wallet__balance .eyebrow { color: var(--blue-soft); }
.wallet__number { font-family: var(--font-title); font-size: clamp(80px, 10vw, 140px); line-height: 0.9; }
.wallet__rule { color: rgba(244, 244, 241, 0.7); font-size: 18px; margin-top: auto; }

.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pack {
  position: relative;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  padding: 22px; border-radius: var(--radius-m);
  background: var(--paper);
  border: 1.5px solid transparent;
  text-align: left;
  transition: border-color var(--t-fast), transform var(--t-fast), background var(--t-fast);
}
.pack:hover { border-color: var(--ink); transform: translateY(-2px); background: #fff; }
.pack__tokens { font-family: var(--font-title); font-size: 40px; line-height: 1; }
.pack__price { font-size: 19px; color: var(--ink-soft); }
.pack .badge { position: absolute; top: 14px; right: 14px; }
.pack[data-state="loading"] { opacity: 0.5; pointer-events: none; }

.history { list-style: none; display: grid; }
.history li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ink-faint); font-size: 17px; }
.history li:last-child { border-bottom: none; }
.history .delta-plus { color: var(--success); font-weight: 700; }
.history .delta-minus { color: var(--danger); font-weight: 700; }

.owned-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.owned-card { border-radius: var(--radius-m); overflow: hidden; background: var(--paper); }
.owned-card__img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; background: var(--cream-deep); }
.owned-card__body { padding: 14px 16px 16px; display: grid; gap: 10px; }
.owned-card__name { font-family: var(--font-title); font-size: 20px; }
.owned-card__actions { display: flex; gap: 8px; }
.owned-card__actions .btn { padding: 10px 14px; font-size: 13px; flex: 1; }

.status-dot { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-nav); font-size: 13px; }
.status-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-soft); }
.status-dot[data-status="in_progress"]::before { background: #C79A3B; }
.status-dot[data-status="delivered"]::before, .status-dot[data-status="signed"]::before { background: var(--success); }
.status-dot[data-status="rejected"]::before, .status-dot[data-status="declined"]::before { background: var(--danger); }
.status-dot[data-status="requested"]::before, .status-dot[data-status="sent"]::before { background: #C79A3B; }

.contract-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center;
  padding: 18px 20px; border-radius: var(--radius-m); background: var(--paper);
  text-decoration: none;
}
.contract-row:hover { background: #fff; }

@media (max-width: 900px) {
  .cart-layout, .wallet { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 560px) {
  .line-item { grid-template-columns: 72px minmax(0, 1fr) auto; }
  .line-item__thumb { width: 72px; height: 56px; }
  .line-item .icon-btn { grid-column: 3; grid-row: 1; }
  .line-item__price { grid-column: 2; font-size: 20px; }
  .packs { grid-template-columns: 1fr; }
  .contract-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CONTRAT / DEVIS
   ========================================================================== */
.contract-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }

.doc { background: #fff; border-radius: var(--radius-l); padding: clamp(24px, 5vw, 56px); box-shadow: var(--shadow-soft); }
.doc__head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
.doc__logo { font-family: var(--font-title); font-size: 56px; line-height: 1; }
.doc__parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px 0; font-size: 18px; }
.doc__parties h3 { font-family: var(--font-nav); font-weight: 400; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }

.doc-table { width: 100%; border-collapse: collapse; font-size: 18px; }
.doc-table th { text-align: left; font-family: var(--font-nav); font-weight: 400; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); padding: 10px 0; border-bottom: 1px solid var(--ink-faint); }
.doc-table td { padding: 12px 0; border-bottom: 1px solid var(--ink-faint); vertical-align: top; }
.doc-table .num { text-align: right; white-space: nowrap; padding-left: 12px; }
.doc-table tfoot td { border-bottom: none; font-weight: 700; }
.doc-table tfoot .grand { font-family: var(--font-title); font-weight: 400; font-size: 34px; }

.doc__note { margin-top: 24px; padding: 16px 18px; border-radius: var(--radius-m); background: var(--cream-light); font-size: 18px; white-space: pre-line; }
.doc__terms { margin-top: 28px; font-size: 16px; color: var(--ink-soft); display: grid; gap: 8px; }

.sign-panel { position: sticky; top: 24px; display: grid; gap: 16px; }
.sign-pad {
  position: relative; height: 180px;
  border-radius: var(--radius-m);
  background: #fff;
  border: 1.5px dashed var(--blue-soft);
  touch-action: none;
}
.sign-pad canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.sign-pad__hint { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-soft); pointer-events: none; font-size: 18px; }
.sign-pad.has-ink .sign-pad__hint { display: none; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.35; }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }

.signed-stamp {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: var(--radius-pill);
  background: rgba(62, 115, 88, 0.14); color: var(--success);
  font-family: var(--font-nav); font-size: 14px;
}
.signed-stamp svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .contract-layout { grid-template-columns: 1fr; }
  .sign-panel { position: static; }
  .doc__parties { grid-template-columns: 1fr; }
}

/* ---------- Pages légales (Mentions, CGV, Confidentialité) ---------- */
.legal { max-width: 820px; padding: clamp(24px, 4vw, 48px); }
.legal h2 { font-family: var(--font-title); font-size: clamp(24px, 2.4vw, 30px); font-weight: 400; margin: 36px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-family: var(--font-nav); font-size: 15px; letter-spacing: .02em; margin: 20px 0 8px; }
.legal p, .legal li { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; margin: 8px 0; display: grid; gap: 6px; }
.legal a { color: var(--ink); }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 8px 0; }
.legal dt { font-family: var(--font-nav); font-size: 14px; color: var(--ink); padding-top: 3px; }
.legal dd { margin: 0; color: var(--ink-soft); font-size: 17px; }
.legal .legal__updated { margin-top: 36px; font-size: 14px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 24px; width: fit-content; max-width: 100%; }
@media (max-width: 480px) { .legal-nav { flex-wrap: nowrap; } .legal-nav a { padding-left: 11px; padding-right: 11px; font-size: 13px; white-space: nowrap; } }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 8px; } }

.checkout-consent { font-size: 13px; line-height: 1.45; margin-bottom: 14px; align-items: flex-start; }
.checkout-consent a { color: inherit; }
/* ---- pixify.css ---- */
/* ==========================================================================
   OBTURA — Styles propres à la plateforme (après base.css / pages.css)
   ========================================================================== */

/* ---------- Liens texte, pied de page ---------- */
.text-link { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { text-decoration-thickness: 2px; }
.lang-switch { background: none; border: 0; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink-soft); cursor: pointer; }
.lang-switch:hover { color: var(--ink); }

/* ==========================================================================
   ACCUEIL (lookbook)
   ========================================================================== */
.lb-hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  min-height: calc(100dvh - 69px);
  border-bottom: 1px solid var(--line);
}
.lb-hero__copy {
  display: flex; flex-direction: column; justify-content: center; gap: clamp(22px, 2.6vw, 34px);
  padding: clamp(40px, 6vw, 96px) clamp(16px, 4vw, 72px) clamp(40px, 5vw, 72px) max(var(--gutter), calc((100vw - var(--page-max)) / 2 + var(--gutter)));
}
.lb-hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(56px, 7.6vw, 124px); line-height: 0.92; letter-spacing: -0.005em;
  text-transform: uppercase; text-wrap: balance; max-width: 11ch;
}
.lb-hero__lead { font-size: clamp(16px, 1.25vw, 18px); color: var(--ink-soft); max-width: 44ch; }

.claim { display: grid; gap: 10px; max-width: 600px; }
.claim__label { font-family: var(--font-nav); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.claim__row { display: flex; align-items: stretch; border: 1px solid var(--ink); background: var(--bone); }
.claim__row:focus-within { outline: 1px solid var(--ink); }
.claim__prefix { display: inline-flex; align-items: center; padding: 0 2px 0 16px; font-family: var(--font-nav); font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.claim__input { flex: 1; min-width: 0; padding: 16px 12px 16px 0; border: 0; background: transparent; font-family: var(--font-nav); font-size: 14px; caret-color: var(--accent); }
.claim__input:focus { outline: none; }
.claim__input::placeholder { color: var(--ink-soft); }
.claim__btn { flex: none; }
.claim__note { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 520px) {
  .claim__row { flex-wrap: wrap; }
  .claim__btn { width: 100%; }
}

.lb-hero__media { position: relative; margin: 0; overflow: hidden; background: var(--paper); min-height: 420px; }
.lb-hero__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.03);
  transition: opacity 1.4s var(--ease), transform 7s linear;
}
.lb-hero__frame img.is-on { opacity: 1; transform: scale(1); }
.lb-hero__caption {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  padding: 10px 14px; background: var(--bone);
  font-family: var(--font-nav); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
}
.lb-hero__caption a { text-decoration: none; }
.lb-hero__caption a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .lb-hero { grid-template-columns: 1fr; min-height: 0; }
  .lb-hero__copy { padding: 48px var(--gutter) 40px; }
  .lb-hero__media { aspect-ratio: 4 / 5; min-height: 0; }
}

/* Rangée photo / texte */
.lb-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1.1fr) minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.lb-row__img { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper); }
.lb-row__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.lb-row__img:hover img { transform: scale(1.03); }
.lb-row__text {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(20px, 2.2vw, 34px); border-right: 1px solid var(--line);
}
.lb-row__text:last-child { border-right: 0; }
.lb-row__text h2 { font-family: var(--font-nav); font-weight: 500; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.lb-row__text p { font-size: 15px; color: var(--ink-soft); max-width: 26ch; }
@media (max-width: 1100px) { .lb-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lb-row__text { border-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .lb-row { grid-template-columns: 1fr; } .lb-row__img { aspect-ratio: 4 / 3; } }

/* Manifeste */
.lb-zero {
  max-width: var(--page-max); margin: 0 auto;
  padding: clamp(80px, 12vw, 180px) var(--gutter);
  display: grid; justify-items: center; text-align: center; gap: 28px;
}
.lb-zero__title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(60px, 12vw, 190px); line-height: 0.88; letter-spacing: -0.01em;
}
.lb-zero__text { max-width: 54ch; font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-soft); }

/* Aperçu de boutique */
.lb-preview {
  max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: center;
}
.lb-preview__copy { display: grid; gap: 22px; }
.lb-preview__url { font-family: var(--font-nav); font-size: 14px; color: var(--ink-soft); word-break: break-all; }
.lb-preview__url strong { color: var(--ink); font-weight: 500; }
.lb-preview__shop { border: 1px solid var(--line); padding: clamp(24px, 3vw, 44px); background: var(--bone); }
.mini-cross { list-style: none; display: flex; justify-content: center; align-items: stretch; position: relative; margin-bottom: 26px; }
.mini-cross::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); }
.mini-cross li {
  position: relative; display: flex; align-items: center; padding: 0 clamp(8px, 1.2vw, 18px) 8px;
  font-family: var(--font-nav); font-size: clamp(8px, 0.7vw, 10px); letter-spacing: 0.14em; white-space: nowrap;
}
.mini-cross li:not(:last-child)::after { content: ''; position: absolute; right: 0; top: -4px; bottom: -6px; width: 1px; background: var(--ink); }
.mini-cross__name { font-family: var(--font-display) !important; font-size: clamp(22px, 2.6vw, 38px) !important; letter-spacing: 0.02em !important; text-transform: uppercase; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; }
.mini-mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, clamp(90px, 10vw, 160px)); gap: 8px; }
.mini-mosaic span { overflow: hidden; background: var(--paper); }
.mini-mosaic span:first-child { grid-row: span 2; }
.mini-mosaic img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .lb-preview { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .mini-cross li:not(.mini-cross__name) { display: none; } .mini-cross::after { display: none; } }

/* Annuaire (accueil) + fin */
.lb-dir { max-width: var(--page-max); margin: 0 auto; padding: clamp(80px, 10vw, 150px) var(--gutter) 0; }
.lb-dir__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.lb-end {
  max-width: var(--page-max); margin: 0 auto; padding: clamp(90px, 12vw, 170px) var(--gutter);
  display: flex; justify-content: space-between; align-items: end; gap: 28px; flex-wrap: wrap;
}
.lb-end__title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(48px, 7vw, 110px); line-height: 0.92; }

/* Accueil : apparition douce à l'ouverture (déjà visible sans animation) */
@media (prefers-reduced-motion: no-preference) {
  .lb-hero__copy > * { animation: rise 1s var(--ease) both; }
  .lb-hero__copy > :nth-child(2) { animation-delay: 0.08s; }
  .lb-hero__copy > :nth-child(3) { animation-delay: 0.16s; }
  .lb-hero__media { animation: unveil 1.4s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes unveil { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }

/* ==========================================================================
   OFFRES
   ========================================================================== */
.billing-toggle { margin: 6px 0 32px; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); }
.plan { display: flex; flex-direction: column; gap: 18px; padding: clamp(22px, 2.2vw, 32px); border: 0 !important; border-right: 1px solid var(--line) !important; }
.plan:last-child { border-right: 0 !important; }
.plan--featured { background: var(--ink); color: var(--bone); outline: 0; }
.plan--featured .plan__name, .plan--featured .plan__price small, .plan--featured .plan__old, .plan--featured .plan__list li.is-off { color: rgba(244, 244, 241, 0.62); }
[data-theme="dark"] .plan--featured .plan__name, [data-theme="dark"] .plan--featured .plan__price small, [data-theme="dark"] .plan--featured .plan__old, [data-theme="dark"] .plan--featured .plan__list li.is-off { color: rgba(17, 17, 17, 0.6); }
.plan--featured .btn--primary { background: var(--bone); color: var(--ink); }
.plan--featured .btn--primary:hover { background: var(--paper); }
.plan__name { font-family: var(--font-nav); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.plan__price { font-family: var(--font-display); font-size: clamp(44px, 4vw, 60px); line-height: 1; min-height: 1.1em; }
.plan__price small { font-family: var(--font-nav); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-soft); margin-left: 6px; }
.plan__old { font-family: var(--font-nav); font-size: 16px; color: var(--ink-soft); text-decoration-thickness: 1px; margin-right: 6px; vertical-align: middle; }
.plan__list { list-style: none; display: grid; gap: 10px; font-size: 15px; flex: 1; padding-top: 18px; border-top: 1px solid rgba(127, 127, 127, 0.3); }
.plan__list li { display: flex; gap: 10px; align-items: baseline; }
.plan__list li::before { content: ''; flex: none; width: 10px; height: 1px; background: currentColor; transform: translateY(-4px); }
.plan__list li.is-off { color: var(--ink-soft); text-decoration: line-through; text-decoration-thickness: 1px; }
.plans-note { margin-top: 20px; color: var(--ink-soft); font-size: 14px; max-width: 70ch; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plan:nth-child(2) { border-right: 0 !important; } .plan:nth-child(-n+2) { border-bottom: 1px solid var(--line) !important; } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } .plan { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; } }

/* ---------- Champ adresse de boutique ---------- */
.slug-field { display: flex; align-items: stretch; }
.slug-field__prefix {
  display: inline-flex; align-items: center; padding: 0 12px;
  border: 1px solid var(--line); border-right: 0;
  background: var(--paper); color: var(--ink-soft); font-family: var(--font-nav); font-size: 13px; white-space: nowrap;
}
.slug-field .input { min-width: 0; font-family: var(--font-nav); font-size: 14px; }
.slug-status { font-size: 12px; font-family: var(--font-nav); letter-spacing: 0.06em; min-height: 1.3em; }
.slug-status[data-state="ok"] { color: var(--success); }
.slug-status[data-state="bad"] { color: var(--danger); }
@media (max-width: 480px) { .slug-field__prefix { font-size: 11px; padding: 0 8px; } }

/* ---------- Puces de sélection (spécialités) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 9px 13px; border: 1px solid var(--line);
  font-family: var(--font-nav); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 2px; }

/* ==========================================================================
   STUDIO
   ========================================================================== */
.studio-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); margin-bottom: 24px; }
.studio-stat { padding: 22px 24px; display: grid; gap: 8px; align-content: start; border: 0 !important; border-right: 1px solid var(--line) !important; }
.studio-stat:last-child { border-right: 0 !important; }
.studio-stat__label { font-family: var(--font-nav); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.studio-stat__value { font-family: var(--font-display); font-size: 40px; line-height: 1; }
.studio-stat__sub { font-size: 13px; color: var(--ink-soft); }
.studio-stat a { font-family: var(--font-nav); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1000px) { .studio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .studio-stat:nth-child(2) { border-right: 0 !important; } .studio-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line) !important; } }
@media (max-width: 520px) { .studio-grid { grid-template-columns: 1fr; } .studio-stat { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; } }

/* Jauge : trait fin */
.meter { height: 3px; background: var(--paper); overflow: hidden; margin-top: 6px; }
.meter__bar { height: 100%; background: var(--ink); transition: width var(--t); }
.meter[data-level="warn"] .meter__bar { background: var(--warn); }
.meter[data-level="full"] .meter__bar { background: var(--danger); }

.status-banner { padding: 16px 20px; margin-bottom: 20px; font-size: 15px; border: 1px solid currentColor; }
.status-banner--danger { color: var(--danger); }
.status-banner--info { color: var(--accent); }

.shop-url { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.shop-url code { font-family: var(--font-nav); font-size: 13px; padding: 7px 12px; background: var(--paper); }

.studio-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .studio-layout { grid-template-columns: 1fr; } }

/* ---------- Connexion ---------- */
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.auth-links button { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.auth-links button:hover { color: var(--ink); }
.form-success { padding: 14px 18px; border: 1px solid var(--success); color: var(--success); font-size: 15px; }

/* ==========================================================================
   ANNUAIRE
   ========================================================================== */
.dir-filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0; padding: 0 !important; margin-bottom: 32px; border: 1px solid var(--ink) !important; }
.dir-filters .input { border: 0; border-right: 1px solid var(--line); }
.dir-filters > :last-child, .dir-filters > :last-child .input { border-right: 0; }
@media (max-width: 760px) { .dir-filters { grid-template-columns: 1fr; } .dir-filters .input { border-right: 0; border-bottom: 1px solid var(--line); } }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 40px 24px; }
.shop-card { display: flex; flex-direction: column; padding: 0 !important; border: 0 !important; overflow: visible; text-decoration: none; }
.shop-card__cover { aspect-ratio: 4 / 5; background: var(--paper); overflow: hidden; display: block; }
.shop-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.shop-card:hover .shop-card__cover img { transform: scale(1.03); }
.shop-card__body { display: grid; gap: 4px; padding: 14px 0 0; position: relative; }
.shop-card__logo { position: absolute; top: -26px; right: 12px; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bone); background: var(--bone); }
.shop-card__name { font-family: var(--font-display); font-size: 30px; line-height: 1; text-transform: uppercase; }
.shop-card:hover .shop-card__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.shop-card__meta { font-family: var(--font-nav); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.shop-card__tagline { color: var(--ink-soft); font-size: 14px; }

/* ==========================================================================
   BOUTIQUE (style PICX, version lookbook)
   ========================================================================== */
:root { --shop-accent: var(--ink); }
.shop-header { max-width: var(--page-max); margin: 0 auto; padding: 22px var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.shop-header__home { font-family: var(--font-display); font-size: 28px; text-decoration: none; }
.shop-header__nav { display: flex; gap: 22px; font-family: var(--font-nav); }
.shop-header__nav a { text-decoration: none; color: var(--ink-soft); }
.shop-header__nav a:hover { color: var(--ink); }
.shop-hero { position: relative; overflow: hidden; margin-bottom: 28px; }
.shop-hero__cover { position: absolute; inset: 0; background-size: cover; background-position: center; }
.shop-hero.has-cover { min-height: 460px; display: flex; align-items: flex-end; }
.shop-hero.has-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,17,17,0) 40%, rgba(17,17,17,.7)); }
.shop-hero__body { position: relative; z-index: 1; display: flex; gap: 22px; align-items: flex-end; padding: clamp(20px, 4vw, 44px) 0; }
.shop-hero.has-cover .shop-hero__body { padding: clamp(20px, 4vw, 44px); color: #fff; }
.shop-hero.has-cover .lead, .shop-hero.has-cover .eyebrow { color: rgba(255,255,255,.85); }
.shop-hero__logo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--bone); background: var(--bone); }
@media (max-width: 640px) { .shop-hero__body { flex-direction: column; align-items: flex-start; } .shop-hero__logo { width: 72px; height: 72px; } }
.shop-about { max-width: 860px; }
.shop-legal { font-size: 13px; }
.powered-by { font-family: var(--font-nav); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--ink-soft); }
.powered-by strong { font-family: var(--font-display); font-weight: 400; font-size: 18px; letter-spacing: 0.04em; color: var(--ink); }

.nav-item.logo .shop-name-link.is-long { font-size: clamp(36px, 3.8vw, 58px) !important; }
.nav-item.logo .shop-name-link.is-xlong { font-size: clamp(28px, 2.8vw, 42px) !important; white-space: normal; text-align: center; max-width: 380px; line-height: 1; }

.shop-home { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-top: 24px; }
.shop-home__intro { display: grid; gap: 20px; align-content: center; }
.shop-home__intro .title-l { margin-top: 0; text-transform: uppercase; }
.shop-mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(110px, 12vw, 190px); gap: 8px; }
.shop-mosaic .tile[data-featured="true"] { grid-column: span 2; grid-row: span 2; }
@media (max-width: 900px) { .shop-home { grid-template-columns: 1fr; } }

.shop-about__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.shop-about__photo { width: 220px; height: 280px; object-fit: cover; }
.shop-about__bio { white-space: pre-line; font-size: 17px; line-height: 1.7; max-width: 62ch; }
@media (max-width: 640px) { .shop-about__grid { grid-template-columns: 1fr; } .shop-about__photo { width: 160px; height: 200px; } }
.contact-list { list-style: none; display: grid; gap: 0; }
.contact-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg { width: 16px; height: 16px; color: var(--ink-soft); flex: none; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* Cartes de galerie : photo puis légende dessous (plus de bandeau flouté) */
.events-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 44px 24px; }
.event-card {
  aspect-ratio: auto; display: grid; grid-template-rows: auto auto;
  background: none; box-shadow: none; overflow: hidden; text-decoration: none; color: var(--ink);
}
.event-card:hover { transform: none; box-shadow: none; }
.event-card::before { content: ''; grid-area: 1 / 1; aspect-ratio: 4 / 5; background: var(--paper); }
.event-card__cover { position: relative; inset: auto; grid-area: 1 / 1; aspect-ratio: 4 / 5; height: auto; z-index: 0; }
.event-card[data-visibility="private"] .event-card__cover { filter: blur(16px) saturate(105%); transform: none; }
.event-card__info {
  position: static; grid-row: 2; padding: 14px 0 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
  align-items: flex-start;
}
.event-card__title { font-family: var(--font-display); font-size: 30px; line-height: 1; text-transform: uppercase; }
.event-card__meta { font-family: var(--font-nav); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 8px; }
.event-card__arrow { width: 36px; height: 36px; background: none; color: var(--ink); border: 1px solid var(--line); transition: background var(--t-fast), color var(--t-fast); }
.event-card:hover .event-card__arrow { background: var(--ink); color: var(--bone); }
.event-card:hover .event-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.event-card__flag { top: 12px; left: 12px; }
.event-card.skeleton { aspect-ratio: 4 / 5; }

/* ==========================================================================
   PANIER, STUDIO : divers
   ========================================================================== */
.cart-groups { display: grid; gap: 24px; max-width: 900px; }
.cart-group { display: grid; gap: 14px; }
.cart-group__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cart-group__head a { text-decoration: none; }

.st-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.studio-nav button[hidden] { display: none; }
.brand-slot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand-slot img { width: 84px; height: 84px; object-fit: cover; background: var(--paper); }
[data-slot="cover"] img { width: 160px; height: 90px; }
.qe-line { display: grid; grid-template-columns: minmax(0, 1fr) 80px 130px auto; gap: 8px; align-items: center; }
@media (max-width: 560px) { .qe-line { grid-template-columns: 1fr 70px; } .qe-line .price-input { grid-column: 1; } }
.plan-editor .input { padding: 8px 10px; font-size: 14px; }
.plan-editor td { vertical-align: middle; }
.client-alert svg { width: 18px; height: 18px; flex: none; }

/* ---------- Pages légales FR / EN ---------- */
html[lang="fr"] [data-lang-block="en"], html[lang="en"] [data-lang-block="fr"] { display: none; }
.legal { max-width: 760px; padding: 0 !important; border: 0 !important; }
.legal h2 { font-family: var(--font-nav); font-weight: 500; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin: 44px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; margin: 8px 0; display: grid; gap: 6px; }
.legal a { color: var(--ink); }
.legal .legal__updated { margin-top: 40px; font-family: var(--font-nav); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.legal-nav { margin-bottom: 36px; }

/* ---------- Mot de passe ---------- */
.pwd-field { position: relative; }
.pwd-field .input { width: 100%; padding-right: 52px; }
.pwd-field__eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-soft); cursor: pointer; }
.pwd-field__eye svg { width: 18px; height: 18px; }
.pwd-field__eye[aria-pressed="true"] { color: var(--ink); }
.pwd-rules { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; padding: 0; }
.pwd-rules li { font-family: var(--font-nav); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-soft); background: none !important; padding: 0; display: inline-flex; align-items: center; gap: 6px; }
.pwd-rules li::before { content: ''; width: 9px; height: 9px; border: 1px solid currentColor; }
.pwd-rules li.is-ok { color: var(--success); }
.pwd-rules li.is-ok::before { background: currentColor; }

/* ---------- Studio : profil + outils photo ---------- */
.avatar-slot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.avatar-slot__img { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--paper); color: var(--ink-soft); flex: none; }
.avatar-slot__img img { width: 100%; height: 100%; object-fit: cover; }
.avatar-slot__img svg { width: 40px; height: 40px; }
.mcard__row--tools { margin-top: 8px; gap: 6px; }
.mcard__tool { flex: 1; min-height: 34px; padding: 7px 8px; font-size: 10px; gap: 4px; justify-content: center; }
.mcard__tool svg { width: 14px; height: 14px; }
.mcard__tool.is-on { background: var(--ink); color: var(--bone); box-shadow: none; }

/* ==========================================================================
   Alignement des boutons (toutes les pages)
   ========================================================================== */
[data-icon] { display: inline-flex; align-items: center; justify-content: center; }
.btn > span { display: inline-flex; align-items: center; }
.btn--sm { min-height: 36px; padding: 9px 14px; font-size: 11px; }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions-row .muted { font-family: var(--font-nav); font-size: 11px; letter-spacing: 0.06em; }
.req__actions { align-items: center; }
.req__actions .btn, .req__actions .icon-btn { flex: none; }
.gallery-bar__main { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-tabs { margin: 20px 0; }
.admin-tabs button { display: inline-flex; align-items: center; gap: 6px; }
.admin-tabs button svg { width: 14px; height: 14px; }

/* ---------- Statistiques : libellé, valeur, détail empilés ---------- */
.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi__value { margin-top: 2px; }
.kpis { margin-bottom: 4px; }
.doc-table th, .doc-table td { padding-left: 10px; padding-right: 10px; vertical-align: middle; }
.doc-table th:first-child, .doc-table td:first-child { padding-left: 0; }
.doc-table th:last-child, .doc-table td:last-child { padding-right: 0; }
.doc-table th.num { text-align: right; }
.line-item__price { text-align: right; white-space: nowrap; }

/* ---------- Studio : liste des galeries ---------- */
.st-gallery { display: grid; gap: 10px; align-content: start; }
.st-gallery__actions .btn { min-height: 38px; padding: 10px 14px; font-size: 11px; }
.st-gallery__actions .btn svg { width: 14px; height: 14px; }

/* ---------- Fidélité ---------- */
.loyalty-box { display: grid; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.loyalty-box__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.loyalty-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; border: 1px solid var(--line); }
.loyalty-tier { display: grid; gap: 2px; position: relative; border: 0 !important; border-right: 1px solid var(--line) !important; }
.loyalty-tier:last-child { border-right: 0 !important; }
.loyalty-tier__step { display: none; }
.loyalty-tier__value { font-family: var(--font-display); font-size: clamp(54px, 5vw, 80px); line-height: 1; margin-top: 18px; }
.loyalty-tier__value--sm { font-size: clamp(34px, 3vw, 46px); margin-top: 18px; }
@media (max-width: 760px) { .loyalty-grid { grid-template-columns: 1fr; } .loyalty-tier { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; } }

/* ---------- Galerie générale ---------- */
.explore-tile { position: relative; display: block; text-decoration: none; }
.explore-tile__by {
  position: absolute; left: 0; bottom: 0; padding: 8px 12px;
  display: grid; gap: 2px; background: var(--bone); color: var(--ink);
  font-family: var(--font-nav); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0; transform: translateY(4px); transition: opacity var(--t-fast), transform var(--t-fast);
}
.explore-tile__by strong { font-weight: 500; }
.explore-tile:hover .explore-tile__by, .explore-tile:focus-visible .explore-tile__by { opacity: 1; transform: none; }
@media (hover: none) { .explore-tile__by { opacity: 1; transform: none; } }

/* ==========================================================================
   Composants des autres feuilles, réaccordés à l'univers
   ========================================================================== */
/* Mur photo : coins droits, pas de soulèvement */
.bento { gap: 8px; }
.tile:hover { transform: none; box-shadow: none; }
.tile:hover img { transform: scale(1.025); }
.status-icon { background: var(--bone); border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.status-icon--owned { background: var(--ink); color: var(--bone); }
.status-icon--cart { background: var(--accent); color: #fff; }
.status-icon--free { background: var(--success); color: #fff; }
.tile__check { box-shadow: none; }
.tile.is-selected { box-shadow: 0 0 0 2px var(--ink); transform: none; }
.tile__video { background: var(--ink); color: var(--bone); backdrop-filter: none; -webkit-backdrop-filter: none; letter-spacing: 0.08em; }
.select-bar { background: var(--bone); border: 1px solid var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: var(--shadow-lift); }
.select-bar__count { font-family: var(--font-nav); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

/* Visionneuse */
.viewer__backdrop { background: rgba(17, 17, 17, 0.82); backdrop-filter: none; -webkit-backdrop-filter: none; }
.viewer__ambient { display: none; }
.viewer__frame { box-shadow: none; }
.viewer__panel { background: var(--bone); }
.viewer__filename { font-family: var(--font-nav); font-size: 13px; letter-spacing: 0.06em; line-height: 1.4; }
.exif__row { font-size: 14px; }
.exif dd { font-weight: 500; font-family: var(--font-nav); font-size: 13px; }
.action-line__icon { width: 40px; height: 40px; background: var(--paper); }
.action-line__title { font-family: var(--font-display); font-size: 32px; line-height: 1; }
.action-line__sub { font-size: 13px; }
.viewer__close, .viewer__nav { background: var(--bone); border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.viewer__close:hover, .viewer__nav:hover { transform: none; background: var(--ink); color: var(--bone); }
.viewer__counter, .viewer__preview-badge { background: var(--bone); color: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; letter-spacing: 0.08em; }
@media (max-width: 820px) { .viewer__panel { margin-top: 0; } }

/* Studio : onglets, demandes, chiffres */
.studio-nav { border-bottom: 1px solid var(--line); gap: 26px; margin-bottom: 32px; }
.studio-nav button { padding: 16px 0; font-family: var(--font-nav); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.studio-nav button + button::before { display: none; }
.studio-nav button[aria-current="page"]::after { left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); }
.count-badge { min-width: 18px; height: 18px; padding: 0 5px; font-family: var(--font-nav); font-size: 10px; }
.req { background: transparent; border: 1px solid var(--line); }
.req.is-unread { border-left-width: 1px; outline: 1px solid var(--ink); outline-offset: -1px; }
.req__title { font-family: var(--font-title); font-weight: 500; font-size: 17px; }
.req__meta { font-size: 13px; }
.req__note { background: var(--paper); font-size: 15px; }
.req__price, .line-item__price, .summary__total strong, .estimate__total strong, .qe-total strong, .doc-table tfoot .grand, .kpi__value, .stat__value, .pack__tokens, .range-row output {
  font-family: var(--font-display); font-weight: 400;
}
.kpis { gap: 0; border: 1px solid var(--line); }
.kpi { background: transparent; border: 0; border-right: 1px solid var(--line); }
.kpi:last-child { border-right: 0; }
.kpi__value { font-size: 44px; }
.kpi__label, .stat__label { font-size: 10.5px; letter-spacing: 0.14em; }
.gbar__track { height: 3px; }
.gbar__fill { background: var(--ink); }
.line-item { background: transparent; border-bottom: 1px solid var(--line); padding: 14px 0; }
.line-item__name, .owned-card__name, .qrow__name, .mcard__name { font-family: var(--font-title); font-weight: 500; }
.line-item__name { font-size: 15px; }
.owned-card, .contract-row, .pack, .qrow, .stat { background: transparent; border: 1px solid var(--line); }
.mcard { background: transparent; border: 1px solid var(--line); }
.mcard.is-selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.mcard__name { font-size: 13px; }
.pack:hover, .contract-row:hover { background: var(--paper); transform: none; }
.dropzone { border: 1px dashed var(--ink); background: transparent; min-height: 320px; }
.dropzone:hover, .dropzone.is-over { background: var(--paper); transform: none; }
.dropzone__icon { width: 64px; height: 64px; }
.qrow__ext { background: var(--paper); }
.progress { height: 3px; }
.share-box, .qe-message, .token-callout, .doc__note { background: var(--paper); }
.doc { background: var(--bone); border: 1px solid var(--line); box-shadow: none; }
.doc__logo { font-family: var(--font-display); text-transform: uppercase; }
.doc__head, .estimate__total, .summary__total, .qe-total { border-color: var(--ink); border-top-width: 1px; }
.doc__head { border-bottom-width: 1px; }
.sign-pad { border: 1px dashed var(--ink); background: #fff; }
.signed-stamp { background: transparent; border: 1px solid var(--success); }
.client-alert { background: var(--ink); color: var(--bone); font-size: 15px; }
.client-alert:hover { transform: none; background: var(--accent); }
.client-alert--soft { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.cart-notice { background: transparent; border: 1px solid var(--danger); }
.cart-notice strong { font-family: var(--font-title); font-weight: 500; font-size: 17px; }
.account-card { border: 1px solid var(--line); }
.account-card__who strong { font-family: var(--font-title); font-weight: 500; font-size: 17px; }
.status-dot::before { border-radius: 0; width: 7px; height: 7px; }
.admin-bar { background: var(--bone); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--line); }
.admin-bar__logo { font-family: var(--font-display); text-transform: uppercase; font-size: 34px; }
.admin-bar__who { font-family: var(--font-nav); font-size: 12px; letter-spacing: 0.08em; }
.dash__card:hover { transform: none; box-shadow: none; border-color: var(--ink); }
.dash__card--ink { background: var(--ink); color: var(--bone); }
.dash__n { font-family: var(--font-nav); font-size: 14px; }
.switch__track::after { box-shadow: none; }
.price-input .input { font-family: var(--font-nav); font-size: 18px; }


/* ==========================================================================
   ABONNEMENTS & NOTIFICATIONS
   ========================================================================== */
/* Bandeau du photographe sous l'en-tête en croix */
.shop-bar {
  max-width: var(--page-max); margin: 0 auto clamp(20px, 3vw, 36px); padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: center; gap: 12px 22px; flex-wrap: wrap;
}
.shop-bar__who { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.shop-bar__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--paper); }
.shop-bar__name { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 36px); line-height: 1; text-transform: uppercase; }
.shop-bar__who:hover .shop-bar__name, .shop-bar__who[aria-current="page"] .shop-bar__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.shop-bar__count { font-family: var(--font-nav); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.shop-bar__actions { display: inline-flex; align-items: center; gap: 6px; }
.shop-bar__bell { border: 1px solid var(--line); width: 36px; height: 36px; }
.shop-bar__bell[aria-pressed="true"] { border-color: var(--ink); }

/* Panneau de la cloche */
.bell-panel {
  position: fixed; right: 20px; bottom: 76px; z-index: 1200;
  width: min(400px, calc(100vw - 32px)); max-height: min(70vh, 560px);
  display: flex; flex-direction: column;
  background: var(--bone); border: 1px solid var(--ink); box-shadow: var(--shadow-lift);
  animation: toast-in 0.3s var(--ease);
}
.bell-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 18px; border-bottom: 1px solid var(--line); }
.bell-panel__head h2 { font-family: var(--font-nav); font-weight: 500; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.bell-panel__list { overflow-y: auto; }
.bell-panel__empty { padding: 28px 18px; color: var(--ink-soft); font-size: 14px; }
.bell-panel__foot { padding: 14px 18px; border-top: 1px solid var(--line); font-family: var(--font-nav); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; }
.bell-panel__foot:hover { background: var(--paper); }
.bell-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 18px; text-decoration: none; border-bottom: 1px solid var(--line); }
.bell-item:hover { background: var(--paper); }
.bell-item.is-unread { box-shadow: inset 2px 0 0 var(--ink); }
.bell-item__img { width: 56px; height: 56px; background: var(--paper); overflow: hidden; }
.bell-item__img img { width: 100%; height: 100%; object-fit: cover; }
.bell-item__text { font-size: 14px; line-height: 1.4; }
.bell-item__text small { display: block; margin-top: 4px; font-family: var(--font-nav); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

/* Annuaire : tri + nombre d'abonnés */
.dir-sort { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: -12px 0 32px; }
.dir-sort .label { font-family: var(--font-nav); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.shop-card__stats { font-family: var(--font-nav); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }

/* Offres : badge « la plus populaire » */
.plan__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.plan__popular { font-family: var(--font-nav); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 8px; border: 1px solid currentColor; }

/* Listes abonnés / abonnements */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); border-top: 1px solid var(--line); }
.people__row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.people__avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--paper); display: grid; place-items: center; color: var(--ink-soft); }
.people__avatar svg { width: 20px; height: 20px; }
.people__who { flex: 1; min-width: 0; display: grid; gap: 2px; }
.people__who strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people__who a { text-decoration: none; }
.people__who small { font-family: var(--font-nav); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

/* Mention droit d'auteur (pied de page) */
.copyright-note { grid-column: 1 / -1; font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ink-soft); }
/* Annuaire : code d'événement */
.dir-code-hint { margin: -20px 0 28px; }
.code-results { display: grid; gap: 0; margin: -12px 0 32px; border-top: 1px solid var(--line); }
.code-results .field-hint { padding: 12px 0; }
.code-results__item { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.code-results__item strong { font-weight: 500; }
.code-results__item span { font-family: var(--font-nav); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.code-results__item:hover strong { text-decoration: underline; text-underline-offset: 4px; }
/* RGPD : mention d'information sous les formulaires, champs facultatifs */
.privacy-note { font-size: 12.5px; line-height: 1.55; color: var(--ink-soft); max-width: 70ch; }
.privacy-note a { color: var(--ink); }
label[data-optional]::after { content: ' (facultatif)'; text-transform: none; letter-spacing: 0; opacity: 0.75; }
html[lang="en"] label[data-optional]::after { content: ' (optional)'; }
/* ==========================================================================
   AIDE ET IDÉES (tickets + boîte à idées)
   ========================================================================== */
/* Petit onglet fixe, bas gauche (la pastille compte est en bas à droite) */
.fb-launch {
  position: fixed; left: 20px; bottom: 20px; z-index: 890;
  padding: 11px 14px; background: var(--bone); color: var(--ink);
  border: 1px solid var(--ink); text-decoration: none;
  font-family: var(--font-nav); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background var(--t-fast), color var(--t-fast);
}
.fb-launch:hover { background: var(--ink); color: var(--bone); }
body.is-selecting .fb-launch { display: none; }
/* Petit écran : languette verticale au bord gauche (le bas est occupé par la pastille compte) */
@media (max-width: 700px) {
  .fb-launch { left: 0; bottom: auto; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; padding: 12px 7px; border-left: 0; font-size: 9.5px; }
}

.fb-ideas { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .fb-ideas { grid-template-columns: 1fr; } .fb-aside { order: -1; } }
.fb-ideas__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.fb-ideas__filter { width: auto; padding-top: 10px; padding-bottom: 10px; font-size: 14px; }
.fb-aside { display: grid; gap: 14px; padding: clamp(20px, 2.4vw, 30px); border: 1px solid var(--line); position: sticky; top: 92px; }
@media (max-width: 900px) { .fb-aside { position: static; } }

.fb-list { display: grid; border-top: 1px solid var(--line); }
.fb-idea { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.fb-vote {
  display: grid; justify-items: center; align-content: center; gap: 2px; height: 64px;
  border: 1px solid var(--line); color: var(--ink); transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.fb-vote svg { width: 18px; height: 18px; }
.fb-vote strong { font-family: var(--font-nav); font-weight: 500; font-size: 15px; }
.fb-vote:hover { border-color: var(--ink); }
.fb-vote.is-on { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.fb-idea__title { font-weight: 500; font-size: 17px; line-height: 1.35; }
.fb-idea__desc { margin-top: 6px; color: var(--ink-soft); font-size: 15px; white-space: pre-line; }
.fb-idea__note { margin-top: 10px; padding: 10px 14px; background: var(--paper); font-size: 14px; }
.fb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; font-family: var(--font-nav); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.fb-status { padding: 3px 7px; border: 1px solid currentColor; color: var(--ink); }
.fb-status--planned, .fb-status--in_progress { color: var(--accent); }
.fb-status--done, .fb-status--resolved { color: var(--success); }
.fb-status--declined, .fb-status--closed { color: var(--ink-soft); text-decoration: line-through; }

.fb-form-wrap { max-width: 720px; }

.fb-ticket-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.fb-ticket-row:hover .fb-ticket-row__title { text-decoration: underline; text-underline-offset: 4px; }
.fb-ticket-row__n, .fb-ticket-row__date { font-family: var(--font-nav); font-size: 12px; color: var(--ink-soft); }
.fb-ticket-row.is-unread .fb-ticket-row__title { font-weight: 600; }
@media (max-width: 560px) { .fb-ticket-row { grid-template-columns: 44px minmax(0, 1fr); } .fb-ticket-row .fb-status, .fb-ticket-row__date { grid-column: 2; justify-self: start; } }

.fb-ticket { max-width: 760px; margin-top: 20px; }
.fb-ticket__head { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.fb-thread { list-style: none; display: grid; gap: 14px; padding: 22px 0; }
.fb-msg { padding: 14px 16px; border: 1px solid var(--line); max-width: 88%; }
.fb-msg p { white-space: pre-line; font-size: 15px; margin-top: 6px; }
.fb-msg--staff { justify-self: end; background: var(--paper); border-color: var(--paper); }
.fb-msg__who { font-family: var(--font-nav); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.fb-reply { border-top: 1px solid var(--line); padding-top: 20px; }
/* Aperçu de boutique (accueil) : bandeau du photographe sous la croix, comme les vraies boutiques */
.mini-bar { display: flex; align-items: center; justify-content: center; gap: 10px 14px; flex-wrap: wrap; margin: 4px 0 22px; }
.mini-bar__avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); }
.mini-bar__name { font-family: var(--font-display); font-size: clamp(20px, 2vw, 28px); line-height: 1; text-transform: uppercase; max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-bar__count { font-family: var(--font-nav); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.mini-bar__btn { padding: 7px 10px; background: var(--ink); color: var(--bone); font-family: var(--font-nav); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.mini-bar__bell { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--ink); }
.mini-bar__bell svg { width: 14px; height: 14px; }
/* Visionneuse : miniature floutée en attendant la version sans filigrane */
.viewer__media img.is-placeholder { filter: blur(10px); transform: scale(1.02); }
/* Visionneuse : les boutons de téléchargement ne débordent jamais du panneau (ex. « … FORMAT INITIAL (.CR3) ») */
.viewer__actions .btn { white-space: normal; text-align: center; min-width: 0; max-width: 100%; }
.viewer__panel { min-width: 0; }
/* Cartes de galerie : badge Public / Privé lisible dans les deux thèmes */
.event-card__flag.badge { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.event-card__flag.badge svg { width: 12px; height: 12px; }
/* Le flou de la couverture privée reste dans le cadre de la photo */
.event-card__cover { clip-path: inset(0); }
/* Titre au-dessus, date / lieu / nombre de photos dessous */
.event-card__title, .event-card__meta { display: block; }
.event-card__arrow { border-radius: 0; flex: none; }
/* ---------- « J'aime » ---------- */
.status-icon--likes { width: auto; padding: 0 9px 0 8px; gap: 5px; grid-auto-flow: column; border-radius: 0; font: 500 11px/1 var(--font-nav); color: var(--ink); }
.status-icon--likes b { font-weight: 500; }
.status-icon--likes.is-liked svg { fill: #C8312F; stroke: #C8312F; }
.like-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 14px;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 0; background: transparent; color: inherit;
  font: 500 11px/1 var(--font-nav); letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.like-btn:hover { border-color: currentColor; }
.like-btn__icon svg { width: 16px; height: 16px; display: block; transition: transform .25s cubic-bezier(.2, .8, .2, 1.4); }
.like-btn b { font-weight: 500; letter-spacing: 0; opacity: .7; }
.like-btn.is-liked { border-color: #C8312F; color: #E0574F; }
.like-btn.is-liked .like-btn__icon svg { fill: #C8312F; stroke: #C8312F; transform: scale(1.12); }
@media (prefers-reduced-motion: reduce) { .like-btn__icon svg { transition: none; } }

/* Mes abonnements : une ligne lisible (la cloche ne se réduit plus et ne chevauche plus le nom) */
.people { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); column-gap: 40px; }
.people__row .icon-btn { flex: none; width: 38px; height: 38px; border: 1px solid var(--line); }
.people__row .icon-btn[aria-pressed="true"] { border-color: currentColor; }
.people__row .icon-btn svg { width: 16px; height: 16px; }
.people__row .btn { flex: none; white-space: nowrap; }
@media (max-width: 460px) {
  .people__row { flex-wrap: wrap; row-gap: 10px; }
  .people__who { flex: 1 1 calc(100% - 58px); }
  .people__row .icon-btn { margin-left: 58px; }
}

/* Admin : comptes et galeries à supprimer */
.admin-note { margin: 0 0 14px; max-width: 70ch; }
[data-admin-galleries] .line-item, [data-purge] .line-item { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 0; }
[data-admin-galleries] { max-height: min(60vh, 520px); overflow-y: auto; }

/* ---------- Connexion : code e-mail, « vérifiez vos e-mails » ---------- */
.auth-alt { display: grid; gap: 10px; margin-top: 22px; }
.auth-or { display: flex; align-items: center; gap: 14px; margin: 0 0 4px; font-family: var(--font-nav); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.auth-alt .privacy-note { margin-top: 4px; }
.otp-input { font-family: var(--font-nav); font-size: 26px; letter-spacing: .5em; text-align: center; padding: 14px 10px; }
.auth-sent { display: grid; justify-items: start; gap: 18px; padding: 8px 0 4px; }
.auth-sent__icon { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid var(--line); }
.auth-sent__icon svg { width: 28px; height: 28px; }
.auth-sent__lead { font-size: 18px; line-height: 1.5; max-width: 46ch; }
.auth-sent__lead strong { font-weight: 600; word-break: break-all; }
.auth-sent__steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.auth-sent__steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: baseline; }
.auth-sent__steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-nav); font-size: 11px; color: var(--ink-soft); }
.auth-sent__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Galeries partagées (collaboration) ---------- */
.collab-box { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.collab-box > .muted { max-width: 62ch; }
.collab-form { display: flex; gap: 10px; flex-wrap: wrap; }
.collab-form .input { flex: 1 1 240px; }
.collab-form .btn { flex: none; }
.collab-box .people { grid-template-columns: 1fr; }
.collab-shared { margin-top: 40px; display: grid; gap: 16px; }
.viewer__credit { margin: 6px 0 0; font-family: var(--font-nav); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Accueil : « Je suis client » / « Je suis photographe » ---------- */
.choose { max-width: 760px; width: min(760px, calc(100vw - 32px)); display: grid; gap: 14px; }
.choose__lead { margin: 0 0 8px; }
.choose__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.choose__card {
  position: relative; display: grid; gap: 10px; align-content: start; min-height: 200px;
  padding: 24px; border: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: border-color .2s ease, transform .2s ease;
}
.choose__card:hover, .choose__card:focus-visible { border-color: currentColor; transform: translateY(-2px); }
.choose__card--ink { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.choose__icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid currentColor; opacity: .85; }
.choose__icon svg { width: 20px; height: 20px; }
.choose__name { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 4vw, 36px); line-height: 1; text-transform: uppercase; }
.choose__text { opacity: .8; line-height: 1.5; padding-right: 28px; }
.choose__arrow { position: absolute; right: 20px; bottom: 20px; }
.choose__arrow svg { width: 18px; height: 18px; }
.choose__skip { justify-self: center; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .choose__card { transition: none; } .choose__card:hover { transform: none; } }

/* Parcours photographe : étape « offres » et offre choisie dans le Studio */
.welcome-step { display: inline-block; margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--line); font-size: 15px; }
.welcome-step > span:first-child { font-family: var(--font-nav); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.plan--wanted { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 520px) { .choose__card { min-height: 0; padding: 20px; } }

/* ==========================================================================
   PAGE D'UN PHOTOGRAPHE (en-tête du site + barre du photographe + onglets)
   ========================================================================== */
.shop-bar { display: grid; gap: 18px; justify-content: stretch; margin-top: clamp(18px, 3vw, 34px); }
.shop-bar__main { display: flex; align-items: center; justify-content: center; gap: 12px 22px; flex-wrap: wrap; }
.shop-bar__tools { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-bar__tools .btn { gap: 8px; }
.shop-bar__tools svg { width: 15px; height: 15px; }
.shop-tabs { display: flex; justify-content: center; gap: clamp(18px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.shop-tabs a {
  padding: 10px 2px 12px; margin-bottom: -1px; border-bottom: 1px solid transparent; text-decoration: none;
  font-family: var(--font-nav); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
}
.shop-tabs a:hover { color: var(--ink); }
.shop-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* Page Galeries : présentation, portfolio, à la une, recherche */
.shop-intro { display: grid; gap: 10px; margin-bottom: clamp(24px, 4vw, 44px); }
.shop-intro .title-l:empty { display: none; }
.shop-block { margin-bottom: clamp(44px, 6vw, 80px); }
.shop-block__head { display: flex; justify-content: space-between; align-items: end; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.shop-block__title { font-family: var(--font-nav); font-weight: 500; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 22px; }
.shop-block__head .shop-block__title { margin-bottom: 0; }
.shop-search { flex: 0 1 380px; min-width: min(100%, 260px); }
.shop-block__more { display: flex; justify-content: center; margin-top: 28px; }
.shop-block__more [hidden] { display: none; }
.events-grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); }
.events-grid--wide .event-card__cover { aspect-ratio: 16 / 9; }

/* ==========================================================================
   ACCUEIL : section clients + aperçu de boutique (nouvel en-tête)
   ========================================================================== */
.lb-client {
  max-width: var(--page-max); margin: 0 auto; padding: clamp(70px, 9vw, 130px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start;
  border-bottom: 1px solid var(--line);
}
.lb-client__head { display: grid; gap: 16px; }
.lb-client__code { align-self: center; }
.lb-client__steps { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.lb-client__steps li { display: grid; gap: 8px; padding: 22px 22px 0 0; }
.lb-client__steps li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.lb-client__steps strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); text-transform: uppercase; line-height: 1; }
.lb-client__steps span { color: var(--ink-soft); }
.lb-client__links { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .lb-client { grid-template-columns: 1fr; }
  .lb-client__steps { grid-template-columns: 1fr; }
  .lb-client__steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
}
.lb-dir { padding-bottom: clamp(70px, 9vw, 120px); }

.mini-site { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.mini-site > span:first-child { font-family: var(--font-display); font-size: clamp(18px, 1.8vw, 24px); text-transform: uppercase; }
.mini-site__nav { display: flex; gap: 14px; font-family: var(--font-nav); font-size: 9px; letter-spacing: 0.14em; }
.mini-tabs { display: flex; justify-content: center; gap: 18px; margin: 0 0 18px; border-bottom: 1px solid var(--line); font-family: var(--font-nav); font-size: 9px; letter-spacing: 0.14em; color: var(--ink-soft); }
.mini-tabs span { padding: 0 2px 8px; }
.mini-tabs span[aria-current] { color: var(--ink); border-bottom: 1px solid var(--ink); margin-bottom: -1px; }
@media (max-width: 560px) { .mini-site__nav { display: none; } }

/* ---------- Visite guidée ---------- */
.tour-veil { position: fixed; inset: 0; z-index: 1190; }
.tour-spot {
  position: fixed; z-index: 1195; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(10, 10, 9, 0.62); outline: 1px solid var(--bone);
  transition: top .3s var(--ease, ease), left .3s var(--ease, ease), width .3s var(--ease, ease), height .3s var(--ease, ease);
}
.tour-pop {
  position: fixed; z-index: 1200; width: min(340px, calc(100vw - 24px));
  background: var(--bone); color: var(--ink); border: 1px solid var(--ink); padding: 18px 18px 14px;
  display: grid; gap: 8px;
}
.tour-pop__count { font-family: var(--font-nav); font-size: 10px; letter-spacing: .14em; color: var(--ink-soft); }
.tour-pop__title { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.05; text-transform: uppercase; }
.tour-pop__text { line-height: 1.5; }
.tour-pop__actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }
.tour-pop__actions span { display: flex; gap: 6px; }
@media (prefers-reduced-motion: reduce) { .tour-spot { transition: none; } }
.choose__foot { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 4px; }

/* Studio : invitations à collaborer */
.collab-invites { display: grid; gap: 10px; margin-bottom: 20px; }
.collab-invites .people, .invite-results, [data-invite-current] { grid-template-columns: 1fr; }
.invite-results { margin-top: 10px; max-height: 280px; overflow-y: auto; }

/* Barre du photographe : même hauteur réservée avant et après le chargement */
.shop-bar:empty { min-height: 104px; }
@media (max-width: 700px) { .shop-bar:empty { min-height: 150px; } }

/* Code d'événement (accueil) : un peu d'air avant le texte tapé */
.lb-client__code .claim__input { padding-left: 18px; padding-right: 14px; }
.lb-client__code .field-error { margin-top: 10px; }

/* Fenêtre « connectez-vous pour voir vos photos » (code gardé) */
.code-login { display: grid; gap: 12px; max-width: 440px; }
.code-login__icon { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line); }
.code-login__icon svg { width: 22px; height: 22px; }
.code-login__actions { display: grid; gap: 10px; margin-top: 8px; }

/* Barre du photographe dans le Studio / Mon espace : sans onglets, juste un filet dessous */
.shop-bar--tools { padding-bottom: 18px; border-bottom: 1px solid var(--line); }

/* Studio → galerie → Photos : barre de sélection collée en haut, opaque et au-dessus des photos */
.manager-toolbar.glass {
  background: var(--bone);
  z-index: 30;
  top: 68px;      /* juste sous l'en-tête du site, qui reste collé en haut */
  box-shadow: 0 10px 0 -1px var(--bone), 0 11px 0 -1px var(--line);
}

/* ---- dark.css ---- */
/* ==========================================================================
   OBTURA — Mode sombre
   Activé par <html data-theme="dark"> (réglage du système ou bouton Thème).
   Les couleurs passent par les variables : seules les teintes « en dur » sont reprises ici.
   ========================================================================== */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bone: #0F0F0E;
  --paper: #1B1B19;
  --stone: #4A4A45;
  --ink: #EDEDE9;
  --ink-soft: rgba(237, 237, 233, 0.62);
  --ink-faint: rgba(237, 237, 233, 0.14);
  --line: rgba(237, 237, 233, 0.16);
  --accent: #9DB3DE;
  --success: #7CC09A;
  --danger: #E88A7F;
  --warn: #D9A84A;
  --viewer-bg: #070707;
  --shadow-lift: 0 18px 50px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .input:focus { background: #151513; }

[data-theme="dark"] select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23EDEDE9' stroke-width='1.2' fill='none'/%3E%3C/svg%3E"); }
[data-theme="dark"] select.input option { background: #1B1B19; color: #EDEDE9; }

/* Teintes encre « en dur » des autres feuilles : on les passe en clair */
[data-theme="dark"] .meter,
[data-theme="dark"] .progress,
[data-theme="dark"] .gbar__track,
[data-theme="dark"] .shop-url code,
[data-theme="dark"] .slug-field__prefix,
[data-theme="dark"] .pwd-rules li,
[data-theme="dark"] .switch__track { background: rgba(237, 237, 233, 0.1); }
[data-theme="dark"] .switch__track::after { background: #EDEDE9; }
[data-theme="dark"] .doc, [data-theme="dark"] .sign-pad { background: var(--paper); }
[data-theme="dark"] .dropzone.is-over { background: var(--paper); }
[data-theme="dark"] .dialog { background: rgba(0, 0, 0, 0.6); }
[data-theme="dark"] .account-pill__chip + .account-pill__chip { border-left-color: rgba(17, 17, 17, 0.2); }
[data-theme="dark"] .account-pill__chip:hover { background: rgba(17, 17, 17, 0.08); }
[data-theme="dark"] .admin-strip a:hover { background: rgba(17, 17, 17, 0.08); }

/* La signature reste tracée en sombre sur fond clair */
[data-theme="dark"] .sign-pad canvas { background: #F4F4F1; }
