/* Mayday — site web. Direction artistique reprise de l'application (maquette néomorphique craft). */

:root {
  /* Fonds papier / craft */
  --paper: #E6E2DA;
  --paper-2: #EDEAE3;
  --surface: #EBE7DF;
  --surface-raised: #F2EFE9;
  --surface-sunken: #E0DBD0;

  /* Texte */
  --text-primary: #1A1A19;
  --text-secondary: #5E5C57;
  --text-muted: #8C8A85;

  /* Bordures */
  --border: #D8D3C9;
  --border-strong: #C4BEB2;

  /* Accent (rouge Mayday) */
  --acc-a: #D53A28;
  --acc-b: #A81F13;
  --acc-deep: #7A180F;
  --acc-tint: #F7E3D3;

  /* États */
  --success: #2E9E5B;
  --success-bg: #E8F3EC;
  --success-text: #1E7A43;
  --warning-bg: #FCF1DC;
  --warning-text: #92620A;

  /* Ombres néomorphiques */
  --sh-out: 6px 6px 14px rgba(160,152,137,0.5), -5px -5px 12px rgba(255,255,255,0.9);
  --sh-out-lg: 12px 12px 28px rgba(158,150,135,0.45), -8px -8px 22px rgba(255,255,255,0.9);
  --sh-in: inset 3px 3px 7px rgba(160,152,137,0.5), inset -3px -3px 7px rgba(255,255,255,0.85);
  --sh-acc: 4px 4px 12px rgba(140,30,20,0.4), -3px -3px 8px rgba(255,255,255,0.6), inset 1px 1px 1px rgba(255,255,255,0.35);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(1200px 700px at 80% -10%, #EFEBE3 0%, rgba(239,235,227,0) 60%),
    var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(1.2) blur(10px);
  background: rgba(230,226,218,0.82);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; gap: 18px;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: 18px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 4px; margin-left: 18px; }
.nav-links a {
  padding: 8px 14px; border-radius: 10px; color: var(--text-secondary);
  font-size: 15px; font-weight: 500; transition: color .15s var(--ease), background .15s var(--ease);
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.5); }
.nav-links a.active { color: var(--acc-b); }
.nav-spacer { flex: 1; }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-primary); margin: 4px 0; border-radius: 2px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  border-radius: var(--radius); padding: 12px 20px; border: none;
  transition: transform .12s var(--ease), box-shadow .2s var(--ease), opacity .15s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-accent { background: linear-gradient(145deg, var(--acc-a), var(--acc-b)); color: #fff; box-shadow: var(--sh-acc); }
.btn-accent:hover { filter: brightness(1.05); }
.btn-soft { background: var(--surface); color: var(--text-primary); box-shadow: var(--sh-out); }
.btn-soft:hover { box-shadow: var(--sh-out-lg); }
.btn-ghost { background: transparent; color: var(--text-secondary); box-shadow: none; }
.btn-ghost:hover { color: var(--text-primary); background: rgba(255,255,255,0.5); }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 68px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--acc-b);
  background: var(--acc-tint); padding: 6px 13px; border-radius: 999px; margin-bottom: 20px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc-a); box-shadow: 0 0 0 4px rgba(213,58,40,0.18); }
h1.hero-title { font-size: clamp(34px, 5vw, 54px); line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 18px; font-weight: 800; }
.hero-title .hl { color: var(--acc-b); }
.hero-sub { font-size: 18px; color: var(--text-secondary); margin: 0 0 28px; max-width: 34ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.store-badges { display: flex; gap: 10px; margin-top: 22px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px;
  background: #1A1A19; color: #fff; border-radius: 12px; font-size: 13px; box-shadow: var(--sh-out);
}
.store-badge > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.store-badge .big { font-size: 15px; font-weight: 600; line-height: 1; }
.store-badge .small { font-size: 10px; opacity: .8; text-transform: uppercase; letter-spacing: .04em; line-height: 1; }

/* ---------- Showcase vivant (hero) ---------- */
.showcase {
  /* Le carrousel remplace ses images en continu : sans ceci, l'ancrage de
     défilement du navigateur ramène la page vers le hero toute seule. */
  overflow-anchor: none;
  position: relative; overflow: hidden; border-radius: 28px;
  padding: 40px 20px 34px; user-select: none;
  background:
    radial-gradient(600px 380px at 22% 12%, rgba(247,227,211,0.85), rgba(247,227,211,0) 60%),
    radial-gradient(560px 420px at 88% 92%, rgba(213,58,40,0.14), rgba(213,58,40,0) 62%),
    linear-gradient(155deg, #EFEBE3, #E2DCD1);
  box-shadow: var(--sh-out-lg);
}
.showcase::after { /* liseré intérieur discret */
  content: ""; position: absolute; inset: 0; border-radius: 28px; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), inset 0 0 0 1px rgba(196,190,178,0.4);
}
.showcase-stage {
  display: flex; align-items: center; justify-content: center; gap: 0;
  min-height: 500px; perspective: 1400px; touch-action: pan-y; cursor: grab;
}
.showcase-stage.dragging { cursor: grabbing; }

/* Cadres appareils */
.device { position: relative; flex: none; transition: transform .5s var(--ease), filter .5s var(--ease); }
.device .screen {
  position: relative; overflow: hidden; background: #E6E2DA;
  display: flex; flex-direction: column;
}
.device .screen-fade { position: absolute; inset: 0; opacity: 0; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.device .screen-fade.show { opacity: 1; }
.device .screen-fade.enter { transform: translateX(14px) scale(0.98); }

/* Vraies captures d'écran de l'application */
.app-shot {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  display: block; user-select: none; -webkit-user-drag: none;
  animation: appIn .5s var(--ease);
}

/* iPhone (au premier plan) */
.device.iphone {
  width: 244px; z-index: 3; transform: translateX(26px) rotate(-3deg);
}
.device.iphone .frame {
  border-radius: 46px; padding: 11px; background: linear-gradient(160deg, #2A2723, #17150F);
  box-shadow: 22px 26px 50px rgba(60,40,25,0.32), -8px -8px 20px rgba(255,255,255,0.5);
}
.device.iphone .screen { height: 500px; border-radius: 36px; }
.device.iphone .notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 24px; background: #17150F; border-radius: 0 0 16px 16px; z-index: 6;
}

/* Samsung / Android (en retrait) */
.device.android {
  width: 216px; z-index: 2; transform: translateX(-40px) rotate(4deg); filter: saturate(0.98);
}
.device.android .frame {
  border-radius: 32px; padding: 8px; background: linear-gradient(160deg, #3B4148, #20242A);
  box-shadow: 18px 22px 44px rgba(40,45,55,0.34), -6px -6px 16px rgba(255,255,255,0.4);
}
.device.android .screen { height: 452px; border-radius: 26px; }
.device.android .punch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 9px; height: 9px; background: #0E1013; border-radius: 50%; z-index: 6;
}

@media (hover: hover) {
  .showcase-stage:hover .device.iphone { transform: translateX(26px) rotate(-2deg) translateY(-4px); }
}

/* Contrôles showcase */
.showcase-ui { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 26px; position: relative; z-index: 4; }
.sc-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--surface); box-shadow: var(--sh-out); color: var(--text-primary);
  font-size: 17px; display: grid; place-items: center; transition: box-shadow .2s var(--ease), transform .1s var(--ease);
}
.sc-arrow:hover { box-shadow: var(--sh-out-lg); }
.sc-arrow:active { transform: scale(0.94); }
.sc-dots { display: flex; gap: 8px; }
.sc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); border: none; padding: 0; cursor: pointer; transition: width .25s var(--ease), background .25s var(--ease); }
.sc-dot.active { width: 24px; border-radius: 999px; background: linear-gradient(90deg, var(--acc-a), var(--acc-b)); }
.sc-caption { text-align: center; margin: 14px 0 0; font-size: 14px; color: var(--text-secondary); min-height: 20px; }
.sc-caption b { color: var(--text-primary); font-weight: 600; }

/* ---------- Écrans d'application recréés ---------- */
.app { height: 100%; display: flex; flex-direction: column; padding: 30px 14px 14px; gap: 9px; background: linear-gradient(180deg, #ECE8E1, #E4DFD5); animation: appIn .5s var(--ease); }
@keyframes appIn { from { opacity: 0; transform: translateX(16px) scale(0.985); } to { opacity: 1; transform: none; } }
.app-top { display: flex; align-items: center; justify-content: space-between; }
.app-top .wm { font-size: 12px; font-weight: 800; letter-spacing: 3px; color: var(--acc-b); }
.app-ic { width: 26px; height: 26px; border-radius: 8px; background: var(--surface); box-shadow: var(--sh-out); display: grid; place-items: center; color: var(--text-secondary); font-size: 13px; }
.app-h { text-align: center; margin: 2px 0; }
.app-h .t { font-size: 15px; font-weight: 700; }
.app-h .s { font-size: 9.5px; color: var(--text-muted); margin-top: 2px; }

/* SOS accueil */
.sos-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.app-ring {
  width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center;
  background: #EBE7DF; box-shadow: inset 4px 4px 10px rgba(160,152,137,0.5), inset -4px -4px 10px rgba(255,255,255,0.85);
  position: relative;
}
.app-ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; animation: sos-pulse 2.4s var(--ease) infinite; }
@keyframes sos-pulse { 0% { box-shadow: 0 0 0 0 rgba(198,40,40,0.30); } 70% { box-shadow: 0 0 0 16px rgba(198,40,40,0); } 100% { box-shadow: 0 0 0 0 rgba(198,40,40,0); } }
.app-sos {
  width: 122px; height: 122px; border-radius: 50%; background: linear-gradient(150deg, #D53A28, #A81F13);
  box-shadow: 6px 6px 16px rgba(140,40,25,0.5), inset 1px 1px 2px rgba(255,255,255,0.4);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #fff;
}
.app-sos .k { font-size: 30px; line-height: 1; }
.app-sos .n { font-size: 13px; font-weight: 800; letter-spacing: 1.5px; }
.app-sos .sub { font-size: 7.5px; opacity: 0.9; letter-spacing: .3px; }
.app-dots { display: flex; gap: 5px; justify-content: center; }
.app-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--border-strong); display: block; }
.app-dots i.on { background: var(--acc-b); width: 14px; border-radius: 3px; }
.app-hint { font-size: 8.5px; color: var(--text-muted); text-align: center; }
.app-outline { margin-top: auto; border-radius: 12px; background: #EBE7DF; box-shadow: var(--sh-out); font-size: 11px; font-weight: 600; padding: 11px; text-align: center; display: flex; align-items: center; justify-content: center; gap: 6px; }

/* Chips diagnostic */
.app-qtitle { font-size: 13px; font-weight: 700; margin: 4px 0 2px; }
.app-chip { border-radius: 12px; background: #EBE7DF; box-shadow: var(--sh-out); font-size: 11.5px; font-weight: 500; padding: 12px 12px; text-align: center; display: flex; align-items: center; justify-content: center; gap: 7px; }
.app-chip.sel { background: linear-gradient(150deg, #D53A28, #A81F13); color: #fff; box-shadow: var(--sh-acc); }
.app-chip .em { font-size: 14px; }

/* Recherche */
.scan {
  width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; position: relative; margin: 6px auto;
}
.scan::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--acc-a); border-right-color: var(--acc-a); animation: scan-spin 1.3s linear infinite; }
.scan::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--acc-a); animation: scan-onde 2.1s var(--ease) infinite; }
@keyframes scan-spin { to { transform: rotate(360deg); } }
@keyframes scan-onde { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.7); opacity: 0; } }
.scan .core { width: 46px; height: 46px; border-radius: 50%; background: var(--acc-tint); display: grid; place-items: center; font-size: 18px; color: var(--acc-b); }
.app-count { background: linear-gradient(150deg, #D53A28, #A81F13); color: #fff; border-radius: 12px; text-align: center; padding: 12px; }
.app-count .num { font-size: 26px; font-weight: 800; line-height: 1; }
.app-count .lbl { font-size: 9.5px; opacity: .92; margin-top: 3px; }

/* Cartes devis */
.app-sort { display: flex; align-items: center; gap: 5px; font-size: 8.5px; color: var(--text-muted); }
.app-sort .c { background: #EBE7DF; box-shadow: var(--sh-out); border-radius: 7px; padding: 4px 9px; font-size: 9px; color: var(--text-primary); font-weight: 500; }
.app-offer { background: var(--surface-raised); border-radius: 12px; box-shadow: var(--sh-out); padding: 10px 11px; display: flex; align-items: center; justify-content: space-between; }
.app-offer .who { display: flex; align-items: center; gap: 8px; }
.app-offer .av { width: 28px; height: 28px; border-radius: 50%; background: var(--acc-tint); color: var(--acc-deep); font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.app-offer .nm { font-size: 11px; font-weight: 600; }
.app-offer .km { font-size: 8.5px; color: var(--success-text); background: var(--success-bg); font-weight: 700; padding: 1px 6px; border-radius: 7px; display: inline-block; margin-top: 3px; }
.app-offer .pr { font-size: 15px; font-weight: 700; color: var(--acc-b); }
.app-star { color: #E0A83C; font-size: 9px; }

/* Séquestre / suivi */
.app-escrow { background: var(--acc-tint); border-radius: 12px; padding: 13px; text-align: center; }
.app-escrow .amt { font-size: 24px; font-weight: 800; color: var(--acc-deep); line-height: 1; }
.app-escrow .lbl { font-size: 9.5px; color: var(--acc-deep); opacity: .85; margin-top: 3px; }
.app-track { background: var(--surface-raised); border-radius: 12px; box-shadow: var(--sh-out); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.app-step { display: flex; align-items: center; gap: 9px; font-size: 10.5px; }
.app-step .b { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 10px; }
.app-step .b.ok { background: var(--success); color: #fff; }
.app-step .b.now { background: var(--acc-b); color: #fff; }
.app-step .b.next { background: var(--surface); box-shadow: var(--sh-in); color: var(--text-muted); }
.app-step.pending { color: var(--text-muted); }

/* Notation */
.app-rate { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.app-rate .big { font-size: 44px; font-weight: 800; color: var(--acc-b); line-height: 1; }
.app-rate .rst { font-size: 22px; color: #E0A83C; letter-spacing: 2px; }
.app-rate .who { font-size: 12px; font-weight: 600; }
.app-rate .cmt { font-size: 10px; color: var(--text-muted); text-align: center; max-width: 160px; }

/* Sélecteur de métier (icônes rondes, comme l'app) */
.app-metiers { display: flex; gap: 6px; justify-content: center; }
.app-met { width: 30px; height: 30px; border-radius: 50%; background: #EBE7DF; box-shadow: var(--sh-out); display: grid; place-items: center; font-size: 13px; color: var(--text-muted); }
.app-met.on { background: linear-gradient(150deg, #D53A28, #A81F13); color: #fff; box-shadow: var(--sh-acc); }

/* Board artisan */
.app-greet { display: flex; align-items: center; gap: 8px; }
.app-greet .av { width: 30px; height: 30px; border-radius: 50%; background: var(--acc-tint); display: grid; place-items: center; font-size: 15px; }
.app-greet .nm { font-size: 14px; font-weight: 700; }
.app-status { background: var(--surface-raised); border-radius: 12px; box-shadow: var(--sh-out); padding: 11px 12px; display: flex; align-items: center; gap: 9px; }
.app-status .pin { width: 11px; height: 11px; border-radius: 50%; background: var(--success); flex: none; box-shadow: 0 0 0 4px rgba(46,158,91,0.18); }
.app-status .st { font-size: 11.5px; font-weight: 700; }
.app-status .sd { font-size: 9px; color: var(--text-muted); margin-top: 1px; }
.app-tuiles { display: flex; gap: 7px; }
.app-tuile { flex: 1; background: #EBE7DF; border-radius: 12px; box-shadow: var(--sh-out); padding: 9px 5px; text-align: center; }
.app-tuile .n { font-size: 16px; font-weight: 800; color: var(--acc-b); line-height: 1; }
.app-tuile .l { font-size: 7.5px; color: var(--text-secondary); margin-top: 3px; line-height: 1.15; }
.app-nearby { background: var(--surface-raised); border-radius: 12px; box-shadow: var(--sh-out); padding: 9px 11px; display: flex; align-items: center; justify-content: space-between; }
.app-nearby .who { display: flex; align-items: center; gap: 8px; }
.app-nearby .ic { width: 26px; height: 26px; border-radius: 50%; background: var(--acc-tint); color: var(--acc-b); display: grid; place-items: center; font-size: 12px; }
.app-nearby .t1 { font-size: 11px; font-weight: 600; }
.app-nearby .t2 { font-size: 8.5px; color: var(--text-muted); }
.app-nearby .go { font-size: 9px; font-weight: 700; color: var(--acc-b); }

/* Lignes tarif (devis artisan) */
.app-tarif { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; padding: 8px 10px; background: var(--surface-raised); border-radius: 10px; box-shadow: var(--sh-out); }
.app-tarif .amt { font-weight: 700; }
.app-total { display: flex; align-items: center; justify-content: space-between; padding: 9px 11px; border-top: 1px solid var(--border); }
.app-total .lbl { font-size: 10px; color: var(--text-secondary); }
.app-total .val { font-size: 16px; font-weight: 800; color: var(--acc-b); }

/* Barre basse pilule */
.app-pill { margin-top: auto; display: flex; align-items: center; justify-content: space-around; background: #EBE7DF; border-radius: 16px; box-shadow: var(--sh-out); padding: 8px; position: relative; }
.app-pill .it { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 7.5px; color: var(--text-muted); }
.app-pill .it.on { color: var(--acc-b); }
.app-pill .it .g { font-size: 14px; }
.app-pill .fab { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(150deg, #D53A28, #A81F13); color: #fff; display: grid; place-items: center; font-size: 17px; box-shadow: var(--sh-acc); margin-top: -18px; }

/* Menu bottom sheet (feuille) */
.app.has-sheet { position: relative; }
.app-scrim { position: absolute; inset: 0; background: rgba(30,26,22,0.32); z-index: 4; }
.app-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--paper-2); border-radius: 20px 20px 0 0; box-shadow: 0 -6px 24px rgba(30,26,22,0.2); padding: 9px 14px 16px; display: flex; flex-direction: column; gap: 9px; animation: sheetUp .5s var(--ease); }
@keyframes sheetUp { from { transform: translateY(60%); } to { transform: none; } }
.app-handle { width: 40px; height: 5px; border-radius: 3px; background: var(--border-strong); margin: 2px auto 4px; }
.app-sheet-h { font-size: 12px; font-weight: 700; }
.app-sheet-tabs { display: flex; gap: 8px; font-size: 10.5px; }
.app-sheet-tabs .tb { padding: 6px 12px; border-radius: 9px; background: var(--surface-sunken); color: var(--text-secondary); font-weight: 600; }
.app-sheet-tabs .tb.on { background: var(--acc-tint); color: var(--acc-deep); }
.app-menu-row { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; padding: 11px 12px; background: var(--surface-raised); border-radius: 11px; box-shadow: var(--sh-out); }
.app-menu-row .g { font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  .app-ring::before, .scan::before, .scan::after { animation: none; }
  .app { animation: none; }
}

/* Showcase : réduction sur petits écrans */
@media (max-width: 680px) {
  .showcase { padding: 26px 8px 24px; }
  .showcase-stage { min-height: 424px; }
  .device.iphone { width: 186px; transform: translateX(12px) rotate(-3deg); }
  .device.iphone .frame { border-radius: 38px; padding: 9px; }
  .device.iphone .screen { height: 388px; border-radius: 30px; }
  .device.android { width: 158px; transform: translateX(-22px) rotate(4deg); }
  .device.android .frame { border-radius: 26px; padding: 7px; }
  .device.android .screen { height: 352px; border-radius: 21px; }
  .app { padding: 26px 11px 11px; gap: 7px; }
  .app-ring { width: 118px; height: 118px; }
  .app-sos { width: 96px; height: 96px; }
  .app-sos .k { font-size: 24px; }
  .app-sos .n { font-size: 11px; }
}
@media (max-width: 400px) {
  .device.iphone { width: 168px; transform: translateX(10px) rotate(-3deg); }
  .device.iphone .screen { height: 352px; }
  .device.android { width: 142px; transform: translateX(-18px) rotate(4deg); }
  .device.android .screen { height: 320px; }
}

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
section.block { padding: 62px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head .kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--acc-b); }
h2.section-title { font-size: clamp(26px, 3.5vw, 38px); letter-spacing: -0.02em; margin: 10px 0 12px; font-weight: 800; }
.section-head p { color: var(--text-secondary); font-size: 17px; margin: 0; }

/* Cartes néo */
.card {
  background: var(--surface); border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--sh-out);
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.step-num {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 800; font-size: 18px; color: var(--acc-b);
  background: var(--surface); box-shadow: var(--sh-in); margin-bottom: 16px;
}
.icon-chip {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--acc-a), var(--acc-b)); color: #fff; margin-bottom: 16px;
  box-shadow: var(--sh-acc); font-size: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-secondary); font-size: 15px; }

/* Séquestre / bande de confiance */
.trust {
  background: linear-gradient(160deg, #EFEBE3, #E4DFD5);
  border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--sh-out-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.trust ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.trust li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.trust li .check { flex: none; width: 24px; height: 24px; border-radius: 8px; background: var(--success-bg); color: var(--success-text); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.escrow-visual { display: flex; flex-direction: column; gap: 14px; }
.escrow-step { display: flex; align-items: center; gap: 14px; background: var(--surface-raised); border-radius: 14px; padding: 14px 16px; box-shadow: var(--sh-out); }
.escrow-step .n { width: 30px; height: 30px; border-radius: 9px; background: var(--surface); box-shadow: var(--sh-in); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--acc-b); flex: none; }
.escrow-step .lbl { font-size: 14px; font-weight: 600; }
.escrow-step .desc { font-size: 12.5px; color: var(--text-muted); }

/* Parcours illustrés (fonctionnement) */
.parcours { display: grid; grid-template-columns: 320px 1fr; gap: 44px; align-items: center; margin-bottom: 56px; }
.parcours:last-child { margin-bottom: 0; }
.parcours.reverse { grid-template-columns: 1fr 320px; }
.parcours.reverse .parcours-shot { order: 2; }
.parcours-shot { display: flex; justify-content: center; }
.shot-frame {
  width: 240px; border-radius: 38px; padding: 9px;
  background: linear-gradient(160deg, #2A2723, #17150F);
  box-shadow: 18px 22px 46px rgba(60,40,25,0.28), -6px -6px 16px rgba(255,255,255,0.55);
  transform: rotate(-2deg);
}
.parcours.reverse .shot-frame { transform: rotate(2deg); }
.shot-frame img { width: 100%; border-radius: 30px; display: block; }
.parcours-title { font-size: 24px; letter-spacing: -0.01em; margin: 0 0 20px; }
.ppoint { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.ppoint:last-child { margin-bottom: 0; }
.pnum {
  flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  font-weight: 800; font-size: 15px; color: var(--acc-b);
  background: var(--surface); box-shadow: var(--sh-in);
}
.ppoint b { font-size: 16.5px; display: block; margin-bottom: 3px; }
.ppoint p { margin: 0; color: var(--text-secondary); font-size: 15px; }
@media (max-width: 860px) {
  .parcours, .parcours.reverse { grid-template-columns: 1fr; gap: 26px; }
  .parcours.reverse .parcours-shot { order: 0; }
  .shot-frame { width: 200px; }
}

/* Bande métiers */
.metiers { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: center; }
.metier-list { display: flex; flex-wrap: wrap; gap: 10px; }
.metier {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  padding: 10px 14px; border-radius: 12px; background: var(--surface-raised);
  box-shadow: var(--sh-out); color: var(--text-secondary);
}
.metier b { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); background: var(--surface-sunken); padding: 3px 8px; border-radius: 999px; }
.metier.on { color: var(--text-primary); }
.metier.on b { color: var(--success-text); background: var(--success-bg); }
@media (max-width: 760px) { .metiers { grid-template-columns: 1fr; gap: 20px; } }

/* Bande artisans */
.artisan-band { background: #24211D; color: #F2EFE9; border-radius: var(--radius-lg); padding: 44px; }
.artisan-band h2 { color: #fff; }
.artisan-band .section-head p { color: #C9C4BB; }
.artisan-band .card { background: #2E2A25; box-shadow: none; border: 1px solid #3A362F; }
.artisan-band .card h3 { color: #fff; }
.artisan-band .card p { color: #B8B3AA; }
.artisan-band .icon-chip { box-shadow: none; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; text-align: center; }
.stat .num { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; color: var(--acc-b); }
.stat .lbl { color: var(--text-secondary); font-size: 14px; }

/* CTA final */
.cta-final { text-align: center; background: linear-gradient(145deg, var(--acc-a), var(--acc-b)); color: #fff; border-radius: var(--radius-lg); padding: 56px 28px; box-shadow: var(--sh-out-lg); }
.cta-final h2 { color: #fff; font-size: clamp(26px,3.5vw,36px); margin: 0 0 12px; }
.cta-final p { color: rgba(255,255,255,0.9); margin: 0 0 26px; font-size: 17px; }
.cta-final .btn-soft { background: #fff; color: var(--acc-b); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.faq-nav { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 4px; }
.faq-nav a { padding: 10px 14px; border-radius: 10px; color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.faq-nav a:hover, .faq-nav a.active { background: var(--surface); color: var(--text-primary); box-shadow: var(--sh-out); }
.faq-group { margin-bottom: 38px; }
.faq-group h2 { font-size: 22px; margin: 0 0 16px; letter-spacing: -0.01em; }
.faq-item { background: var(--surface); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--sh-out); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 18px 20px; font-family: inherit; font-size: 16px; font-weight: 600; color: var(--text-primary); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .chev { flex: none; transition: transform .25s var(--ease); color: var(--text-muted); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a-inner { padding: 0 20px 20px; color: var(--text-secondary); font-size: 15px; }
.faq-a-inner p { margin: 0 0 10px; }
.faq-a-inner p:last-child { margin: 0; }

/* ---------- Connexion ---------- */
.auth-shell { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 40px 0; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--sh-out-lg); }
.auth-card h1 { font-size: 26px; margin: 0 0 6px; letter-spacing: -0.02em; }
.auth-card .sub { color: var(--text-secondary); font-size: 15px; margin: 0 0 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 7px; }
.field input {
  width: 100%; font-family: inherit; font-size: 15px; padding: 13px 15px;
  border: none; border-radius: 12px; background: var(--surface-sunken);
  box-shadow: var(--sh-in); color: var(--text-primary);
}
.field input:focus { outline: 2px solid rgba(213,58,40,0.35); outline-offset: 1px; }
.auth-oauth { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface-raised); box-shadow: var(--sh-out); border: none; font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--text-primary); }
.oauth-btn:hover { box-shadow: var(--sh-out-lg); }
.oauth-logo { width: 18px; height: 18px; flex: none; display: block; }
#oauth-apple .oauth-logo { color: #000; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 13px; margin: 4px 0 20px; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--border); flex: 1; }
.auth-error { font-size: 13.5px; color: #B3261E; background: #FBEAEA; padding: 10px 14px; border-radius: 10px; margin: 14px 0 0; }
.auth-ok { font-size: 13.5px; color: var(--success-text); background: var(--success-bg); padding: 10px 14px; border-radius: 10px; margin: 14px 0 0; }
.auth-foot { text-align: center; font-size: 14px; color: var(--text-secondary); margin-top: 18px; }
.auth-foot a { color: var(--acc-b); font-weight: 600; }
.demo-hint { font-size: 12.5px; color: var(--text-muted); text-align: center; margin-top: 14px; background: var(--warning-bg); color: var(--warning-text); padding: 8px 12px; border-radius: 10px; }

/* ---------- Board (coquille) ---------- */
.board { display: none; padding: 28px 0 60px; }
.board.active { display: block; }
.board-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 16px; flex-wrap: wrap; }
.board-hello h1 { font-size: 26px; margin: 0; letter-spacing: -0.02em; }
.board-hello p { margin: 4px 0 0; color: var(--text-secondary); font-size: 15px; }
.role-switch { display: inline-flex; background: var(--surface-sunken); border-radius: 12px; padding: 4px; box-shadow: var(--sh-in); }
.role-switch button { border: none; background: none; font-family: inherit; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 9px; cursor: pointer; color: var(--text-secondary); }
.role-switch button.active { background: var(--surface-raised); color: var(--acc-b); box-shadow: var(--sh-out); }

.board-tabs { display: flex; gap: 6px; margin: 24px 0 22px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.board-tabs button { border: none; background: none; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--text-secondary); padding: 12px 6px; cursor: pointer; position: relative; }
.board-tabs button.active { color: var(--acc-b); }
.board-tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--acc-b); border-radius: 2px; }

.panel { display: none; }
.panel.active { display: block; }

.kpi-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 26px; }
.kpi { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--sh-out); }
.kpi .lbl { font-size: 13px; color: var(--text-muted); }
.kpi .val { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; }
.kpi .val.acc { color: var(--acc-b); }

.list-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--sh-out); overflow: hidden; }
.list-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: none; }
.list-row .primary { font-weight: 600; font-size: 15px; }
.list-row .meta { font-size: 13px; color: var(--text-muted); }
.list-row .amount { font-weight: 700; font-size: 15px; }
.pill { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; display: inline-block; text-align: center; }
.pill.ok { background: var(--success-bg); color: var(--success-text); }
.pill.wait { background: var(--warning-bg); color: var(--warning-text); }
.pill.esc { background: var(--acc-tint); color: var(--acc-deep); }
.list-title { font-size: 18px; font-weight: 700; margin: 0 0 14px; }

.stars { color: #E0A83C; font-size: 15px; letter-spacing: 1px; }
.rating-big { display: flex; align-items: center; gap: 18px; }
.rating-big .score { font-size: 48px; font-weight: 800; color: var(--acc-b); letter-spacing: -0.03em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 46px 0 30px; color: var(--text-secondary); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 0 0 14px; }
.footer-grid a { display: block; font-size: 14px; color: var(--text-secondary); padding: 5px 0; }
.footer-grid a:hover { color: var(--acc-b); }
.footer-brand p { font-size: 14px; max-width: 28ch; margin: 12px 0 0; }
.footer-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { order: -1; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr; gap: 28px; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.nav-links .only-mobile { display: none; }
@media (max-width: 620px) {
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn-accent { padding: 10px 14px; font-size: 14px; }
  .nav-links.open .only-mobile { display: block; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column;
    background: var(--paper); padding: 12px 22px 20px; border-bottom: 1px solid var(--border); gap: 2px;
  }
  .nav-toggle { display: block; }
  .nav-cta .btn span.hide-sm { display: none; }
  .grid-3, .grid-4, .grid-2, .stats { grid-template-columns: 1fr; }
  .list-row { grid-template-columns: 1fr auto; }
  .list-row .meta.col, .list-row .status.col { display: none; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  section.block { padding: 46px 0; }
  .artisan-band, .trust, .cta-final { padding: 30px 22px; }
}
