/* ==========================================================================
   Vincoin — design « Nature Distilled » : terracotta, sable, crème, olive.
   Jetons sémantiques (clair / sombre), grain papier, ombres douces, mouvement
   mesuré et coupé si l'utilisateur demande moins d'animations.
   ========================================================================== */

:root {
  /* Couleurs (contrastes vérifiés : texte ≥ 4,5:1) */
  --fond: #f6f0e6;
  --surface: #fffdf9;
  --surface-2: #fbf5ec;
  --texte: #2a211c;
  --discret: #6b5e54;
  --bord: #e8dccb;
  --bord-fort: #d9c8b2;
  --accent: #ae4726;
  --accent-fort: #8f3719;
  --accent-texte: #ffffff;
  --accent-doux: #f6e2d6;
  --sable: #d9c4a5;
  --ok: #56672a;
  --ok-doux: #e9eed9;
  --ambre: #8a5a00;
  --ambre-doux: #fbf0d6;
  --alerte-fond: #fbe7e3;
  --alerte-texte: #9e2418;
  --vinted: #0a8a91;
  --leboncoin: #d9530f;
  --degrade: linear-gradient(135deg, #8f3719 0%, #a9492a 52%, #b25b2b 100%);

  /* Forme */
  --rayon-s: 10px;
  --rayon: 16px;
  --rayon-l: 24px;
  --ombre-1: 0 1px 2px rgba(74, 44, 26, .06), 0 2px 8px rgba(74, 44, 26, .04);
  --ombre-2: 0 2px 6px rgba(74, 44, 26, .06), 0 14px 32px -12px rgba(74, 44, 26, .18);
  --ombre-3: 0 10px 30px -6px rgba(143, 55, 25, .45);

  /* Typo & mouvement */
  --titre: "Fraunces", Georgia, "Times New Roman", serif;
  --texte-police: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-rapide: 120ms;
  --t-moyen: 220ms;
  --t-lent: 480ms;
  --sortie: cubic-bezier(.22, 1, .36, 1);
  --ressort: cubic-bezier(.34, 1.56, .64, 1);

  --nav-h: 68px;
  --grain-opacite: .05;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #17120f;
    --surface: #231c17;
    --surface-2: #2a221c;
    --texte: #f3eae1;
    --discret: #bcac9f;
    --bord: #3a3029;
    --bord-fort: #4a3e35;
    --accent: #e58760;
    --accent-fort: #f09a75;
    --accent-texte: #1a120d;
    --accent-doux: #3a251b;
    --sable: #6b5a47;
    --ok: #b3c57a;
    --ok-doux: #2c3120;
    --ambre: #ffc94d;
    --ambre-doux: #3a2e14;
    --alerte-fond: #4a1f1a;
    --alerte-texte: #ffb4a8;
    --vinted: #4cc7cd;
    --leboncoin: #ff8a4c;
    --degrade: linear-gradient(135deg, #6e2a13 0%, #8a3a1f 55%, #9a4a25 100%);
    --ombre-1: 0 1px 2px rgba(0, 0, 0, .4);
    --ombre-2: 0 2px 6px rgba(0, 0, 0, .35), 0 14px 32px -12px rgba(0, 0, 0, .6);
    --ombre-3: 0 10px 30px -6px rgba(0, 0, 0, .6);
    --grain-opacite: .035;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--texte-police);
  font-size: 16px;
  background: var(--fond);
  color: var(--texte);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}
/* Grain papier (décoratif) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: var(--grain-opacite);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
h1, h2, h3 { font-family: var(--titre); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.1rem); margin: 0 0 .3rem; }
h2 { font-size: 1.15rem; margin: 0 0 .6rem; display: flex; align-items: center; gap: .5rem; }
h3 { font-size: 1.02rem; margin: 0 0 .6rem; }
p { text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-fort); }
.discret { color: var(--discret); margin-top: 0; }
.petit { font-size: .86rem; }
.bon { color: var(--ok); }
.attention { color: var(--alerte-texte); }
strong, .tableau td, .montants dd { font-variant-numeric: tabular-nums; }

.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
h2 .ico { width: 20px; height: 20px; color: var(--accent); }

::selection { background: var(--accent-doux); color: var(--texte); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Coque ---------- */
.coque { min-height: 100dvh; }
.entete {
  position: sticky; top: 0; z-index: 20; view-transition-name: entete;
  display: flex; align-items: center; justify-content: space-between;
  padding: .55rem 1rem; padding-top: max(.55rem, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--bord) 70%, transparent);
}
.marque { display: flex; align-items: center; gap: .55rem; font-family: var(--titre); font-weight: 700; font-size: 1.2rem; color: var(--texte); text-decoration: none; }
.marque img { border-radius: 9px; box-shadow: var(--ombre-1); }
.entete-droite { display: flex; align-items: center; gap: .25rem; }
.entete-droite form { margin: 0; }
.qui { color: var(--discret); font-size: .9rem; margin-right: .25rem; font-weight: 600; text-decoration: none; padding: .4rem .6rem; border-radius: 99px; }
.qui:hover { background: var(--accent-doux); }
.inactif { opacity: .55; }
.entete-droite .bouton-icone { text-decoration: none; }

.navigation {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; view-transition-name: navigation;
  display: flex; justify-content: space-around;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding: 0 .25rem env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid color-mix(in srgb, var(--bord) 70%, transparent);
}
.navigation a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 48px; font-size: .72rem; font-weight: 600; color: var(--discret); text-decoration: none;
  transition: color var(--t-moyen) var(--sortie);
}
.navigation a .ico { width: 44px; height: 30px; padding: 5px 12px; border-radius: 99px; transition: background var(--t-moyen) var(--sortie), transform var(--t-moyen) var(--ressort); }
.navigation a.actif { color: var(--accent); }
.navigation a.actif .ico { background: var(--accent-doux); animation: pastille var(--t-lent) var(--ressort); }
.navigation a:active .ico { transform: scale(.9); }
@keyframes pastille { from { transform: scaleX(.4); opacity: .3; } }

.contenu {
  max-width: 1120px; margin: 0 auto;
  padding: 1.25rem 1rem calc(var(--nav-h) + env(safe-area-inset-bottom) + 5rem);
}

/* Bouton d'action rapide (mobile) */
.fab { position: fixed; right: 1rem; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 1rem); z-index: 25; }
.fab-bouton {
  width: 58px; height: 58px; border-radius: 20px; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: var(--degrade); box-shadow: var(--ombre-3);
  transition: transform var(--t-moyen) var(--ressort), border-radius var(--t-moyen) var(--sortie);
}
.fab-bouton .ico { width: 26px; height: 26px; stroke-width: 2.2; transition: transform var(--t-moyen) var(--ressort); }
.fab-bouton:active { transform: scale(.94); }
.fab.ouvert .fab-bouton { border-radius: 50%; }
.fab.ouvert .fab-bouton .ico { transform: rotate(135deg); }
.fab-menu {
  position: absolute; right: 0; bottom: calc(100% + .75rem); display: grid; gap: .5rem; justify-items: end;
  pointer-events: none;
}
.fab-menu a {
  display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1rem; min-height: 48px; white-space: nowrap;
  background: var(--surface); color: var(--texte); text-decoration: none; font-weight: 700; border-radius: 99px;
  box-shadow: var(--ombre-2); border: 1px solid var(--bord);
  opacity: 0; transform: translateY(12px) scale(.96); transition: opacity var(--t-moyen) var(--sortie), transform var(--t-moyen) var(--sortie);
}
.fab-menu a .ico { color: var(--accent); }
.fab.ouvert .fab-menu { pointer-events: auto; }
.fab.ouvert .fab-menu a { opacity: 1; transform: none; }
.fab.ouvert .fab-menu a:nth-last-child(2) { transition-delay: 40ms; }
.fab.ouvert .fab-menu a:nth-last-child(3) { transition-delay: 80ms; }
.fab-voile { position: fixed; inset: 0; z-index: 24; background: color-mix(in srgb, var(--fond) 55%, transparent); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity var(--t-moyen); }
.fab-voile.ouvert { opacity: 1; pointer-events: auto; }

@media (min-width: 900px) {
  .coque { display: grid; grid-template-columns: 236px 1fr; grid-template-rows: auto 1fr; }
  .entete { grid-column: 1 / -1; }
  .navigation {
    position: sticky; top: 61px; height: calc(100dvh - 61px); background: transparent; backdrop-filter: none;
    flex-direction: column; justify-content: flex-start; gap: .2rem; padding: 1.25rem .85rem; border-top: 0;
    border-right: 1px solid var(--bord);
  }
  .navigation a { flex: none; flex-direction: row; justify-content: flex-start; gap: .7rem; padding: .35rem .5rem; border-radius: 12px; font-size: .96rem; min-height: 44px; }
  .navigation a .ico { width: 40px; height: 32px; padding: 6px 10px; }
  .navigation a:hover { color: var(--texte); background: var(--surface-2); }
  .contenu { padding: 2rem 2.25rem 3rem; width: 100%; }
  .fab { right: 2rem; bottom: 2rem; }
}

/* ---------- Composants de base ---------- */
.grille { display: grid; gap: 1rem; margin-top: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.carte {
  background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.15rem 1.2rem;
  box-shadow: var(--ombre-1);
}
.carte.vide { text-align: center; padding: 2.75rem 1.5rem; margin-top: 1rem; }
.carte.vide::before {
  content: ""; display: block; width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 24px;
  background: radial-gradient(circle at 30% 30%, var(--accent-doux), var(--sable)); opacity: .9;
}
.pastille { display: inline-block; background: var(--accent-doux); color: var(--accent); font-weight: 700; font-size: .8rem; padding: .25rem .75rem; border-radius: 99px; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 46px; padding: 0 1.15rem; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--accent); color: var(--accent-texte); font: inherit; font-weight: 700; letter-spacing: .01em;
  text-decoration: none; box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 2px 6px -1px rgba(143, 55, 25, .35);
  transition: transform var(--t-rapide) var(--sortie), background var(--t-moyen), box-shadow var(--t-moyen), filter var(--t-moyen);
}
.bouton:hover { background: var(--accent-fort); color: var(--accent-texte); }
.bouton:active { transform: scale(.97); }
.bouton.plein { width: 100%; }
.bouton.secondaire { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 70%, transparent); }
.bouton.secondaire:hover { background: var(--accent-doux); color: var(--accent-fort); }
.bouton.petit { min-height: 38px; padding: 0 .85rem; font-size: .88rem; border-radius: 10px; }
.bouton.danger { background: var(--alerte-texte); color: #fff; box-shadow: none; }
.bouton:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.bouton.en-cours { pointer-events: none; opacity: .85; }
.bouton.en-cours::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: tourne .7s linear infinite; }
@keyframes tourne { to { transform: rotate(1turn); } }
.bouton-icone {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: transparent; color: var(--discret); cursor: pointer; transition: background var(--t-rapide), color var(--t-rapide), transform var(--t-rapide);
}
.bouton-icone:hover { background: var(--accent-doux); color: var(--accent); }
.bouton-icone:active { transform: scale(.92); }
.bouton-icone:disabled { opacity: .35; cursor: default; background: none; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .9rem; }

label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: .95rem; }
input[type=email], input[type=password], input[type=text], input[type=url], input[type=search], input[type=date], input[type=number], select, textarea {
  display: block; width: 100%; margin-top: .4rem; min-height: 48px; padding: .55rem .9rem;
  border: 1.5px solid var(--bord); border-radius: 12px; background: var(--surface-2); color: var(--texte);
  font: inherit; font-size: 1rem; font-weight: 500;
  transition: border-color var(--t-rapide), box-shadow var(--t-rapide), background var(--t-rapide);
}
textarea { min-height: auto; resize: vertical; line-height: 1.5; }
input:hover, select:hover, textarea:hover { border-color: var(--bord-fort); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
input[type=file] { font: inherit; }
.alerte { background: var(--alerte-fond); color: var(--alerte-texte); padding: .8rem 1rem; border-radius: 12px; font-size: .93rem; font-weight: 600; }
.info { background: var(--accent-doux); color: var(--texte); padding: .8rem 1rem; border-radius: 12px; font-size: .93rem; border-left: 4px solid var(--accent); }

/* ---------- Connexion ---------- */
.page-connexion {
  min-height: 100dvh; display: grid; place-items: center; padding: 1rem;
  background: radial-gradient(1200px 600px at 110% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
              radial-gradient(900px 500px at -20% 110%, color-mix(in srgb, var(--sable) 55%, transparent), transparent 60%), var(--fond);
}
.formulaire-connexion { width: 100%; max-width: 400px; padding: 2rem 1.6rem; box-shadow: var(--ombre-2); border-radius: var(--rayon-l); animation: monte var(--t-lent) var(--sortie) both; }
.formulaire-connexion .logo { border-radius: 16px; display: block; margin-bottom: 1rem; box-shadow: var(--ombre-3); }
.formulaire-connexion h1 { margin-bottom: .1rem; font-size: 2rem; }
.formulaire-connexion .discret { margin-bottom: 1.5rem; }

/* ---------- Titres de page, listes ---------- */
.barre-titre { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.barre-titre h1, .barre-titre h2, .barre-titre h3 { margin: 0; }
.retour { display: inline-flex; align-items: center; gap: .15rem; margin: 0 0 .6rem -.3rem; padding: .25rem .5rem .25rem .3rem; border-radius: 99px; font-size: .9rem; font-weight: 700; text-decoration: none; }
.retour:hover { background: var(--accent-doux); }
.titre-section { margin: 2rem 0 .8rem; font-size: 1.25rem; }
.espace-haut { margin-top: 1rem; }
.a-droite { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; flex: none; text-align: right; }

.liste-cartes { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ligne-lien {
  display: flex; justify-content: space-between; align-items: center; gap: .85rem; color: inherit; text-decoration: none; padding: .75rem .9rem;
  transition: transform var(--t-rapide) var(--sortie), box-shadow var(--t-moyen), border-color var(--t-moyen);
}
.ligne-lien:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--bord)); box-shadow: var(--ombre-2); color: inherit; }
.ligne-lien:active { transform: scale(.985); }
.ligne-lien > div:not(.a-droite) { min-width: 0; flex: 1; }
.ligne-lien .a-droite { max-width: 45%; }
.ligne-lien .etiquette { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ligne-lien strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vignette { width: 56px; height: 56px; flex: none; border-radius: 12px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--bord); display: grid; place-items: center; color: var(--sable); }
.vignette .ico { width: 24px; height: 24px; }

.etiquette {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 800; padding: .2rem .6rem; border-radius: 99px;
  background: var(--accent-doux); color: var(--accent); white-space: nowrap; letter-spacing: .01em;
}
.etiquette::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.etiquette .ico { width: 14px; height: 14px; vertical-align: -2px; }
.etiquette:has(.ico)::before { display: none; }
.etiquette.ok, .statut-finalise, .statut-en_ligne { background: var(--ok-doux); color: var(--ok); }
.statut-vendu, .statut-expedie, .statut-reserve { background: color-mix(in srgb, var(--vinted) 14%, var(--surface)); color: color-mix(in srgb, var(--vinted) 80%, var(--texte)); }
.statut-litige { background: var(--alerte-fond); color: var(--alerte-texte); }
.statut-en_transit, .statut-perso, .statut-invendu { background: var(--surface-2); color: var(--discret); box-shadow: inset 0 0 0 1px var(--bord); }
.statut-pret { background: var(--ambre-doux); color: var(--ambre); }
.alerte-seuil { background: var(--ambre-doux); color: var(--ambre); }
.badge { position: absolute; left: 8px; top: 8px; }

/* ---------- Accueil ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; border-radius: var(--rayon-l); padding: 1.4rem 1.3rem 1.3rem;
  background: var(--degrade); box-shadow: var(--ombre-3); isolation: isolate;
}
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.hero::before { width: 320px; height: 320px; right: -110px; top: -140px; background: radial-gradient(circle, rgba(255, 214, 170, .35), transparent 65%); }
.hero::after { width: 260px; height: 260px; left: -120px; bottom: -150px; background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 65%); }
.hero h1 { color: #fff; margin: 0; }
.hero .salut { opacity: .88; font-weight: 600; margin: 0 0 .2rem; font-size: .95rem; }
.hero-corps { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.1rem; }
.hero-chiffre span { display: block; font-size: .82rem; opacity: .85; font-weight: 600; }
.hero-chiffre strong { display: block; font-family: var(--titre); font-size: clamp(2.1rem, 1.7rem + 2vw, 2.8rem); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; }
.hero-chiffre em { font-style: normal; font-size: .85rem; opacity: .9; }
.anneau { position: relative; width: 104px; height: 104px; flex: none; }
.anneau svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anneau circle { fill: none; stroke-width: 9; }
.anneau .fond-anneau { stroke: rgba(255, 255, 255, .22); }
.anneau .valeur-anneau { stroke: #fff; stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--sortie); }
.anneau b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.15rem; font-weight: 800; }
.anneau small { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-size: .65rem; opacity: .85; font-weight: 700; }
.puces { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.1rem; }
.puce { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 99px; background: rgba(255, 255, 255, .16); color: #fff; font-size: .84rem; font-weight: 700; text-decoration: none; backdrop-filter: blur(6px); }
.puce:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.puce .ico { width: 16px; height: 16px; }

.raccourcis { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-top: 1rem; }
@media (min-width: 700px) { .raccourcis { grid-template-columns: repeat(4, 1fr); } }
.raccourci {
  display: flex; flex-direction: column; gap: .5rem; padding: .95rem; border-radius: var(--rayon); text-decoration: none; color: var(--texte);
  background: var(--surface); border: 1px solid var(--bord); box-shadow: var(--ombre-1);
  transition: transform var(--t-rapide) var(--sortie), box-shadow var(--t-moyen), border-color var(--t-moyen);
}
.raccourci:hover { color: var(--texte); box-shadow: var(--ombre-2); border-color: color-mix(in srgb, var(--accent) 40%, var(--bord)); }
.raccourci:active { transform: scale(.97); }
.raccourci .ico { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--accent-doux); color: var(--accent); }
.raccourci b { font-family: var(--titre); font-size: 1.6rem; line-height: 1; }
.raccourci span { font-size: .84rem; color: var(--discret); font-weight: 600; }

.a-faire { list-style: none; padding: 0; margin: 0; }
.a-faire li { display: flex; justify-content: space-between; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--bord); }
.a-faire li:last-child { border-bottom: 0; }
.a-faire a { text-decoration: none; color: var(--texte); display: inline-flex; gap: .55rem; align-items: center; font-weight: 600; }
.a-faire a .ico { color: var(--accent); }

.liste-actions { list-style: none; padding: 0; margin: 0; }
.liste-actions li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--bord); }
.liste-actions li:last-child { border-bottom: 0; }
.liste-actions a { color: var(--texte); text-decoration: none; }
.liste-actions form { margin: 0; flex: none; }
.deux-boutons { display: flex; flex-direction: column; gap: .35rem; }
.rappel { border-left: 4px solid var(--accent); background: linear-gradient(90deg, var(--accent-doux), var(--surface) 55%); }

/* ---------- Formulaires métier ---------- */
.champs-2 { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.champs-4 { display: grid; gap: 0 .75rem; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }

.zone-collage { position: relative; border: 2px dashed var(--bord-fort); border-radius: var(--rayon); padding: 1.6rem 1rem; text-align: center; margin-bottom: 1rem; background: var(--surface-2); transition: border-color var(--t-moyen), background var(--t-moyen); }
.zone-collage.survol, .zone-collage:focus-within { border-color: var(--accent); background: var(--accent-doux); }
.zone-collage input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.zone-texte { display: flex; flex-direction: column; align-items: center; gap: .3rem; cursor: pointer; margin: 0; font-weight: 500; }
.zone-texte strong { font-size: 1.05rem; }
.zone-collage img { max-width: 100%; max-height: 320px; margin-top: .9rem; border-radius: 12px; box-shadow: var(--ombre-2); }

.valider-grille { display: grid; gap: 1rem; }
@media (min-width: 900px) { .valider-grille:has(.source) { grid-template-columns: 320px 1fr; align-items: start; } }
.source img { width: 100%; border-radius: 12px; }
.source { position: sticky; top: 76px; }

.ligne-article { display: grid; grid-template-columns: 1fr 72px 96px 96px 44px; gap: .5rem; align-items: end; padding: .6rem 0; border-bottom: 1px solid var(--bord); animation: monte var(--t-moyen) var(--sortie); }
.ligne-article label { margin: 0; font-size: .78rem; }
.ligne-article input { min-height: 44px; }
@media (max-width: 599px) {
  .ligne-article { grid-template-columns: 1fr 1fr 1fr 44px; }
  .ligne-article .nom { grid-column: 1 / -1; }
}
.controle { font-size: .9rem; padding: .7rem .9rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--bord); font-weight: 600; }
.controle.bon { color: var(--ok); background: var(--ok-doux); border-color: transparent; }
.controle.attention { color: var(--alerte-texte); background: var(--alerte-fond); border-color: transparent; }

.choix-proprio, .choix-etat { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.pilule { display: inline-flex; align-items: center; gap: .45rem; margin: 0; padding: .55rem .95rem; min-height: 44px; border: 1.5px solid var(--bord); border-radius: 99px; font-weight: 600; cursor: pointer; background: var(--surface); transition: all var(--t-rapide); }
.pilule:hover { border-color: var(--bord-fort); }
.pilule:has(input:checked) { border-color: var(--accent); background: var(--accent-doux); color: var(--accent-fort); }
.pilule input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.parts { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin-bottom: 1rem; }
.parts p { grid-column: 1 / -1; margin: 0; }

.montants { display: grid; grid-template-columns: 1fr auto; gap: .45rem 1rem; margin: 0; }
.montants dt { color: var(--discret); }
.montants dd { margin: 0; text-align: right; font-weight: 600; }

.tableau-defile { overflow-x: auto; }
.tableau { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tableau th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--discret); font-weight: 800; padding: .5rem; border-bottom: 1.5px solid var(--bord); }
.tableau td { padding: .6rem .5rem; border-bottom: 1px solid var(--bord); vertical-align: middle; }
.tableau tbody tr { transition: background var(--t-rapide); }
.tableau tbody tr:hover { background: var(--surface-2); }
.tableau tbody tr:last-child td { border-bottom: 0; }
.champ-court { width: 96px !important; display: inline-block !important; min-height: 40px !important; margin: 0 !important; }

.reception-ligne { display: grid; gap: .5rem; }
.reception-ligne .choix-etat { margin: 0; }
.litige { margin-bottom: .75rem; }
.zone-danger { margin-top: 2.5rem; color: var(--discret); }
.zone-danger summary { cursor: pointer; font-size: .9rem; font-weight: 600; }
.zone-danger[open] summary { color: var(--alerte-texte); }

.filtres { display: grid; gap: .5rem; grid-template-columns: 1fr; margin-bottom: 1rem; }
@media (min-width: 700px) { .filtres { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.filtres input, .filtres select { margin: 0; }
.historique { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-left: 2px solid var(--bord); margin-left: .4rem; }
.historique li { position: relative; padding: .35rem 0 .35rem 1rem; }
.historique li::before { content: ""; position: absolute; left: -6px; top: .85rem; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }

.ajout-ligne { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.ajout-ligne input[type=text] { flex: 1; min-width: 160px; margin: 0; }
.ligne-emplacement.inactif { opacity: .55; }

/* ---------- Photos & annonces ---------- */
.envoi-photos { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; background: linear-gradient(120deg, var(--accent-doux), var(--surface) 70%); }
.envoi-photos input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.galerie { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.photo { padding: .55rem; }
.photo-image { position: relative; display: block; overflow: hidden; border-radius: 12px; }
.photo-image img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--surface-2); transition: transform var(--t-lent) var(--sortie); }
.photo-image:hover img { transform: scale(1.04); }
.photo-actions { display: flex; justify-content: space-between; margin-top: .3rem; }
.photo-actions form { margin: 0; }
.photo-actions .bouton-icone { text-decoration: none; }
.retouche summary { cursor: pointer; font-size: .88rem; font-weight: 700; color: var(--accent); padding: .45rem .2rem; display: flex; align-items: center; gap: .4rem; }
.retouche form { margin-top: .5rem; display: grid; gap: .45rem; }
.retouche p { margin: 0; }
.retouche input[type=text] { min-height: 42px; margin: 0; font-size: .92rem; }
.choix-fonds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fond { margin: 0; cursor: pointer; }
.fond input { position: absolute; opacity: 0; }
.fond img { width: 100%; aspect-ratio: 1; border-radius: 10px; border: 2px solid transparent; display: block; transition: transform var(--t-rapide) var(--ressort), border-color var(--t-rapide); }
.fond:hover img { transform: scale(1.06); }
.fond:has(input:checked) img { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-doux); }

.generer { display: grid; gap: .6rem; grid-template-columns: 1fr auto; align-items: center; background: linear-gradient(120deg, var(--surface), var(--accent-doux)); border-color: color-mix(in srgb, var(--accent) 25%, var(--bord)); }
.generer p { grid-column: 1 / -1; margin: 0; }
.generer > div p { margin: 0; }
.annonce .barre-titre { margin-bottom: .6rem; align-items: center; }
.annonce-vinted { border-top: 4px solid var(--vinted); }
.annonce-leboncoin { border-top: 4px solid var(--leboncoin); }
.champ-copie { display: flex; gap: .4rem; align-items: flex-start; }
.champ-copie input, .champ-copie textarea { flex: 1; }
.champ-copie .bouton-icone { margin-top: .4rem; flex: none; }
.compteur { float: right; font-weight: 600; color: var(--discret); font-size: .76rem; }
label.incertain input, label.incertain select { border-color: #d49a1c; background: var(--ambre-doux); }
.verifie { display: inline-flex; gap: .35rem; align-items: center; font-weight: 600; font-size: .8rem; margin-top: .3rem; color: var(--ambre); }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 22px); z-index: 30; transform: translateX(-50%);
  display: inline-flex; gap: .5rem; align-items: center;
  background: var(--texte); color: var(--fond); padding: .7rem 1.15rem; border-radius: 99px; font-weight: 700; font-size: .92rem;
  box-shadow: var(--ombre-2); animation: toast var(--t-lent) var(--ressort);
}
@keyframes toast { from { opacity: 0; transform: translate(-50%, 16px) scale(.9); } }
.vignettes-fiche { display: flex; gap: .5rem; overflow-x: auto; margin: .5rem 0; scroll-snap-type: x mandatory; }
.vignettes-fiche img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; scroll-snap-align: start; }

/* ---------- Ventes ---------- */
.onglets { display: flex; gap: .4rem; overflow-x: auto; margin-bottom: 1rem; scrollbar-width: none; }
.onglets a { padding: .5rem 1rem; min-height: 40px; display: inline-flex; align-items: center; border-radius: 99px; border: 1.5px solid var(--bord); text-decoration: none; color: var(--texte); white-space: nowrap; font-size: .9rem; font-weight: 600; background: var(--surface); }
.onglets a.actif { border-color: var(--accent); background: var(--accent); color: var(--accent-texte); }
.choix-articles { list-style: none; padding: 0; margin: .75rem 0 0; max-height: 380px; overflow-y: auto; }
.choix-articles li { border-bottom: 1px solid var(--bord); padding: .3rem 0; }
.choix-article { display: flex; gap: .75rem; align-items: center; margin: 0; font-weight: 500; cursor: pointer; padding: .35rem 0; min-height: 48px; }
.choix-article input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.choix-article > span { display: flex; flex-direction: column; }
.prix-ligne { margin: .2rem 0 .45rem 2.2rem; font-size: .8rem; }
.prix-ligne input { min-height: 40px; max-width: 170px; }
.case { display: flex; gap: .6rem; align-items: center; font-weight: 600; }
.case input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.etape { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.etape input[type=date] { width: auto; margin: 0; }
.vendu { border-left: 4px solid var(--ok); background: linear-gradient(90deg, var(--ok-doux), var(--surface) 60%); }

/* ---------- Tableau de bord ---------- */
.filtres-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; margin-bottom: .4rem; }
.tuiles { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(46%, 170px), 1fr)); margin-top: 1rem; }
.tuile {
  position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon);
  padding: .95rem 1rem; display: flex; flex-direction: column; gap: .2rem; box-shadow: var(--ombre-1);
  transition: transform var(--t-moyen) var(--sortie), box-shadow var(--t-moyen);
}
.tuile:hover { transform: translateY(-2px); box-shadow: var(--ombre-2); }
.tuile::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, var(--accent-doux), transparent 70%); }
.tuile span { font-size: .78rem; color: var(--discret); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tuile strong { font-family: var(--titre); font-size: 1.6rem; line-height: 1.15; font-weight: 700; }
.tuile em { font-style: normal; font-size: .8rem; color: var(--discret); }
.jauge { height: 10px; border-radius: 99px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--bord); overflow: hidden; }
.jauge > div { height: 100%; border-radius: 99px; background: var(--degrade); transform-origin: left; animation: jauge 1.1s var(--sortie) both; }
@keyframes jauge { from { transform: scaleX(0); } }
.jauge.petite { height: 7px; margin-bottom: .5rem; }
.objectif .barre-titre { margin-bottom: .6rem; align-items: center; }
.dac7 h3 { margin: 0; }
.dac7 p { margin: .25rem 0; }
.dac7.alerte { border-color: #d49a1c; }
.dac7.alerte .jauge > div { background: #c98a00; }
.dac7.depasse { border-color: var(--alerte-texte); }
.dac7.depasse .jauge > div { background: var(--alerte-texte); }
.graphe { position: relative; height: 250px; }
.graphe.petit-graphe { height: 190px; }
.table-graphe { margin-top: .6rem; font-size: .88rem; }
.table-graphe summary { cursor: pointer; color: var(--accent); font-size: .85rem; font-weight: 700; }
.classement { margin: 0; padding-left: 1.3rem; }
.classement li { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid var(--bord); }
.classement li:last-child { border-bottom: 0; }
.classement li::marker { color: var(--accent); font-weight: 800; }
.classement a { color: var(--texte); text-decoration: none; font-weight: 600; }
.liste-rapport { margin: 0; padding-left: 1.1rem; font-size: .9rem; max-height: 320px; overflow-y: auto; }
details.carte > summary { cursor: pointer; }

/* ---------- Barre de chargement (requêtes HTMX et navigation) ---------- */
.chargement { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50; pointer-events: none; }
.chargement::before { content: ""; position: absolute; inset: 0; background: var(--degrade); transform: scaleX(0); transform-origin: left; opacity: 0; }
body.charge .chargement::before { opacity: 1; animation: charge 1.6s var(--sortie) forwards; }
@keyframes charge { to { transform: scaleX(.85); } }

/* ---------- Apparition en cascade & transitions de page ---------- */
@keyframes monte { from { opacity: 0; transform: translateY(14px); } }
.apparait { animation: monte var(--t-lent) var(--sortie) both; animation-delay: calc(var(--i, 0) * 55ms); }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 160ms var(--sortie) both fondu-sortie; }
::view-transition-new(root) { animation: 260ms var(--sortie) both fondu-entree; }
@keyframes fondu-sortie { to { opacity: 0; } }
@keyframes fondu-entree { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}

/* ---------- Photos de plusieurs objets ---------- */
.ico.grande { width: 40px; height: 40px; color: var(--accent); stroke-width: 1.5; }
.apercus { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.apercus img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; margin-top: .9rem; box-shadow: var(--ombre-1); animation: monte var(--t-moyen) var(--sortie); }
.ligne-article.avec-photo { grid-template-columns: 56px 1fr 72px 96px 96px 44px; }
.ligne-article.avec-photo > .vignette { align-self: center; }
@media (max-width: 599px) {
  .ligne-article.avec-photo { grid-template-columns: 64px 1fr 1fr 44px; grid-template-areas: "img nom nom nom" "qte prix frais x"; }
  .ligne-article.avec-photo > .vignette { grid-area: img; width: 56px; height: 56px; }
  .ligne-article.avec-photo .nom { grid-area: nom; grid-column: auto; }
  .ligne-article.avec-photo .qte { grid-area: qte; }
  .ligne-article.avec-photo .prix { grid-area: prix; }
  .ligne-article.avec-photo .frais { grid-area: frais; }
  .ligne-article.avec-photo > .bouton-icone { grid-area: x; }
}

/* ==========================================================================
   Passe « wow » n°2 : galerie, bento, IA, célébration, connexion, reflets
   ========================================================================== */

/* Reflet de chargement des images (place réservée, pas de saut de mise en page) */
.vignette, .photo-image img, .vignettes-fiche img, .apercus img {
  background: linear-gradient(100deg, var(--surface-2) 30%, color-mix(in srgb, var(--sable) 35%, var(--surface-2)) 50%, var(--surface-2) 70%) 0 0 / 300% 100%;
  animation: reflet 1.6s linear infinite;
}
@keyframes reflet { to { background-position: -150% 0; } }

/* ---------- Stock : bascule liste / galerie ---------- */
.bascule-vue { display: inline-flex; padding: 3px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--bord); }
.bascule-vue .bouton-icone { width: 42px; height: 38px; border-radius: 11px; }
.bascule-vue .bouton-icone[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: var(--ombre-1); }
.prix-galerie { display: none; }

.mode-galerie .liste-cartes { grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr)); gap: .8rem; }
.mode-galerie .ligne-lien { position: relative; flex-direction: column; align-items: stretch; gap: .55rem; padding: .5rem .5rem .75rem; border-radius: var(--rayon-l); }
.mode-galerie .ligne-lien:hover { transform: translateY(-3px); }
.mode-galerie .vignette { width: 100%; height: auto; aspect-ratio: 1; border-radius: 16px; }
.mode-galerie span.vignette .ico { width: 40px; height: 40px; }
.mode-galerie .ligne-lien > div:not(.a-droite) { padding: 0 .3rem; }
.mode-galerie .ligne-lien strong { font-size: .95rem; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mode-galerie .ligne-lien .discret { display: none; }
.mode-galerie .a-droite { position: absolute; top: 14px; left: 14px; right: 14px; max-width: none; flex-direction: row; justify-content: space-between; align-items: flex-start; }
.mode-galerie .a-droite > .petit { display: none; }
.mode-galerie .a-droite .etiquette { box-shadow: var(--ombre-1); backdrop-filter: blur(8px); }
.mode-galerie .prix-galerie {
  display: inline-block; position: absolute; right: 16px; bottom: 5.2rem;
  padding: .3rem .7rem; border-radius: 99px; background: var(--texte); color: var(--fond); font-weight: 800; font-size: .88rem; box-shadow: var(--ombre-2);
}

/* ---------- Tableau de bord : bento ---------- */
.bento { display: grid; gap: .8rem; margin-top: 1rem; grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(118px, auto); }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(132px, auto); } }
.bento-carte {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: .3rem;
  padding: 1rem 1.1rem; border-radius: var(--rayon-l); background: var(--surface); border: 1px solid var(--bord); box-shadow: var(--ombre-1);
  transition: transform var(--t-moyen) var(--sortie), box-shadow var(--t-moyen);
}
.bento-carte:hover { transform: scale(1.02); box-shadow: var(--ombre-2); }
.bento-carte > span { font-size: .78rem; color: var(--discret); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; display: flex; align-items: center; gap: .4rem; }
.bento-carte > span .ico { width: 16px; height: 16px; color: var(--accent); }
.bento-carte strong { display: block; font-family: var(--titre); font-size: 1.7rem; line-height: 1.05; font-weight: 700; }
.bento-carte em { font-style: normal; font-size: .82rem; color: var(--discret); }
.bento-large { grid-column: span 2; }
.bento-hero { grid-column: span 2; grid-row: span 2; color: #fff; background: var(--degrade); border: 0; box-shadow: var(--ombre-3); isolation: isolate; }
.bento-hero::before { content: ""; position: absolute; z-index: -1; width: 300px; height: 300px; right: -120px; top: -130px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 170, .35), transparent 65%); }
.bento-hero > span, .bento-hero > span .ico, .bento-hero em { color: rgba(255, 255, 255, .92); }
.bento-hero strong { font-size: clamp(2.3rem, 1.8rem + 2.4vw, 3.3rem); }
.sparkline { width: 100%; height: 64px; overflow: visible; }
.sparkline .ligne { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: trace 1.6s var(--sortie) .2s forwards; }
.sparkline .aire { stroke: none; }
.sparkline circle { fill: #fff; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.bento-objectif .jauge { margin: .3rem 0; }

/* ---------- Voile « IA en cours » ---------- */
.ia-voile { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 1.5rem;
  background: color-mix(in srgb, var(--fond) 70%, transparent); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
  animation: fondu-entree var(--t-moyen) var(--sortie); }
.ia-boite { width: min(100%, 360px); text-align: center; padding: 1.8rem 1.5rem; border-radius: var(--rayon-l); background: var(--surface); box-shadow: var(--ombre-2); border: 1px solid var(--bord); }
.ia-orbe { position: relative; width: 84px; height: 84px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: conic-gradient(from 0deg, #8f3719, #d9a066, #56672a, #ae4726, #8f3719); animation: orbe 3s linear infinite; box-shadow: 0 0 0 8px var(--accent-doux), var(--ombre-3); }
.ia-orbe::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--degrade); }
.ia-orbe .ico { position: relative; z-index: 1; width: 34px; height: 34px; animation: orbe 3s linear infinite reverse; }
@keyframes orbe { to { transform: rotate(1turn); } }
.ia-titre { font-family: var(--titre); font-size: 1.2rem; font-weight: 700; margin: 0 0 .9rem; }
.ia-etapes { list-style: none; padding: 0; margin: 0 0 1rem; text-align: left; display: grid; gap: .45rem; }
.ia-etapes li { display: flex; align-items: center; gap: .6rem; color: var(--discret); font-weight: 600; font-size: .92rem; transition: color var(--t-moyen); }
.ia-etapes li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--bord-fort); box-sizing: border-box; transition: all var(--t-moyen); }
.ia-etapes li.actif { color: var(--texte); }
.ia-etapes li.actif::before { border-color: var(--accent); border-right-color: transparent; animation: tourne .8s linear infinite; }
.ia-etapes li.fait { color: var(--ok); }
.ia-etapes li.fait::before { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ---------- Célébration d'une vente ---------- */
.succes-vente { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; margin-bottom: 1rem; border-radius: var(--rayon-l);
  color: #fff; background: linear-gradient(135deg, #3f4d1c, #56672a 60%, #6f8537); box-shadow: 0 12px 30px -8px rgba(63, 77, 28, .55);
  animation: surgit var(--t-lent) var(--ressort) both; }
.succes-vente strong { font-family: var(--titre); font-size: 1.35rem; display: block; line-height: 1.1; }
.succes-vente span { opacity: .95; font-weight: 700; }
.succes-icone { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); }
.succes-icone .ico { width: 26px; height: 26px; stroke-width: 3; }
@keyframes surgit { from { opacity: 0; transform: scale(.85) translateY(10px); } }

/* ---------- Connexion : scène de polaroïds ---------- */
.connexion-scene { width: 100%; max-width: 980px; display: grid; gap: 1rem; align-items: center; }
@media (min-width: 860px) { .connexion-scene { grid-template-columns: 1.1fr 1fr; gap: 3rem; } }
.vitrine { position: relative; height: 210px; }
@media (min-width: 860px) { .vitrine { height: 420px; } }
.polaroid { position: absolute; width: 36%; padding: 8px 8px 24px; background: #fffdf9; border-radius: 6px; box-shadow: 0 18px 40px -14px rgba(74, 44, 26, .45);
  animation: flotte 7s ease-in-out infinite; }
.polaroid div { aspect-ratio: 1; border-radius: 3px; background-size: cover; background-position: center; display: grid; place-items: center; }
.polaroid .ico { width: 42%; height: 42%; color: #ae4726; stroke-width: 1.4; }
.polaroid:nth-child(1) { left: 6%; top: 14%; rotate: -8deg; animation-delay: -1s; }
.polaroid:nth-child(2) { left: 32%; top: 0; rotate: 4deg; z-index: 2; animation-delay: -3s; }
.polaroid:nth-child(3) { left: 58%; top: 16%; rotate: 10deg; animation-delay: -5s; }
@keyframes flotte { 50% { translate: 0 -10px; } }
.accroche { font-family: var(--titre); font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); font-weight: 700; line-height: 1.12; margin: .5rem 0 0; text-align: center; }
.accroche em { color: var(--accent); }
@media (min-width: 860px) { .accroche { text-align: left; } }
.connexion-scene .formulaire-connexion { justify-self: center; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(12px); }
@media (max-width: 859px) {
  .page-connexion { align-items: start; padding-top: max(1rem, env(safe-area-inset-top)); }
  .vitrine { height: 128px; max-width: 320px; margin: .5rem auto 0; }
  .polaroid { width: 30%; padding: 5px 5px 14px; }
  .accroche { font-size: 1.3rem; margin: .4rem 0 .2rem; }
  .accroche br { display: none; }
  .connexion-scene .formulaire-connexion { padding: 1.3rem 1.2rem; }
  .connexion-scene .formulaire-connexion .logo { display: none; }
  .connexion-scene .formulaire-connexion h1 { font-size: 1.6rem; }
  .connexion-scene .formulaire-connexion .discret { margin-bottom: .9rem; }
}
