/* ==========================================================================
   Bien Connu — interface de l'application
   Priorité absolue : qu'un agent non technique comprenne chaque écran sans aide.
   Lisibilité, contrastes forts, grandes cibles, une action principale par écran.
   Aux couleurs de la marque, avec retenue : fond papier, noir pour la structure,
   orange pour l'action principale, angles droits, aucune ombre (section 23).
   (Le site public a son propre style : brand.css + landing.css.)

   1. Tokens          6. Boutons            11. Listes & faits      16. Publications
   2. Base            7. Badges & alertes   12. Étapes              17. Fenêtres & toasts
   3. Typographie     8. Champs             13. Onglets             18. Pages invitées
   4. Mise en page    9. Cartes de choix    14. Vide & chargement   19. Mouvement
   5. Cartes         10. Réseaux            15. Photos              20. Utilitaires
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --surface-2: #F9FAFB;
  --border: #DCDFE4;
  --border-strong: #8B929C;
  --text: #16191D;
  --text-2: #444C57;          /* texte secondaire : contraste > 8:1 sur blanc */
  --text-3: #5F6772;          /* indications : contraste > 5.5:1 */

  --primary: #C2410C;         /* orange de la marque assombri : le texte blanc y garde 5,2:1 (pages .pp) ;
                                 l'orange exact de la charte vit dans --brand (section 23), réservé au texte noir. */
  --primary-hover: #9A3412;
  --primary-soft: #FFF4ED;
  --primary-line: #F4B793;

  --success: #166534;  --success-soft: #EDFAF1;  --success-line: #9BD7AE;
  --warning: #92400E;  --warning-soft: #FFF8E6;  --warning-line: #F2C66D;
  --danger:  #B42318;  --danger-soft:  #FEF1F0;  --danger-line:  #F4A9A3;
  --info:    #1E4E8C;  --info-soft:    #EEF4FC;  --info-line:    #A9C4EA;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --focus: 0 0 0 3px #FFFFFF, 0 0 0 6px #1E4E8C;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s7: 32px; --s8: 40px; --s9: 56px;

  --sidebar: 288px;
  --content: 1240px;
  --tabbar: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-sm); }
::selection { background: #FFD9C2; }

.skip-link {
  position: absolute; left: var(--s4); top: -100px; z-index: 100;
  background: var(--text); color: #FFF; padding: var(--s3) var(--s4); border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: var(--s4); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { flex: none; }

/* 3. Typographie -------------------------------------------------------- */
.title-1 { font-size: clamp(1.875rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.2; font-weight: 800; letter-spacing: -.015em; }
.title-2 { font-size: 1.5rem; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; }
.title-3 { font-size: 1.25rem; line-height: 1.35; font-weight: 700; }
.lead { font-size: 1.1875rem; color: var(--text-2); max-width: 70ch; }
.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }
.text-sm { font-size: 1rem; }
.text-strong { font-weight: 700; }
.text-success { color: var(--success); }
.block { display: block; }
.text-danger { color: var(--danger); }
.nowrap { white-space: nowrap; }
.link { font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.link:hover { color: var(--primary-hover); }
.link--icon { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; }
.link--icon:hover { text-decoration: underline; }
.prewrap { white-space: pre-line; overflow-wrap: anywhere; }

/* 4. Mise en page ------------------------------------------------------- */
.shell { min-height: 100vh; min-height: 100dvh; padding-left: var(--sidebar); }

/* Réellement fixé aux bords de l'écran (et non « sticky » sur 100vh) : aucun écart en bas, quel que soit le zoom ou le rebond du défilement. */
.sidebar {
  position: fixed; z-index: 30; top: 0; bottom: 0; left: 0; width: var(--sidebar); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: var(--s6);
  padding: var(--s6) var(--s4);
  background: var(--surface); border-right: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: auto; height: 52px; }
.sidebar .brand { padding: 0 var(--s2); }

.nav { display: grid; gap: var(--s1); }
.nav__link {
  display: flex; align-items: center; gap: var(--s3);
  min-height: 56px; padding: var(--s2) var(--s4); border-radius: var(--radius-sm);
  font-weight: 600; font-size: 1.125rem; text-decoration: none; color: var(--text-2);
}
.nav__link:hover { background: var(--bg); color: var(--text); }
.nav__link[aria-current="page"] { background: var(--primary-soft); color: var(--text); font-weight: 800; }
.nav__link[aria-current="page"] .icon { color: var(--primary); }
.nav__text { flex: 1; min-width: 0; }
.nav__badge {
  min-width: 26px; height: 26px; padding: 0 8px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #FFF; font-size: .875rem; font-weight: 800;
}
.sidebar__foot { margin-top: auto; display: grid; gap: var(--s2); padding-top: var(--s4); border-top: 1px solid var(--border); }
.sidebar__user { padding: 0 var(--s2); line-height: 1.35; min-width: 0; }
.sidebar__user strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__user span { display: block; font-size: .875rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { min-width: 0; padding: 48px 56px 72px; }
.content { width: 100%; max-width: var(--content); margin: 0 auto; display: grid; gap: var(--s7); align-content: start; }
.content--narrow { max-width: 860px; }

.page-header { display: grid; gap: var(--s2); }
.page-header__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.page-header__titles { display: grid; gap: var(--s2); min-width: 0; flex: 1 1 320px; }
.page-header__actions { display: flex; gap: var(--s3); flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 600; color: var(--text-2); text-decoration: none; min-height: 36px; justify-self: start; }
.back-link:hover { color: var(--text); text-decoration: underline; }

.section { display: grid; gap: var(--s4); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }

.topbar, .tabbar { display: none; }

@media (max-width: 899px) {
  .shell { display: block; padding-left: 0; }
  .sidebar { display: none; }
  .main { padding: var(--s5) var(--s4) calc(var(--tabbar) + var(--s8) + env(safe-area-inset-bottom)); }
  .content { gap: var(--s6); }

  .topbar {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
    min-height: 60px; padding: var(--s2) var(--s4); padding-top: calc(var(--s2) + env(safe-area-inset-top));
    background: var(--surface); border-bottom: 1px solid var(--border);
  }
  .topbar .brand img { height: 38px; }
  .topbar__settings {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--s2);
    color: var(--text-2); font-size: .9375rem; font-weight: 600; text-decoration: none; border-radius: var(--radius-sm);
  }
  .topbar__settings[aria-current="page"] { color: var(--primary); }
  .topbar__links { display: flex; gap: var(--s1); }
  /* Petit téléphone : les trois liens passent sous le logo, toujours avec leur nom. */
  @media (max-width: 479px) { .topbar { flex-wrap: wrap; row-gap: 0; } .topbar__links { width: 100%; justify-content: space-between; } }

  .tabbar {
    position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: stretch;
    background: var(--surface); border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar__link {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: var(--tabbar); padding: 6px 2px;
    font-size: .8125rem; font-weight: 600; line-height: 1.15; text-align: center; text-decoration: none; color: var(--text-2);
  }
  .tabbar__link[aria-current="page"] { color: var(--primary); font-weight: 800; }
  .tabbar__icon { position: relative; }
  .tabbar__badge {
    position: absolute; top: -6px; left: 15px; min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: var(--radius-pill); background: var(--primary); color: #FFF;
    font-size: .75rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--surface);
  }
  .tabbar__add .tabbar__icon {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    background: var(--primary); color: #FFF; margin-top: -2px;
  }
  .tabbar__add { color: var(--text); }
}

/* 5. Cartes ------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px;
  display: grid; gap: var(--s4); align-content: start; min-width: 0;
}
.card--tight { padding: var(--s4); gap: var(--s3); }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.card__titles { display: grid; gap: var(--s1); min-width: 0; flex: 1 1 240px; }
.card__foot { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; padding-top: var(--s4); border-top: 1px solid var(--border); }
.card--focus { border-color: var(--primary-line); background: var(--primary-soft); box-shadow: inset 5px 0 0 var(--primary), var(--shadow); }
.card--success { border-color: var(--success-line); background: var(--success-soft); box-shadow: inset 5px 0 0 var(--success), var(--shadow); }
.card--warning { border-color: var(--warning-line); background: var(--warning-soft); box-shadow: inset 5px 0 0 #D97706, var(--shadow); }
.card--danger  { border-color: var(--danger-line);  background: var(--danger-soft);  box-shadow: inset 5px 0 0 var(--danger), var(--shadow); }
.card--danger-zone { border-color: var(--danger-line); }

.grid-2 { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 1100px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-aside { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 1100px) {
  .grid-aside { grid-template-columns: minmax(0, 1fr) 380px; }
  .grid-aside > .grid-aside__side { position: sticky; top: var(--s6); }
}

/* 6. Boutons ------------------------------------------------------------ */
.btn {
  --b-bg: var(--surface); --b-fg: var(--text); --b-bd: var(--border-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 52px; padding: 12px 22px; border-radius: var(--radius-sm);
  background: var(--b-bg); color: var(--b-fg); border: 1.5px solid var(--b-bd);
  font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.btn:hover { --b-bg: var(--bg); --b-bd: var(--text-2); }
.btn--primary { --b-bg: var(--primary); --b-fg: #FFF; --b-bd: var(--primary); font-weight: 800; }
.btn--primary:hover { --b-bg: var(--primary-hover); --b-bd: var(--primary-hover); }
.btn--dark { --b-bg: var(--text); --b-fg: #FFF; --b-bd: var(--text); }
.btn--dark:hover { --b-bg: #333A43; --b-bd: #333A43; }
.btn--ghost { --b-bg: transparent; --b-bd: transparent; color: var(--text-2); }
.btn--ghost:hover { --b-bg: var(--bg); --b-bd: transparent; color: var(--text); }
.btn--danger { --b-bg: var(--surface); --b-fg: var(--danger); --b-bd: var(--danger-line); }
.btn--danger:hover { --b-bg: var(--danger-soft); --b-bd: var(--danger); }
.btn--danger-solid { --b-bg: var(--danger); --b-fg: #FFF; --b-bd: var(--danger); }
.btn--danger-solid:hover { --b-bg: #8F1C13; --b-bd: #8F1C13; }
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: 1rem; }
.btn--lg { min-height: 60px; padding: 14px 28px; font-size: 1.1875rem; }
.btn--block { display: flex; width: 100%; }
.btn:disabled, .btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading .icon { opacity: 0; }
.btn.is-loading::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border: 2.5px solid var(--b-fg); border-right-color: transparent; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.actions { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-2);
}
.icon-btn:hover { background: var(--bg); color: var(--text); }

/* 7. Badges & alertes --------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px;
  border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-2);
  font-size: .9375rem; font-weight: 700; line-height: 1.4; white-space: nowrap;
}
.badge--success { background: var(--success-soft); color: var(--success); border-color: var(--success-line); }
.badge--warning { background: var(--warning-soft); color: var(--warning); border-color: var(--warning-line); }
.badge--danger  { background: var(--danger-soft);  color: var(--danger);  border-color: var(--danger-line); }
.badge--info    { background: var(--info-soft);    color: var(--info);    border-color: var(--info-line); }
.badge--primary { background: var(--primary-soft); color: var(--primary-hover); border-color: var(--primary-line); }

.alert {
  display: flex; gap: var(--s3); align-items: flex-start;
  padding: var(--s4); border-radius: var(--radius); border: 1px solid var(--info-line); background: var(--info-soft);
}
.alert > .icon { margin-top: 2px; color: var(--info); }
.alert__body { flex: 1; min-width: 0; display: grid; gap: var(--s2); }
.alert__title { font-weight: 800; }
.alert--success { border-color: var(--success-line); background: var(--success-soft); }
.alert--success > .icon { color: var(--success); }
.alert--warning { border-color: var(--warning-line); background: var(--warning-soft); }
.alert--warning > .icon { color: var(--warning); }
.alert--danger { border-color: var(--danger-line); background: var(--danger-soft); }
.alert--danger > .icon { color: var(--danger); }

.note { display: flex; gap: var(--s2); align-items: flex-start; color: var(--text-2); font-size: 1rem; }
.note .icon { margin-top: 3px; color: var(--success); }

/* 8. Champs ------------------------------------------------------------- */
.form { display: grid; gap: var(--s5); }
.form-row { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } .form-row--3 { grid-template-columns: repeat(3, 1fr); } }
.field { display: grid; gap: 6px; align-content: start; }
.field__label { font-weight: 700; font-size: 1.0625rem; }
.field__optional { font-weight: 400; color: var(--text-3); }
.field__hint { font-size: 1rem; color: var(--text-3); }
.field__error { display: flex; gap: 6px; align-items: flex-start; font-size: .9375rem; font-weight: 700; color: var(--danger); }
.field__error .icon { margin-top: 2px; }
.field__control {
  width: 100%; min-height: 56px; padding: 13px 16px;
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  font-size: 1.125rem; line-height: 1.4; appearance: none; -webkit-appearance: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field__control::placeholder { color: #6B727C; opacity: 1; } /* lisible sur blanc (4,9:1) */
.field__control:hover { border-color: var(--text-2); }
.field__control:focus { outline: none; border-color: var(--info); box-shadow: 0 0 0 3px rgba(30, 78, 140, .2); }
textarea.field__control { min-height: 130px; resize: vertical; }
textarea[data-autogrow] { resize: none; overflow: hidden; }
select.field__control {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316191D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px;
}
.field--error .field__control { border-color: var(--danger); }
.input-group { display: flex; align-items: stretch; }
.input-group .field__control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); min-width: 0; }
.input-group__addon {
  display: flex; align-items: center; padding: 0 14px; font-weight: 700; color: var(--text-2);
  background: var(--surface-2); border: 1.5px solid var(--border-strong); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.counter { font-size: .875rem; color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; }
.counter.is-over { color: var(--danger); font-weight: 700; }
.checkbox { display: flex; gap: var(--s3); align-items: center; cursor: pointer; font-weight: 600; min-height: 44px; }
.checkbox input { width: 22px; height: 22px; accent-color: var(--primary); margin: 0; flex: none; }
.password { position: relative; }
.password .field__control { padding-right: 112px; }
.password__toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  min-height: 40px; padding: 6px 12px; border: 0; border-radius: var(--radius-sm); background: transparent;
  font-weight: 700; font-size: .9375rem; color: var(--info);
}
.password__toggle:hover { background: var(--info-soft); }

/* 9. Cartes de choix ---------------------------------------------------- */
.choices { display: grid; gap: var(--s3); border: 0; padding: 0; margin: 0; min-width: 0; }
.choices > legend { padding: 0; margin-bottom: var(--s3); font-weight: 700; }
.choices--row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice__input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice__body {
  display: grid; gap: 2px; min-height: 64px; padding: var(--s4) 56px var(--s4) var(--s4);
  background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.choice__title { font-weight: 800; }
.choice__text { font-size: 1rem; color: var(--text-2); }
.choice__tag { justify-self: start; margin-top: 4px; }
.choice__check {
  position: absolute; right: var(--s4); top: var(--s4); width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--border-strong); background: var(--surface); color: transparent;
  display: grid; place-items: center; pointer-events: none;
}
.choice:hover .choice__body { border-color: var(--text-2); }
.choice__input:checked + .choice__body { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.choice__input:checked ~ .choice__check { background: var(--primary); border-color: var(--primary); color: #FFF; }
.choice__input:focus-visible + .choice__body { box-shadow: var(--focus); }

/* 10. Réseaux ----------------------------------------------------------- */
.networks { display: grid; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.network { display: flex; align-items: center; gap: var(--s4); padding: var(--s4); flex-wrap: wrap; }
.network + .network { border-top: 1px solid var(--border); }
.network__logo { width: 44px; height: 44px; flex: none; border-radius: var(--radius-sm); display: grid; place-items: center; color: #FFF; }
.network__logo--instagram { background: #C13584; }
.network__logo--facebook { background: #1877F2; }
.network__logo--linkedin { background: #0A66C2; }
.network__logo--tiktok { background: #111111; }
.network__logo--google_business { background: #1A73E8; }
.network__body { flex: 1 1 180px; min-width: 0; display: grid; gap: 2px; }
.network__name { font-weight: 800; }
.network form { margin: 0; }

/* 11. Listes & faits ---------------------------------------------------- */
.list { display: grid; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.list-item { display: flex; align-items: center; gap: var(--s5); padding: 18px 22px; text-decoration: none; color: inherit; min-width: 0; }
.list-item + .list-item { border-top: 1px solid var(--border); }
a.list-item:hover { background: var(--surface-2); }
a.list-item:hover .list-item__title { text-decoration: underline; text-underline-offset: 3px; }
.list-item__body { flex: 1 1 0; min-width: 0; display: grid; gap: 2px; }
.list-item__title { font-weight: 800; font-size: 1.1875rem; overflow-wrap: anywhere; }
.list-item__meta { color: var(--text-2); font-size: 1rem; }
.list-item__aside { flex: none; display: flex; align-items: center; gap: var(--s3); }
.list-item__chevron { color: var(--text-3); }
@media (max-width: 599px) {
  .list-item { flex-wrap: wrap; }
  .list-item__aside { width: 100%; justify-content: space-between; padding-left: calc(72px + var(--s4)); }
  .list-item__chevron { display: none; }
}

.facts { display: grid; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.facts__row { display: grid; grid-template-columns: minmax(140px, 32%) 1fr; gap: var(--s4); padding: 14px 22px; }
.facts__row + .facts__row { border-top: 1px solid var(--border); }
.facts dt { color: var(--text-2); font-weight: 600; }
.facts dd { font-weight: 700; overflow-wrap: anywhere; }
.facts__missing { color: var(--text-3); font-weight: 500; font-style: italic; }
@media (max-width: 479px) { .facts__row { grid-template-columns: 1fr; gap: 0; } }

.tags { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; }
.tag { padding: 4px 12px; border-radius: var(--radius-pill); background: var(--bg); border: 1px solid var(--border); font-weight: 600; font-size: .9375rem; }

/* 12. Étapes ------------------------------------------------------------ */
.steps { list-style: none; display: grid; gap: var(--s2); counter-reset: none; }
.step { display: flex; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); flex-wrap: wrap; }
.step__mark { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9375rem; background: var(--bg); color: var(--text-2); border: 1.5px solid var(--border-strong); }
.step__body { flex: 1 1 180px; min-width: 0; display: grid; line-height: 1.35; }
.step__title { font-weight: 700; }
.step__state { font-size: .875rem; color: var(--text-3); font-weight: 600; }
.step--done { background: var(--surface-2); }
.step--done .step__mark { background: var(--success); border-color: var(--success); color: #FFF; }
.step--done .step__title { color: var(--text-2); font-weight: 600; }
.step--done .step__state { color: var(--success); }
.step--current { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.step--current .step__mark { background: var(--primary); border-color: var(--primary); color: #FFF; }
.step--current .step__state { color: var(--primary-hover); }

.stepper { list-style: none; display: flex; gap: var(--s2); }
.stepper__item { flex: 1; display: grid; gap: 6px; font-size: .875rem; font-weight: 700; color: var(--text-3); }
.stepper__item::before { content: ""; height: 6px; border-radius: 3px; background: var(--border); }
.stepper__item.is-done::before, .stepper__item.is-current::before { background: var(--primary); }
.stepper__item.is-current { color: var(--text); }

/* 13. Onglets ----------------------------------------------------------- */
.tabs { display: flex; gap: var(--s1); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs__link {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 56px; padding: 0 var(--s5); margin-bottom: -1px; font-size: 1.0625rem;
  font-weight: 700; color: var(--text-2); text-decoration: none; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.tabs__link:hover { color: var(--text); }
.tabs__link[aria-current="page"] { color: var(--text); border-bottom-color: var(--primary); }
.tabs__count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: var(--radius-pill); background: var(--bg); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: .8125rem; font-weight: 800; }
.tabs__link[aria-current="page"] .tabs__count { background: var(--primary); border-color: var(--primary); color: #FFF; }

/* 14. Vide & chargement ------------------------------------------------- */
.empty { display: grid; justify-items: center; text-align: center; gap: var(--s3); padding: var(--s8) var(--s5); background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.empty__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--text-2); }
.empty__title { font-weight: 800; font-size: 1.1875rem; }
.empty__text { color: var(--text-2); max-width: 46ch; }
.empty .actions { justify-content: center; margin-top: var(--s2); }

.progress { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.progress__bar { height: 100%; width: var(--value, 0%); background: var(--primary); border-radius: 4px; transition: width .6s var(--ease); }
.progress--busy .progress__bar { width: 40%; animation: busy 1.2s var(--ease) infinite; }
@keyframes busy { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.waiting { display: grid; gap: var(--s2); padding: var(--s4); border-radius: var(--radius-sm); background: var(--info-soft); border: 1px solid var(--info-line); }

details.disclosure { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
details.disclosure > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--s2);
  min-height: 52px; padding: var(--s3) var(--s4); font-weight: 700;
}
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease); }
details.disclosure[open] > summary::after { transform: rotate(-135deg); }
details.disclosure > .disclosure__body { padding: 0 var(--s4) var(--s4); display: grid; gap: var(--s4); }

/* 15. Photos ------------------------------------------------------------ */
.thumb { position: relative; flex: none; width: var(--size, 72px); aspect-ratio: var(--ratio, 4 / 3); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); border: 1px solid var(--border); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb__fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); }
.gallery { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); }
.gallery--hero { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 1fr; }
.gallery--hero .thumb:first-child { grid-row: span 2; grid-column: 1; }
.gallery .thumb { width: 100%; }
@media (max-width: 599px) { .gallery--hero { grid-template-columns: 1fr 1fr; } .gallery--hero .thumb:first-child { grid-column: 1 / -1; grid-row: auto; } }

.photo-pick { position: relative; display: grid; gap: var(--s2); }
.photo-pick .checkbox { min-height: 36px; font-size: .9375rem; }
.dropzone {
  display: grid; justify-items: center; gap: var(--s2); text-align: center; cursor: pointer;
  padding: var(--s6) var(--s4); border: 2px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface-2);
}
.dropzone:hover, .dropzone.is-over { border-color: var(--info); background: var(--info-soft); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone:focus-within { box-shadow: var(--focus); }
.dropzone__title { font-weight: 800; }
.dropzone__files { font-size: .9375rem; color: var(--text-2); }

/* Photos de portrait : la comparaison avant / propositions, puis les formats à télécharger. */
.portrait-compare { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); align-items: start; }
.portrait-cell { display: grid; gap: var(--s3); align-content: start; justify-items: start; }
.portrait-img { display: block; width: 100%; max-width: 280px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); }
.portrait-img--sm { max-width: 200px; }
.portrait-formats { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); align-items: start; }

/* 16. Publications ------------------------------------------------------ */
.pub { padding: 0; gap: 0; } /* pas de overflow:hidden : le menu « autre texte » doit pouvoir dépasser */
.pub__head { display: flex; align-items: center; gap: var(--s3); padding: var(--s4) var(--s5); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.pub__head-text { flex: 1 1 200px; min-width: 0; display: grid; line-height: 1.35; }
.pub__body { padding: var(--s5); display: grid; gap: var(--s4); }
.pub__foot { padding: var(--s4) var(--s5); border-top: 1px solid var(--border); background: var(--surface-2); display: grid; gap: var(--s3); border-radius: 0 0 var(--radius) var(--radius); }
.text-pre { white-space: pre-line; }
/* Accord TikTok : visibilité, cases, mention, puis le bouton. */
.consent { display: grid; gap: var(--s3); max-width: 480px; padding-bottom: var(--s3); border-bottom: 1px solid var(--border); }
.consent .text-sm { margin: 0; }

.post { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; max-width: 640px; }
.post__head { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); }
.post__avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--border); font-weight: 800; font-size: .875rem; }
.post__author { font-weight: 700; line-height: 1.25; }
.post__author span { display: block; font-weight: 500; font-size: .8125rem; color: var(--text-3); }
.post__media { display: grid; grid-template-columns: repeat(var(--n, 1), 1fr); gap: 2px; background: var(--border); }
.post__media .thumb { width: 100%; border-radius: 0; border: 0; --ratio: 4 / 3; }
.post__visual { background: var(--bg); border-bottom: 2px solid var(--border); }
.post__visual img { display: block; width: 100%; max-height: 560px; object-fit: contain; margin: 0 auto; }

/* Couleur des visuels : pastilles */
.swatches { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); }
.swatch { position: relative; display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s1) var(--s3) var(--s1) var(--s1); border: 1px solid var(--border); border-radius: var(--radius-pill); cursor: pointer; background: var(--surface); }
.swatch__input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.swatch__dot { width: 28px; height: 28px; border-radius: 50%; background: var(--swatch); flex: none; }
.swatch__label { font-size: .9375rem; font-weight: 600; }
.swatch:has(.swatch__input:checked) { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.swatch:has(.swatch__input:focus-visible) { box-shadow: var(--focus); }
.post__text { padding: var(--s3) var(--s4) var(--s4); white-space: pre-line; overflow-wrap: anywhere; font-size: 1.0625rem; }
.post__legal { padding-top: 0; font-size: .8125rem; color: var(--text-3); }

.dropdown { position: relative; }
.dropdown > summary { list-style: none; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown__panel {
  margin-top: var(--s2); padding: var(--s3); display: grid; gap: var(--s2);
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); box-shadow: 0 8px 24px rgba(16, 24, 40, .08);
}
@media (min-width: 700px) {
  .dropdown__panel { position: absolute; z-index: 20; left: 0; min-width: 300px; }
}
.dropdown__panel .btn { justify-content: flex-start; }

.history-item__error { color: var(--danger); font-weight: 600; font-size: .9375rem; }

/* 17. Fenêtres & toasts ------------------------------------------------- */
dialog.modal { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; }
dialog.modal[open] { display: flex; align-items: center; justify-content: center; padding: var(--s4); }
dialog.modal::backdrop { background: rgba(16, 24, 40, .45); }
.modal__panel { width: 100%; max-width: 520px; background: var(--surface); border-radius: var(--radius); box-shadow: 0 20px 48px rgba(16, 24, 40, .2); padding: var(--s6); display: grid; gap: var(--s4); animation: pop-in .2s var(--ease); }
.modal__title { font-size: 1.25rem; font-weight: 800; line-height: 1.3; }
.modal__body { color: var(--text-2); display: grid; gap: var(--s3); }
.modal__foot { display: flex; gap: var(--s3); justify-content: flex-end; flex-wrap: wrap; }
dialog.modal.is-closing .modal__panel { animation: pop-out .15s var(--ease) forwards; }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes pop-out { to { opacity: 0; transform: translateY(6px) scale(.98); } }

.toasts { display: grid; gap: var(--s2); }
.toasts:empty { display: none; }
.content > .toasts, .flow__wrap > .toasts, .guest__wrap > .toasts { margin-bottom: var(--s5); }
.toast {
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap;
  padding: var(--s3) var(--s3) var(--s3) var(--s4); border-radius: var(--radius);
  background: var(--success-soft); color: var(--text); border: 1px solid var(--success-line); box-shadow: inset 5px 0 0 var(--success);
  font-weight: 600; animation: toast-in .2s var(--ease);
}
.toast > .icon { color: var(--success); flex: none; }
.toast--err { background: var(--danger-soft); border-color: var(--danger-line); box-shadow: inset 5px 0 0 var(--danger); }
.toast--err > .icon { color: var(--danger); }
.toast__msg { flex: 1 1 14rem; }
.toast__close { flex: none; }
.toast.is-leaving { animation: toast-out .15s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes toast-out { to { opacity: 0; } }
.copy-note { margin-top: var(--s2); font-weight: 600; color: var(--success); }
.share__choices { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* 18. Pages invitées (connexion, premiers pas) ---------------------------- */
.guest { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: var(--s7) var(--s4); }
.guest__wrap { width: 100%; max-width: 520px; display: grid; gap: var(--s5); }
.guest__wrap--wide { max-width: 640px; }
.guest__wrap--legal { max-width: 860px; }
.guest__card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: var(--s7); display: grid; gap: var(--s6); }
.guest__foot { text-align: center; color: var(--text-2); }
.guest__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s4); color: var(--text-3); }
.guest__legal a { color: inherit; }

/* Pages juridiques : texte long, lisible, tableaux qui défilent seuls sur téléphone. */
.legal { display: grid; gap: var(--s3); }
.legal h1 { margin-bottom: var(--s2); }
.legal h2 { margin-top: var(--s5); }
.legal ul { padding-left: 1.25rem; display: grid; gap: var(--s2); }
.legal-nav { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid var(--border); }
.legal-nav a { color: var(--text-2); }
.legal-nav a[aria-current="page"] { color: var(--text); font-weight: 700; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9375rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--border); }
.legal th { font-weight: 700; }
mark.todo { background: #FFF1B8; color: inherit; padding: 0 .2em; border-radius: 3px; }
.guest .brand { justify-self: center; }
@media (max-width: 599px) {
  .guest { place-items: start center; padding: var(--s4) var(--s3) var(--s7); }
  .guest__card { padding: var(--s5) var(--s4); gap: var(--s5); border-radius: var(--radius); }
}

/* 18b. Parcours : une chose à la fois, sans menu, avec « Revenir à … » ----- */
.flow-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--s4); min-height: 64px; padding: var(--s2) var(--s6); background: var(--surface); border-bottom: 1px solid var(--border); }
.flow-bar__close { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s3) 0 var(--s2); margin-left: calc(var(--s2) * -1); border-radius: var(--radius-sm); color: var(--text-2); text-decoration: none; font-weight: 600; }
.flow-bar__close:hover { background: var(--bg); color: var(--text); }
.flow-bar__close strong { color: var(--text); }
.flow-bar__title { margin-left: auto; color: var(--text-3); font-weight: 600; font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow { padding: var(--s7) var(--s6) var(--s9); }
.flow__wrap { width: 100%; max-width: 860px; margin: 0 auto; display: grid; gap: var(--s6); align-content: start; }
@media (max-width: 720px) {
  .flow-bar { padding: var(--s2) var(--s4); }
  .flow-bar__title { display: none; }
  .flow { padding: var(--s5) var(--s4) var(--s8); }
}

/* 19. Mouvement --------------------------------------------------------- */
.content, .guest__wrap { animation: page-in .25s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } }
/* Dans un parcours, chaque étape arrive de la droite : on avance. */
.flow__wrap { animation: step-in .3s var(--ease) both; }
@keyframes step-in { from { opacity: 0; transform: translateX(24px); } }
/* De retour d'un parcours : ce qui vient de changer s'allume un instant. */
.arrived { animation: arrived 1.6s var(--ease); }
@keyframes arrived { 0%, 40% { box-shadow: 0 0 0 4px var(--primary-line); } 100% { box-shadow: 0 0 0 4px transparent; } }
.flash-in { animation: flash-in .5s var(--ease); }
@keyframes flash-in { from { background: #FFF6D6; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 20. Utilitaires ------------------------------------------------------- */
.stack { display: grid; gap: var(--s4); align-content: start; min-width: 0; }
.stack-xs { display: grid; gap: var(--s1); align-content: start; }
.stack-sm { display: grid; gap: var(--s2); align-content: start; }
.stack-lg { display: grid; gap: var(--s6); align-content: start; }
.row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.row-between { justify-content: space-between; }
.divider-or { display: flex; align-items: center; gap: var(--s3); color: var(--text-3); font-weight: 700; font-size: .9375rem; }
.divider-or::before, .divider-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.only-mobile { display: none; }
@media (max-width: 899px) { .only-desktop { display: none !important; } .only-mobile { display: revert; } }
.numbered { display: grid; gap: var(--s2); padding-left: 1.4rem; }
.numbered li::marker { font-weight: 800; }

/* Fiche d'un bien sur petit écran : les décisions avant l'historique. */
@media (max-width: 1099px) { .grid-aside > .grid-aside__side { order: -1; } }
.note--tip .icon { color: var(--primary); }

/* 21. Tableau de bord ---------------------------------------------------- */
/* Une seule voix forte par écran : le message du moment, en titre d'affiche (charte : « TOUT EST À JOUR. »).
   Le reste est dense et sans répétition : l'essentiel doit tenir sans faire défiler. */
.state {
  display: grid; gap: var(--s2); padding: 28px 36px;
  background: var(--surface); border: 2px solid var(--text); border-radius: var(--radius);
}
.state__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); flex-wrap: wrap; }
.state-block { display: grid; gap: var(--s3); }
.dash__hello { color: var(--text-3); font-size: .9375rem; font-weight: 600; }
.dash__networks { justify-self: start; }
.state__kicker { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 700; font-size: 1rem; }
.state--warn .state__kicker { color: var(--primary-hover); }
.state--error .state__kicker { color: var(--danger); }
.state--ok .state__kicker { color: var(--success); }
.state__title {
  font-family: "Anton", "Impact", "Arial Narrow", sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: clamp(2rem, 1.3rem + 2vw, 3rem); line-height: 1.04; letter-spacing: .005em;
  max-width: 26ch; text-wrap: balance; overflow-wrap: anywhere;
}
/* Un message d'opération s'écrit, il ne s'affiche pas : pas d'Anton majuscules pour une phrase longue. */
.state__title--reading {
  font-family: var(--font); font-weight: 800; text-transform: none;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); line-height: 1.18; letter-spacing: 0; max-width: 40ch;
}
.state__text { font-size: 1.125rem; color: var(--text-2); max-width: 64ch; }
.state__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3) var(--s5); flex-wrap: wrap; margin-top: var(--s3); }
.state__actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.state__networks { display: flex; align-items: center; gap: var(--s3); color: var(--text-2); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.state__networks:hover span:last-child { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.state__logos { display: flex; gap: 4px; }

/* Les trois premiers pas, à la place de l'étiquette, tant que rien n'est parti. */
.state__steps { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: .9375rem; font-weight: 600; color: var(--text-3); }
.state__steps li { display: inline-flex; align-items: center; gap: var(--s2); }
.state__steps .is-done { color: var(--text-2); }
.state__steps .is-now { color: var(--text); font-weight: 800; }
.state__step-dot {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid currentColor; font-size: .8125rem; font-weight: 800;
}
.state__steps .is-done .state__step-dot { background: var(--success); border-color: var(--success); color: #FFF; }
.state__steps .is-now .state__step-dot { background: var(--text); border-color: var(--text); color: #FFF; }

/* Titres de section de l'accueil. */
.dash__title { font-size: 1.25rem; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; }
.dash__ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Listes serrées : une ligne par élément. */
.list--dense .list-item { gap: var(--s4); padding: 12px 18px; }
.list--dense .list-item__title { font-size: 1.0625rem; }
.list--dense .list-item__meta { font-size: .9375rem; }

/* Résultats et contacts dans la même carte. */
.figures { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s5); color: var(--text-2); font-size: .9375rem; font-weight: 600; }
.figures li { display: inline-flex; align-items: baseline; gap: 6px; }
.figures strong { color: var(--text); font-size: 1.5rem; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.contacts { display: grid; gap: var(--s2); padding-top: var(--s3); border-top: 1px solid var(--border); }
.contacts h3 { font-size: 1rem; }
.contact { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.contact + .contact { padding-top: var(--s2); border-top: 1px solid var(--border); }
.contact__body { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.contact__name { font-weight: 800; }
.contact__meta { color: var(--text-2); font-size: .9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact__actions { flex: none; display: flex; gap: var(--s2); flex-wrap: wrap; }
.btn--square { width: 44px; padding: 0; }

/* La suggestion : une ligne, bouton à droite. */
.tip { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.tip__icon { flex: none; color: var(--text-2); }
.tip__body { flex: 1 1 220px; min-width: 0; line-height: 1.35; }
.tip__kicker { color: var(--text-3); font-size: .875rem; font-weight: 700; }
.tip__title { font-size: 1.0625rem; font-weight: 700; }
.tip .btn, .tip form { flex: none; }
.tip form .icon-btn { margin-inline-start: calc(var(--s2) * -1); }
@media (min-width: 600px) { .tip { flex-wrap: nowrap; } }

@media (max-width: 899px) {
  .state { padding: var(--s5) var(--s4); }
  .state__steps .state__step-label { display: none; }
  .state__steps .is-now .state__step-label { display: inline; }
  .state__actions, .state__actions form, .state__actions .btn { width: 100%; }
  .state__foot { margin-top: var(--s2); }
}
@media (max-width: 599px) {
  .list--dense .list-item { flex-wrap: nowrap; padding: 10px 14px; }
  .list--dense .list-item > .thumb { width: 56px; }
}

/* 21 bis. Résultats ------------------------------------------------------ */
/* La page qui montre la valeur : de gros chiffres, leur évolution en mots, d'où viennent les gens, par bien. */
a.segmented__item { text-decoration: none; }
.figures-board { gap: var(--s4); }
.figures-board__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s6); }
@media (min-width: 1000px) { .figures-board__grid { grid-template-columns: 1.3fr 1fr 1fr 1.25fr; } }
.figure { display: grid; gap: 2px; align-content: start; min-width: 0; }
.figure + .figure { padding-left: 0; }
@media (min-width: 1000px) { .figure + .figure { padding-left: var(--s6); border-left: 1px solid var(--border); } }
.figure__label { display: flex; align-items: center; gap: var(--s2); color: var(--text-2); font-weight: 700; font-size: .9375rem; }
.figure__value { font-size: 2.75rem; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.figure--main .figure__value { font-family: "Anton", "Impact", "Arial Narrow", sans-serif; font-weight: 400; font-size: 4rem; letter-spacing: 0; line-height: 1; }
.figures-board__insight { display: flex; align-items: flex-start; gap: var(--s2); padding-top: var(--s4); border-top: 1px solid var(--border); font-weight: 600; }
.figures-board__insight .icon, .results__insight .icon { flex: none; margin-top: 3px; color: var(--primary); }

/* Évolution par rapport à la période d'avant : le mot porte l'information, la couleur l'accompagne. */
.delta { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: .875rem; font-weight: 700; color: var(--text-3); }
.delta__than { font-weight: 500; }
.delta--up { color: var(--success); }
.delta--down { color: var(--text-2); }
.delta__arrow { transform: rotate(-45deg); }
.delta--down .delta__arrow { transform: rotate(45deg); }

/* Graphique : barres pour les visites, pastilles noires pour les contacts. */
.chart { display: grid; gap: var(--s2); }
.chart__plot { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding-top: 26px; border-bottom: 1px solid var(--border-strong); }
.chart__col { position: relative; flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.chart__bar { width: 100%; max-width: 40px; height: var(--h); background: #C9CED6; border-radius: 3px 3px 0 0; }
.chart__col:hover .chart__bar { background: var(--text-2); }
.chart__contacts {
  min-width: 20px; height: 20px; padding: 0 5px; margin-bottom: 3px; border-radius: var(--radius-pill);
  display: grid; place-items: center; background: var(--text); color: #FFF; font-size: .75rem; font-weight: 800; line-height: 1;
}
.chart__axis { display: flex; gap: 3px; color: var(--text-3); font-size: .8125rem; }
.chart__axis span { flex: 1 1 0; min-width: 0; text-align: center; white-space: nowrap; overflow: visible; }
.chart--compact .chart__plot { height: 64px; padding-top: 22px; gap: 2px; }
.chart--compact .chart__contacts { min-width: 16px; height: 16px; font-size: .6875rem; padding: 0 3px; }
.chart-legend { display: flex; gap: var(--s4); flex-wrap: wrap; color: var(--text-2); font-size: .875rem; font-weight: 600; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend__bar { width: 12px; height: 12px; border-radius: 2px; background: #C9CED6; }
.chart-legend__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--text); }

/* Deux colonnes : sources et biens, puis meilleures publications et contacts. */
.results-grid { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 1100px) { .results-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.results-grid .section { gap: var(--s3); }
.source__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.source__value { flex: none; font-weight: 800; font-variant-numeric: tabular-nums; }
.source__bar { display: block; height: 6px; margin: 4px 0 2px; border-radius: 3px; background: var(--bg); overflow: hidden; }
.source__bar span { display: block; height: 100%; background: var(--text); border-radius: 3px; }
.source__other { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--bg); color: var(--text-2); }
.results-empty { gap: var(--s3); max-width: 760px; }
.results-note { max-width: 80ch; }
.contacts--card { padding-top: var(--s4); border-top: 1px solid var(--border); gap: var(--s2); }

/* Accueil : la section résultats. */
.dash__period { color: var(--text-3); font-weight: 600; font-size: 1rem; letter-spacing: 0; }
.results__sentence .delta { font-size: .8125rem; vertical-align: 1px; }
.results__big { font-size: 1.1875rem; }
.chart--compact .chart__plot { padding-top: 4px; height: 48px; }
.results__insight { display: flex; align-items: flex-start; gap: var(--s2); font-size: .9375rem; font-weight: 600; }

@media (max-width: 599px) {
  .figure__value { font-size: 2.25rem; }
  .figure--main .figure__value { font-size: 3rem; }
  .figure--main { grid-column: 1 / -1; }
  .chart__plot { height: 140px; gap: 2px; }
  .chart__contacts { min-width: 16px; height: 16px; font-size: .6875rem; padding: 0 3px; }
  .page-header__actions .segmented { width: 100%; }
  .figures-board__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .figure__label { font-size: .8125rem; align-items: flex-start; }
  .figure__value { font-size: 1.875rem; }
  /* Trente barres sur un téléphone : un point suffit, le nombre reste dans le tableau. */
  .chart--dense .chart__contacts { min-width: 8px; width: 8px; height: 8px; padding: 0; font-size: 0; }
}

/* 21 ter. Réseaux -------------------------------------------------------- */
.id-card__photo {
  flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--text); color: #FFF; font-weight: 800; font-size: 1.5rem; text-decoration: none; border: 2px solid var(--text);
}
.id-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.ai-ask { border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: var(--s2) var(--s3); }
.ai-ask summary { display: inline-flex; align-items: center; gap: var(--s2); cursor: pointer; font-weight: 700; min-height: 36px; list-style: none; }
.ai-ask summary::-webkit-details-marker { display: none; }
.ai-ask summary .icon { color: var(--primary); }
.ai-ask__body { display: grid; gap: var(--s3); padding: var(--s2) 0 var(--s1); }
.ai-ask--inline { border: 0; padding: 0; }
.ai-ask--inline[open] { flex-basis: 100%; }

/* Réseaux : un réseau par ligne, où il en est, un bouton pour avancer. */
.net-list .network { gap: var(--s3) var(--s4); }
.net-progress { display: block; width: 100%; max-width: 220px; height: 6px; margin-top: 6px; border-radius: var(--radius-pill); background: var(--bg); overflow: hidden; }
.net-progress span { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.id-card-photo { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.id-card-photo .stack-xs { flex: 1 1 200px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--text-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; min-height: 36px; cursor: pointer; }
.link-btn:hover { color: var(--text); }

/* Le parcours d'un réseau : un écran par étape. */
.setup-head { display: flex; align-items: center; gap: var(--s4); }
.setup-head .title-1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.setup-card { display: grid; gap: var(--s5); }
.setup-foot { display: flex; align-items: center; gap: var(--s3) var(--s5); flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: var(--s5); }
.setup-foot__undo { margin-left: auto; }
.setup-recap { list-style: none; display: grid; gap: var(--s2); }
.setup-recap li { display: flex; align-items: center; gap: var(--s3); color: var(--text-2); }
.setup-recap li.is-done { color: var(--success); font-weight: 700; }
.setup-recap .link { margin-left: auto; }
@media (max-width: 599px) { .setup-foot > form, .setup-foot > .btn, .setup-foot form .btn { width: 100%; } }

/* Ce qui s'est passé pour un bien : une ligne par événement, la date d'abord. */
.timeline { list-style: none; display: grid; gap: 0; border-left: 2px solid var(--border); margin-left: 6px; }
.timeline__item { position: relative; display: flex; gap: var(--s3); padding: 6px 0 6px var(--s4); font-size: .9375rem; color: var(--text-2); }
.timeline__item::before { content: ""; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--text-3); }
.timeline__item:first-child::before { background: var(--text); border-color: var(--text); }
.timeline__item:first-child { color: var(--text); font-weight: 600; }
.timeline__when { flex: none; min-width: 84px; white-space: nowrap; color: var(--text-3); font-weight: 600; }
/* La vie d'un bien : quatre événements, deux par ligne. */
.evolution { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.evolution .btn { width: 100%; padding-inline: 10px; }

/* « + Créer » : un menu de deux choix (ordinateur), une page de deux choix (téléphone). */
.create-menu > summary { justify-content: space-between; }
.create-menu > summary span { flex: 1; text-align: left; }
.create-menu[open] > summary .icon:last-child { transform: rotate(180deg); }
.create-menu .dropdown__panel { left: 0; right: 0; min-width: 0; padding: var(--s2); }
.create-menu__item { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3); border-radius: var(--radius-sm); text-decoration: none; color: var(--text); }
.create-menu__item:hover { background: var(--bg); }
.create-menu__item .icon { margin-top: 2px; color: var(--text-2); }
.create-menu__item span { display: grid; line-height: 1.3; }
.create-menu__item small { color: var(--text-3); font-size: .875rem; }
.create-choices { display: grid; gap: var(--s4); }
.create-choice {
  display: flex; align-items: center; gap: var(--s4); padding: var(--s5); text-decoration: none; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius);
}
.create-choice:hover { border-color: var(--text); }
.create-choice__icon { flex: none; width: 56px; height: 56px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.create-choice__body { flex: 1; display: grid; gap: 2px; min-width: 0; }
.create-choice__title { font-weight: 800; font-size: 1.1875rem; }
.create-choice__text { color: var(--text-2); font-size: 1rem; }

/* À venir : regroupé par jour, la date d'abord. */
.upcoming__where { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; color: var(--text-2); font-size: .9375rem; }
.upcoming__logos { display: flex; gap: 4px; }
.upcoming { gap: var(--s2); }
.upcoming__day { font-size: 1rem; font-weight: 800; color: var(--text-2); }
.upcoming__when { flex: none; width: 44px; display: grid; justify-items: center; line-height: 1.1; }
.upcoming__when strong { font-size: 1.375rem; font-weight: 800; }
.upcoming__when span { font-size: .75rem; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .02em; }
.upcoming__icon { flex: none; width: 56px; aspect-ratio: 4 / 3; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--bg); color: var(--text-2); }
.more { border-top: 1px solid var(--border); padding-top: var(--s3); }
.more summary { cursor: pointer; font-weight: 700; min-height: 36px; display: flex; align-items: center; }
.more[open] summary { margin-bottom: var(--s3); }
.image-step__was { font-size: .9375rem; color: var(--text-2); background: var(--bg); border-radius: var(--radius-sm); padding: var(--s2) var(--s3); }
.image-step__was span { font-weight: 700; }
.bio-text { font-size: 1.0625rem; line-height: 1.5; }
.bio-meta { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; font-size: .875rem; color: var(--text-3); }
.bio-meta__save { padding: 0; border: 0; background: none; color: var(--text-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.bio-meta__save:hover { color: var(--text); }
.photo-compare { display: flex; gap: var(--s4); }
.photo-compare:empty { display: none; }
.photo-compare figure { display: grid; gap: 4px; justify-items: center; font-size: .875rem; color: var(--text-2); }
.photo-compare img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }

/* Ligne avec pictogramme dans une liste : le texte passe à la ligne, pas l'icône. */
.list-item__meta.row { flex-wrap: nowrap; align-items: flex-start; gap: var(--s2); }
.list-item__meta.row .icon { margin-top: 3px; }
@media (max-width: 599px) { .list-item > .thumb { width: 64px; } }
.guest__wrap--form { max-width: 860px; }

/* 22. Premiers pas ------------------------------------------------------- */
/* Choix du ton : trois boutons côte à côte, celui en cours est coché. */
.segmented { display: flex; flex-wrap: wrap; gap: var(--s2); }
.segmented__item {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 10px 18px;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface);
  font-weight: 700; font-size: 1.0625rem; color: var(--text);
}
.segmented__item:hover { border-color: var(--text-2); background: var(--surface-2); }
.segmented__item.is-on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-hover); box-shadow: inset 0 0 0 1px var(--primary); }
.segmented__item.is-loading { color: transparent; }
.fieldset-plain { border: 0; margin: 0; padding: 0; min-width: 0; }
.fieldset-plain__legend { padding: 0; margin-bottom: var(--s2); }
.segmented__item--radio { cursor: pointer; font-weight: 600; }
.segmented__item--radio:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-hover); box-shadow: inset 0 0 0 1px var(--primary); }
.segmented__item--radio:has(input:checked) .text-3 { color: inherit; }
.segmented__item--radio:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.post--wide { max-width: none; }

/* Onglets sur téléphone : tous visibles, deux par ligne, jamais cachés hors de l'écran. */
@media (max-width: 599px) {
  .tabs { flex-wrap: wrap; gap: var(--s2); border-bottom: 0; overflow: visible; }
  .tabs__link {
    flex: 1 1 calc(50% - var(--s2)); justify-content: center; text-align: center; margin: 0; padding: 0 var(--s3);
    min-height: 50px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); font-size: 1rem;
  }
  .tabs__link[aria-current="page"] { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
}

/* ---------- Offres ---------- */
.pricing { gap: var(--s5); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--s4); }
.plan {
  display: flex; flex-direction: column; gap: var(--s3); padding: var(--s5);
  border: 1.5px solid var(--border-strong); border-radius: var(--radius); background: var(--surface);
}
.plan--featured { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.plan__price { font-size: 1.0625rem; color: var(--text-2); }
.plan__price strong { font-size: 2rem; color: var(--text); letter-spacing: -.02em; }
.plan__price .price--yearly { display: none; }
.plan__price s { font-size: .9375rem; margin-left: 4px; }
.pricing:has(input[name="interval"][value="yearly"]:checked) .price--monthly { display: none; }
.pricing:has(input[name="interval"][value="yearly"]:checked) .price--yearly { display: inline; }
.plan__features { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); flex: 1; }
.plan__features li { display: flex; gap: var(--s2); align-items: flex-start; }
.plan__features .icon { color: var(--success); flex: none; margin-top: 3px; }
.plan > .badge { align-self: flex-start; }

/* ---------- Copier un lien ---------- */
.copy { display: flex; gap: var(--s2); }
.copy .field__control { flex: 1; min-width: 0; }
@media (max-width: 599px) { .copy { flex-direction: column; } }

/* ---------- Réseau réservé à l'offre Complète ---------- */
.network--locked .network__logo { opacity: .55; }

/* ---------- Essai gratuit (menu) ---------- */
.trial {
  margin-top: auto; display: flex; gap: var(--s2); align-items: flex-start; padding: var(--s3);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--text); text-decoration: none; font-size: .9375rem; line-height: 1.4;
}
.trial .icon { flex: none; margin-top: 1px; color: var(--text-2); }
.trial:hover { border-color: var(--primary); }
.trial__cta { display: block; color: var(--primary-hover); font-weight: 700; margin-top: 2px; }
.trial--ended { border-color: var(--warning-line); background: var(--warning-soft); }
.trial--ended .icon { color: var(--warning); }
.trial + .sidebar__foot { margin-top: var(--s3); }
/* Sur téléphone, la barre latérale disparaît : le repère d'essai remonte en tête du contenu. */
.trial--mobile { display: none; }
@media (max-width: 899px) {
  .trial--mobile { display: flex; margin-top: 0; }
}

/* ---------- Page publique d'un bien (à l'image de l'agent) ---------- */
.pp { background: var(--bg); }
.pp__wrap { max-width: 1120px; margin: 0 auto; padding: var(--s5) 16px var(--s8); display: grid; gap: var(--s5); }
.pp__agent-top { display: flex; align-items: center; gap: var(--s3); font-size: 1.0625rem; }
.pp__avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: #FFF; font-weight: 800; }
.pp__grid { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 960px) { .pp__grid { grid-template-columns: minmax(0, 1fr) 400px; } .pp__contact { position: sticky; top: var(--s5); } }
.pp__price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.pp__price-note { font-size: .875rem; font-weight: 500; color: var(--text-2); }
.pp__legal { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--border); }
.pp__legal summary { cursor: pointer; font-weight: 600; }
.pp__legal details[open] summary { margin-bottom: var(--s3); }
.pp__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Résultats et contacts ---------- */
.results { gap: var(--s4); }
.results__sentence { font-size: 1.125rem; line-height: 1.5; }
.results__numbers { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); color: var(--text-2); }
.results__numbers span { display: inline-flex; align-items: center; gap: 6px; }
.results__numbers strong { color: var(--text); font-size: 1.25rem; }
.lead-item { display: grid; gap: var(--s2); padding-top: var(--s4); border-top: 1px solid var(--border); }
.results > .lead-item:first-child { border-top: 0; padding-top: 0; }
.lead-item__head { display: flex; justify-content: space-between; gap: var(--s3); align-items: baseline; flex-wrap: wrap; }
.lead-item__name { font-weight: 800; font-size: 1.0625rem; }

/* ---------- Chantier 1 « Confiance » ---------- */
/* Lien « Voir la publication » dans les historiques. */
.pub-link { justify-self: start; gap: 6px; }
/* « Une question ? Écrivez-nous » : discret, en pied de menu. */
.support-link { display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s1) var(--s2); color: var(--text-3); font-size: .875rem; font-weight: 600; text-decoration: none; }
.support-link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.support-link .icon { flex: none; }
/* Règle de résiliation et rassurance : une ligne, sans bruit. */
.cancel-rule { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); padding-top: var(--s3); border-top: 1px solid var(--border); }
.cancel-rule > p { flex: 1 1 260px; }
.reassurance { font-size: .9375rem; }
.reassurance .icon { flex: none; color: var(--text-2); }
.guest__card > .text-sm { margin-top: var(--s2); }

/* 23. Aux couleurs de la marque ----------------------------------------- */
/* Charte : beaucoup de papier, du noir pour structurer, l'orange en touche. Pas d'ombre, pas de bleu « logiciel ». */
:root {
  --bg: #F6F3EE;              /* papier */
  --surface: #FFFFFF;
  --surface-2: #FAF8F4;
  --border: #DDD6CA;
  --border-strong: #8C8577;
  --text: #111315;
  --text-2: #46423B;          /* contraste > 9:1 sur blanc */
  --text-3: #5E5950;          /* contraste > 6:1 sur blanc */
  --brand: #F45112;
  --brand-hover: #D8410A;

  --info: #262421;  --info-soft: #EFEBE4;  --info-line: #CFC8BA;

  --radius-sm: 4px;
  --radius: 6px;
  --shadow: none;
  --focus: 0 0 0 3px #FFFFFF, 0 0 0 6px #111111;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
}
::selection { background: #111111; color: #F4F1EC; }

/* Le bouton principal : l'orange du panneau, cerné de noir, comme sur le site. */
.btn--primary { --b-bg: var(--brand); --b-fg: var(--text); --b-bd: var(--text); border-width: 2px; }
.btn--primary:hover { --b-bg: var(--brand-hover); --b-bd: var(--text); }
.btn--primary:active:not(:disabled) { transform: translate(1px, 1px); }
.btn--dark:hover { --b-bg: #2E2B27; --b-bd: #2E2B27; }

/* Un titre d'affiche par écran : le titre de la page. */
.page-header .title-1, .guest .title-1, .flow .title-1 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .005em;
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1.02; text-wrap: balance; overflow-wrap: anywhere;
}
.setup-head .title-1 { font-size: clamp(1.75rem, 3vw, 2.25rem); }

/* Champs : le focus en noir, plus en bleu. */
.field__control:focus { border-color: var(--text); box-shadow: 0 0 0 3px rgba(17, 17, 17, .14); }
.password__toggle { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.password__toggle:hover { background: var(--surface-2); }

/* Menu : la page en cours marquée d'un trait orange, pas d'aplat pastel. */
.sidebar, .topbar, .tabbar, .flow-bar { background: #FBF9F5; }
.nav__link[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: inset 4px 0 0 var(--brand); }
.nav__link[aria-current="page"] .icon { color: var(--text); }
.nav__badge, .tabbar__badge { background: var(--brand); color: var(--text); }
.tabbar__link[aria-current="page"] { color: var(--text); }
.tabbar__link[aria-current="page"] .tabbar__icon::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: -6px; height: 3px; background: var(--brand); }
.tabbar__add .tabbar__icon { background: var(--brand); color: var(--text); border: 2px solid var(--text); border-radius: 50%; }
.topbar__settings[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.tabs__link[aria-current="page"] { border-bottom-color: var(--brand); }
.tabs__link[aria-current="page"] .tabs__count { background: var(--text); border-color: var(--text); color: #FFF; }

/* Pages invitées (connexion, inscription) : la carte du panneau. */
.guest__card { border: 2px solid var(--text); border-radius: var(--radius); }
.guest .lead { color: var(--text-2); }

/* Tableau de bord : l'état du moment, cerné de noir, sans arrondi appuyé. */
.state { border-radius: var(--radius); }

/* Les pages des agents (biens, estimation) gardent leur style neutre : ni l'orange ni le papier de la marque. */
.pp {
  --bg: #F4F5F7; --surface-2: #F9FAFB; --border: #DCDFE4; --border-strong: #8B929C;
  --text: #16191D; --text-2: #444C57; --text-3: #5F6772;
  --radius-sm: 8px; --radius: 12px; --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --info: #1E4E8C; --info-soft: #EEF4FC; --info-line: #A9C4EA;
  --focus: 0 0 0 3px #FFFFFF, 0 0 0 6px #1E4E8C;
}
.pp .btn--primary { --b-bg: var(--primary); --b-fg: #FFF; --b-bd: var(--primary); border-width: 1.5px; }
.pp .btn--primary:hover { --b-bg: var(--primary-hover); --b-bd: var(--primary-hover); }
.pp .field__control:focus { border-color: var(--info); box-shadow: 0 0 0 3px rgba(30, 78, 140, .2); }
.pp .password__toggle { color: var(--info); text-decoration: none; }


/* 24. Les grands moments (merci, c'est parti, vendu) ---------------------- */
/* Un écran, une émotion, une seule action. Le titre d'affiche porte le moment. */
.moment { display: grid; gap: var(--s6); max-width: 720px; }
.moment__kicker { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 800; font-size: .9375rem; color: var(--success); }
.moment__kicker--wait { color: var(--text-2); }
.moment__title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .95; letter-spacing: .005em;
  font-size: clamp(3.5rem, 2rem + 6vw, 6.5rem);
}
.moment__title .accent { color: var(--brand); }
.moment__lead { font-size: 1.25rem; color: var(--text-2); max-width: 46ch; }
.moment__facts { display: grid; border: 2px solid var(--text); border-radius: var(--radius); background: var(--surface); }
.moment__facts > div { display: flex; justify-content: space-between; gap: var(--s4); padding: 14px 20px; flex-wrap: wrap; }
.moment__facts > div + div { border-top: 1px solid var(--border); }
.moment__facts dt { color: var(--text-2); font-weight: 600; }
.moment__facts dd { font-weight: 800; text-align: right; }
.moment__next { display: grid; gap: var(--s3); }
.moment__next li { display: flex; gap: var(--s3); align-items: flex-start; font-weight: 600; }
.moment__next .icon { flex: none; margin-top: 3px; color: var(--success); }
.moment__num { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--text); font-size: .875rem; font-weight: 800; }
.moment__share { display: grid; gap: var(--s3); padding: var(--s5); border: 1.5px dashed var(--border-strong); border-radius: var(--radius); }
.moment__share-title { font-weight: 800; display: flex; align-items: center; gap: var(--s2); }
.moment .pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--brand); animation: moment-pulse 1.2s var(--ease) infinite; }
@keyframes moment-pulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
.celebrate {
  display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap;
  padding: var(--s4) var(--s5); background: var(--success-soft); border: 2px solid var(--success); border-radius: var(--radius);
}
.celebrate > .icon { color: var(--success); }
.celebrate__body { flex: 1 1 280px; min-width: 0; display: grid; gap: 2px; }
.celebrate__title { font-weight: 800; font-size: 1.1875rem; line-height: 1.3; }
.celebrate__text { color: var(--text-2); font-size: 1rem; }
/* Accueil : la preuve du mois, une ligne discrète au-dessus du message du moment. */
.proof { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) 0; color: var(--success); font-weight: 600; text-decoration: none; }
.proof strong { font-weight: 800; }
.proof:hover span { text-decoration: underline; }

/* Pages des agents : contacter directement (appel, SMS, WhatsApp, e-mail). */
.pp__reach { display: grid; gap: var(--s3); }
.pp__reach-row { display: flex; gap: var(--s2); }
.pp__reach-row .btn { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 4px; min-height: 64px; padding: 8px 4px; font-size: .875rem; }
.pp__reach > .btn span { white-space: nowrap; }

/* Pages d'entrée (essai, inscription, connexion) : un bien et l'enseigne au mégaphone. */
.guest__aside { display: none; }
@media (min-width: 1100px) {
  .guest--aside { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); place-items: stretch; padding: 0; }
  .guest--aside .guest__wrap { align-self: center; justify-self: center; padding: var(--s7) var(--s6); }
  .guest__aside {
    display: block; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden;
    border-right: 3px solid var(--text); background: var(--text);
  }
  .guest__photo { width: 100%; height: 100%; object-fit: cover; }
  .guest__sign {
    position: absolute; left: 9%; bottom: 14%; display: grid; place-items: center;
    width: clamp(150px, 15vw, 220px); aspect-ratio: 1; padding: 17px;
    background: var(--bg); border: 4px solid var(--text); border-radius: 50%;
  }
  .guest__sign img { width: 100%; height: auto; }
  .guest__line {
    position: absolute; left: 0; right: 0; top: 0; padding: var(--s4) var(--s6); background: var(--text); color: #F4F1EC;
    font-family: var(--display); text-transform: uppercase; font-size: 1.75rem; line-height: 1.1;
  }
}
