/* Polices hébergées localement (Inter et Sora, licence SIL OFL 1.1) — aucune requête vers Google Fonts */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/sora-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/sora-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/sora-latin-800-normal.woff2") format("woff2");
}

/* =========================================================
   Neutrino Services — Design system
   ========================================================= */

:root {
  --primary: #478ac9;
  --primary-dark: #2f5d8a;
  --primary-light: #7fc4f2;
  --navy: #10203a;
  --navy-soft: #16294a;
  --accent: #4fd8c8;
  --bg: #ffffff;
  --bg-soft: #f4f8fc;
  --bg-soft-2: #eef4fa;
  --text: #17233a;
  --text-muted: #596989;
  --border: #e3ebf3;
  --shadow-sm: 0 2px 10px rgba(16, 32, 58, 0.06);
  --shadow-md: 0 12px 32px rgba(16, 32, 58, 0.10);
  --shadow-lg: 0 24px 60px rgba(16, 32, 58, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1180px;
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--navy);
  font-weight: 700;
}
p { margin: 0 0 1em; color: var(--text-muted); }
ul { padding: 0; margin: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--bg-soft-2);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline {
  border-color: rgba(255,255,255,.5);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-ghost {
  border-color: var(--border);
  color: var(--navy);
  background: #fff;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy);
  color: #cfe0f3;
  font-size: .82rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: #cfe0f3; }
.topbar .topbar-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; }
.topbar .topbar-links { display: flex; gap: 20px; }
.topbar .topbar-links a:hover { color: var(--accent); }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
}
.brand-logo {
  display: block;
  height: 34px;
  width: auto;
}
.brand-logo-footer { height: 40px; }
@media (max-width: 420px) {
  .brand-logo { height: 28px; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0%;
  background: var(--primary);
  transition: width .2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--primary-dark); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--navy);
  margin: 6px 0;
  transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 900px) {
  .nav-links { gap: 22px; }
  .nav-cta .btn-ghost { display: none; }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 68px 16px auto 16px;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all .2s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-cta .btn-ghost { display: inline-flex; }
  .nav-cta { display: none; }
  body.menu-open .nav-cta.mobile-cta {
    display: flex;
    position: fixed;
    inset: auto 16px 16px 16px;
    z-index: 101;
  }
  .topbar .topbar-links a:nth-child(2) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, #1c3a63 0%, var(--navy) 55%, #0b1729 100%);
  color: #fff;
  padding: 96px 0 120px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  position: relative;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  margin-bottom: .4em;
}
.hero p.lead {
  color: #c4d6ec;
  font-size: 1.1rem;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stats .stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: #fff;
}
.hero-stats .stat > span { color: #9db4d4; font-size: .85rem; }

.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(6px);
}
.hero-card h2, .hero-card h3 { color: #fff; font-size: 1.1rem; }
.hero-card ul li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #d7e4f5;
  font-size: .92rem;
}
.hero-card ul li:first-child { border-top: none; }
.hero-card ul li .dot {
  width: 8px; height: 8px; margin-top: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy {
  background: linear-gradient(160deg, var(--navy) 0%, #0c1a30 100%);
  color: #fff;
}
.section-navy h2, .section-navy .eyebrow { color: #fff; }
.section-navy p { color: #b9cbe4; }
.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head.left { margin: 0 0 44px; text-align: left; }

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillar .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft-2);
  color: var(--primary);
  margin-bottom: 18px;
}
.pillar h3 { font-size: 1.15rem; }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(71,138,201,.35);
}
.service-card .thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.service-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.service-card:hover .thumb img { transform: scale(1.05); }
.service-card .icon {
  position: absolute;
  left: 16px;
  bottom: 12px;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.service-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service-card p { font-size: .93rem; flex: 1; }
.service-card .more {
  margin-top: 16px;
  font-weight: 700;
  font-size: .85rem;
  color: var(--primary-dark);
  display: inline-flex; align-items: center; gap: 6px;
}

/* Offer grid (Web, Backend & IA) */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.offer-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(79,216,200,.4); }
.offer-card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(79,216,200,.12);
  color: #2a9c8f;
  margin-bottom: 18px;
}
.offer-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.offer-card p { font-size: .9rem; }
.offer-note {
  margin-top: 28px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-soft-2);
  border: 1px solid var(--border);
  font-size: .88rem;
  color: var(--text-muted);
}
.offer-note strong { color: var(--navy); }

/* Process steps */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.process-step {
  position: relative;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}
.process-step .num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  opacity: .8;
  margin-bottom: 10px;
}
.process-step h3, .process-step h4 { color: #fff; font-size: 1.02rem; margin-bottom: 10px; }
.process-step ul li {
  color: #b9cbe4;
  font-size: .88rem;
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}
.process-step ul li::before {
  content: "";
  position: absolute; left: 0; top: 11px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary) 60%, #5aa3d8);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band.cta-photo {
  position: relative;
  background: linear-gradient(120deg, rgba(16,32,58,.92), rgba(16,32,58,.75) 55%, rgba(47,93,138,.55)),
              var(--photo-url) center/cover no-repeat;
  isolation: isolate;
}

/* Full-width photo banner used above a text section (e.g. "about") */
.section-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: var(--shadow-md);
  aspect-ratio: 21 / 8;
}
.section-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 700px) {
  .section-photo { aspect-ratio: 16 / 10; }
}
.cta-band h2 { color: #fff; margin-bottom: 6px; font-size: 1.6rem; }
.cta-band p { color: #e4f0fb; margin: 0; }

/* Logos / trust strip */
.trust-strip {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  opacity: .75;
}
.trust-strip span {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text-muted);
  font-size: .95rem;
  letter-spacing: .04em;
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 36px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .88rem; color: var(--navy); }
.field .req { color: var(--primary); }
.field input,
.field select,
.field textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: var(--bg-soft);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(71,138,201,.15);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.field small { color: var(--text-muted); font-size: .78rem; }
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.checkbox-field input { margin-top: 4px; }
.checkbox-field label { font-size: .85rem; color: var(--text-muted); font-weight: 400; }

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
}
.form-status.show { display: block; }
.form-status.ok { background: #e8f7f0; color: #1c7d51; }
.form-status.error { background: #fdeceb; color: #b13a2c; }

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
}

/* Side info card on forms */
.info-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.info-list li:first-child { border-top: none; }
.info-list .icon {
  width: 36px; height: 36px; flex: none;
  border-radius: 10px;
  background: var(--bg-soft-2);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}

/* Steps (numbered horizontal) */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  text-align: center;
  padding: 24px 16px;
}
.step .badge {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  margin: 0 auto 14px;
}
.step h3, .step h4 { font-size: .98rem; }

/* Generic responsive 2-column layout (project/skills split, about section) */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.two-col.two-col-center { align-items: center; }

/* Info column + form-card layout (mission / rejoindre pages) */
.form-split {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .form-split { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .pillars, .services-grid, .process, .steps, .offer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pillars, .services-grid, .process, .steps, .offer-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .cta-band { padding: 32px; flex-direction: column; text-align: center; }
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: #0b1729;
  color: #9db4d4;
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-grid h3, .footer-grid h5 {
  color: #fff;
  font-family: var(--font-head);
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid ul li { margin-bottom: 10px; font-size: .9rem; }
.footer-grid ul li a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: .82rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, border-color .2s ease;
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: linear-gradient(160deg, var(--navy), #0c1a30);
  color: #fff;
  padding: 64px 0 56px;
  text-align: center;
}
.page-header h1 { color: #fff; margin-bottom: 10px; }
.page-header p { color: #c4d6ec; max-width: 560px; margin: 0 auto; }
.breadcrumb { font-size: .85rem; color: #9db4d4; margin-bottom: 14px; }
.breadcrumb a:hover { color: #fff; }

/* Legal pages */
.legal-content h2 { margin-top: 2em; font-size: 1.2rem; }
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content p, .legal-content li { color: var(--text-muted); }
.legal-content ul { padding-left: 20px; list-style: disc; margin-bottom: 1em; }

/* ---------- Pages zones d'intervention (/intervention/...) ---------- */
.city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.city-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.city-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(71,138,201,.35); }
.city-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.city-card p { font-size: .88rem; margin-bottom: 14px; }
.city-card .more {
  font-weight: 700;
  font-size: .85rem;
  color: var(--primary-dark);
  display: inline-flex; align-items: center; gap: 6px;
}

.zone-map {
  height: 340px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--bg-soft-2);
}

.zone-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.zone-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: .88rem;
  color: var(--navy);
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.zone-pill:hover { border-color: var(--primary); color: var(--primary-dark); transform: translateY(-2px); }
.zone-pill.is-static:hover { border-color: var(--border); color: var(--navy); transform: none; }

.zone-locate { margin-top: 22px; }
.zone-locate .btn[hidden] { display: none; }
.zone-locate-status { margin: 12px 0 0; font-size: .9rem; color: var(--text-muted); min-height: 1.4em; }

.history-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.history-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.history-date {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.history-item h4 { font-size: 1rem; margin-bottom: 6px; }
.history-item p { font-size: .9rem; margin-bottom: 0; }

@media (max-width: 900px) {
  .city-grid { grid-template-columns: repeat(2, 1fr); }
  .history-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .city-grid { grid-template-columns: 1fr; }
  .zone-map { height: 260px; }
}

/* Reveal animation — fully visible by default (no-JS / JS-failure safe).
   The initial hidden state is applied inline by main.js only when
   IntersectionObserver is available, never via CSS, so content is never
   stuck invisible if a script fails to load or run. */
.reveal {
  transition: opacity .6s ease, transform .6s ease;
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Menu « Me connecter » (choix espace technicien / client) ---------- */
.login-menu { position: relative; }
.login-menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.login-menu summary::-webkit-details-marker { display: none; }
.login-menu summary::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}
.login-menu[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.login-menu summary:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 3px; border-radius: 8px; }

.login-menu--top summary { color: #cfe0f3; }
.login-menu--top summary:hover,
.login-menu--top[open] summary { color: var(--accent); }

.login-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 300;
  width: 290px;
  max-width: calc(100vw - 32px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 1rem;
  text-align: left;
  white-space: normal;
}
.login-panel .login-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--navy);
}
.login-panel .login-item strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  font-weight: 600;
}
.login-panel .login-item span { font-size: .8rem; font-weight: 400; color: var(--text-muted); }
.login-panel a.login-item:hover { background: var(--bg-soft); color: var(--navy); }
.login-panel .login-item.is-soon { opacity: .7; cursor: not-allowed; }
.login-panel .login-item em,
.badge-soon {
  font-style: normal;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-soft-2);
  color: var(--primary-dark);
}

/* Page « Me connecter » */
.login-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}
.login-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.login-card h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.login-card p { margin: 0; flex: 1; }
.login-card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--bg-soft-2);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.login-card.is-soon { background: var(--bg-soft); box-shadow: none; }
.login-card.is-soon .btn { cursor: not-allowed; opacity: .7; }
.login-card-link { font-weight: 600; font-size: .9rem; color: var(--primary-dark); text-align: center; }
.login-card-link:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .login-grid { grid-template-columns: 1fr; }
}
