/* GèreTonInter – pages de la plateforme : accueil, inscription, abonnement, console.
   Charte : orange #EA580C (logo, accents), orange foncé #C2410C (boutons, liens), brun #9A3412 (survols),
   crème #FFF7ED (fond), encre #1C1917, gris chaud #57534E. Titres Space Grotesk, texte Inter. */
:root {
  --brand: #EA580C; --brand-dark: #C2410C; --brand-deep: #9A3412;
  --cream: #FFF7ED; --cream-2: #FFEDD5; --sand: #FED7AA;
  --ink: #1C1917; --ink-2: #44403C; --muted: #57534E; --line: #E7E0D8; --line-2: #F1EAE2;
  --card: #FFFFFF; --ok: #15803D; --ok-bg: #DCFCE7; --err: #B91C1C; --err-bg: #FEE2E2; --info-bg: #E0F2FE; --info: #075985;
  --radius: 14px; --shadow: 0 1px 2px rgba(28, 25, 23, .05), 0 4px 14px rgba(154, 52, 18, .06);
  --focus: 0 0 0 3px rgba(234, 88, 12, .28);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--cream); font-size: 15px; line-height: 1.55; }
a { color: var(--brand-dark); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
h1, h2, h3, .display { font-family: "Space Grotesk", Inter, sans-serif; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); }
h1 { font-weight: 700; }
h2, h3 { font-weight: 600; }
code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; background: var(--cream-2); padding: 1px 5px; border-radius: 5px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 540px; margin: 0 auto; padding: 36px 16px 64px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.err { color: var(--err); }
.okt { color: var(--ok); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }

/* En-tête : logo + nom */
header.top { background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(8px); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 48px; width: auto; display: block; }
.wordmark { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 21px; letter-spacing: -.03em; color: var(--ink); }
.wordmark em { font-style: normal; color: var(--brand-dark); }
.brand .tag { font-family: Inter, sans-serif; font-size: 12px; font-weight: 600; color: var(--brand-deep); background: var(--cream-2); border-radius: 99px; padding: 2px 9px; margin-left: 2px; }
header.top nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
header.top nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 14px; padding: 8px 10px; border-radius: 9px; }
header.top nav a:hover { background: var(--cream); color: var(--ink); }
@media (max-width: 600px) { header.top nav a.hide-xs { display: none; } .wordmark { font-size: 19px; } }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { border-color: #D6CBBF; background: #FFFBF7; color: var(--ink); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .plan:focus-within { outline: none; box-shadow: var(--focus); }
.btn.primary { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn.primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn.light { background: #fff; color: var(--brand-deep); border-color: #fff; }
.btn.ghost { background: transparent; border-color: var(--sand); color: var(--brand-deep); }
.btn.ghost:hover { background: var(--cream-2); }
.btn.danger { color: var(--err); border-color: #FBCACA; background: #fff; }
.btn.danger:hover { background: var(--err-bg); }
.btn.sm { min-height: 34px; padding: 5px 11px; font-size: 13px; border-radius: 8px; }
.btn.lg { min-height: 50px; padding: 12px 22px; font-size: 16px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Formulaires */
label { display: block; font-weight: 600; font-size: 13px; color: var(--ink-2); margin: 16px 0 6px; }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #D9CFC4; border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand-dark); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--ink); margin-top: 16px; }
.check input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.addr { display: flex; align-items: center; border: 1px solid #D9CFC4; border-radius: 10px; background: #FFFBF7; overflow: hidden; }
.addr:focus-within { border-color: var(--brand); box-shadow: var(--focus); }
.addr span { padding: 0 2px 0 12px; color: var(--muted); white-space: nowrap; font-size: 13.5px; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.addr input { border: 0; border-radius: 0; padding-left: 2px; background: transparent; box-shadow: none !important; }

/* Cartes, grilles */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--brand-deep); background: var(--cream-2); border: 1px solid var(--sand); border-radius: 99px; padding: 4px 12px; }

/* Page « formulaire » (inscription, abonnement, merci) */
.page-head { text-align: center; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(26px, 4vw, 34px); margin: 12px 0 6px; }
.page-head p { margin: 0; color: var(--muted); }

/* Accueil */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 56px); margin: 18px 0 16px; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--brand-dark); }
.hero p.lead { font-size: 18px; color: var(--ink-2); max-width: 560px; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .reassure { margin-top: 16px; font-size: 13.5px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.hero .reassure span { display: inline-flex; align-items: center; gap: 6px; }
.hero .reassure svg { width: 16px; height: 16px; color: var(--ok); }
@media (max-width: 860px) { .hero { padding: 40px 0; } .hero .wrap { grid-template-columns: 1fr; gap: 32px; } }

/* maquette de fiche d'intervention (illustration de l'accueil) */
.mock { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 60px rgba(154, 52, 18, .14), 0 2px 6px rgba(28, 25, 23, .06); padding: 18px; max-width: 400px; margin-left: auto; width: 100%; }
.mock-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mock-ref { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 13px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; border-radius: 99px; padding: 3px 10px; }
.pill.orange { background: var(--cream-2); color: var(--brand-deep); }
.pill.green { background: var(--ok-bg); color: #166534; }
.mock h3 { margin: 0 0 4px; font-size: 18px; }
.mock .addr-line { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.mock-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 16px; }
.mock-steps i { height: 6px; border-radius: 4px; background: var(--brand); }
.mock-steps i.off { background: var(--line-2); }
.mock-list { display: grid; gap: 10px; }
.mock-item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; font-size: 14px; }
.mock-item svg { width: 20px; height: 20px; color: var(--brand-dark); flex: none; }
.mock-item b { font-weight: 600; }
.mock-item .muted { font-size: 12.5px; }
.mock-sign { margin-top: 12px; border: 1.5px dashed var(--sand); border-radius: 12px; height: 70px; display: flex; align-items: center; justify-content: center; }
.mock-sign svg { width: 150px; height: 46px; color: var(--ink); }

.section { padding: 56px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 10px; }
.section .sub { color: var(--muted); max-width: 620px; margin: 0 0 32px; font-size: 16px; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .steps3 { grid-template-columns: 1fr; } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.section.alt .step { background: var(--cream); }
.step .num { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 13px; color: var(--brand-deep); }
.step h3 { font-size: 22px; margin: 6px 0 8px; }
.step p { margin: 0; color: var(--ink-2); }
.ico-tile { width: 50px; height: 50px; border-radius: 14px; background: var(--brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; box-shadow: 0 6px 14px rgba(234, 88, 12, .25); }
.ico-tile svg { width: 28px; height: 28px; }
.ico-tile svg[fill="none"] { color: #fff; }
.feat h3 { font-size: 17px; margin: 0 0 6px; }
.feat p { margin: 0; color: var(--muted); font-size: 14.5px; }
.cta-band { background: var(--ink); color: #fff; border-radius: 22px; padding: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: 28px; }
.cta-band p { margin: 0; color: #D6D3D1; }
.access { max-width: 520px; margin: 0 auto; }
footer.foot { border-top: 1px solid var(--line); background: #fff; padding: 26px 0; }
footer.foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
footer.foot .brand img { height: 30px; width: auto; }
footer.foot .wordmark { font-size: 16px; }

/* Formules d'abonnement */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.plan { display: block; border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; font-weight: 400; margin: 0; background: #fff; transition: border-color .15s, background .15s; }
.plan:hover { border-color: var(--sand); }
.plan.on { border-color: var(--brand); background: var(--cream); }
.plan input { width: auto; min-height: 0; margin: 0 6px 0 0; }
.plan .price { font-family: "Space Grotesk", sans-serif; font-size: 28px; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; }
.total { margin-top: 18px; background: var(--cream); border: 1px solid var(--sand); border-radius: 12px; padding: 14px 16px; }
.total b { font-family: "Space Grotesk", sans-serif; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.b-active { background: var(--ok-bg); color: #166534; }
.b-trial { background: var(--info-bg); color: var(--info); }
.b-ended { background: #FEF3C7; color: #92400E; }
.b-suspended { background: var(--err-bg); color: #991B1B; }

/* Console */
.console-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin: 22px 0 18px; }
.tabs button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font: inherit; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; min-height: 38px; }
.tabs button:hover { color: var(--ink); background: var(--cream); }
.tabs button.on { background: var(--brand-dark); color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpi .lbl { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi .val { font-family: "Space Grotesk", sans-serif; font-size: 32px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
.kpi.accent { border-color: var(--sand); background: var(--cream-2); }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; font-size: 14px; }
tr:last-child td { border-bottom: 0; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: #FFFBF7; }
tbody tr:hover td { background: #FFFBF7; }
.modal { position: fixed; inset: 0; background: rgba(28, 25, 23, .45); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto; z-index: 50; }
.modal .card { width: 100%; max-width: 580px; padding: 24px; }
.modal-x { float: right; width: 36px; height: 36px; margin: -8px -8px 8px 10px; border: 0; border-radius: 50%; background: var(--cream); color: var(--ink-2); font-size: 17px; line-height: 1; cursor: pointer; }
.modal-x:hover { background: var(--cream-2); }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; z-index: 60; max-width: 90vw; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); font-weight: 500; }
.toast.err { background: var(--err); }
.secret { font-family: ui-monospace, Menlo, monospace; background: var(--cream); border: 1px solid var(--line); padding: 9px 11px; border-radius: 8px; word-break: break-all; font-size: 13px; }
.panel { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
details summary { cursor: pointer; font-weight: 600; }
@media (max-width: 640px) { .hide-sm { display: none; } .card { padding: 18px; } }
/* pastilles de l'historique */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: #A8A29E; }
.dot-ok { background: var(--ok); } .dot-err { background: var(--err); } .dot-warn { background: #D97706; } .dot-info { background: #0284C7; } .dot-brand { background: var(--brand); }
