/* RobotsMarket Fleet — site vitrine (maquette) */
:root {
  --ink: #17233B;        /* encre du plan : textes, fonds sombres */
  --ink-2: #4A5874;      /* texte secondaire */
  --paper: #EEF2F5;      /* fond du plan */
  --card: #FFFFFF;
  --line: #D3DBE4;       /* traits du plan */
  --path: #3A6FF2;       /* trajets des robots, liens */
  --beacon: #F2A33A;     /* balises robots, mise en avant */
  --ok: #1E9E6A;
  --alert: #D9483B;
  --radius-s: 6px;
  --radius-l: 14px;
  --wide: 'Archivo', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--wide);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: 'wdth' 100;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--path); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--beacon);
  outline-offset: 2px;
}
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ───────── Titres : la largeur de l'Archivo porte la personnalité ───────── */
h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.3rem); font-variation-settings: 'wdth' 125; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-variation-settings: 'wdth' 118; }
h3 { font-size: 1.2rem; font-variation-settings: 'wdth' 108; font-weight: 700; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: 1.2rem; color: var(--ink-2); }

/* ───────── En-tête ───────── */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(238, 242, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-variation-settings: 'wdth' 120; font-size: 1.15rem; }
.brand svg { width: 30px; height: 30px; }
.brand small { font-weight: 500; color: var(--ink-2); font-variation-settings: 'wdth' 100; font-size: 0.85rem; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--beacon); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius-s);
  background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 0.98rem; border: 2px solid var(--ink); cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: #24345A; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: #fff; }
.top .btn { padding: 9px 16px; }
.menu-toggle { display: none; }

/* ───────── Héros : la console comme image principale ───────── */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 28px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .proof { margin-top: 34px; display: flex; gap: 28px; flex-wrap: wrap; color: var(--ink-2); font-size: 0.95rem; }
.hero .proof b { display: block; color: var(--ink); font-size: 1.5rem; font-variation-settings: 'wdth' 118; }

/* ───────── Fenêtre d'application (captures inventées) ───────── */
.app {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: 0 30px 60px -30px rgba(23, 35, 59, 0.35);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.4;
}
.app-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--ink); color: #fff; }
.app-bar .dots { display: flex; gap: 5px; }
.app-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #3B4A6B; }
.app-bar .title { font-weight: 700; font-variation-settings: 'wdth' 112; }
.app-bar .site { margin-left: auto; opacity: 0.75; }
.app-body { display: grid; grid-template-columns: 150px 1fr; min-height: 360px; }
.app-side { background: #F6F8FA; border-right: 1px solid var(--line); padding: 12px 8px; }
.app-side a { display: block; padding: 7px 10px; border-radius: var(--radius-s); color: var(--ink-2); text-decoration: none; font-weight: 600; }
.app-side a.on { background: #E3EAF7; color: var(--ink); }
.app-main { padding: 14px; display: grid; gap: 12px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 10px; }
.kpi span { display: block; color: var(--ink-2); font-size: 11.5px; }
.kpi b { font-size: 18px; font-variation-settings: 'wdth' 115; }
.kpi .ok { color: var(--ok); } .kpi .warn { color: #B9771A; } .kpi .bad { color: var(--alert); }
.floor { border: 1px solid var(--line); border-radius: var(--radius-s); background: #FBFCFD; position: relative; }
.floor svg { width: 100%; height: auto; }
.legend { display: flex; gap: 14px; padding: 6px 10px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 11.5px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11px; color: var(--ink-2); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 7px 8px; border-bottom: 1px solid #EDF1F5; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.pill.ok { background: #E1F4EC; color: #147550; }
.pill.warn { background: #FCEFD9; color: #8F5A10; }
.pill.bad { background: #FBE3E0; color: #A3291E; }
.pill.info { background: #E3EAFC; color: #2A51B8; }

/* robots animés sur le plan (un seul mouvement orchestré, désactivé si mouvement réduit) */
.bot { transition: none; }
@media (prefers-reduced-motion: no-preference) {
  .bot-move { offset-rotate: 0deg; animation: patrol 14s linear infinite; }
  .bot-move.b2 { animation-duration: 18s; animation-delay: -6s; }
  .bot-move.b3 { animation-duration: 11s; animation-delay: -3s; }
  @keyframes patrol { from { offset-distance: 0%; } to { offset-distance: 100%; } }
}

/* ───────── Sections ───────── */
section { padding: 72px 0; }
section.band { background: #fff; border-block: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: end; margin-bottom: 40px; }
.section-head p { margin: 0; color: var(--ink-2); }

/* Fonctions : lignes simples, pas de cartes */
.functions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.fn { padding: 22px 22px 26px 0; border-bottom: 1px solid var(--line); }
.fn:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.fn:not(:nth-child(3n+1)) { padding-left: 22px; }
.fn svg { width: 34px; height: 34px; margin-bottom: 12px; }
.fn h3 { margin-bottom: 6px; }
.badge-ajoute { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--muted, #6b7280); }
.fn p { color: var(--ink-2); margin: 0; font-size: 0.98rem; }

/* Écrans */
.screens { display: grid; gap: 64px; }
.screen { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 44px; align-items: center; }
.screen:nth-child(even) { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.screen:nth-child(even) .screen-text { order: 2; }
.screen-text h3 { font-size: 1.6rem; margin-bottom: 12px; }
.screen-text ul { padding-left: 1.1em; color: var(--ink-2); margin: 0; }
.screen-text li { margin-bottom: 6px; }

/* éditeur de carte */
.editor { display: grid; grid-template-columns: 1fr 170px; gap: 0; }
.editor .tools { border-left: 1px solid var(--line); padding: 12px; display: grid; gap: 8px; align-content: start; background: #F6F8FA; }
.editor .tool { border: 1px solid var(--line); background: #fff; border-radius: var(--radius-s); padding: 7px 9px; font-weight: 600; }
.editor .tool.on { border-color: var(--path); color: var(--path); }

/* planning */
.gantt { display: grid; grid-template-columns: 120px 1fr; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.gantt .row-label { padding: 9px 10px; border-bottom: 1px solid #EDF1F5; font-weight: 600; background: #F6F8FA; }
.gantt .row-track { position: relative; border-bottom: 1px solid #EDF1F5; background: repeating-linear-gradient(90deg, transparent 0 calc(100%/8 - 1px), #EDF1F5 calc(100%/8 - 1px) calc(100%/8)); }
.gantt .task { position: absolute; top: 6px; bottom: 6px; border-radius: 4px; padding: 0 7px; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; white-space: nowrap; overflow: hidden; }
.gantt .hours { grid-column: 2; display: grid; grid-template-columns: repeat(8, 1fr); font-size: 11px; color: var(--ink-2); padding: 5px 0 5px 4px; border-bottom: 1px solid var(--line); }

/* mobile */
.phone {
  width: 250px; margin-inline: auto; border: 10px solid var(--ink); border-radius: 34px; background: #fff;
  box-shadow: 0 30px 60px -30px rgba(23, 35, 59, 0.45); overflow: hidden; font-size: 13px;
}
.phone .notch { height: 22px; background: var(--ink); width: 110px; margin: 0 auto; border-radius: 0 0 14px 14px; }
.phone .ph-head { padding: 12px 14px 8px; font-weight: 800; font-variation-settings: 'wdth' 115; font-size: 15px; }
.phone .ph-alert { margin: 0 12px 10px; border: 1px solid var(--line); border-left: 4px solid var(--alert); border-radius: var(--radius-s); padding: 9px 10px; }
.phone .ph-alert.amber { border-left-color: var(--beacon); }
.phone .ph-alert.green { border-left-color: var(--ok); }
.phone .ph-alert small { color: var(--ink-2); display: block; }
.phone .ph-tab { display: flex; justify-content: space-around; border-top: 1px solid var(--line); padding: 10px 0 14px; color: var(--ink-2); font-weight: 600; font-size: 11.5px; margin-top: 14px; }
.phone .ph-tab .on { color: var(--path); }

/* Secteurs */
.sectors { display: flex; flex-wrap: wrap; gap: 10px; }
.sectors span { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 600; }
.quote { margin-top: 40px; padding: 26px 30px; background: var(--ink); color: #fff; border-radius: var(--radius-l); display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.quote svg { width: 46px; height: 46px; }
.quote p { margin: 0 0 6px; font-size: 1.15rem; max-width: 70ch; }
.quote small { color: #B8C3D6; }

/* Offres */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 2px solid var(--ink); border-radius: var(--radius-l); overflow: hidden; background: #fff; }
.plan { padding: 28px 26px; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan.featured { background: var(--ink); color: #fff; }
.plan.featured .muted { color: #B8C3D6; }
.plan h3 { font-size: 1.6rem; margin-bottom: 6px; }
.plan .muted { color: var(--ink-2); font-size: 0.95rem; }
.plan ul { padding-left: 1.1em; margin: 18px 0 0; }
.plan li { margin-bottom: 8px; }
.plan .btn { margin-top: 22px; }
.plan.featured .btn { background: var(--beacon); border-color: var(--beacon); color: var(--ink); }
.sla { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-l); overflow: hidden; }
.sla caption { text-align: left; font-weight: 700; padding: 0 0 12px; font-size: 1.2rem; font-variation-settings: 'wdth' 110; }
.sla th, .sla td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.sla thead th { background: var(--ink); color: #fff; font-weight: 700; }
.sla tbody th { font-weight: 700; width: 30%; }
.sla tbody th small { display: block; font-weight: 400; color: var(--ink-2); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-l); }

/* Support */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.channel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; }
.channel h3 { margin-bottom: 8px; }
.channel p { color: var(--ink-2); margin-bottom: 12px; }
.channel .big { font-size: 1.35rem; font-weight: 800; font-variation-settings: 'wdth' 115; color: var(--ink); text-decoration: none; }
.status-strip { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: #E1F4EC; border: 1px solid #B5E2CC; border-radius: var(--radius-l); margin-bottom: 28px; }
.status-strip i { width: 12px; height: 12px; border-radius: 50%; background: var(--ok); flex: none; }
.status-strip p { margin: 0; }

/* Formulaire */
.form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; padding: 11px 12px; border: 1px solid #B9C4D2; border-radius: var(--radius-s); background: #fff; color: var(--ink); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .note { font-size: 0.9rem; color: var(--ink-2); margin: 0; }

/* Pied de page */
footer { background: var(--ink); color: #C9D2E1; padding: 52px 0 36px; margin-top: 40px; }
footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
footer h4 { color: #fff; margin: 0 0 12px; font-variation-settings: 'wdth' 112; }
footer a { color: #C9D2E1; text-decoration: none; display: block; margin-bottom: 7px; }
footer a:hover { color: #fff; text-decoration: underline; }
footer .brand { color: #fff; }
footer .legal { grid-column: 1 / -1; border-top: 1px solid #2E3D5C; padding-top: 18px; font-size: 0.88rem; }

.page-head { padding: 56px 0 30px; }
.page-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: 14px; }

/* ───────── Responsive ───────── */
@media (max-width: 980px) {
  .hero .wrap, .section-head, .screen, .screen:nth-child(even) { grid-template-columns: 1fr; gap: 28px; }
  .screen:nth-child(even) .screen-text { order: 0; }
  .functions { grid-template-columns: 1fr 1fr; }
  .fn, .fn:not(:nth-child(3n+1)) { padding: 20px 18px 22px 0; border-right: none; }
  .fn:nth-child(odd) { border-right: 1px solid var(--line); }
  .fn:nth-child(even) { padding-left: 18px; }
  .plans, .support-grid { grid-template-columns: 1fr; }
  .plan + .plan { border-left: none; border-top: 1px solid var(--line); }
  footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); flex-direction: column; gap: 0; padding: 8px 20px 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: inline-flex; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 12px; font: inherit; font-weight: 600; color: var(--ink); }
  .top .btn { display: none; }
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .functions { grid-template-columns: 1fr; }
  .fn, .fn:nth-child(odd), .fn:nth-child(even) { padding: 18px 0; border-right: none; }
  .editor { grid-template-columns: 1fr; }
  .editor .tools { border-left: none; border-top: 1px solid var(--line); grid-template-columns: 1fr 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .quote { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
}
.channel .big { overflow-wrap: anywhere; }
@media (max-width: 760px) { .channel .big { font-size: 1.1rem; } }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.7rem); }
@media (max-width:760px){.app-bar .site{display:none}}
footer .legal{max-width:none}

.annonce{background:#fff4e5;border-bottom:1px solid #f5c48a;color:#7a3e00;text-align:center;padding:10px 16px;font-weight:600}

/* Formulaire "Déclarer un incident" (support.html) */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.form fieldset{border:none;padding:0;margin:0;display:grid;gap:16px}
.form legend{font-weight:700;padding:0;margin-bottom:2px;font-size:1.02rem}
.form label.consent{display:flex;flex-direction:row;align-items:flex-start;gap:10px;font-weight:500}
.form label.consent input{margin-top:3px;width:auto}
.form .char-count{font-weight:400;font-size:0.82rem;color:var(--ink-2);float:right}
.form .field-err{font-size:0.85rem;color:var(--alert);margin:4px 0 0;font-weight:600}
.form input.invalid,.form select.invalid,.form textarea.invalid{border-color:var(--alert)}
#ticket-result:not(:empty){padding:10px 12px;border-radius:var(--radius-s);background:#E1F4EC;border:1px solid #B5E2CC;font-weight:600}
#ticket-result.error:not(:empty){background:#FBE7E4;border:1px solid #F3C3BC;color:#7a1f16}
