/* =============================================================================
   AT Studio — feuille de style principale
   CSS pur, aucune étape de build — même système visuel que la version
   précédente (Fraunces + Inter, noir/blanc/tons naturels, grille éditoriale).
   ============================================================================= */

:root {
  --ink: #0c0c0b;
  --paper: #faf9f6;
  --stone-100: #f2f0eb;
  --stone-200: #e5e2da;
  --stone-300: #d1cdc0;
  --stone-400: #a9a396;
  --stone-500: #847d6d;
  --stone-600: #635d51;
  --stone-700: #48443b;
  --stone-800: #2c2a25;
  --clay-500: #a3835f;
  --clay-600: #8a6c4a;
  --line: rgba(12, 12, 11, 0.1);
  --line-dark: rgba(250, 249, 246, 0.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1600px;
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100vw;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
::selection { background: var(--ink); color: var(--paper); }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

/* --- Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 640px) { .container { padding: 0 40px; } }
@media (min-width: 1024px) { .container { padding: 0 64px; } }

.hairline { border-top: 1px solid var(--line); }
.section { padding-top: 112px; padding-bottom: 112px; }
@media (min-width: 768px) { .section { padding-top: 160px; padding-bottom: 160px; } }
.section-tight { padding: 64px 0; }

/* --- Typography ------------------------------------------------------------ */
.font-display { font-family: var(--font-display); }
.label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--stone-500);
}
.display-1 { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 8.5rem); line-height: 0.98; letter-spacing: -0.02em; }
.display-2 { font-family: var(--font-display); font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: 1.02; letter-spacing: -0.015em; }
.display-3 { font-family: var(--font-display); font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height: 1.08; }
.text-muted { color: var(--stone-600); }
.text-faint { color: var(--stone-400); }
.lede { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.25; }
@media (min-width: 768px) { .lede { font-size: 2.25rem; } }
.prose { max-width: 65ch; line-height: 1.7; color: var(--stone-700); }
.prose + .prose { margin-top: 1.25em; }

/* --- Buttons / links -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  transition: background-color .3s var(--ease-editorial), color .3s var(--ease-editorial), border-color .3s var(--ease-editorial);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--stone-800); }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-on-dark { border-color: var(--line-dark); color: var(--paper); }
.btn-on-dark:hover { background: var(--paper); color: var(--ink); }

.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; }
.arrow-link span { position: relative; }
.arrow-link span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-editorial); }
.arrow-link:hover span::after { transform: scaleX(1); }

/* --- Site header ------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color .4s var(--ease-editorial), border-color .4s var(--ease-editorial);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--line);
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; height: 80px; }
@media (min-width: 768px) { .site-header__bar { height: 96px; } }
.site-header__logo { font-family: var(--font-display); font-size: 1.5rem; color: var(--paper); transition: color .4s var(--ease-editorial); }
.site-header.is-scrolled .site-header__logo,
.site-header.is-open .site-header__logo { color: var(--ink); }

.site-header__scrim {
  position: fixed; inset: 0 0 auto 0; height: 128px; z-index: 40; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.35), transparent);
  transition: opacity .4s var(--ease-editorial);
}
.site-header.is-scrolled ~ .site-header__scrim,
.site-header.is-open ~ .site-header__scrim { opacity: 0; }

.site-nav { display: none; align-items: center; gap: 40px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--paper); transition: color .4s var(--ease-editorial); }
.site-header.is-scrolled .site-nav { color: var(--ink); }
@media (min-width: 768px) { .site-nav { display: flex; } }
.site-nav a { opacity: .8; transition: opacity .2s; }
.site-nav a:hover { opacity: 1; }
.site-nav .btn { padding: 10px 20px; }

/* .btn-on-dark assumes it sits over the dark hero the header starts on;
   once the header itself goes light (scrolled/open), it needs to flip to
   a dark-on-light outline or it reads as invisible white-on-cream. */
.site-header.is-scrolled .site-nav .btn-on-dark,
.site-header.is-open .site-nav .btn-on-dark {
  border-color: var(--line);
  color: var(--ink);
}
.site-header.is-scrolled .site-nav .btn-on-dark:hover,
.site-header.is-open .site-nav .btn-on-dark:hover {
  background: var(--ink);
  color: var(--paper);
}

.nav-toggle { display: inline-flex; background: none; border: 0; padding: 8px; margin-right: -8px; color: var(--paper); transition: color .4s var(--ease-editorial); cursor: pointer; }
.site-header.is-scrolled .nav-toggle, .site-header.is-open .nav-toggle { color: var(--ink); }
@media (min-width: 768px) { .nav-toggle { display: none; } }

.mobile-menu { position: fixed; inset: 0; z-index: 40; background: var(--paper); display: none; flex-direction: column; justify-content: center; padding: 0 32px; }
.site-header.is-open + .mobile-menu { display: flex; }
.mobile-menu a { display: block; font-family: var(--font-display); font-size: 2.25rem; color: var(--ink); padding: 10px 0; }
@media (min-width: 768px) { .mobile-menu { display: none !important; } }

/* --- Footer ------------------------------------------------------------- */
/* .site-footer__grid (AT. / Studio / Los Santos, home only) sits on the
   plain page background; the bottom bar + OOC line (present everywhere)
   get a very slightly deeper stone tone to read as their own quiet zone,
   separated only by a hairline — never a heavy block. */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.site-footer__grid { display: grid; gap: 48px; padding-top: 80px; padding-bottom: 80px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; padding-top: 112px; padding-bottom: 112px; } }
.site-footer .hairline { background: var(--stone-200); }
.site-footer__bottom { display: flex; flex-direction: column; gap: 12px; padding-top: 32px; padding-bottom: 32px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--stone-800); }
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; } }

.site-footer__ooc { text-align: center; padding: 4px 24px 30px; background: var(--stone-200); }
.site-footer__ooc a { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; letter-spacing: .03em; color: var(--stone-600); transition: color .2s; }
.site-footer__ooc a:hover { color: var(--stone-800); }
.site-footer__ooc-logo { width: auto; height: 22px; object-fit: contain; flex-shrink: 0; }

/* --- Frame / images --------------------------------------------------------- */
.frame { position: relative; overflow: hidden; background: var(--stone-200); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--landscape { aspect-ratio: 4 / 3; }
.frame--portrait { aspect-ratio: 3 / 4; }
.frame--square { aspect-ratio: 1 / 1; }
.frame--fill { position: absolute; inset: 0; }
.frame-placeholder { position: absolute; inset: 0; }

/* --- Reveal-on-scroll (progressive enhancement; content is visible by default) */
.reveal { opacity: 1; transform: none; }
.js-reveal-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-editorial), transform .9s var(--ease-editorial); }
.js-reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

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

/* --- Featured project (homepage) — compact editorial spotlight, not a hero - */
.featured-project { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 860px) {
  .featured-project { grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
}
.featured-project__media { display: block; }
.featured-project__media .frame { aspect-ratio: 4 / 3; }
.featured-project__media .frame img { transition: transform .8s var(--ease-editorial); }
.featured-project__media:hover .frame img { transform: scale(1.02); }
.featured-project__name { font-family: var(--font-display); font-size: clamp(1.6rem, 2.8vw, 2.1rem); line-height: 1.18; margin-top: 14px; transition: color .25s; }
.featured-project__info a:hover .featured-project__name { color: var(--clay-600); }

/* --- Home — intro statement, asymmetric editorial split -------------------- */
.home-intro { display: grid; grid-template-columns: 1fr; gap: 32px; }
.home-intro__lede { max-width: 30ch; }
.home-intro__meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.home-intro__meta p { margin: 0; max-width: 26rem; }
@media (min-width: 900px) {
  .home-intro { grid-template-columns: 7fr 5fr; align-items: end; gap: 64px; }
  .home-intro__meta { flex-direction: column; align-items: flex-start; border-top: 0; padding-top: 8px; gap: 28px; }
}

/* --- Hero -------------------------------------------------------------- */
.hero { position: relative; min-height: 640px; height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.2) 60%, rgba(0,0,0,.1)); }
.hero__content { position: relative; z-index: 1; width: 100%; padding-top: 160px; padding-bottom: 80px; }
.hero__subtitle { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: rgba(250,249,246,.9); max-width: 36rem; margin-top: 16px; }
@media (min-width: 640px) { .hero__subtitle { font-size: 1.5rem; } }
.hero__meta { margin-top: 56px; display: flex; align-items: center; gap: 12px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(250,249,246,.7); }
.hero__meta::before { content: ""; width: 32px; height: 1px; background: rgba(250,249,246,.5); }

.hero--center { align-items: center; justify-content: center; }
.hero__content--center { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 80px 0; }
.hero__logo { max-width: min(900px, 85vw); width: 100%; height: auto; filter: drop-shadow(0 2px 24px rgba(0,0,0,.35)); }
.hero--light .hero__overlay { background: linear-gradient(to top, rgba(0,0,0,.35), rgba(0,0,0,.08) 55%, rgba(0,0,0,.12)); }

/* --- Contact — bandeau sombre, carte de formulaire qui chevauche le bandeau --- */
.contact-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); padding: 150px 0 150px; }
.contact-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .45; }
.contact-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 28%, rgba(163, 131, 95, .22), transparent 58%),
    linear-gradient(to bottom, rgba(12, 12, 11, .5), rgba(12, 12, 11, .94));
}
.contact-hero .container { position: relative; z-index: 1; }
.contact-hero__eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--stone-400); }
.contact-hero__eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--clay-500); }
.contact-hero__title { margin-top: 28px; font-family: var(--font-display); font-weight: 400; font-size: clamp(3.2rem, 10vw, 7.5rem); line-height: .96; letter-spacing: -.025em; }
.contact-hero__title span { color: var(--clay-500); }
.contact-hero__lede { margin-top: 32px; max-width: 34rem; font-size: 1.05rem; line-height: 1.7; color: rgba(250, 249, 246, .72); }

.contact-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; padding-bottom: 120px; }
.contact-card { order: -1; position: relative; margin-top: -84px; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 80px -44px rgba(12, 12, 11, .34); padding: 34px 22px 32px; }
@media (min-width: 640px) { .contact-card { padding: 52px 52px 46px; } }
@media (min-width: 960px) {
  .contact-body { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 88px; align-items: start; }
  .contact-card { order: 0; margin-top: -110px; grid-column: 2; grid-row: 1; }
  .contact-side { grid-column: 1; grid-row: 1; padding-top: 72px; }
}

.contact-facts { margin: 0; }
.contact-facts > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-facts > div:first-child { border-top: 1px solid var(--line); }
.contact-facts dt { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-600); margin-bottom: 8px; }
.contact-facts dd { margin: 0; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.4; color: var(--ink); }
.contact-facts dd a { border-bottom: 1px solid var(--stone-300); transition: border-color .25s, color .25s; }
.contact-facts dd a:hover { border-color: var(--ink); }

.contact-sender { display: flex; align-items: center; gap: 14px; padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.contact-sender__name { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; }
.contact-sender__mail { margin-top: 3px; font-size: 12px; color: var(--stone-500); word-break: break-all; }
.contact-sender__edit { margin-left: auto; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--stone-500); border-bottom: 1px solid var(--stone-300); padding-bottom: 2px; white-space: nowrap; transition: color .25s, border-color .25s; }
.contact-sender__edit:hover { color: var(--ink); border-color: var(--ink); }

.contact-card__label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone-500); margin-bottom: 14px; }
.contact-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.contact-topic { border: 1px solid var(--line); background: none; padding: 10px 16px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--stone-600); cursor: pointer; transition: background-color .25s var(--ease-editorial), color .25s, border-color .25s; }
.contact-topic:hover { border-color: var(--ink); color: var(--ink); }
.contact-topic.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.contact-topics[hidden], .contact-card__label[hidden], .contact-counter[hidden] { display: none; }
.contact-counter { margin-top: 8px; text-align: right; font-size: 11px; letter-spacing: .06em; color: var(--stone-400); font-variant-numeric: tabular-nums; }
.contact-submit { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.contact-submit p { font-size: 12px; color: var(--stone-500); max-width: 20rem; line-height: 1.5; }

/* --- Legal/info pages (À propos, Partenariats, CGU, Confidentialité...) --- */
.legal-page { padding-top: 152px; padding-bottom: 120px; }
.legal-page__intro { max-width: 44rem; }
.legal-page__meta { margin-top: 12px; font-size: 13px; color: var(--stone-500); }
.legal-page__body { margin-top: 56px; max-width: 46rem; display: flex; flex-direction: column; gap: 36px; }
.legal-page__body h2 { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 14px; }
.legal-page__body ul { padding-left: 20px; list-style: disc; color: var(--stone-600); line-height: 1.7; }
.legal-page__body li + li { margin-top: 6px; }

/* --- Filtres (listes admin + pages publiques) ---------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; margin-bottom: 64px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
@media (min-width: 768px) { .filters { margin-bottom: 96px; } }
.filters a { color: var(--stone-400); }
.filters a.is-active { color: var(--ink); }

/* --- /projects — galerie éditoriale --------------------------------------- */
.filters-nav { display: flex; flex-wrap: wrap; gap: 6px 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; margin-bottom: 48px; }
@media (min-width: 768px) { .filters-nav { margin-bottom: 64px; } }
.filters-nav a { display: inline-flex; align-items: baseline; gap: 7px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--stone-400); transition: color .25s var(--ease-editorial); }
.filters-nav a:hover { color: var(--ink); }
.filters-nav a.is-active { color: var(--ink); }
.filters-nav__count { font-family: var(--font-display); font-size: 11px; color: var(--stone-400); }
.filters-nav a.is-active .filters-nav__count { color: var(--clay-600); }

.project-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 40px; }
@media (max-width: 900px) { .project-gallery { grid-template-columns: 1fr; gap: 64px; } }
.project-gallery__item--wide { grid-column: 1 / -1; }
.project-gallery__item--wide .frame { aspect-ratio: 20 / 9; }
.project-gallery__item .frame img { transition: transform .8s var(--ease-editorial); }
.project-gallery__item:hover .frame img { transform: scale(1.025); }

.project-gallery__caption { margin-top: 22px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.project-gallery__name { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.15; transition: color .25s; }
.project-gallery__item:hover .project-gallery__name { color: var(--clay-600); }
.project-gallery__meta { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--stone-500); white-space: nowrap; }

/* --- Étude de cas (page projet) -------------------------------------------- */
/* Entry — title + short meta line, plain page background (no image-overlay
   hero); the cover photo follows as its own contained element below. */
.project-intro__title { font-family: var(--font-display); font-size: clamp(2.1rem, 5.5vw, 3.75rem); line-height: 1.02; letter-spacing: -.015em; }
.project-intro__meta { margin-top: 18px; font-size: 14px; line-height: 1.6; color: var(--stone-600); }

/* Secondary facts (surface / client / statut) — a quiet single line, not a
   bordered card. Reuses dt/dd only for semantics, styled inline. */
.case-facts { display: flex; flex-wrap: wrap; gap: 10px 40px; padding: 20px 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.case-facts > div { display: flex; align-items: baseline; gap: 8px; }
.case-facts dt { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--stone-400); margin: 0; }
.case-facts dd { margin: 0; font-size: 13px; color: var(--stone-700); }

.case-section { padding: 64px 0; }
.case-section__label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--stone-500); margin-bottom: 22px; }
.case-section--lead .prose { font-size: 1.3rem; line-height: 1.6; max-width: 52ch; }
.case-section .prose { max-width: 46rem; }

/* Cover photo right under the project title — shorter than the default
   4/3 .frame--landscape ratio so it reads as a wide establishing shot
   rather than a tall hero, still object-fit:cover (cropped, never
   stretched/squashed) since the source photos are landscape-shaped. */
.case-cover .frame { aspect-ratio: 2.2 / 1; }

/* Text + image, alternating sides for rhythm across sections. */
.case-section--split { display: grid; grid-template-columns: 1fr; gap: 40px; }
.case-section--split > * { min-width: 0; }
@media (min-width: 860px) {
  .case-section--split { grid-template-columns: 5fr 6fr; gap: 72px; align-items: center; }
  .case-section--split.case-section--split-reverse { grid-template-columns: 6fr 5fr; }
  .case-section--split.case-section--split-reverse .case-section__text { order: 2; }
  .case-section--split.case-section--split-reverse .case-section__media { order: 1; }
}

/* Two images side by side — closes out the last available section. */
.case-duo { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 640px) { .case-duo { grid-template-columns: 1fr; gap: 40px; } }

.case-nav { display: grid; grid-template-columns: 1fr 1fr; }
.case-nav__prev, .case-nav__next { padding: 40px 0; display: flex; flex-direction: column; gap: 10px; transition: opacity .3s; }
.case-nav__prev:hover, .case-nav__next:hover { opacity: .55; }
.case-nav__prev { border-right: 1px solid var(--line); padding-right: 32px; }
.case-nav__next { padding-left: 32px; text-align: right; align-items: flex-end; }
@media (max-width: 768px) {
  .case-nav { grid-template-columns: 1fr; }
  .case-nav__prev { border-right: 0; border-bottom: 1px solid var(--line); padding: 32px 0; }
  .case-nav__next { padding: 32px 0; text-align: left; align-items: flex-start; }
}

/* --- Process — colonne d'étapes + contenu ---------------------------------- */
.process-layout { display: grid; grid-template-columns: 240px 1fr; gap: 80px; }
.process-layout > * { min-width: 0; }
@media (max-width: 900px) { .process-layout { grid-template-columns: 1fr; gap: 0; } }

.process-nav { position: sticky; top: 140px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 900px) { .process-nav { display: none; } }
.process-nav__item { display: flex; align-items: baseline; gap: 14px; padding: 13px 0 13px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--stone-400); border-left: 2px solid transparent; transition: color .25s, border-color .25s; }
.process-nav__item:hover { color: var(--ink); }
.process-nav__num { font-family: var(--font-display); font-size: 13px; color: var(--stone-300); transition: color .25s; }
.process-nav__item.is-active { color: var(--ink); border-left-color: var(--ink); }
.process-nav__item.is-active .process-nav__num { color: var(--clay-500); }

.process-block { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.process-block:last-child { border-bottom: 0; }
.process-block__index { font-family: var(--font-display); font-size: clamp(4.5rem, 11vw, 8rem); color: var(--stone-200); line-height: .9; margin-bottom: 4px; }
.process-block__title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.75rem); margin-bottom: 24px; }
.process-block__lede { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; line-height: 1.5; max-width: 38rem; color: var(--stone-700); overflow-wrap: break-word; }
.process-block__detail { margin-top: 24px; max-width: 56ch; line-height: 1.8; color: var(--stone-600); }
@media (max-width: 900px) {
  .process-block { min-height: 0; padding: 48px 0; }
  .process-block__index { font-size: clamp(3.25rem, 20vw, 5rem); }
}

/* --- Studio — narration en 4 mouvements (ouverture / studio / direction / principes) */
.studio-open { padding-top: 152px; }
.studio-open__grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.studio-open__grid > * { min-width: 0; }
@media (min-width: 900px) { .studio-open__grid { grid-template-columns: 1.6fr 1fr; gap: 72px; align-items: end; } }
.studio-open__title { font-family: var(--font-display); font-size: clamp(1.9rem, 5.5vw, 4rem); line-height: 1.1; letter-spacing: -.01em; overflow-wrap: break-word; }
.studio-open__side .prose { font-size: 15px; }
.studio-open__meta { display: flex; gap: 40px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.studio-open__meta dt { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--stone-400); margin-bottom: 6px; }
.studio-open__meta dd { margin: 0; font-size: 14px; font-family: var(--font-display); }

.studio-image-break { margin-top: 96px; }
.studio-image-break .frame { aspect-ratio: 21 / 9; }
@media (max-width: 768px) { .studio-image-break .frame { aspect-ratio: 4 / 3; } }

.studio-block { padding: 96px 0; }
.studio-block__grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.studio-block__grid > * { min-width: 0; }
@media (min-width: 900px) { .studio-block__grid { grid-template-columns: 100px 1fr 1fr; gap: 56px; } }
.studio-block__num { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--stone-400); }
.studio-block__lead { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.25rem); line-height: 1.25; overflow-wrap: break-word; }
.studio-block__text { color: var(--stone-600); line-height: 1.75; max-width: 42ch; }
/* --- Studio — fondatrice, sans photo : le nom fait office de repère visuel
   (signature), sur un fond légèrement teinté pour rompre avec le bloc 01
   qui a la même grille sinon. */
.studio-founder { background: var(--stone-200); }
.studio-founder .studio-block__grid { grid-template-columns: 1fr; }
@media (min-width: 900px) { .studio-founder .studio-block__grid { grid-template-columns: 100px 1fr; gap: 56px; } }
.studio-founder__sig { font-family: var(--font-display); font-style: italic; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -.01em; max-width: 18ch; text-wrap: balance; }
.studio-founder__bio { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; max-width: 46rem; }
.studio-founder__bio p { margin: 0; color: var(--stone-600); line-height: 1.75; }

.studio-principles__item { display: grid; grid-template-columns: 60px 1fr; align-items: baseline; gap: 24px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.studio-principles__item:first-child { border-top: 1px solid var(--line); }
.studio-principles__num { font-family: var(--font-display); font-size: 1rem; color: var(--stone-400); }
.studio-principles__title { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.75rem); letter-spacing: -.01em; }
@media (min-width: 900px) { .studio-principles__item { grid-template-columns: 100px 1fr; } }

/* --- Forms --------------------------------------------------------------- */
.field { width: 100%; }
.field + .field { margin-top: 40px; }
.field label { display: block; margin-bottom: 12px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--stone-500); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field input[type="password"], .field input[type="date"], .field textarea, .field select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding-bottom: 12px;
  font-size: 1.125rem;
  color: var(--ink);
  cursor: text;
  transition: border-color .2s;
}
.field textarea { resize: none; line-height: 1.6; }
.field select { cursor: pointer; }
.field input:hover, .field textarea:hover, .field select:hover { border-bottom-color: var(--stone-500); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--ink); }
.field input:disabled, .field textarea:disabled, .field select:disabled { color: var(--stone-400); cursor: not-allowed; }
.field .hint { margin-top: 8px; font-size: 12px; color: var(--stone-400); }
.field .error { margin-top: 8px; font-size: 12px; color: #b42318; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-bottom-color: #b42318; }

.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.option-grid--3 { }
@media (min-width: 640px) { .option-grid--3 { grid-template-columns: repeat(3, 1fr); } .option-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.option-card { display: block; border: 1px solid var(--line); padding: 17px 20px; text-align: left; font-size: 14px; background: none; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.option-card:hover { border-color: var(--stone-400); }
.option-card.is-selected,
.option-card:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.option-card input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.form-nav { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
/* No-JS baseline: every step visible, one long scrollable form. JS (which adds
   js-steps-ready) is what turns this into a paginated wizard — see start-a-project.js. */
.form-step { display: block; padding-top: 8px; }
.js-steps-ready .form-step { display: none; }
.js-steps-ready .form-step.is-active { display: block; animation: step-fade-in .5s var(--ease-editorial); }
@keyframes step-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* --- Démarrer un projet — dossier compact, structure AT / Private ---------- */
.start-shell { display: block; }
.start-layout { display: block; }
@media (min-width: 960px) {
  .start-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 100vh; }
}

/* Left — light context panel, same language as the AT / Private sidebar:
   warm stone background (+ optional photo), near-ink text, persistent intro
   plus the current step synced in from the form via data-current-heading /
   the existing data-step-progress mechanism (no JS change needed for those). */
.start-context {
  background: var(--stone-200) center / cover no-repeat fixed; position: relative;
  padding: 112px 32px 48px; display: flex; flex-direction: column;
}
@media (min-width: 640px) { .start-context { padding: 120px 48px 56px; } }
@media (min-width: 960px) { .start-context { padding: 136px 56px 64px; } }
.start-context.has-bg-image::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(195deg, rgba(229, 226, 218, .88) 0%, rgba(229, 226, 218, .92) 55%, rgba(229, 226, 218, .96) 100%);
}
.start-context > * { position: relative; z-index: 1; }

.start-context__eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--stone-500); }
.start-context__title { margin-top: 14px; font-family: var(--font-display); font-size: clamp(1.85rem, 3.4vw, 2.5rem); line-height: 1.08; letter-spacing: -.01em; color: var(--ink); }
.start-context__lede { margin-top: 18px; font-size: 14px; line-height: 1.65; color: var(--stone-600); max-width: 28rem; }

.start-context__identity { margin-top: 36px; }
.start-context__identity .identity-card__name { color: var(--ink); }
.start-context__identity .identity-card__sub { color: var(--stone-500); }

.start-context__step { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.start-context__step-label { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; line-height: 1.35; color: var(--ink); min-height: 1.35em; }
.start-context__step .step-progress { margin: 16px 0 0; display: flex; align-items: center; gap: 16px; }
.start-context__step .step-progress__count { font-family: var(--font-display); font-size: 12.5px; color: var(--stone-500); white-space: nowrap; }
.start-context__step .progress-bar { flex: 1 1 auto; max-width: none; background: var(--line); }
.start-context__step .progress-bar__fill { background: var(--ink); }

.start-context__help { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; }
.start-context__help p { color: var(--stone-500); line-height: 1.5; }
.start-context__help a { color: var(--stone-700); }
.start-context__help a:hover { color: var(--ink); }
@media (max-width: 959px) { .start-context__identity, .start-context__help { display: none; } }

/* Right — the form itself: clean, editorial, no card. */
.start-form-col { padding: 40px 24px 100px; max-width: 640px; margin: 0 auto; }
@media (min-width: 640px) { .start-form-col { padding: 56px 40px 120px; } }
@media (min-width: 960px) { .start-form-col { padding: 88px 64px 140px 72px; margin: 0; max-width: 680px; } }

/* Form density inside the wizard — tighter than the generic .field rhythm:
   this is a working form the client fills quickly, not an editorial gallery. */
.form-step { padding-top: 0; }
.form-step .field + .field { margin-top: 28px; }

.type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 559px) { .type-grid { grid-template-columns: 1fr; } }
.type-option {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 18px 22px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  cursor: pointer; color: var(--ink);
  transition: transform .3s var(--ease-editorial), box-shadow .3s var(--ease-editorial), border-color .2s, background .2s;
}
.type-option__name { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.25; }
.type-option__desc { font-size: 12.5px; line-height: 1.5; color: var(--stone-500); }
.type-option::after {
  content: ""; position: absolute; top: 16px; right: 16px; width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; transition: all .2s;
}
.type-option:hover { transform: translateY(-2px); border-color: var(--clay-500); box-shadow: 0 10px 26px -14px rgba(12,12,11,.28); }
.type-option.is-selected, .type-option:has(input:checked) {
  background: #fff; border-color: var(--clay-500); box-shadow: 0 0 0 1px var(--clay-500), 0 14px 30px -16px rgba(163,131,95,.55);
}
.type-option.is-selected::after, .type-option:has(input:checked)::after {
  border-color: var(--clay-500); background: var(--clay-500) radial-gradient(circle, #fff 0 32%, transparent 36%);
}
.type-option:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.type-option input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Form card — raised surface on a tinted column, with stepper + step headers. */
.start-form-col { background: linear-gradient(180deg, var(--stone-100) 0%, var(--paper) 100%); padding-top: 112px; }
@media (min-width: 960px) { .start-form-col { max-width: none; padding: 136px 64px 120px 64px; } .start-card { max-width: 720px; } }
.start-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 40px 80px -48px rgba(12,12,11,.35);
}
.start-card > form, .start-card > .alert { margin-left: 22px; margin-right: 22px; }
@media (min-width: 640px) { .start-card > form, .start-card > .alert { margin-left: 44px; margin-right: 44px; } }
.start-card > form { padding: 36px 0 44px; }
.start-card > .alert { margin-top: 24px; }
.start-tabs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper); border-bottom: 1px solid var(--line); }
.start-tab {
  display: flex; align-items: center; gap: 10px; padding: 18px 16px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--stone-500); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .3s, border-color .3s;
}
.start-tab__num { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0; color: var(--stone-400, var(--stone-500)); }
@media (max-width: 559px) { .start-tab { flex-direction: column; gap: 2px; padding: 14px 6px; font-size: 10px; text-align: center; } }
.start-card:has(.form-step:nth-of-type(1).is-active) .start-tab:nth-child(1),
.start-card:has(.form-step:nth-of-type(2).is-active) .start-tab:nth-child(2),
.start-card:has(.form-step:nth-of-type(3).is-active) .start-tab:nth-child(3) { color: var(--ink); border-bottom-color: var(--clay-500); }
.start-card:has(.form-step:nth-of-type(1).is-active) .start-tab:nth-child(1) .start-tab__num,
.start-card:has(.form-step:nth-of-type(2).is-active) .start-tab:nth-child(2) .start-tab__num,
.start-card:has(.form-step:nth-of-type(3).is-active) .start-tab:nth-child(3) .start-tab__num { color: var(--clay-600); }

.step-head { margin-bottom: 32px; }
.step-head__eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--clay-600); margin: 0 0 10px; }
.step-head__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.1; margin: 0 0 10px; }
.step-head__lede { font-size: 14px; line-height: 1.6; color: var(--stone-500); margin: 0; max-width: 34rem; }
.form-step.is-active .step-head { animation: stepIn .6s var(--ease-editorial) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .form-step.is-active .step-head { animation: none; } .type-option { transition: none; } }

/* Inputs inside the card: real boxed fields with a clear focus ring. */
.start-card .field input[type="text"], .start-card .field input[type="email"], .start-card .field input[type="tel"],
.start-card .field select, .start-card .field textarea {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.start-card .field input:focus, .start-card .field select:focus, .start-card .field textarea:focus {
  outline: none; background: #fff; border-color: var(--clay-500); box-shadow: 0 0 0 4px rgba(163,131,95,.16);
}
.start-card .option-card { border-radius: 12px; }
.start-card .dropzone { border: 1.5px dashed var(--stone-300, var(--line)); border-radius: 14px; background: var(--paper); }
.start-card .form-nav { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 24px; }
.start-card .btn-primary { border-radius: 999px; padding-left: 28px; padding-right: 28px; }
.start-card .btn-ghost { border-radius: 999px; }

.dropzone {
  border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 22px 4px; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s;
  position: relative; margin-top: 14px; display: flex; align-items: center; gap: 14px;
}
.dropzone::before { content: "+"; flex-shrink: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); font-size: 15px; color: var(--stone-500); transition: border-color .2s, color .2s; }
.dropzone:hover, .dropzone.is-dragover { border-color: var(--ink); background: var(--stone-100); }
.dropzone:hover::before, .dropzone.is-dragover::before { border-color: var(--ink); color: var(--ink); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone p { font-size: 13px; color: var(--stone-500); pointer-events: none; }
.dropzone-errors { margin-top: 10px; }
.dropzone-errors p { font-size: 12px; color: #b42318; margin-top: 4px; }
.reference-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 16px; }
.reference-thumb { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--stone-200); }
.reference-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reference-thumb__remove { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%; background: rgba(12,12,11,.72); color: var(--paper); border: 0; font-size: 11px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }

.recap-section { padding: 24px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.recap-section:first-child { border-top: 1px solid var(--line); }
.recap-section__label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--stone-500); margin-bottom: 8px; }
.recap-section__value { font-size: 15px; line-height: 1.55; white-space: pre-line; }
.recap-section__edit { font-size: 11px; white-space: nowrap; text-transform: uppercase; letter-spacing: .06em; }

.progress-bar { margin-top: 16px; height: 1px; width: 100%; background: var(--line); }
.progress-bar__fill { height: 1px; background: var(--ink); transition: width .5s var(--ease-editorial); }

/* --- Admin ------------------------------------------------------------------
   Sidebar shell (same principle as .private-shell/.private-sidebar, but kept
   as its own class set — admin and client-portal chrome aren't meant to be
   coupled even though they look related). Grouped nav replaces the old flat
   .admin-nav single row: Pipeline / Facturation / Répertoire / Réglages. */
.admin-shell { display: flex; align-items: stretch; min-height: 100vh; background: var(--paper); }

.admin-sidebar { width: 260px; flex-shrink: 0; padding: 32px 26px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.admin-sidebar__brand { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }
.admin-sidebar__name { margin-top: 20px; font-size: 12px; color: var(--stone-500); }

.admin-sidebar-group { margin-top: 30px; }
.admin-sidebar-group__label { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--stone-400); margin-bottom: 8px; padding-left: 14px; }
.admin-sidebar-nav { display: flex; flex-direction: column; }
.admin-sidebar-nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 0 9px 14px;
  font-size: 13px; color: var(--stone-500); border-left: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.admin-sidebar-nav a:hover { color: var(--ink); }
.admin-sidebar-nav a.is-active { color: var(--ink); font-weight: 500; border-left-color: var(--clay-500); }
.admin-sidebar-nav__icon { flex-shrink: 0; opacity: .55; transition: opacity .2s; }
.admin-sidebar-nav a:hover .admin-sidebar-nav__icon, .admin-sidebar-nav a.is-active .admin-sidebar-nav__icon { opacity: 1; }

.admin-sidebar__foot { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 12px; }
.admin-sidebar__foot form { width: 100%; }
.admin-sidebar__foot a, .admin-sidebar__foot button {
  display: block; width: 100%; color: var(--stone-500); text-align: left;
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer; transition: color .2s;
}
.admin-sidebar__foot a:hover, .admin-sidebar__foot button:hover { color: var(--ink); }

.admin-topbar { display: none; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 30; }
.admin-topbar__toggle { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--ink); }
.admin-sidebar-scrim { display: none; }

@media (max-width: 900px) {
  .admin-topbar { display: flex; }
  .admin-sidebar {
    position: fixed; inset: 0 auto 0 0; width: 280px; transform: translateX(-100%);
    transition: transform .3s var(--ease-editorial); z-index: 45; background: var(--paper); overflow-y: auto;
  }
  .admin-sidebar.is-open { transform: translateX(0); }
  .admin-sidebar-scrim { display: none; position: fixed; inset: 0; background: rgba(12,12,11,.5); z-index: 40; }
  .admin-sidebar.is-open ~ .admin-sidebar-scrim { display: block; }
}

.admin-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--stone-500); margin: 0 0 10px; }
.admin-breadcrumb a { color: var(--stone-500); transition: color .2s; }
.admin-breadcrumb a:hover { color: var(--ink); }
.admin-breadcrumb span { color: var(--stone-300); }

.admin-main { flex: 1; min-width: 0; padding: 48px 48px 56px; }
@media (max-width: 640px) { .admin-main { padding: 32px 20px 48px; } }
.admin-main input[type="text"], .admin-main input[type="number"], .admin-main input[type="email"],
.admin-main textarea, .admin-main select {
  border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 8px 0;
  font-size: 14px; color: var(--ink);
}
.admin-main input:focus, .admin-main textarea:focus, .admin-main select:focus { outline: none; border-bottom-color: var(--ink); }
.admin-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .admin-grid--3 { grid-template-columns: repeat(3, 1fr); } .admin-grid--2 { grid-template-columns: repeat(2, 1fr); } }
.admin-card { display: block; border: 1px solid var(--line); padding: 24px; transition: border-color .2s; }
.admin-card:hover { border-color: var(--ink); }
.admin-list { display: flex; flex-direction: column; }
.admin-list > * { border-bottom: 1px solid var(--line); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-row { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 14px; }
.admin-row dt { color: var(--stone-500); }
.badge { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--clay-600); }
.alert { padding: 12px 16px; font-size: 13px; }
.alert-error { background: #fef2f2; color: #b42318; }
.alert-success { background: #f0fdf4; color: #166534; }
.preview-banner { background: var(--clay-500); color: var(--ink); }
.preview-banner__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; padding-bottom: 10px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }

.link-button { background: none; border: 0; cursor: pointer; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; padding: 0; }
.badge-count { display: inline-block; min-width: 16px; padding: 0 4px; border-radius: 8px; background: var(--clay-600); color: var(--paper); font-size: 10px; line-height: 16px; text-align: center; }

/* --- Client portal ---------------------------------------------------------- */
.action-card { border: 1px solid var(--clay-500); background: #fbf6ee; padding: 20px 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.action-card + .action-card { margin-top: 12px; }
.action-card__label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--clay-600); margin-bottom: 6px; }
.action-card__title { font-family: var(--font-display); font-size: 1.15rem; }
.action-card__meta { font-size: 12px; color: var(--stone-500); margin-top: 4px; }


.status-pill { display: inline-block; padding: 3px 10px; border: 1px solid var(--line); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--stone-600); }
.status-pill--positive { border-color: #166534; color: #166534; }
.status-pill--warning { border-color: var(--clay-600); color: var(--clay-600); }
.status-pill--negative { border-color: #b42318; color: #b42318; }

.phase-track { display: flex; align-items: center; gap: 6px; margin: 20px 0; flex-wrap: wrap; }
.phase-track__step { display: flex; align-items: center; gap: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--stone-400); }
.phase-track__step.is-done { color: var(--ink); }
.phase-track__step.is-current { color: var(--clay-600); font-weight: 500; }
.phase-track__dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid currentColor; }
.phase-track__step.is-done .phase-track__dot { background: currentColor; }
.phase-track__line { width: 24px; height: 1px; background: var(--line); }

.render-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.render-tile { display: block; border: 1px solid var(--line); cursor: pointer; background: var(--stone-100); }
.render-tile img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.render-tile__caption { padding: 10px 12px; font-size: 12px; }
.render-tile__caption .status-pill { margin-top: 6px; }

.lightbox { position: fixed; inset: 0; background: rgba(12,12,11,0.92); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 80vh; object-fit: contain; }
.lightbox__caption { color: var(--paper); text-align: center; margin-top: 16px; font-size: 13px; }
.lightbox__close { position: absolute; top: 20px; right: 24px; color: var(--paper); background: none; border: 0; font-size: 14px; cursor: pointer; text-transform: uppercase; letter-spacing: 0.1em; }

.message-thread { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.message-row { display: flex; gap: 10px; max-width: 78%; }
.message-row--client { align-self: flex-end; flex-direction: row-reverse; }
.message-row--studio { align-self: flex-start; }
.message-bubble { padding: 12px 16px; border: 1px solid var(--line); font-size: 14px; }
.message-bubble--client { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.message-bubble--studio { background: var(--stone-100); }
.message-bubble__meta { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.6; margin-bottom: 6px; }
.studio-mark { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--clay-600); color: var(--paper); font-family: var(--font-display); flex-shrink: 0; }

.file-list { display: flex; flex-direction: column; }
.file-list > * { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 14px 0; font-size: 14px; }
.file-list__name { font-weight: 500; }
.file-list__meta { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--stone-500); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.stat-row--4 { grid-template-columns: repeat(4, 1fr); }
.stat-row--6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 900px) { .stat-row--6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .stat-row { grid-template-columns: 1fr; } .stat-row--4 { grid-template-columns: repeat(2, 1fr); } .stat-row--6 { grid-template-columns: repeat(2, 1fr); } }
.stat-box { border: 1px solid var(--line); padding: 20px; }
.stat-box__label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--stone-500); }
.stat-box__value { font-family: var(--font-display); font-size: 1.5rem; margin-top: 6px; }

.avatar-circle { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }
.avatar-circle--initials { background: var(--ink); color: var(--paper); font-family: var(--font-display); letter-spacing: 0.02em; }

.account-menu { position: relative; }
.account-menu__trigger { position: relative; display: flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; padding: 0; color: inherit; }
.account-menu__dot { position: absolute; top: -1px; right: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--clay-600); box-shadow: 0 0 0 2px rgba(0,0,0,.25); }
.account-menu__panel { position: absolute; top: calc(100% + 14px); right: 0; width: 260px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 20px 40px rgba(12,12,11,0.12); z-index: 60; padding: 20px; }
.account-menu__panel[hidden] { display: none; }
.account-menu__header { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.account-menu__name { font-family: var(--font-display); font-size: 1rem; }
.account-menu__sub { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--stone-500); margin-top: 2px; }
.account-menu__panel a, .account-menu__panel button.link-button { display: block; width: 100%; text-align: left; padding: 9px 0; font-size: 13px; color: var(--ink); border-bottom: 1px solid var(--line); }
.account-menu__panel a:last-of-type, .account-menu__panel form:last-of-type button { border-bottom: 0; }
.account-menu__panel a:hover { color: var(--clay-600); }

.profile-header { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }

.avatar-picker { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* =============================================================================
   Espace privé — dossier de projet éditorial, pas un back-office.
   ============================================================================= */

.private-shell { display: flex; align-items: stretch; min-height: 100vh; background: var(--paper); }

.private-sidebar {
  width: 272px; flex-shrink: 0; padding: 40px 30px; position: relative;
  display: flex; flex-direction: column;
  background: var(--paper) center / cover no-repeat fixed; border-right: 1px solid var(--line);
}
/* Optional architectural photo behind the sidebar (has-bg-image, set only when
   the file actually exists — see layouts/private.php). The wash uses the same
   --paper tone as the rest of the shell so the sidebar reads as one continuous
   surface with the content area, with only a faint trace of the photo. */
.private-sidebar.has-bg-image::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(185deg, rgba(250, 249, 246, .82) 0%, rgba(250, 249, 246, .88) 55%, rgba(250, 249, 246, .93) 100%);
}
.private-sidebar > * { position: relative; z-index: 1; }
.private-sidebar__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.private-sidebar__brand-text { font-family: var(--font-display); font-size: 1rem; color: var(--ink); }
.private-sidebar__greeting { margin-top: 28px; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; color: var(--ink); }
.private-sidebar__sub { margin-top: 6px; font-size: 12px; color: var(--stone-600); }

.private-nav { margin-top: 44px; display: flex; flex-direction: column; }
.private-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 0 11px 14px; font-size: 13px; color: var(--stone-700);
  border-bottom: 1px solid var(--line); border-left: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.private-nav a:first-child { border-top: 1px solid var(--line); }
.private-nav a:hover { color: var(--ink); }
.private-nav a.is-active { color: var(--ink); font-weight: 500; border-left-color: var(--clay-500); }
.private-nav__label { display: flex; align-items: center; gap: 12px; }
.private-nav__icon { flex-shrink: 0; opacity: .75; transition: opacity .2s; }
.private-nav a:hover .private-nav__icon, .private-nav a.is-active .private-nav__icon { opacity: 1; }
.private-nav__admin { margin-top: 16px; }

.private-sidebar__foot { margin-top: auto; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.private-sidebar__foot form { width: 100%; }

.private-sidebar__foot-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 16px; background: var(--ink); color: var(--paper);
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em;
  transition: background-color .2s;
}
.private-sidebar__foot-primary:hover { background: var(--stone-800); }

.private-sidebar__foot-link {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 2px; font-size: 13px; color: var(--ink); opacity: .68; transition: opacity .2s;
}
.private-sidebar__foot-link:hover { opacity: 1; }

.private-sidebar__foot-logout {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 2px; font-size: 13px; color: var(--stone-600); background: none; border: 0; cursor: pointer;
  text-align: left; transition: color .2s;
}
.private-sidebar__foot-logout:hover { color: #b42318; }

.private-topbar { display: none; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--stone-200); z-index: 30; }
.private-topbar__toggle { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--ink); }
.private-topbar .font-display { color: var(--ink); }

.private-main { flex: 1 1 auto; min-width: 0; padding: 72px 64px 120px; }

/* Most pages' content is capped/centered via this inner wrapper rather than
   on .private-main itself, so a page can still opt a section (e.g. a full-
   bleed hero banner) out of the cap by simply not wrapping it — no viewport
   math, no risk of it overlapping the sidebar: .private-main's own box
   already stops exactly at the sidebar edge, full stop. */
.private-content { max-width: 1192px; margin: 0 auto; }

@media (max-width: 960px) {
  .private-shell { display: block; }
  .private-topbar { display: flex; }
  .private-sidebar {
    position: fixed; inset: 0 25% 0 0; height: 100vh; overflow-y: auto; z-index: 50;
    transform: translateX(-100%); transition: transform .35s var(--ease-editorial); box-shadow: 0 0 60px rgba(0,0,0,.35);
  }
  .private-sidebar.is-open { transform: translateX(0); }
  .private-sidebar-scrim { display: none; position: fixed; inset: 0; background: rgba(12,12,11,.5); z-index: 40; }
  .private-sidebar.is-open ~ .private-sidebar-scrim { display: block; }
  .private-main { padding: 40px 24px 90px; }
}
@media (max-width: 640px) {
  .private-main { padding: 32px 20px 80px; }
}

/* --- Private overview — hero + secondary rail, real width usage on desktop -- */
.private-overview { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 1100px) {
  .private-overview { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 72px; align-items: start; }
}

/* Full-bleed banner hero for the private overview (e.g. the "no active
   project" intro) — sits directly in .private-main (outside .private-content),
   so this negative margin only ever has to cancel .private-main's own
   padding to reach the sidebar on one side and the viewport edge on the
   other; text overlaid like the public site's .hero. */
.private-hero-banner { margin: -72px -64px 48px; }
@media (max-width: 960px) { .private-hero-banner { margin: -40px -24px 40px; } }
@media (max-width: 640px) { .private-hero-banner { margin: -32px -20px 32px; } }
.private-rail { display: flex; flex-direction: column; gap: 44px; }
.private-rail__block { padding-top: 28px; border-top: 1px solid var(--line); }
.private-rail__block:first-child { padding-top: 0; border-top: 0; }
@media (min-width: 1100px) {
  .private-rail__block:first-child { padding-top: 28px; border-top: 1px solid var(--line); }
}

/* Dashboard — surfaces: white panels on a softly tinted canvas, cards with depth. */
.private-main { background: radial-gradient(900px 420px at 100% 0, rgba(163,131,95,.09), transparent 70%), linear-gradient(180deg, var(--stone-100) 0, var(--paper) 480px); }
.dash-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px;
  box-shadow: 0 24px 50px -38px rgba(12,12,11,.35); margin-top: 32px;
  transition: box-shadow .35s var(--ease-editorial), transform .35s var(--ease-editorial);
}
.dash-panel:hover { box-shadow: 0 30px 60px -36px rgba(12,12,11,.4); }
.dash-panel--wide { max-width: 56rem; }
.dash-panel--alert { border-color: var(--clay-500); background: linear-gradient(135deg, #fff 60%, rgba(163,131,95,.10)); margin-top: 0; }
.dash-panel > .label { display: flex; align-items: center; gap: 10px; }
.dash-panel > .label::before { content: ""; width: 18px; height: 1px; background: var(--clay-500); }
.private-rail { gap: 24px; }
.private-rail .private-rail__block.dash-panel, .private-rail .private-rail__block.dash-panel:first-child { margin-top: 0; padding: 26px 28px; border: 1px solid var(--line); }
.private-rail__block.dash-panel .admin-list a { padding-left: 0; padding-right: 0; }
.private-rail__block.dash-panel .render-tile { border-radius: 12px; overflow: hidden; }
.dash-panel .message-preview { background: transparent; }
.dash-panel .timeline__item:last-child { border-bottom: 0; }
.project-hero { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -52px rgba(12,12,11,.45); transition: transform .5s var(--ease-editorial), box-shadow .5s var(--ease-editorial); }
a.project-hero:hover { transform: translateY(-3px); box-shadow: 0 50px 90px -50px rgba(12,12,11,.5); }
.project-hero > div:not(.project-hero__image) { padding: 0 32px 32px; }
.project-hero__facts { gap: 12px; padding-top: 0; border-top: 0; }
.project-hero__facts > div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.phase-track--lg { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 16px 18px; margin-top: 16px; }
@media (max-width: 640px) { .dash-panel { padding: 22px 20px; } .project-hero > div:not(.project-hero__image) { padding: 0 20px 24px; } }

/* Project hero — the dossier's cover page. */
.project-hero__image { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--stone-200); }
.project-hero__image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease-editorial); }
a.project-hero:hover .project-hero__image img { transform: scale(1.015); }
.project-hero__ref { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--stone-500); }
.project-hero__name { font-family: var(--font-display); font-size: clamp(1.75rem, 3.4vw, 2.75rem); margin-top: 10px; line-height: 1.1; }
.project-hero__location { font-size: 13px; color: var(--stone-500); margin-top: 6px; text-transform: uppercase; letter-spacing: .06em; }
.project-hero__phase { display: inline-block; margin-top: 18px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--clay-600); }

.project-hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.project-hero__fact-label { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--stone-400); }
.project-hero__fact-value { font-size: 14px; margin-top: 6px; }
@media (max-width: 640px) { .project-hero__facts { grid-template-columns: 1fr; gap: 16px; } }

/* Elegant phase progression, larger than the admin one. */
.phase-track--lg { display: flex; align-items: flex-start; gap: 0; margin: 28px 0 0; }
.phase-track--lg .phase-track__step { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--stone-400); position: relative; }
.phase-track--lg .phase-track__step.is-done { color: var(--ink); }
.phase-track--lg .phase-track__step.is-current { color: var(--clay-600); font-weight: 500; }
.phase-track--lg .phase-track__dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid currentColor; background: var(--paper); }
.phase-track--lg .phase-track__step.is-done .phase-track__dot { background: currentColor; }

/* --- Devis / Facture — le document commercial lui-même ---------------------- */
.doc { background: var(--paper); border: 1px solid var(--line); padding: 40px 32px; }
@media (min-width: 640px) { .doc { padding: 56px; } }
.doc__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.doc__mark { font-family: var(--font-display); font-size: 1.5rem; }
.doc__studio { font-size: 12px; color: var(--stone-500); margin-top: 10px; line-height: 1.6; }
.doc__head-right { text-align: right; }
.doc__doctype { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--stone-500); }
.doc__ref { font-family: var(--font-display); font-size: 1.15rem; margin-top: 6px; }
.doc__version { font-size: 11px; color: var(--clay-600); margin-top: 4px; text-transform: uppercase; letter-spacing: .06em; }

.doc__meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .doc__meta { grid-template-columns: repeat(4, 1fr); } }
.doc__meta span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--stone-400); margin-bottom: 6px; }
.doc__meta strong { font-size: 14px; font-weight: 500; }

.doc__section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.doc__section--split { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .doc__section--split { grid-template-columns: 1fr 1fr; } }
.doc__section-title { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--stone-500); margin-bottom: 12px; }
.doc__text { font-size: 14px; line-height: 1.65; color: var(--stone-700); }

.doc__lines { display: flex; flex-direction: column; gap: 16px; }
.doc__line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 14px; }
.doc__line-label { font-weight: 500; }
.doc__line-desc { font-size: 12px; color: var(--stone-500); margin-top: 2px; }
.doc__totals { display: flex; flex-direction: column; gap: 12px; }
.doc__line--total { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); font-family: var(--font-display); font-size: 1.1rem; }

.doc__estimate-note { margin-top: 28px; padding: 20px 24px; background: var(--stone-100); border-left: 2px solid var(--clay-500); }
.doc__estimate-note-label { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--clay-600); margin-bottom: 8px; }
.doc__estimate-note p:not(.doc__estimate-note-label) { font-size: 13px; line-height: 1.6; color: var(--stone-600); }

/* --- Impression (devis / facture) ------------------------------------------- */
.print-page { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
.print-toolbar { position: sticky; top: 0; background: var(--stone-100); padding: 16px 20px; text-align: right; border-bottom: 1px solid var(--line); z-index: 5; }
@media print {
  .no-print, .print-toolbar { display: none !important; }
  body { background: #fff !important; }
  .print-page { max-width: none; padding: 0; }
  .doc { border: 0; padding: 0; }
}

/* --- Indicateur de disponibilité (page d'accueil) — plaque de verre posée
   sur le hero photographique, filet ocre à gauche en signature. Le statut
   est traité comme une accroche (Fraunces italique), pas comme une ligne de
   texte parmi d'autres (voir StudioSettings::publicAvailability()). */
.availability-strip {
  position: fixed; right: 64px; bottom: 40px; z-index: 30;
  width: 264px; max-width: calc(100vw - 48px);
  padding: 20px 22px 19px;
  background: rgba(15, 14, 12, .58);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-left: 2px solid var(--clay-500);
  box-shadow: 0 24px 54px -20px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s var(--ease-editorial), transform .6s var(--ease-editorial);
}
.availability-strip.is-visible { opacity: 1; transform: translateY(0); }

.availability-strip__close {
  position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; color: rgba(255, 255, 255, .38); font-size: 11px; line-height: 1; transition: color .2s;
}
.availability-strip__close:hover { color: rgba(255, 255, 255, .9); }

.availability-strip__label { font-size: 9px; text-transform: uppercase; letter-spacing: .18em; color: var(--clay-500); font-weight: 600; padding-right: 20px; }

.availability-strip__status { display: flex; align-items: baseline; gap: 9px; margin-top: 11px; }
.availability-strip__status-word { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; line-height: 1.1; letter-spacing: -.01em; color: rgba(255, 255, 255, .96); }
.availability-strip__dot { position: relative; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; transform: translateY(-2px); }
.availability-strip__dot--open { background: #a9d3b3; }
.availability-strip__dot--busy { background: #cdac7c; }
.availability-strip__dot--limited { background: #c99a63; }
.availability-strip__dot--full { background: rgba(255, 255, 255, .5); }
.availability-strip__dot--open::before {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid #a9d3b3; opacity: 0; animation: availability-ring 2.6s var(--ease-editorial) infinite;
}
@keyframes availability-ring {
  0% { opacity: .55; transform: scale(.4); }
  75%, 100% { opacity: 0; transform: scale(1.9); }
}
@media (prefers-reduced-motion: reduce) { .availability-strip__dot--open::before { animation: none; opacity: 0; } }

.availability-strip__stats { margin-top: 7px; font-size: 10.5px; color: rgba(255, 255, 255, .5); }

.availability-strip__text { margin-top: 10px; font-size: 11.5px; line-height: 1.55; color: rgba(255, 255, 255, .66); max-width: 22rem; }

.availability-strip__cta { margin-top: 15px; }
.availability-strip__cta a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; border: 1px solid var(--line-dark); color: rgba(255, 255, 255, .96);
  font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .11em; text-decoration: none;
  transition: background-color .3s var(--ease-editorial), color .3s var(--ease-editorial), border-color .3s var(--ease-editorial);
}
.availability-strip__cta a:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

@media (max-width: 1024px) { .availability-strip { right: 40px; } }
@media (max-width: 640px) {
  .availability-strip { left: 16px; right: 16px; bottom: 16px; width: auto; padding: 18px 18px 16px; }
}
.phase-track--lg .phase-track__line { position: absolute; top: 4px; left: 50%; width: 100%; height: 1px; background: var(--line); z-index: -1; }
.phase-track--lg .phase-track__step.is-done .phase-track__line { background: var(--ink); }
.phase-track--lg .phase-track__step:last-child .phase-track__line { display: none; }
@media (max-width: 640px) { .phase-track--lg .phase-track__step span:last-child { display: none; } }

/* Editorial empty state — replaces the boxed "no data" placeholder. */
.private-empty-note { padding: min(14vh, 110px) 24px; text-align: center; }
.private-empty-note p { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--stone-600); max-width: 32rem; margin: 0 auto; }

.editorial-empty { max-width: 34rem; padding: min(10vh, 90px) 0; }
.editorial-empty__eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--stone-500); margin-bottom: 20px; }
.editorial-empty h2 { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.12; }
.editorial-empty p { margin-top: 20px; color: var(--stone-600); max-width: 32rem; }
.editorial-empty .btn { margin-top: 32px; }

/* Light typographic timeline. */
.timeline__item { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.timeline__item:first-child { border-top: 1px solid var(--line); }
.timeline__date { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--stone-400); padding-top: 2px; }
.timeline__text { font-size: 14px; }
@media (max-width: 520px) { .timeline__item { grid-template-columns: 1fr; gap: 4px; } }

/* Message preview on the overview page. */
.message-preview { border-top: 1px solid var(--line); padding-top: 20px; }
.message-preview__from { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--stone-500); }
.message-preview__body { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; margin-top: 10px; max-width: 40rem; line-height: 1.4; }

/* Editorial request card. */
.request-card { display: block; padding: 32px 0; border-bottom: 1px solid var(--line); }
.request-card:first-child { border-top: 1px solid var(--line); }
.request-card__ref { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--stone-500); }
.request-card__title { font-family: var(--font-display); font-size: 1.5rem; margin-top: 10px; }
.request-card__meta { font-size: 13px; color: var(--stone-500); margin-top: 8px; }
.request-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; flex-wrap: wrap; gap: 12px; }

/* Document library. */
.doc-group { margin-top: 40px; }
.doc-group:first-child { margin-top: 0; }
.doc-group__title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--stone-500); margin-bottom: 4px; }
.doc-row { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid var(--line); gap: 16px; }
.doc-row__name { font-family: var(--font-display); font-size: 1.05rem; }
.doc-row__meta { font-size: 12px; color: var(--stone-500); margin-top: 5px; text-transform: uppercase; letter-spacing: .04em; }

/* Payments — per-project breakdown. */
.payment-block { padding: 36px 0; border-bottom: 1px solid var(--line); }
.payment-block:first-child { border-top: 1px solid var(--line); }
.payment-block__title { font-family: var(--font-display); font-size: 1.4rem; }
.payment-summary { margin-top: 20px; max-width: 28rem; }
.payment-summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.payment-summary-row--total { border-bottom: 2px solid var(--ink); font-weight: 500; }
.installments { margin-top: 24px; display: flex; flex-direction: column; }
.installment { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.installment__label { font-size: 14px; }
.installment__amount { font-size: 13px; color: var(--stone-500); margin-top: 3px; }

/* Notifications — grouped by day, typographic. */
.notif-group { margin-top: 32px; }
.notif-group:first-child { margin-top: 0; }
.notif-group__title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--stone-500); margin-bottom: 4px; }
.notif-row { display: block; width: 100%; text-align: left; padding: 18px 0; border-bottom: 1px solid var(--line); }
.notif-row__message { font-size: 14px; }
.notif-row--unread .notif-row__message { font-weight: 500; }
.notif-row__meta { font-size: 12px; color: var(--stone-500); margin-top: 6px; }

/* Renders — large, few. */
.render-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }

/* --- Utility ---------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }


/* ==========================================================================
   AT / Private — refonte visuelle des pages (en-têtes, cartes, listes).
   Placé en fin de fichier pour l'emporter sur les règles de base.
   ========================================================================== */

/* En-tête de page : bandeau éditorial avec halo et filet ocre */
.page-head {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 0 0 40px; padding: 44px 44px 40px; border-radius: 24px;
  background: linear-gradient(135deg, #16150f 0%, #24211a 55%, #3a3226 100%); color: var(--paper);
  box-shadow: 0 40px 70px -46px rgba(12,12,11,.7);
}
.page-head::before {
  content: ""; position: absolute; z-index: -1; inset: auto -8% -60% auto; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(163,131,95,.55), transparent 65%);
}
.page-head::after {
  content: ""; position: absolute; z-index: -1; inset: 0; opacity: .5;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 1px, transparent 1px 22px);
}
.page-head__eyebrow { display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(250,249,246,.62); margin: 0; }
.page-head__eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--clay-500); }
.page-head__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.05; margin: 16px 0 0; color: #fff; }
.page-head__lede { margin: 14px 0 0; max-width: 36rem; font-size: 14.5px; line-height: 1.65; color: rgba(250,249,246,.72); }
@media (max-width: 640px) { .page-head { padding: 30px 24px 28px; border-radius: 18px; margin-bottom: 28px; } }

/* Profil : en-tête héros */
.profile-header--hero {
  position: relative; overflow: hidden; padding: 36px 40px; border: 0; border-radius: 24px; margin-bottom: 8px;
  background: linear-gradient(135deg, #16150f 0%, #24211a 55%, #3a3226 100%); color: var(--paper);
  box-shadow: 0 40px 70px -46px rgba(12,12,11,.7);
}
.profile-header--hero::before { content: ""; position: absolute; right: -80px; bottom: -160px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(163,131,95,.5), transparent 65%); pointer-events: none; }
.profile-header--hero > * { position: relative; }
.profile-header--hero .label, .profile-header--hero .text-muted { color: rgba(250,249,246,.62); }
.profile-header--hero .display-3 { color: #fff; }
.profile-header--hero img, .profile-header--hero .avatar { box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.dash-panel--form { max-width: 44rem; }
.dash-panel--form .admin-row { border-bottom: 1px solid var(--line); }
.stat-box { border-radius: 14px; background: var(--paper); padding: 18px 16px; transition: transform .3s var(--ease-editorial), border-color .2s; }
.stat-box:hover { transform: translateY(-2px); border-color: var(--clay-500); }
.stat-box__value { font-size: 1.9rem; color: var(--clay-600); }
@media (max-width: 640px) { .stat-row--4 { grid-template-columns: repeat(2, 1fr); } .profile-header--hero { padding: 26px 22px; } }

/* Cartes de liste (demandes, devis, factures) */
.request-card {
  position: relative; padding: 26px 30px 24px; margin-bottom: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 50px -40px rgba(12,12,11,.4); overflow: hidden;
  transition: transform .4s var(--ease-editorial), box-shadow .4s var(--ease-editorial), border-color .2s;
}
.request-card:first-child { border-top: 1px solid var(--line); }
.request-card::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--clay-500); transform: scaleY(0); transition: transform .4s var(--ease-editorial); }
.request-card:hover { transform: translateY(-3px); border-color: var(--clay-500); box-shadow: 0 34px 60px -38px rgba(12,12,11,.45); }
.request-card:hover::before { transform: scaleY(1); }
.request-card__title { font-size: 1.6rem; }
.request-card__foot { padding-top: 16px; border-top: 1px dashed var(--line); }

/* Pastilles de statut */
.status-pill { border-radius: 999px; padding: 5px 13px; background: var(--stone-100); border-color: transparent; }
.status-pill--positive { background: rgba(22,101,52,.09); }
.status-pill--warning { background: rgba(163,131,95,.14); }
.status-pill--negative { background: rgba(180,35,24,.09); }

/* Listes (messages, autres) */
.admin-list.reveal, .private-content > div > .admin-list { gap: 12px; }
.private-content > .admin-list > a, .private-content div.admin-list.reveal > a {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px;
  box-shadow: 0 20px 44px -38px rgba(12,12,11,.4);
  transition: transform .35s var(--ease-editorial), border-color .2s, box-shadow .35s var(--ease-editorial);
}
.private-content div.admin-list.reveal > a:hover { transform: translateX(4px); border-color: var(--clay-500); box-shadow: 0 28px 50px -36px rgba(12,12,11,.45); }
.badge-count { width: 10px; height: 10px; min-width: 0; padding: 0; border-radius: 50%; font-size: 0; box-shadow: 0 0 0 4px rgba(163,131,95,.2); }

/* Documents */
.doc-group { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px 28px 8px; margin-top: 20px; box-shadow: 0 24px 50px -40px rgba(12,12,11,.4); }
.doc-group:first-child { margin-top: 0; }
.doc-group__title { display: flex; align-items: center; gap: 10px; color: var(--clay-600); margin-bottom: 8px; }
.doc-group__title::before { content: ""; width: 18px; height: 1px; background: var(--clay-500); }
.doc-row:last-child { border-bottom: 0; }
.doc-row__name { transition: color .2s; }
.doc-row:hover .doc-row__name { color: var(--clay-600); }

/* Paiements */
.payment-block { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px 32px; margin-bottom: 20px; box-shadow: 0 24px 50px -40px rgba(12,12,11,.4); }
.payment-block:first-child { border-top: 1px solid var(--line); }
.payment-summary { padding: 6px 18px; background: var(--paper); border-radius: 14px; max-width: none; }
.payment-summary-row:last-child { border-bottom: 0; }
.payment-summary-row--total { border-bottom: 0; font-family: var(--font-display); font-size: 1.15rem; color: var(--clay-600); }
.installment { padding: 14px 4px; }
.installment:last-child { border-bottom: 0; }

/* Notifications */
.notif-group { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 26px 8px; margin-top: 20px; box-shadow: 0 24px 50px -40px rgba(12,12,11,.4); }
.notif-group:first-child { margin-top: 0; }
.notif-group__title { color: var(--clay-600); }
.notif-row { position: relative; padding: 16px 0 16px 20px; transition: background .2s, padding-left .3s var(--ease-editorial); }
.notif-row:last-child { border-bottom: 0; }
.notif-row:hover { padding-left: 26px; }
.notif-row--unread::before { content: ""; position: absolute; left: 0; top: 24px; width: 8px; height: 8px; border-radius: 50%; background: var(--clay-500); box-shadow: 0 0 0 4px rgba(163,131,95,.2); }

/* Projets : cartes à image */
.private-content .admin-grid > a.reveal {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; padding-bottom: 22px;
  box-shadow: 0 30px 60px -44px rgba(12,12,11,.45);
  transition: transform .5s var(--ease-editorial), box-shadow .5s var(--ease-editorial), border-color .2s;
}
.private-content .admin-grid > a.reveal:hover { transform: translateY(-4px); border-color: var(--clay-500); box-shadow: 0 44px 80px -46px rgba(12,12,11,.55); }
.private-content .admin-grid > a.reveal .project-hero__image { border-radius: 0; }
.private-content .admin-grid > a.reveal > div:last-child { padding: 0 24px; }
.private-content .admin-grid > a.reveal .progress-bar { height: 4px; border-radius: 4px; background: var(--stone-200); overflow: hidden; }
.private-content .admin-grid > a.reveal .progress-bar__fill { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--clay-500), var(--clay-600)); }
.private-content .admin-grid > a.reveal:hover .project-hero__image img { transform: scale(1.04); }

/* États vides : carte centrée */
.editorial-empty {
  max-width: 40rem; margin: 24px auto 0; padding: 56px 40px; text-align: center; background: #fff; border: 1px solid var(--line);
  border-radius: 24px; box-shadow: 0 40px 80px -56px rgba(12,12,11,.45);
  background-image: radial-gradient(420px 220px at 50% 0, rgba(163,131,95,.12), transparent 70%);
}
.editorial-empty p { margin-left: auto; margin-right: auto; }
.editorial-empty__eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--clay-600); }
.editorial-empty__eyebrow::before, .editorial-empty__eyebrow::after { content: ""; width: 20px; height: 1px; background: var(--clay-500); }
@media (max-width: 640px) { .editorial-empty { padding: 40px 22px; } }

/* Tableau de bord : le projet principal, dernière passe (l'emporte sur les règles de base) */
.project-hero__facts { gap: 12px; padding-top: 0; border-top: 0; margin-top: 20px; }
@media (max-width: 640px) { .project-hero__facts { grid-template-columns: 1fr; } }
.project-hero__phase { padding: 6px 14px; border-radius: 999px; background: rgba(163,131,95,.14); }
@media (prefers-reduced-motion: reduce) { .request-card, .stat-box, .private-content .admin-grid > a.reveal, .notif-row { transition: none; } }
/* Alignement : les listes prennent la même largeur que le bandeau d'en-tête */
.private-content > div[style*="max-width"], .private-content > .admin-list[style*="max-width"] { max-width: none !important; }
.private-content > .dash-panel--wide, .private-content > .dash-panel--form { max-width: none; }

/* ==========================================================================
   Notifications — icônes, lignes riches, cloche de la navbar
   ========================================================================== */
.notif-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: var(--stone-100); color: var(--stone-600); }
.notif-icon--accent { background: rgba(163,131,95,.16); color: var(--clay-600); }
.notif-icon--positive { background: rgba(22,101,52,.10); color: #166534; }

.notif-row { display: flex; align-items: center; gap: 16px; padding: 16px 12px 16px 8px; border-radius: 14px; border-bottom: 0; margin: 0 -8px; transition: background .25s, transform .3s var(--ease-editorial); }
.notif-row + .notif-row, form + form > .notif-row { border-top: 0; }
.notif-row:hover { background: var(--paper); padding-left: 8px; transform: translateX(3px); }
.notif-row--unread { background: linear-gradient(90deg, rgba(163,131,95,.09), transparent 70%); }
.notif-row--unread::before { display: none; }
.notif-row__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.notif-row__kind { display: flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--stone-500); }
.notif-row__kind em { font-style: normal; font-size: 9.5px; letter-spacing: .1em; padding: 2px 8px; border-radius: 999px; background: var(--clay-500); color: #fff; }
.notif-row__message { font-size: 14px; line-height: 1.5; color: var(--ink); }
.notif-row--unread .notif-row__message { font-weight: 500; }
.notif-row__meta { flex: 0 0 auto; font-size: 12px; color: var(--stone-500); white-space: nowrap; margin: 0; }
.notif-row__go { flex: 0 0 auto; color: var(--stone-400, var(--stone-500)); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .3s var(--ease-editorial), color .2s; }
.notif-row:hover .notif-row__go { opacity: 1; transform: none; color: var(--clay-600); }
@media (max-width: 560px) { .notif-row__meta { display: none; } .notif-row__go { display: none; } }

/* Cloche dans la navbar publique */
.notif-menu__trigger { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: inherit; transition: background .25s; }
.notif-menu__trigger:hover, .notif-menu__trigger[aria-expanded="true"] { background: rgba(255,255,255,.14); }
.notif-menu__count {
  position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--clay-500); color: #fff;
  font-size: 10px; font-weight: 600; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px rgba(12,12,11,.55);
}
.notif-menu__panel {
  position: absolute; top: calc(100% + 14px); right: -60px; width: 360px; max-width: calc(100vw - 32px); z-index: 60;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-transform: none; letter-spacing: 0;
  box-shadow: 0 30px 70px -20px rgba(12,12,11,.35); animation: notifIn .3s var(--ease-editorial) both;
}
.notif-menu__panel[hidden] { display: none; }
@keyframes notifIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
.notif-menu__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
.notif-menu__head p { font-family: var(--font-display); font-size: 1.05rem; margin: 0; }
.notif-menu__head span { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--clay-600); }
.notif-menu__item {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 14px 20px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line);
  cursor: pointer; color: var(--ink); font: inherit; transition: background .2s;
}
.notif-menu__item:hover { background: var(--paper); }
.notif-menu__item.is-unread { background: linear-gradient(90deg, rgba(163,131,95,.1), transparent 80%); }
.notif-menu__item .notif-icon { width: 32px; height: 32px; border-radius: 10px; }
.notif-menu__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.notif-menu__msg { font-size: 13px; line-height: 1.45; text-transform: none; letter-spacing: 0; font-weight: 400; }
.notif-menu__item.is-unread .notif-menu__msg { font-weight: 500; }
.notif-menu__time { font-size: 11px; color: var(--stone-500); text-transform: none; letter-spacing: 0; }
.notif-menu__empty { padding: 28px 20px; text-align: center; font-size: 13px; color: var(--stone-500); }
.notif-menu__all { display: block; padding: 14px 20px; text-align: center; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--clay-600); background: var(--paper); }
.notif-menu__all:hover { color: var(--ink); }
.account-menu__dot { display: none; }

@media (prefers-reduced-motion: reduce) { .notif-menu__panel { animation: none; } .notif-row { transition: none; } }

/* ==========================================================================
   Devis — feuille de document soignée (logo noir, total, cachet, signature)
   ========================================================================== */
.doc--quote {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 52px 44px 40px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(12,12,11,.06), 0 40px 80px -40px rgba(12,12,11,.35);
}
@media (max-width: 640px) { .doc--quote { padding: 40px 22px 28px; } }
.doc__ribbon { position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--ink) 0 55%, var(--clay-500) 55% 100%); }
.doc--quote .doc__head { align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.doc__logo { display: block; height: 54px; width: auto; max-width: 240px; object-fit: contain; filter: brightness(0); }
.doc__mark-text { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--ink); }
.doc--quote .doc__studio { margin-top: 14px; }
.doc--quote .doc__doctype { color: var(--clay-600); font-weight: 500; letter-spacing: .18em; }
.doc--quote .doc__ref { font-size: 1.6rem; margin-top: 8px; }
.doc--quote .doc__meta { grid-template-columns: repeat(2, 1fr); gap: 0; padding: 0; margin: 28px 0 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper); }
@media (min-width: 640px) { .doc--quote .doc__meta { grid-template-columns: repeat(4, 1fr); } }
.doc--quote .doc__meta > div { padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.doc--quote .doc__section { border-bottom: 0; padding: 32px 0 0; }
.doc--quote .doc__section-title { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 500; letter-spacing: .16em; }
.doc--quote .doc__section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.doc--quote .doc__lines { gap: 0; }
.doc--quote .doc__lines .doc__line { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.doc--quote .doc__lines .doc__line:last-child { border-bottom: 0; }
.doc--quote .doc__lines .doc__line > span { font-variant-numeric: tabular-nums; font-weight: 500; }
.doc--quote .doc__totals { gap: 10px; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.doc--quote .doc__line--total {
  margin: 8px -24px -22px; padding: 18px 24px; border-top: 0; background: var(--ink); color: #fff; border-radius: 0 0 11px 11px;
  font-size: 1.3rem; -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.doc--quote .doc__line--total + .doc__line { margin-top: 26px; }
.doc--quote .doc__line--total ~ .doc__line--total { margin-top: 8px; }
.doc--quote .doc__line--total strong { color: #e5cfae; }
.doc--quote .doc__estimate-note { border-left: 0; border-top: 1px solid var(--line); background: transparent; padding: 22px 0 0; margin-top: 36px; }

/* Cachet + signature */
.doc__seal { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc__sign { min-width: 260px; }
.doc__sign-place { font-size: 12px; color: var(--stone-500); }
.doc__sign-label { margin-top: 18px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--stone-500); }
.doc__sign-art { position: relative; height: 112px; width: 300px; max-width: 100%; }
.doc__signature {
  position: absolute; left: 4px; top: 20px; font-family: 'Mrs Saint Delafield', 'Snell Roundhand', 'Segoe Script', cursive; font-size: 64px; line-height: 1;
  color: #1d2a4a; transform: rotate(-4deg); white-space: nowrap;
}
.doc__stamp { position: absolute; left: 120px; top: -6px; color: rgba(38,58,112,.72); transform: rotate(-11deg); mix-blend-mode: multiply; opacity: .92; pointer-events: none; }
.doc__sign-name { font-weight: 500; font-size: 14px; border-top: 1px solid var(--ink); padding-top: 10px; width: 300px; max-width: 100%; }
.doc__sign-role { font-size: 12px; color: var(--stone-500); margin-top: 2px; }
.doc__seal-note { max-width: 20rem; font-size: 11.5px; line-height: 1.6; color: var(--stone-500); text-align: right; }
@media (max-width: 640px) { .doc__seal-note { text-align: left; } }
@media print { .doc--quote { box-shadow: none; border: 0; } .doc__signature, .doc__stamp { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* Facture — état, solde en évidence, jauge, tampon « payée » */
.doc--invoice .doc__head-right { display: flex; flex-direction: column; align-items: flex-end; }
.doc__state { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.doc__state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.doc__state--due { background: rgba(163,131,95,.16); color: var(--clay-600); }
.doc__state--paid { background: rgba(22,101,52,.12); color: #166534; }
.doc__due {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; padding: 28px 30px; border-radius: 14px;
  background: linear-gradient(135deg, #16150f 0%, #2a261d 60%, #3a3226 100%); color: #fff; position: relative; overflow: hidden;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.doc__due::before { content: ""; position: absolute; right: -60px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(163,131,95,.5), transparent 65%); }
.doc__due > * { position: relative; }
.doc__due-label { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.doc__due-amount { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.05; margin-top: 8px; color: #e5cfae; }
.doc__due--paid .doc__due-amount { color: #a7e3bc; }
.doc__due-side { flex: 1 1 240px; max-width: 340px; }
.doc__due-side p { margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.7); }
.doc__meter { height: 6px; border-radius: 6px; background: rgba(255,255,255,.18); overflow: hidden; }
.doc__meter span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--clay-500), #e5cfae); }
.doc__due--paid .doc__meter span { background: linear-gradient(90deg, #4ea36d, #a7e3bc); }
.doc--invoice .doc__line--remaining { background: var(--clay-600); }
.doc--invoice .doc__line--remaining strong { color: #fff; }
.doc__paid-stamp {
  position: absolute; right: 44px; top: 200px; padding: 6px 22px; border: 4px double #166534; border-radius: 8px; color: #166534;
  font-family: Georgia, serif; font-size: 2.4rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  transform: rotate(-12deg); opacity: .78; mix-blend-mode: multiply; pointer-events: none;
}
@media (max-width: 640px) { .doc__paid-stamp { right: 16px; top: 250px; font-size: 1.6rem; } .doc__due { padding: 22px 20px; } }
/* Bannière de l'aperçu sans photo : fond éditorial clair avec halo */
.private-hero-banner--plain { background: radial-gradient(700px 320px at 85% 20%, rgba(163,131,95,.25), transparent 70%), linear-gradient(135deg, var(--stone-200), var(--paper)); }


/* ==========================================================================
   Menus déroulants de la navbar (compte + notifications) — version soignée
   ========================================================================== */
.account-menu__trigger { border-radius: 50%; transition: box-shadow .25s, transform .25s var(--ease-editorial); }
.account-menu__trigger:hover, .account-menu__trigger[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(255,255,255,.28); }
.site-header.is-scrolled .account-menu__trigger:hover, .site-header.is-scrolled .account-menu__trigger[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(163,131,95,.35); }
.site-header.is-scrolled .notif-menu__trigger:hover, .site-header.is-scrolled .notif-menu__trigger[aria-expanded="true"] { background: rgba(12,12,11,.07); }
.site-nav .account-menu, .site-nav .notif-menu { display: flex; align-items: center; }
.site-nav { gap: 32px; }
@media (min-width: 768px) and (max-width: 1023px) { .site-nav { gap: 18px; } .site-nav .btn { padding: 9px 14px; } }

.account-menu__panel, .notif-menu__panel {
  border-radius: 20px; padding: 0; overflow: hidden; background: #fff; color: var(--ink); border: 1px solid var(--line);
  text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 13px;
  box-shadow: 0 2px 6px rgba(12,12,11,.06), 0 36px 80px -22px rgba(12,12,11,.42);
  transform-origin: top right; animation: notifIn .3s var(--ease-editorial) both;
}
.account-menu__panel { width: 300px; max-width: calc(100vw - 24px); top: calc(100% + 16px); }
.account-menu__panel::before, .notif-menu__panel::before {
  content: ""; position: absolute; top: -6px; right: 18px; width: 12px; height: 12px; background: var(--paper); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg);
}
.notif-menu__panel { right: -64px; }
.notif-menu__panel::before { right: 78px; }
.account-menu__panel a, .notif-menu__panel a { opacity: 1; }

.account-menu__header { position: relative; margin: 0; padding: 20px 22px; gap: 14px; background: var(--paper); border-bottom: 1px solid var(--line); }
.account-menu__header img, .account-menu__header .avatar { box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--clay-500); }
.account-menu__name { font-size: 1.1rem; line-height: 1.2; }
.account-menu__sub { color: var(--clay-600); }
.account-menu__list { padding: 8px; }
.account-menu__panel a.account-menu__link, .account-menu__logout button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border: 0; border-radius: 12px; background: none;
  font-size: 13.5px; color: var(--ink); text-align: left; cursor: pointer; transition: background .2s, color .2s, transform .25s var(--ease-editorial);
}
.account-menu__link svg, .account-menu__logout svg { flex: 0 0 auto; color: var(--stone-500); transition: color .2s; }
.account-menu__panel a.account-menu__link:hover { background: var(--paper); color: var(--ink); transform: translateX(3px); }
.account-menu__link:hover svg { color: var(--clay-600); }
.account-menu__logout { padding: 8px; border-top: 1px solid var(--line); }
.account-menu__panel .account-menu__logout button { border-bottom: 0; font-size: 13.5px; padding: 11px 14px; }
.account-menu__logout button:hover { background: rgba(180,35,24,.07); color: #b42318; }
.account-menu__logout button:hover svg { color: #b42318; }

.notif-menu__head { padding: 18px 22px; }
.notif-menu__list { max-height: min(60vh, 380px); overflow-y: auto; overscroll-behavior: contain; }
.notif-menu__item { padding: 14px 22px; }
.notif-menu__item:last-child { border-bottom: 0; }
.notif-menu__all { border-top: 1px solid var(--line); transition: background .2s, color .2s; }
.notif-menu__all:hover { background: var(--ink); color: #fff; }

/* Petits écrans (tablette étroite) : panneaux calés dans la fenêtre */
@media (max-width: 900px) {
  .notif-menu__panel { right: -56px; width: min(360px, calc(100vw - 24px)); }
  .notif-menu__panel::before { right: 70px; }
}
@media (max-width: 767px) {
  .account-menu__panel, .notif-menu__panel { position: fixed; top: 72px; left: 12px; right: 12px; width: auto; max-width: none; }
  .account-menu__panel::before, .notif-menu__panel::before { display: none; }
}

/* Panneau de disponibilité — version compacte (même contenu, empreinte réduite) */
.availability-strip {
  width: 232px; padding: 13px 15px 14px; right: 48px; bottom: 32px; border-radius: 14px; border-left: 0;
  border: 1px solid rgba(255,255,255,.14); background: rgba(15,14,12,.6);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.06);
}
.availability-strip::before { content: ""; position: absolute; left: 15px; right: 15px; top: 0; height: 2px; border-radius: 0 0 2px 2px; background: linear-gradient(90deg, var(--clay-500), transparent); }
.availability-strip__close { top: 7px; right: 7px; width: 20px; height: 20px; font-size: 10px; border-radius: 50%; }
.availability-strip__close:hover { background: rgba(255,255,255,.1); }
.availability-strip__label { font-size: 8.5px; letter-spacing: .2em; padding-right: 16px; }
.availability-strip__status { margin-top: 7px; gap: 7px; }
.availability-strip__status-word { font-size: 1.08rem; }
.availability-strip__dot { width: 5px; height: 5px; transform: translateY(-1px); }
.availability-strip__stats { margin-top: 4px; font-size: 10px; }
.availability-strip__text { margin-top: 6px; font-size: 11px; line-height: 1.5; }
.availability-strip__cta { margin-top: 10px; }
.availability-strip__cta a { padding: 8px 11px; border-radius: 999px; font-size: 9.5px; letter-spacing: .1em; background: rgba(255,255,255,.06); }
@media (max-width: 1024px) { .availability-strip { right: 32px; } }
@media (max-width: 640px) { .availability-strip { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 12px 14px 13px; } }

/* Pastille de statut : halo contenu (ne déborde plus sur le texte) et plus visible */
.availability-strip__status { align-items: center; }
.availability-strip__dot { width: 9px; height: 9px; margin: 0 9px 0 10px; transform: none; flex: 0 0 9px; }
.availability-strip__dot--open { background: #6fe3a0; box-shadow: 0 0 10px 1px rgba(111,227,160,.75); }
.availability-strip__dot--busy { box-shadow: 0 0 10px 1px rgba(205,172,124,.7); }
.availability-strip__dot--limited { box-shadow: 0 0 10px 1px rgba(201,154,99,.7); }
.availability-strip__dot--open::before { inset: -3px; border: 1.5px solid #6fe3a0; animation: availability-ring 2.4s var(--ease-editorial) infinite; }
@keyframes availability-ring {
  0% { opacity: .9; transform: scale(.7); }
  80%, 100% { opacity: 0; transform: scale(1.7); }
}

/* Autres niveaux de disponibilité : même traitement (couleur vive, halo, anneau contenu) */
.availability-strip__dot--busy { background: #f0c46c; box-shadow: 0 0 10px 1px rgba(240,196,108,.75); }
.availability-strip__dot--limited { background: #f29b5b; box-shadow: 0 0 10px 1px rgba(242,155,91,.75); }
.availability-strip__dot--full { background: #ef6f66; box-shadow: 0 0 10px 1px rgba(239,111,102,.7); }
.availability-strip__dot--busy::before, .availability-strip__dot--limited::before, .availability-strip__dot--full::before {
  content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0;
}
.availability-strip__dot--busy { color: #f0c46c; }
.availability-strip__dot--limited { color: #f29b5b; }
.availability-strip__dot--full { color: #ef6f66; }
.availability-strip__dot--busy::before { animation: availability-ring 3s var(--ease-editorial) infinite; }
.availability-strip__dot--limited::before { animation: availability-ring 1.9s var(--ease-editorial) infinite; }
/* « Complet » : fixe, sans anneau — le signal est volontairement calme */
@media (prefers-reduced-motion: reduce) {
  .availability-strip__dot--busy::before, .availability-strip__dot--limited::before { animation: none; opacity: 0; }
}

/* Onglets de sections (pages fusionnées : Demandes+Messages, Documents+Devis+Factures+Paiements) */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.section-tabs { position: sticky; top: 0; z-index: 20; display: flex; gap: 8px; flex-wrap: wrap; margin: -8px 0 32px; padding: 12px 0; background: linear-gradient(var(--paper) 70%, transparent); }
.section-tabs a {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 12.5px; font-weight: 500; letter-spacing: .04em; color: var(--stone-600); transition: all .25s var(--ease-editorial);
}
.section-tabs a:hover { border-color: var(--clay-500); color: var(--ink); }
.section-tabs a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 12px 26px -14px rgba(12,12,11,.6); }
.section-tabs span { min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--stone-100); color: var(--stone-600); font-size: 11px; text-align: center; }
.section-tabs a.is-active span { background: rgba(255,255,255,.18); color: #fff; }
.section-tabs span.is-alert { background: var(--clay-500); color: #fff; }
.page-section { scroll-margin-top: 76px; padding-top: 12px; margin-bottom: 40px; }
.section-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 8px 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.section-title h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; }
.section-title p { font-size: 13px; color: var(--stone-500); }
.section-empty { padding: 26px 28px; border: 1px dashed var(--line); border-radius: 16px; background: #fff; font-size: 13.5px; color: var(--stone-500); }
@media (max-width: 960px) { .section-tabs { top: 56px; } }
.section-tabs--admin { position: static; margin: 20px 0 8px; padding: 0; background: none; }


/* Projet sans rendu : panneau « plan d'architecte » à la place de l'aplat beige */
.project-hero__image:has(.cover-empty) { aspect-ratio: auto !important; background: transparent; filter: none !important; }
.cover-empty {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 190px; padding: 28px 20px;
  color: rgba(229,207,174,.85); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(420px 220px at 80% 0, rgba(163,131,95,.32), transparent 70%),
    linear-gradient(135deg, #16150f 0%, #24211a 60%, #322b20 100%);
}
.cover-empty::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
}
.cover-empty__sketch { width: min(240px, 60%); height: auto; }
.cover-empty__caption { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: rgba(250,249,246,.55); }
.project-hero .cover-empty, .private-content .admin-grid .cover-empty { min-height: 210px; }

/* ==========================================================================
   Onglets de sections — barre segmentée avec icônes et indicateur glissant
   ========================================================================== */
.section-tabs {
  position: sticky; top: 12px; z-index: 20; display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  margin: 0 0 36px; padding: 6px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 22px 44px -28px rgba(12,12,11,.4);
}
.section-tabs::-webkit-scrollbar { display: none; }
.section-tabs__pill {
  position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 15px; pointer-events: none;
  background: linear-gradient(135deg, #1a1913, #2c281f); box-shadow: 0 14px 26px -14px rgba(12,12,11,.7);
  transition: transform .45s var(--ease-editorial), width .45s var(--ease-editorial); opacity: 0;
}
.section-tabs.has-pill .section-tabs__pill { opacity: 1; }
.section-tabs a {
  position: relative; z-index: 1; flex: 1 1 0; min-width: max-content; justify-content: center; gap: 9px; padding: 13px 20px; border: 0; border-radius: 15px; background: transparent;
  font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--stone-600); box-shadow: none; transition: color .3s var(--ease-editorial), background .3s;
}
.section-tabs a::before {
  content: ""; width: 16px; height: 16px; flex: 0 0 16px; background: currentColor; opacity: .75;
  -webkit-mask: var(--tab-ico, none) center / contain no-repeat; mask: var(--tab-ico, none) center / contain no-repeat;
}
.section-tabs a:hover { color: var(--ink); background: rgba(12,12,11,.04); border-color: transparent; }
.section-tabs a.is-active { color: #fff; background: transparent; box-shadow: none; }
.section-tabs:not(.has-pill) a.is-active { background: linear-gradient(135deg, #1a1913, #2c281f); box-shadow: 0 14px 26px -14px rgba(12,12,11,.7); }
.section-tabs a.is-active::before { opacity: 1; color: #e5cfae; }
.section-tabs a[href="#devis"], .section-tabs a[href="/admin/quotes"] { --tab-ico: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%271.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M6 3h12v18l-2-1.5L14 21l-2-1.5L10 21l-2-1.5L6 21V3Z M8 8h8M8 12h8M8 16h5%27/%3E%3C/svg%3E"); }
.section-tabs a[href="#factures"], .section-tabs a[href="/admin/invoices"] { --tab-ico: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%271.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M4 4h16v16l-2-1.3L16 20l-2-1.3L12 20l-2-1.3L8 20l-2-1.3L4 20V4Z M8 9h8M8 13h5%27/%3E%3C/svg%3E"); }
.section-tabs a[href="#paiements"] { --tab-ico: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%271.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M3 7a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7Z M3 10h18 M7 15h3%27/%3E%3C/svg%3E"); }
.section-tabs a[href="#fichiers"] { --tab-ico: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%271.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M7 3h7l4 4v14H7V3Z M14 3v4h4%27/%3E%3C/svg%3E"); }
.section-tabs a[href="#demandes"] { --tab-ico: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%271.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M4 12h4l2 3h4l2-3h4M4 12v7a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7M4 12l3-8h10l3 8%27/%3E%3C/svg%3E"); }
.section-tabs a[href="#messages"] { --tab-ico: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%271.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M4 5h16v11H8l-4 4V5Z%27/%3E%3C/svg%3E"); }
.section-tabs a[href="/admin/projects"] { --tab-ico: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%271.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M5 21V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v17M13 21V9a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v12%27/%3E%3C/svg%3E"); }
.section-tabs a[href="/admin/queue"] { --tab-ico: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%271.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18Z M12 7v5l3 3%27/%3E%3C/svg%3E"); }
.section-tabs span { min-width: 22px; padding: 2px 8px; border-radius: 999px; background: var(--stone-100); color: var(--stone-600); font-size: 11px; font-weight: 600; line-height: 1.4; transition: background .3s, color .3s; }
.section-tabs a.is-active span { background: rgba(255,255,255,.16); color: #fff; }
.section-tabs span.is-alert { background: var(--clay-500); color: #fff; box-shadow: 0 6px 14px -6px rgba(163,131,95,.9); }
.section-tabs--admin { position: relative; display: inline-flex; top: auto; margin: 20px 0 8px; backdrop-filter: none; }
.section-tabs--admin a { flex: 0 0 auto; }
@media (max-width: 640px) { .section-tabs { top: 8px; border-radius: 16px; } .section-tabs a { flex: 0 0 auto; padding: 12px 16px; } }
@media (max-width: 960px) { .section-tabs { top: 64px; } .section-tabs--admin { top: auto; } }
@media (prefers-reduced-motion: reduce) { .section-tabs__pill { transition: none; } }

/* Onglets — version plate : aucune ombre, onglet actif plein (pas d'indicateur séparé) */
.section-tabs, .section-tabs a, .section-tabs a.is-active, .section-tabs span.is-alert, .section-tabs:not(.has-pill) a.is-active { box-shadow: none !important; }
.section-tabs { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 16px; padding: 5px; gap: 4px; }
.section-tabs__pill { display: none !important; }
.section-tabs a { border-radius: 12px; color: var(--stone-600); transition: background .25s var(--ease-editorial), color .25s; }
.section-tabs a:hover { background: var(--stone-100); color: var(--ink); }
.section-tabs a.is-active, .section-tabs.has-pill a.is-active { background: var(--ink) !important; color: #fff !important; }
.section-tabs a.is-active::before { color: #e5cfae; opacity: 1; }
.section-tabs a.is-active span { background: rgba(255,255,255,.18); color: #fff; }
.section-tabs span.is-alert { background: var(--clay-500); color: #fff; }
.section-tabs a.is-active span.is-alert { background: var(--clay-500); }

/* Onglet actif : ocre doux, plus chaleureux que le noir */
.section-tabs a.is-active, .section-tabs.has-pill a.is-active, .section-tabs:not(.has-pill) a.is-active { background: rgba(163,131,95,.16) !important; color: var(--ink) !important; }
.section-tabs a.is-active::before { color: var(--clay-600); opacity: 1; }
.section-tabs a.is-active span { background: #fff; color: var(--clay-600); }
.section-tabs a.is-active span.is-alert, .section-tabs span.is-alert { background: var(--clay-500); color: #fff; }
.section-tabs a { position: relative; }
.section-tabs a.is-active::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 4px; height: 2px; border-radius: 2px; background: var(--clay-500); }

/* Onglets = pages : une seule section visible, avec une entrée douce */
.tabs-js .page-section[hidden] { display: none; }
.tabs-js .page-section:not([hidden]) { animation: tabPanelIn .45s var(--ease-editorial) both; }
@keyframes tabPanelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tabs-js .page-section:not([hidden]) { animation: none; } }

/* Photo de profil — zone d'envoi soignée */
.avatar-upload { display: grid; grid-template-columns: auto 1fr; gap: 18px 22px; align-items: center; }
.avatar-upload__preview { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--clay-500); }
.avatar-upload__preview img, .avatar-upload__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-upload__drop {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer;
  border: 1.5px dashed var(--stone-300, #cfc9ba); border-radius: 16px; background: var(--paper);
  transition: border-color .2s, background .2s;
}
.avatar-upload__drop:hover, .avatar-upload__drop.is-dragover, .avatar-upload__drop:focus-within { border-color: var(--clay-500); background: rgba(163,131,95,.08); }
.avatar-upload__drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.avatar-upload__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(163,131,95,.16); color: var(--clay-600); }
.avatar-upload__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.avatar-upload__text strong { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-upload__text em { font-style: normal; font-size: 12px; color: var(--stone-500); }
.avatar-upload__submit { grid-column: 1 / -1; justify-self: start; }
.avatar-upload__submit:disabled { opacity: .4; cursor: not-allowed; }
.avatar-upload__reset { background: none; border: 0; padding: 0; cursor: pointer; font-size: 12.5px; color: var(--stone-500); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.avatar-upload__reset:hover { color: #b42318; }
@media (max-width: 560px) { .avatar-upload { grid-template-columns: 1fr; justify-items: start; } .avatar-upload__drop { width: 100%; } }

/* Photo de profil : aperçu | zone d'envoi | actions, sur une seule ligne */
.avatar-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 12px 22px; align-items: center; }
.avatar-row > form { display: contents; }
.avatar-upload__preview { grid-column: 1; grid-row: 1 / span 2; }
.avatar-upload__drop { grid-column: 2; grid-row: 1 / span 2; }
.avatar-upload__submit { grid-column: 3; grid-row: 1; justify-self: stretch; align-self: end; white-space: nowrap; }
.avatar-upload__reset { grid-column: 3; grid-row: 2; justify-self: center; align-self: start; white-space: nowrap; }
.avatar-row:not(:has(.avatar-upload__reset)) .avatar-upload__submit { grid-row: 1 / span 2; align-self: center; }
@media (max-width: 760px) {
  .avatar-row { grid-template-columns: auto minmax(0, 1fr); }
  .avatar-upload__preview { grid-row: 1; }
  .avatar-upload__drop { grid-column: 2; grid-row: 1; }
  .avatar-upload__submit { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .avatar-upload__reset { grid-column: 1 / -1; grid-row: 3; justify-self: start; }
  .avatar-row:not(:has(.avatar-upload__reset)) .avatar-upload__submit { grid-row: 2; align-self: auto; }
}
@media (max-width: 480px) { .avatar-row { grid-template-columns: 1fr; } .avatar-upload__drop, .avatar-upload__preview { grid-column: 1; grid-row: auto; } }

/* Invitation Discord (accueil) — carte discrète en bas à gauche, jamais permanente */
.discord-toast {
  position: fixed; left: 40px; bottom: 40px; z-index: 30; width: 300px; max-width: calc(100vw - 32px);
  display: flex; gap: 14px; padding: 18px 40px 18px 18px; border-radius: 18px;
  background: rgba(255,255,255,.94); border: 1px solid var(--line); color: var(--ink);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-editorial), transform .6s var(--ease-editorial);
}
.discord-toast[hidden] { display: none; }
.discord-toast.is-visible { opacity: 1; transform: none; }
.discord-toast__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: #5865f2; color: #fff; }
.discord-toast__body { min-width: 0; }
.discord-toast__title { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; }
.discord-toast__text { margin-top: 6px; font-size: 12px; line-height: 1.55; color: var(--stone-500); }
.discord-toast__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; transition: background .25s; }
.discord-toast__cta:hover { background: #5865f2; }
.discord-toast__close { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: none; color: var(--stone-500); font-size: 11px; cursor: pointer; transition: background .2s, color .2s; }
.discord-toast__close:hover { background: var(--stone-100); color: var(--ink); }
@media (max-width: 1024px) { .discord-toast { left: 32px; } }
@media (max-width: 640px) { .discord-toast { left: 12px; right: 12px; top: 84px; bottom: auto; width: auto; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .discord-toast { transition: none; } }

/* Invitation Discord — fenêtre centrée, fond flouté (remplace la carte en bas à gauche) */
.discord-toast { display: none !important; }
.discord-modal {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(12,12,11,.55); backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%);
  opacity: 0; transition: opacity .5s var(--ease-editorial);
}
.discord-modal[hidden] { display: none; }
.discord-modal.is-visible { opacity: 1; }
.discord-modal-open { overflow: hidden; }
.discord-modal__card {
  position: relative; width: 100%; max-width: 460px; padding: 44px 40px 34px; border-radius: 28px; text-align: center; color: #fff; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, #1a1913 0%, #24211a 60%, #2f281d 100%); border: 1px solid rgba(255,255,255,.1);
  transform: translateY(24px) scale(.96); transition: transform .6s var(--ease-editorial);
}
.discord-modal.is-visible .discord-modal__card { transform: none; }
.discord-modal__card::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -140px; width: 420px; height: 320px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(88,101,242,.55), rgba(163,131,95,.25) 60%, transparent 100%);
}
.discord-modal__card::after {
  content: ""; position: absolute; z-index: -1; inset: 0; opacity: .5;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.03) 0 1px, transparent 1px 22px);
}
.discord-modal__close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); font-size: 12px; cursor: pointer; transition: background .2s, color .2s; }
.discord-modal__close:hover { background: rgba(255,255,255,.18); color: #fff; }
.discord-modal__badge { display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; border-radius: 20px; background: #5865f2; color: #fff; }
.discord-modal__eyebrow { margin-top: 22px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #e5cfae; }
.discord-modal__title { margin-top: 10px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 5vw, 2.3rem); line-height: 1.1; color: #fff; }
.discord-modal__lede { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,.7); }
.discord-modal__list { list-style: none; margin: 24px 0 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; text-align: left; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.discord-modal__list li { display: flex; gap: 12px; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.85); }
.discord-modal__list li span { flex: none; color: #e5cfae; font-size: 11px; line-height: 1.9; }
.discord-modal__cta {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 26px; padding: 16px 24px; border-radius: 999px;
  background: #5865f2; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; transition: background .25s, transform .3s var(--ease-editorial);
}
.discord-modal__cta:hover { background: #4752c4; transform: translateY(-2px); }
.discord-modal__later { display: block; margin: 16px auto 0; padding: 6px 10px; background: none; border: 0; cursor: pointer; font-size: 12.5px; color: rgba(255,255,255,.55); transition: color .2s; }
.discord-modal__later:hover { color: #fff; }
@media (max-width: 480px) { .discord-modal__card { padding: 38px 24px 26px; border-radius: 24px; } }
@media (prefers-reduced-motion: reduce) { .discord-modal, .discord-modal__card { transition: none; } }

/* Discord OOC : avatar du serveur, pastille « OOC », liste plus riche */
.discord-modal__avatar { position: relative; display: inline-block; }
.discord-modal__avatar img { display: block; width: 84px; height: 84px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #24211a, 0 0 0 5px #5865f2, 0 18px 40px -10px rgba(88,101,242,.7); }
.discord-modal__online { position: absolute; right: 2px; bottom: 4px; width: 18px; height: 18px; border-radius: 50%; background: #3ba55d; box-shadow: 0 0 0 4px #24211a; }
.discord-modal__badge { display: none; }
.discord-modal__eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.discord-modal__tag { padding: 3px 9px; border-radius: 6px; background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.discord-modal__list li strong { color: #fff; font-weight: 600; }
.discord-modal__list li div { min-width: 0; }
.discord-modal__note { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 11.5px; color: rgba(255,255,255,.5); }