/* ---------- Tokens ---------- */
:root {
  --bg: #0b1220;
  --bg-2: #0f172a;
  --surface: #ffffff;
  --surface-alt: #f6f8fb;
  --ink: #0b1220;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #2563eb;
  --brand-600: #1d4ed8;
  --brand-50: #eff6ff;
  --accent: #22d3ee;
  --warn: #f59e0b;
  --ok: #10b981;
  --danger: #ef4444;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow-md: 0 10px 25px -10px rgba(15, 23, 42, .18), 0 6px 12px -8px rgba(15, 23, 42, .12);
  --shadow-lg: 0 25px 50px -20px rgba(15, 23, 42, .25);
  --container: 1040px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-2); }
ul { padding: 0; margin: 0; list-style: none; }

.container {
  width: min(var(--container), calc(100% - clamp(2rem, 5vw, 4rem)));
  margin-inline: auto;
}
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--surface-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-50);
  padding: .3rem .7rem;
  border-radius: 999px;
  margin-bottom: .9rem;
}
.eyebrow.light {
  color: var(--accent);
  background: rgba(34, 211, 238, .12);
}
.accent { color: var(--brand); }
.muted { color: var(--muted); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  top: 1rem; left: 1rem;
  width: auto; height: auto;
  padding: .6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  z-index: 1000;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
  text-align: center;
  white-space: nowrap;
}
.btn-sm { padding: .55rem .9rem; font-size: .9rem; }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(37, 99, 235, .45);
}
.btn-primary:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--surface-alt); color: var(--ink); }
.btn-full { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.01em;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 16px -6px rgba(37, 99, 235, .6);
}
.logo-text { font-size: 1.15rem; }
.logo-text span { color: var(--brand); font-weight: 700; }

.main-nav .menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.main-nav .menu a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: .97rem;
}
.main-nav .menu a:hover { color: var(--ink); }
.main-nav .menu .btn-primary { color: #fff; }

/* Bouton Contact compact dans la nav */
.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .95rem;
  font-weight: 600;
}
.btn-contact .btn-ic {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  opacity: .95;
  display: inline-block;
}
.btn-contact .btn-tx {
  display: inline-block;
  line-height: 1;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px; height: 44px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0 2rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(34, 211, 238, .18), transparent 60%),
    radial-gradient(800px 400px at 10% 10%, rgba(37, 99, 235, .18), transparent 60%),
    linear-gradient(180deg, #f6fbff 0%, #ffffff 70%);
  z-index: -1;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy .lead {
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 58ch;
}
.hero-copy .lead strong { color: var(--ink); font-weight: 700; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.4rem 0 1.6rem;
}
.hero-points {
  display: grid;
  gap: .5rem;
  color: var(--ink-2);
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .96rem;
}
.hero-points svg { color: var(--ok); flex: none; }

/* ---------- Hero : visuel décoratif (logo + ondes) ---------- */
.hero-visual {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  min-height: 280px;
}
.hero-mark-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 220px;
  isolation: isolate; /* contient l'animation */
}
.hero-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110px;
  height: 110px;
  margin: -55px 0 0 -55px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: heroRipple 4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.hero-ring:nth-child(2) { animation-delay: 1.3s; }
.hero-ring:nth-child(3) { animation-delay: 2.6s; }
@keyframes heroRipple {
  0%   { transform: scale(0.5); opacity: 0; }
  15%  { opacity: 0.55; }
  100% { transform: scale(2.4); opacity: 0; }
}
.hero-mark-big {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow:
    0 20px 50px -20px rgba(37, 99, 235, .6),
    0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.hero-visual-text {
  margin: 1.5rem 0 0;
  font-size: 1rem;
  color: #94a3b8;
  text-align: center;
  letter-spacing: .01em;
}
.hero-visual-text em {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

/* Anciennes utilités encore référencées ailleurs (dots des fenêtres) — on les garde */
.dot-r { background: #f87171; }
.dot-y { background: #fbbf24; }
.dot-g { background: #34d399; }

.trust-bar {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .6);
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  padding: 1rem 0;
  color: var(--muted);
  font-size: .9rem;
}
.trust-inner ul {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
}
.trust-inner ul li {
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: .02em;
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-why h2 { margin-top: .6rem; }
.grid-why .lead { color: var(--ink-2); font-size: 1.08rem; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), border-color .2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand);
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .97rem; margin-bottom: 1rem; }
.card-list {
  display: grid;
  gap: .4rem;
  border-top: 1px dashed var(--line);
  padding-top: .9rem;
}
.card-list li {
  font-size: .92rem;
  color: var(--ink-2);
  padding-left: 1.2rem;
  position: relative;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  opacity: .7;
}
.card-featured {
  border: 1px solid var(--brand);
  background: linear-gradient(180deg, #fff 0%, var(--brand-50) 100%);
  box-shadow: var(--shadow-md);
}
.card-featured .card-icon { background: var(--brand); color: #fff; }

/* Carte "chaleureuse" (aide aux personnes âgées) */
.card-warm {
  border: 1px solid #fbbf24;
  background: linear-gradient(180deg, #fff 0%, #fffbeb 100%);
}
.card-warm .card-icon { background: #fef3c7; color: #b45309; }
.badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--brand);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .3rem .6rem;
  border-radius: 999px;
}
.badge-warm { background: #d97706; }

/* ---------- Bloc Partenaire Infomaniak ---------- */
.section-partner {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background:
    radial-gradient(800px 300px at 20% 0%, rgba(14, 165, 233, .1), transparent 70%),
    linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
  border-top: 1px solid #bae6fd;
  border-bottom: 1px solid #bae6fd;
}
.partner-inner {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: start;
}
.partner-badge {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #fff;
  box-shadow: 0 10px 25px -10px rgba(14, 165, 233, .5);
}
.partner-list {
  display: grid;
  gap: .7rem;
  margin: 1.2rem 0 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, .7);
  border: 1px solid #bae6fd;
  border-radius: var(--radius);
}
.partner-list li {
  font-size: .95rem;
  color: var(--ink-2);
  padding-left: 1.4rem;
  position: relative;
}
.partner-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 10px; height: 10px;
  border-radius: 3px;
  background: #0ea5e9;
}
.partner-list strong { color: #0369a1; }
@media (max-width: 680px) {
  .partner-inner { grid-template-columns: 1fr; gap: 1.2rem; }
}

/* ---------- Features list ---------- */
.features {
  display: grid;
  gap: 1rem;
}
.features li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  display: grid;
  gap: .2rem;
  transition: border-color .2s;
}
.features li:hover { border-color: var(--brand); }
.features strong { color: var(--ink); font-size: 1rem; }
.features span { color: var(--ink-2); font-size: .94rem; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}
.steps li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem;
  position: relative;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.steps li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .85rem;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: .08em;
  display: inline-block;
  margin-bottom: .8rem;
  padding: .2rem .55rem;
  border: 1px solid var(--brand-50);
  background: var(--brand-50);
  border-radius: 6px;
}
.steps h3 { margin-bottom: .35rem; }
.steps p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Zone ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1rem;
}
.tags li {
  background: #fff;
  border: 1px solid var(--line);
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .85rem;
  color: var(--ink-2);
  font-weight: 500;
  transition: background .2s, color .2s, border-color .2s;
}
.tags li:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.zone-grid { align-items: stretch; gap: 1.5rem; }
.zone-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.zone-block:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.zone-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  margin-bottom: .4rem;
}
.zone-remote { border-top: 4px solid var(--brand); }
.zone-remote .zone-icon { background: var(--brand-50); color: var(--brand); }
.zone-onsite { border-top: 4px solid #0ea5e9; }
.zone-onsite .zone-icon { background: #e0f2fe; color: #0284c7; }
.zone-block h3 { margin: 0; }
.zone-block p { color: var(--ink-2); font-size: .96rem; margin: 0 0 .3rem; }
.zone-note {
  margin-top: .4rem;
  font-size: .85rem;
  color: var(--muted);
  font-style: italic;
}
.zone-footer {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: var(--radius-sm);
  color: #9a3412;
  font-size: .95rem;
  text-align: center;
}

.tag-pill {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .3rem .7rem;
  border-radius: 999px;
  margin-bottom: .3rem;
  align-self: flex-start;
}
.tag-pill-ok { background: var(--brand-50); color: var(--brand); }
.tag-pill-vd { background: #e0f2fe; color: #0284c7; }

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: .7rem;
}
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 1.2rem;
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--brand);
  font-weight: 300;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 0 1rem;
  color: var(--ink-2);
  margin: 0;
}

/* ---------- Contact ---------- */
.section-dark {
  background:
    radial-gradient(700px 300px at 10% 20%, rgba(37, 99, 235, .35), transparent 60%),
    radial-gradient(700px 300px at 90% 80%, rgba(34, 211, 238, .25), transparent 60%),
    var(--bg);
  color: #e2e8f0;
}
.section-dark h2 { color: #fff; }
.section-dark .lead { color: #cbd5e1; }
.contact-grid { align-items: start; }
.contact-list { display: grid; gap: .8rem; margin-top: 1.5rem; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  color: #cbd5e1;
}
.contact-list svg { color: var(--accent); flex: none; margin-top: .2rem; }
.contact-list a { color: #fff; font-weight: 500; }
.contact-list a:hover { color: var(--accent); }
.contact-list address {
  font-style: normal;
  color: #fff;
  line-height: 1.5;
}
.contact-note {
  margin-top: 1.5rem;
  padding: .9rem 1.1rem;
  background: rgba(251, 191, 36, .1);
  border: 1px solid rgba(251, 191, 36, .3);
  border-radius: var(--radius-sm);
  color: #fcd34d;
  font-size: .92rem;
}
.contact-note strong { color: #fef3c7; }

.contact-form {
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .1);
  padding: 1.8rem;
  border-radius: var(--radius);
  display: grid;
  gap: 1rem;
  min-width: 0;       /* permet au form de respecter la largeur de son parent */
  max-width: 100%;    /* ne dépassera jamais le conteneur parent */
  overflow: hidden;   /* garde-fou final : clip tout débordement interne */
  box-sizing: border-box;
}
.form-step { min-width: 0; max-width: 100%; }
.contact-grid { min-width: 0; }
.contact-grid > * { min-width: 0; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field-row { min-width: 0; }
.field-row .field { min-width: 0; }
.field label {
  font-size: .9rem;
  color: #e2e8f0;
  font-weight: 500;
  display: flex;
  align-items: baseline;
  gap: .4rem;
}
.field-opt {
  font-size: .78rem;
  font-weight: 400;
  color: #94a3b8;
}
/* Ligne à 2 colonnes (NPA + Ville) — ratio ~1 : 3 */
.field-row {
  display: grid;
  grid-template-columns: 0.9fr 2fr;
  gap: 1rem;
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
}
.field input,
.field select,
.field textarea {
  font: inherit;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: .75rem .85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(15, 23, 42, .6);
  color: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field select {
  /* empêche le select de prendre la largeur de son option la plus longue */
  text-overflow: ellipsis;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .6rem center;
  background-size: 18px;
  padding-right: 2.2rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .2);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select option { color: #0b1220; }
.form-note { font-size: .82rem; color: #94a3b8; margin: 0; }
.form-status { margin: 0; font-size: .92rem; min-height: 1.2em; }
.form-status.ok { color: #6ee7b7; }
.form-status.err { color: #fca5a5; }

/* Honeypot : visuellement invisible mais présent dans le DOM pour piéger les bots */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Widget Turnstile : espacement propre, ne réserve pas de hauteur vu qu'il est invisible la plupart du temps */
.cf-turnstile:not(:empty) { margin: .25rem 0; }

.btn[disabled],
.btn[aria-busy="true"] { opacity: .7; cursor: not-allowed; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-2);
  color: #cbd5e1;
  padding: 3.5rem 0 1.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-footer .logo { color: #fff; }
.site-footer .logo:hover { color: #fff; }
.site-footer .logo-text span { color: var(--accent); }
.site-footer h4 {
  color: #fff;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}
.site-footer nav ul { display: grid; gap: .55rem; }
.site-footer a { color: #cbd5e1; font-size: .94rem; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #64748b; font-size: .9rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.2rem;
  font-size: .88rem;
  color: #94a3b8;
  flex-wrap: wrap;
  gap: .5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: auto; padding: 1rem 0 2rem; }
  .hero-mark-stage { height: 180px; }
  .hero-mark-big { width: 100px; height: 100px; border-radius: 24px; }
  .hero-mark-big svg { width: 68px; height: 68px; }
  .hero-ring { width: 95px; height: 95px; margin: -47.5px 0 0 -47.5px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 680px) {
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .header-inner { height: 60px; }
  .nav-toggle { display: block; }
  .main-nav .menu {
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 1rem 1.2rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s var(--ease);
  }
  .main-nav[data-open="true"] .menu { max-height: 500px; }
  .main-nav .menu li { padding: .2rem 0; }
  .main-nav .menu a { display: block; padding: .7rem .2rem; }

  /* Bouton Contact dans le menu burger */
  .main-nav .menu a.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
    padding: .85rem 1rem;
    margin-top: .7rem;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.2;
  }
  /* Icône cachée sur mobile : le bouton n'affiche que "Contact" */
  .main-nav .menu a.btn-contact > svg,
  .main-nav .menu a.btn-contact .btn-ic,
  .main-nav .menu a.btn-contact svg.btn-ic {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  .main-nav .menu a.btn-contact .btn-tx {
    display: inline-block;
  }

  .trust-inner { font-size: .85rem; }
}

/* ---------- Formulaire multi-étapes ---------- */
/* Barre de progression */
.form-progress-wrap {
  margin: 0 0 1.4rem;
}
.form-progress {
  position: relative;
  height: 6px;
  background: rgba(255, 255, 255, .08);
  border-radius: 999px;
  overflow: hidden;
}
.form-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 33.33%;
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
  border-radius: 999px;
  transition: width .4s var(--ease);
}
.form-progress-label {
  margin: .55rem 0 0;
  text-align: right;
  font-size: .82rem;
  color: #94a3b8;
  letter-spacing: .02em;
}
.form-progress-label span:not(.muted-sep) { color: #fff; font-weight: 600; }
.muted-sep { color: #475569; margin: 0 .25rem; }

/* Étapes : on utilise des classes (pas l'attribut hidden) pour un rendu fiable */
.form-step {
  display: none;
  gap: 1rem;
  animation: fadeSlide .3s var(--ease);
}
.form-step.is-active {
  display: grid;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Navigation entre étapes */
.form-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
  margin-top: .2rem;
}
.form-nav .btn { justify-content: center; }
.form-nav .btn[hidden] { display: none; }

/* Ghost button sur fond sombre (section contact) : fond visible même hors survol */
.section-dark .btn-ghost,
.form-nav .btn-ghost {
  background: rgba(255, 255, 255, .08);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, .18);
}
.section-dark .btn-ghost:hover,
.form-nav .btn-ghost:hover {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
}
.section-dark .btn-ghost:focus-visible,
.form-nav .btn-ghost:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
