/* Site commun du domaine racine : accueil, inscription, connexion de l'équipe et espace Plateforme. */
/* Thème « Pétrole et mangue », le même que l'application des boutiques, avec des touches wax sur les pages d'entrée. */
:root {
  --bg: #f3f7f6; --surface: #fff; --text: #1f3230; --muted: #5b7471; --border: #e1eae8;
  --primary: #0e7c7b; --primary-edge: #0b6968; --primary-text: #fff; --accent: #0e7c7b; --sidebar-bg: #0e3b43; --gold: #f5a524;
  --green: #166534; --green-bg: #e8f7ec; --red: #991b1b; --red-bg: #feecec; --amber: #7a4b00; --amber-bg: #fff2d6;
  --blue: #1a5a8a; --blue-bg: #e0eef7; --gray: #4a625f; --gray-bg: #eaf1f0;
  --radius: 12px; --shadow: 0 1px 2px rgba(14, 59, 67, .06);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations'), url('/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1f23; --surface: #11292e; --text: #e6f1ef; --muted: #9bb5b2; --border: #234349;
    --primary: #0e7c7b; --primary-edge: #0b6968; --accent: #4fd1cb; --sidebar-bg: #07262b;
    --green: #6ed39a; --green-bg: #10321f; --red: #ff9a90; --red-bg: #3a1a18; --amber: #f2c366; --amber-bg: #3a2c10;
    --blue: #9cc7ea; --blue-bg: #17293a; --gray: #b6cbc8; --gray-bg: #1d3a40;
    --shadow: 0 1px 3px rgba(0, 0, 0, .4);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--font); background: var(--bg); color: var(--text); }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.05rem; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* ---- Boutons et champs ---- */
.btn { display: inline-block; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--accent); }
.btn-primary { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-edge); }
.btn-danger { background: var(--red-bg); color: var(--red); border-color: transparent; }
.btn-small { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 12px 0 4px; }
input, select, textarea { width: 100%; padding: 9px 12px; border: 1px solid #c9d8d5; border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
input[type="checkbox"] { width: auto; }
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0; font-weight: 400; color: var(--text); font-size: 14px; }
.check input { margin-top: 4px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.error { background: var(--red-bg); color: var(--red); padding: 9px 12px; border-radius: 8px; margin: 12px 0; font-size: 14px; }
.ok { background: var(--green-bg); color: var(--green); padding: 9px 12px; border-radius: 8px; margin: 12px 0; font-size: 14px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; min-height: 1.2em; }
.hint.good { color: var(--green); } .hint.bad { color: var(--red); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* champ piège anti-robot */

/* ---- Pages publiques ---- */
.public { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, #0e3b43, #0e7c7b); }
.public-card { position: relative; overflow: hidden; background: var(--surface); border-radius: 18px; padding: 44px 28px 28px; width: 100%; max-width: 460px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.public-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14px; background-color: #1d2a6d;
  background-image: radial-gradient(circle at 50% 50%, #f4a300 0 14%, #1d2a6d 14% 26%, #d63e73 26% 38%, #1d2a6d 38% 50%, #08756f 50% 62%, #1d2a6d 62% 100%);
  background-size: 28px 28px; }
.public-card.wide { max-width: 640px; }
.brand { font-size: 1.5rem; font-weight: 800; color: var(--sidebar-bg); margin-bottom: 4px; }
.lead { color: var(--muted); margin: 0 0 16px; }
.plan-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin: 14px 0; background: var(--bg); }
.plan-box ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }

/* ---- Espace Plateforme ---- */
.nav { background: var(--sidebar-bg); color: var(--primary-text); display: flex; align-items: center; gap: 4px; padding: 0 16px; flex-wrap: wrap; }
.nav .brand { color: #fff; margin: 0 16px 0 0; padding: 12px 0; font-size: 1.1rem; }
.nav a { color: #bcd3d2; text-decoration: none; padding: 14px 12px; font-weight: 500; border-bottom: 3px solid transparent; }
.nav a.active { color: #fff; border-bottom-color: var(--gold); }
.nav .spacer { flex: 1; }
.nav button { background: none; border: 1.5px solid rgba(255, 255, 255, .4); color: #fff; padding: 6px 14px; border-radius: 999px; cursor: pointer; font: inherit; }
main { max-width: 1200px; margin: 0 auto; padding: 20px 16px 60px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1 { margin: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.stat .label { font-size: 12.5px; color: var(--muted); }
.stat .value { font-size: 1.5rem; font-weight: 800; margin-top: 2px; color: var(--sidebar-bg); }
.stat .sub { font-size: 12.5px; color: var(--muted); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.filters input { max-width: 320px; } .filters select { max-width: 220px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; font-size: 14px; }
th { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
tr.clickable { cursor: pointer; } tr.clickable:hover { background: var(--bg); }
td.col-details { min-width: 260px; }
td .sub { display: block; font-size: 12.5px; color: var(--muted); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.abonnee { background: var(--green-bg); color: var(--green); }
.badge.essai { background: var(--blue-bg); color: var(--blue); }
.badge.echeance_proche, .badge.lecture_seule { background: var(--amber-bg); color: var(--amber); }
.badge.expiree, .badge.bloquee { background: var(--red-bg); color: var(--red); }
.badge.suspendue { background: var(--gray-bg); color: var(--gray); }
.badge.retired { background: var(--gray-bg); color: var(--gray); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 20px; }
.facts dt { font-size: 12.5px; color: var(--muted); } .facts dd { margin: 0 0 6px; font-weight: 500; }
.modules { display: flex; flex-wrap: wrap; gap: 6px; }
.modules .chip { background: var(--blue-bg); color: var(--blue); border-radius: 6px; padding: 2px 8px; font-size: 12.5px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.plan-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.link-box { word-break: break-all; background: var(--bg); border: 1px dashed var(--border); border-radius: 8px; padding: 10px; font-family: ui-monospace, monospace; font-size: 13px; margin: 8px 0; }

/* ---- Graphiques ---- */
.chart { width: 100%; height: 170px; }
.chart .bar { fill: var(--accent); } .chart .bar.alt { fill: var(--green); } .chart .bar.third { fill: var(--amber); }
.chart text { fill: var(--muted); font-size: 10px; } .chart .val { fill: var(--text); font-size: 10px; }
.chart .axis { stroke: var(--border); }

/* ---- Fenêtre et notification ---- */
.overlay { position: fixed; inset: 0; background: rgba(10, 15, 30, .55); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: var(--surface); border-radius: 16px; padding: 22px; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow); }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.toasts { position: fixed; right: 16px; top: 16px; display: grid; gap: 8px; z-index: 60; }
.toast { background: var(--sidebar-bg); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow); max-width: 340px; }
.toast.err { background: var(--red); color: #fff; }

@media (max-width: 720px) {
  .row, .row3 { grid-template-columns: 1fr; }
  .nav a { padding: 10px 8px; }
  th, td { padding: 8px 6px; }
}

.notice { background: var(--amber-bg); color: var(--amber); padding: 9px 12px; border-radius: 14px; margin: 12px 0; font-size: 14px; }
.idle-warning { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; display: flex; gap: 12px; align-items: center;
  background: #1f2937; color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); max-width: calc(100vw - 32px); }

/* ---- Double sécurité ---- */
.code-input { font-size: 20px; letter-spacing: 3px; text-align: center; }
.qr { width: 190px; max-width: 100%; margin: 10px 0; padding: 8px; background: #fff; border: 2px solid var(--border); border-radius: 14px; }
.qr svg { display: block; width: 100%; height: auto; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0; max-width: 420px; }
.codes code { padding: 8px; text-align: center; background: var(--bg); border: 1px dashed var(--border); border-radius: 10px; font-size: 15px; letter-spacing: 1px; }

/* ---- Wax (touche décorative : bandeaux seulement, jamais derrière du texte) ---- */
.wax-band { height: 18px; background-color: #1d2a6d;
  background-image: radial-gradient(circle at 50% 50%, #f4a300 0 14%, #1d2a6d 14% 26%, #d63e73 26% 38%, #1d2a6d 38% 50%, #08756f 50% 62%, #1d2a6d 62% 100%);
  background-size: 36px 36px; }

/* ---- Page d'accueil ---- */
.landing { background: var(--bg); }
.l-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.l-narrow { max-width: 760px; }
.l-header { position: sticky; top: 0; z-index: 20; background: rgba(14, 59, 67, .96); color: #fff; }
.l-header-in { display: flex; align-items: center; gap: 18px; padding-top: 12px; padding-bottom: 12px; }
.l-logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; margin-right: auto; }
.l-logo svg { display: block; flex: none; }
.l-links { display: flex; gap: 18px; }
.l-links a, .l-link-login { color: #cfe3e2; text-decoration: none; font-weight: 600; font-size: 14px; }
.l-links a:hover, .l-link-login:hover { color: #fff; }
.l-btn { display: inline-block; padding: 9px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.l-btn-lg { padding: 13px 22px; font-size: 1rem; }
.l-btn-mango { background: var(--gold); color: #3b2600; }
.l-btn-mango:hover { background: #e39a1c; }
.l-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.l-btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.l-btn-dark { background: #0e3b43; color: #fff; }
.l-btn-dark:hover { background: #175560; }
.l-hero { background: var(--sidebar-bg); color: #fff; padding-top: 64px; }
.l-hero .l-wrap { padding-bottom: 56px; }
.l-kicker { color: var(--gold); font-weight: 700; margin: 0 0 10px; }
.l-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; max-width: 760px; margin: 0 0 16px; }
.l-lead { font-size: 1.1rem; color: #cfe3e2; max-width: 620px; margin: 0 0 26px; }
.l-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.l-note { margin: 16px 0 0; color: #9fc2c1; font-size: 14px; }
.l-section { padding: 56px 0; }
.l-alt { background: #e9f1f0; }
.l-section h2 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 20px; color: var(--sidebar-bg); }
.l-sub { color: var(--muted); margin: -10px 0 22px; }
.l-grid { display: grid; gap: 16px; }
.l-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.l-grid-plans { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.l-card, .l-plan { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.l-card h3 { margin: 10px 0 6px; font-size: 1.02rem; }
.l-card p { margin: 0; color: var(--muted); font-size: 14px; }
.l-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #e6f4f3; font-size: 20px; }
.l-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.l-steps li { display: flex; gap: 14px; align-items: flex-start; }
.l-steps h3 { margin: 0 0 4px; font-size: 1.02rem; }
.l-steps p { margin: 0; color: var(--muted); font-size: 14px; }
.l-num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--gold); color: #3b2600; font-weight: 800; }
.l-plan { position: relative; display: flex; flex-direction: column; gap: 6px; }
.l-plan.is-default { border: 2px solid var(--primary); }
.l-tag { position: absolute; top: -12px; left: 18px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.l-plan h3 { margin: 0; font-size: 1.15rem; }
.l-price { font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; margin: 4px 0; }
.l-price small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.l-plan-desc { margin: 0; color: var(--muted); font-size: 14px; }
.l-ticks { list-style: none; margin: 8px 0 14px; padding: 0; display: grid; gap: 6px; align-content: start; font-size: 14px; flex: 1; }
.l-ticks li::before { content: '✓'; color: var(--green); font-weight: 800; margin-right: 8px; }
.l-faq { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.l-faq summary { cursor: pointer; font-weight: 700; }
.l-faq p { margin: 10px 0 0; color: var(--muted); }
.l-final { background: var(--sidebar-bg); color: #fff; text-align: center; padding-top: 52px; }
.l-final .l-wrap { padding-bottom: 44px; }
.l-final h2 { margin: 0 0 8px; font-size: 1.7rem; font-weight: 800; }
.l-final p { margin: 0 0 20px; color: #cfe3e2; }
.l-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 18px 0; font-size: 14px; }
.l-footer-in { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
@media (max-width: 900px) { .l-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .l-steps { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .l-links { display: none; } .l-grid-4 { grid-template-columns: 1fr; } .l-header-in { gap: 10px; } .l-hero { padding-top: 40px; } }
.landing main.l-main { max-width: none; margin: 0; padding: 0; }
.l-grid-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } @media (max-width: 900px) { .l-grid-plans { grid-template-columns: 1fr; } }

/* Pages légales */
.legal { padding: 36px 0 56px; }
.legal h1 { font-size: 1.9rem; font-weight: 800; color: var(--sidebar-bg); margin: 0 0 6px; }
.legal h2 { font-size: 1.15rem; margin: 26px 0 8px; color: var(--sidebar-bg); }
.legal p, .legal li { line-height: 1.65; }
.legal ul { padding-left: 20px; }
.legal.l-main, main.legal { max-width: none; padding-left: 0; padding-right: 0; }

/* ---- Lumière — pétrole et mangue (mêmes règles que l'application) ---- */
:root { --bg: #fafbfb; --primary: #0e3b43; --primary-edge: #175560; --border: #e4ecea; --radius: 16px; }
@media (prefers-color-scheme: dark) { :root { --bg: #0a1f23; --primary: #0e7c7b; --primary-edge: #12908f; } }
.public { background: radial-gradient(120% 60% at 50% 0%, #0e3b43 0%, #0a2a30 38%, var(--bg) 38.2%); }
.public-card { border-radius: 28px; box-shadow: 0 24px 60px rgba(20, 41, 43, .18); border: 1px solid var(--border); }
.brand { color: #0e3b43; }
.btn { border-radius: 14px; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-edge); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(245, 165, 36, .35); }
.card, .stat { border-radius: 22px; border-width: 1px; }
.stat .value { color: #0e3b43; }
.nav { background: #0e3b43; }
.nav a.active { border-bottom-color: var(--gold); }
.nav a:hover { color: #fff; }
.page-head h1 { color: #0e3b43; }
.badge { padding: 3px 11px; }
@media (prefers-color-scheme: dark) { .brand, .stat .value, .page-head h1 { color: #e6f1ef; } .nav { background: #07262b; } }

/* Motif wax retiré (demande de l'utilisateur) : cartes de connexion/inscription et bandeaux de l'accueil, couleurs inchangées */
.public-card::before { content: none; display: none; }
.public-card { padding-top: 32px; }
.wax-band { display: none; }

/* Accueil : bandeau de contact, pastilles, preuves, formulaire « Nous contacter » */
.l-topbar { background: #0a2a30; color: #cfe3e2; font-size: 13px; }
.l-topbar-in { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.l-topbar a { color: #F5A524; font-weight: 700; text-decoration: none; }
.l-chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.l-chips li { background: rgba(255,255,255,.12); color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; }
.l-proof { background: var(--surface); border-bottom: 1px solid var(--border); }
.l-proof-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 22px; padding-bottom: 22px; text-align: center; }
.l-proof strong { display: block; font-size: 1.35rem; color: var(--sidebar-bg); font-weight: 800; }
.l-proof span { color: var(--muted); font-size: 13px; }
.l-contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.l-contact-form, .l-contact-side { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; }
.l-contact-form label { display: block; font-weight: 700; font-size: 14px; margin: 12px 0 4px; }
.l-contact-form input, .l-contact-form textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px; font: inherit; }
.l-contact-form button { margin-top: 16px; border: 0; cursor: pointer; }
.l-contact-side h3 { margin: 0 0 8px; }
.l-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 760px) {
  .l-proof-in { grid-template-columns: repeat(2, 1fr); }
  .l-contact { grid-template-columns: 1fr; }
  .l-topbar-in span { display: none; }
  .l-topbar-in { justify-content: center; }
}

.badge-count { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 999px; background: #F5A524; color: #3b2600; font-size: 12px; font-weight: 800; text-align: center; }

/* Tutoriels (page publique) */
.t-title { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 2rem; color: var(--sidebar-bg); }
.t-icon { width: 38px; height: 38px; border-radius: 50%; background: #F5A524; color: #3b2600; font-weight: 800; display: grid; place-items: center; font-size: 22px; }
.t-search { width: 100%; box-sizing: border-box; padding: 13px 16px; border: 1px solid var(--border); border-radius: 14px; font: inherit; margin: 14px 0 6px; }
.t-chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 4px; }
.t-chip { flex: none; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; cursor: pointer; color: var(--text); }
.t-chip span { opacity: .6; margin-left: 4px; } .t-chip.on { background: #0E3B43; border-color: #0E3B43; color: #fff; }
.t-cat { font-size: 1.25rem; margin: 26px 0 2px; color: var(--sidebar-bg); } .t-cat-desc { margin: 0 0 12px; font-size: 14px; }
.t-item { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 10px; scroll-margin-top: 80px; }
.t-item summary { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 15px 18px; cursor: pointer; font-weight: 700; list-style: none; }
.t-item summary::-webkit-details-marker { display: none; }
.t-item summary::after { content: '⌄'; font-size: 20px; color: #0E3B43; margin-left: 4px; transition: transform .2s; }
.t-item[open] summary::after { transform: rotate(180deg); } .t-item[open] summary { color: #0E3B43; border-bottom: 1px solid var(--border); }
.t-min { margin-left: auto; font-weight: 500; font-size: 13px; color: var(--muted); white-space: nowrap; }
.t-body { padding: 14px 18px 18px; } .t-sum { margin: 0 0 14px; color: var(--muted); }
.t-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 14px; }
.t-steps li { counter-increment: s; position: relative; padding-left: 42px; display: grid; gap: 2px; }
.t-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: #0E3B43; color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.t-steps li span { font-size: 15px; }
.t-tip { margin-top: 16px; background: #fff7e0; border: 1px solid #f5d27a; border-radius: 12px; padding: 10px 14px; font-size: 14px; color: #5b4300; }
.l-links a[aria-current="page"] { color: #fff; }

.t-video { width: 100%; border-radius: 16px; background: #0b2f36; margin-bottom: 14px; display: block; }
.t-vid { margin-left: 8px; font-size: 12px; font-weight: 800; color: #3b2600; background: #F5A524; border-radius: 999px; padding: 2px 10px; vertical-align: middle; }

/* ---- Bandeau d'accord pour la mesure des publicités ---- */

/* Accueil : captures, types de commerce, contact WhatsApp */
.l-shots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.l-shot { grid-column: span 3; }
.l-shot-wide { grid-column: span 4; }
.l-shot { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.l-shot img { display: block; width: 100%; height: auto; background: #eef3f2; }
.l-shot-phone { grid-column: span 2; }
.l-shot-phone img { flex: 1 1 0; height: 0; min-height: 0; object-fit: cover; object-position: top; }
.l-shot figcaption { padding: 12px 16px 14px; font-size: 14px; color: var(--muted); }
.l-shot figcaption strong { display: block; color: var(--sidebar-bg); font-size: 15px; margin-bottom: 2px; }
.l-trades { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.l-trades li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 14px; }
.l-contact-form select { width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px; font: inherit; background: var(--surface); }
.l-btn-whatsapp { background: #1f8f4e; color: #fff; margin: 4px 0 12px; }
.l-btn-whatsapp:hover { background: #18733f; }
@media (max-width: 760px) {
  .l-shots { grid-template-columns: 1fr; }
  .l-shot, .l-shot-wide, .l-shot-phone { grid-column: auto; }
  .l-shot-phone img { flex: none; height: 420px; }
}
/* Accueil : photo du haut de page et section grossistes */
/* La photo occupe toute la hauteur du haut de page, à droite, et se fond dans le pétrole sous le texte. */
.l-hero-photo { position: relative; overflow: hidden; }
.l-hero-photo::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: min(64%, 1000px);
  background: url('/assets/img/accueil-commercante.webp') 30% 22% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .55) 22%, #000 48%); mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .55) 22%, #000 48%); }
.l-hero-photo > * { position: relative; }
.l-hero-photo .l-wrap { min-height: 520px; display: flex; align-items: center; }
.l-hero-text { max-width: 600px; text-shadow: 0 1px 12px rgba(10, 31, 35, .35); }
.l-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.l-cta-line { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.l-btn-outline { color: var(--sidebar-bg); border-color: var(--sidebar-bg); background: transparent; }
#pour-qui .l-trades a { color: inherit; }
@media (max-width: 900px) {
  .l-hero-photo::before { width: 100%; opacity: .38; -webkit-mask-image: linear-gradient(180deg, #000 0, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 55%, transparent 100%); }
  .l-hero-photo .l-wrap { min-height: 0; }
  .l-grid-3 { grid-template-columns: 1fr; }
}

/* Inscription : pensée pour un petit téléphone (champs de 48 px, 16 px de texte pour éviter le zoom de l'iPhone) */
.signup-title { margin: 6px 0 4px; color: var(--sidebar-bg); font-size: clamp(1.5rem, 6vw, 1.85rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.signup-card .lead { margin-bottom: 6px; font-size: 15px; }
.signup-card label { margin: 15px 0 5px; color: var(--text); font-size: 14px; }
.signup-card input:not(.trap), .signup-card select { min-height: 48px; padding: 11px 14px; border-radius: 12px; font-size: 16px; }
.signup-card input[aria-invalid="true"] { border-color: var(--red); }
.field-error { margin-top: 5px; color: var(--red); font-size: 13.5px; font-weight: 600; }
.pw-wrap { position: relative; }
.signup-card .pw-wrap input { padding-right: 92px; }
.pw-toggle { position: absolute; top: 4px; right: 4px; bottom: 4px; min-width: 80px; border: 0; border-radius: 9px; background: none; color: var(--primary-edge); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.pw-toggle:hover { background: var(--gray-bg); }
.shop-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--bg); font-size: 13.5px; color: var(--muted); }
.shop-line-text { min-width: 0; }
.shop-line-text strong, .shop-line-text span { display: block; overflow-wrap: anywhere; }
.shop-line-text strong { color: var(--text); font-weight: 600; }
.shop-line-text strong.muted { color: var(--muted); font-weight: 500; }
.link-btn { flex: none; min-height: 44px; padding: 0 10px; border: 0; border-radius: 9px; background: none; color: var(--primary-edge); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.link-btn:hover { background: var(--gray-bg); }
.btn-cta { display: block; width: 100%; min-height: 54px; margin-top: 20px; border-color: var(--gold); background: var(--gold); color: #3b2600; font-size: 17px; font-weight: 800; text-align: center; text-decoration: none; line-height: 30px; }
.btn-cta:hover { border-color: #e0951a; background: #e0951a; }
.signup-legal { margin: 12px 0 0; line-height: 1.45; }
.signup-card #plan { margin: 18px 0 0; font-size: 14px; }
.signup-card #plan summary { min-height: 28px; font-weight: 600; cursor: pointer; }
.signup-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin: 16px 0 0; }
@media (max-width: 480px) {
  .public { padding: 12px 10px 28px; place-items: start center; }
  .signup-card { padding: 30px 16px 18px; border-radius: 22px; }
}
.field-error + .hint { display: none; }

/* Mode sombre du téléphone : les cartes et bandeaux de l'accueil et des tutoriels suivent le thème (avant, cartes blanches en dur
   avec du texte clair dessus et des champs sombres : titres et textes invisibles). */
.l-proof, .l-contact-form, .l-contact-side, .l-contact-form select, .t-chip, .t-item { background: var(--surface); }
.l-contact-form input, .l-contact-form textarea, .l-contact-form select, .t-search { background: var(--surface); color: var(--text); }
@media (prefers-color-scheme: dark) {
  .l-alt { background: #0d262b; }
  .l-section h2, .l-proof strong, .t-title, .t-cat, .legal h1, .legal h2, .t-item[open] summary, .t-item summary::after { color: #e6f1ef; }
  .t-chip.on, .t-steps li::before, .l-tag { background: var(--primary); border-color: var(--primary); }
  .t-tip { background: var(--amber-bg); border-color: #6b5316; color: var(--amber); }
}

/* Inscription : « on la crée pour vous » (WhatsApp), au-dessus du formulaire */
.signup-wa { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 14px 0 2px; padding: 12px 14px; border-radius: 14px; background: var(--green-bg); }
.signup-wa span { flex: 1 1 150px; color: var(--text); font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.btn-wa { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border-color: #1f8f4e; background: #1f8f4e; color: #fff; text-decoration: none; white-space: nowrap; }
.btn-wa:hover { border-color: #18733f; background: #18733f; }
