/* =========================================================
   JND Informatique — feuille de style
   Couleurs reprises du logo : indigo #3a4181 → magenta #800e83
   ========================================================= */

/* Police Ubuntu (celle du logo), hébergée avec le site — Ubuntu Font Licence 1.0 */
@font-face {
  font-family: "Ubuntu Web";
  src: url("../fonts/ubuntu.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Couleurs de la marque */
  --indigo: #3a4181;
  --violet: #4f2c80;
  --plum: #6b1a81;
  --magenta: #800e83;
  --lavender: #f4eef9;
  --lavender-2: #e3cdf2;

  --gradient: linear-gradient(120deg, #3a4181 0%, #6b1a81 55%, #800e83 100%);
  /* fond des bandeaux sombres (accueil et Systèmes) */
  --brand-bg:
    radial-gradient(ellipse 55% 75% at 88% 8%, rgba(128, 14, 131, 0.8), transparent 70%),
    radial-gradient(ellipse 45% 65% at 0% 100%, rgba(107, 26, 129, 0.55), transparent 70%),
    linear-gradient(160deg, #3a4181 0%, #2a1c5c 100%);

  /* Couleurs d'interface */
  --ink: #1d1436;
  --text: #3d3653;
  --muted: #6b6482;
  --line: #e9e3f1;
  --bg: #ffffff;
  --bg-soft: #f8f4fc;
  --dark: #1c1640;
  --dark-line: rgba(255, 255, 255, 0.14);
  --on-dark: #f4eef9;
  --on-dark-muted: rgba(244, 238, 249, 0.76);

  --primary: #6e1a84;
  --primary-600: #57136a;
  --primary-soft: #f4eafa;

  /* Formes */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(29, 20, 54, 0.06);
  --shadow: 0 1px 2px rgba(29, 20, 54, 0.05), 0 12px 32px -14px rgba(29, 20, 54, 0.18);

  --font: "Ubuntu Web", Ubuntu, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;

  --container: 1180px;
  --gutter: 20px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lavender-2); color: var(--ink); }

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}
.hero :focus-visible,
.section-brand :focus-visible,
.site-footer :focus-visible { outline-color: var(--lavender); }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Champ anti-spam du formulaire : caché aux visiteurs */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 12px; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container.narrow { max-width: 860px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.7em 1.15em;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.975rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s, filter .2s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.1em; height: 1.1em; stroke-width: 2.2; transition: transform .2s; }
.btn:hover .icon-arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(110, 26, 132, 0.85);
}
.btn-primary:hover { filter: brightness(1.12); }

.btn-light {
  background: var(--lavender);
  color: var(--primary-600);
  box-shadow: 0 10px 26px -12px rgba(10, 4, 30, 0.6);
}
.btn-light:hover { background: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.6); }

.btn-lg { padding: 0.9em 1.45em; font-size: 1.025rem; }
.btn-block { width: 100%; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(29, 20, 54, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.brand-text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.3em;
}
.brand-light { color: #fff; }
.brand-light .brand-text small { color: var(--on-dark-muted); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav ul { display: flex; gap: 2px; }
.site-nav ul a {
  display: block;
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav ul a:hover { color: var(--ink); background: var(--bg-soft); text-decoration: none; }
.site-nav ul a.is-active { color: var(--primary); }

.nav-cta { padding: 0.62em 1.05em; font-size: 0.93rem; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; stroke-width: 2; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Héro ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 48px;
  color: var(--on-dark);
  background: var(--brand-bg);
}
/* quadrillage discret façon circuit imprimé */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 15%, transparent 72%);
          mask-image: radial-gradient(ellipse at 50% 45%, #000 15%, transparent 72%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--lavender);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.hero-kicker::before {
  content: "";
  width: 40px; height: 10px;
  background:
    radial-gradient(circle closest-side, transparent 42%, currentColor 50%, currentColor 82%, transparent 92%) left center / 10px 10px no-repeat,
    linear-gradient(currentColor, currentColor) right center / 30px 2px no-repeat;
  opacity: 0.8;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5.2vw, 3.8rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero-lead {
  max-width: 560px;
  margin-top: 22px;
  color: var(--on-dark-muted);
  font-size: 1.15rem;
}
.hero-lead strong { color: #fff; font-weight: 500; }
.hero-lead + .hero-lead { margin-top: 12px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* Panneau « systèmes d'exploitation » */
.hero-os { position: relative; }

.hero-chip {
  position: absolute;
  left: 50%; top: 50%;
  width: 135%;
  max-width: none;
  transform: translate(-50%, -50%);
  color: rgba(244, 238, 249, 0.07);
  pointer-events: none;
}

.os-panel {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  background: rgba(24, 12, 56, 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 34px 70px -30px rgba(10, 4, 30, 0.75);
}
.os-panel-title {
  margin: 2px 6px 16px;
  color: var(--on-dark-muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.os-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transition: background-color .2s, transform .2s, border-color .2s;
}
.os-row + .os-row { margin-top: 12px; }
.os-row:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateX(4px);
}
.os-ico {
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  flex: none;
  border-radius: 17px;
  background: var(--lavender);
  color: var(--primary);
}
.os-ico .icon { width: 32px; height: 32px; stroke-width: 1.7; }
.os-row strong { display: block; font-size: 1.45rem; font-weight: 700; line-height: 1.2; }
.os-row small { display: block; margin-top: 2px; color: var(--on-dark-muted); font-size: 0.93rem; line-height: 1.4; }
.os-row > .icon-arrow { margin-left: auto; color: var(--lavender-2); transition: transform .2s; }
.os-row:hover > .icon-arrow { transform: translateX(3px); }

/* Bandeau des 6 métiers */
.hero-facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 76px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-lg);
  background: rgba(24, 12, 56, 0.22);
  overflow: hidden;
}
.hero-facts li { box-shadow: -1px 0 0 var(--dark-line), 0 -1px 0 var(--dark-line); }
.hero-facts a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 22px 10px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 500;
  text-align: center;
  transition: background-color .2s;
}
.hero-facts a:hover { background: rgba(255, 255, 255, 0.09); text-decoration: none; }
.hero-facts .icon { width: 28px; height: 28px; color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-soft { background: var(--bg-soft); }

.section-brand {
  position: relative;
  overflow: hidden;
  color: var(--on-dark-muted);
  background: var(--brand-bg);
}
.section-brand h2 { color: #fff; }

.section-head {
  max-width: 740px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2,
.split-copy h2,
.contact-info h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
.section-head p:not(.eyebrow) { margin-top: 16px; font-size: 1.1rem; color: var(--muted); }
.section-brand .section-head p:not(.eyebrow) { color: var(--on-dark-muted); }

/* Sur-titre façon logo : o—— TEXTE ——o */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eyebrow::before,
.section-head .eyebrow::after {
  content: "";
  width: 34px; height: 9px;
  flex: none;
  background:
    radial-gradient(circle closest-side, transparent 40%, currentColor 50%, currentColor 82%, transparent 92%) left center / 9px 9px no-repeat,
    linear-gradient(currentColor, currentColor) right center / 25px 2px no-repeat;
  opacity: 0.7;
}
.section-head .eyebrow::after { transform: scaleX(-1); }
.section-brand .eyebrow { color: var(--lavender-2); }

/* ---------- Grilles & cartes ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 50px; height: 50px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
}
.card-icon .icon { width: 25px; height: 25px; }
.card-icon-lg { width: 58px; height: 58px; margin-bottom: 0; border-radius: 16px; }
.card-icon-lg .icon { width: 29px; height: 29px; }

.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card > p { color: var(--muted); }

.service { transition: transform .25s, box-shadow .25s, border-color .25s; }
.service:hover {
  transform: translateY(-4px);
  border-color: #dccbea;
  box-shadow: var(--shadow);
}
.service .checks { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }

.checks li {
  position: relative;
  padding-left: 28px;
  font-size: 0.96rem;
  color: var(--text);
}
.checks li + li { margin-top: 8px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.3em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary-soft);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 6.5px; top: calc(0.3em + 4px);
  width: 5px; height: 9px;
  border: solid var(--primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Systèmes d'exploitation */
.os-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 34px 60px -34px rgba(10, 4, 30, 0.8);
}
.os-card-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.os-card-ico {
  display: grid;
  place-items: center;
  width: 68px; height: 68px;
  flex: none;
  border-radius: 19px;
  background: var(--gradient);
  color: var(--lavender);
  box-shadow: 0 10px 22px -12px rgba(110, 26, 132, 0.9);
}
.os-card-ico .icon { width: 34px; height: 34px; stroke-width: 1.7; }
.section-brand .os-card h3 { color: var(--ink); font-size: 1.7rem; }
.os-card-tag { margin-top: 4px; color: var(--muted); font-size: 0.95rem; }
.os-card .checks li { font-size: 1rem; }
.os-card .checks li + li { margin-top: 11px; }

.os-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 32px;
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.07);
}
.os-switch p { color: var(--on-dark-muted); font-size: 1.05rem; }
.os-switch strong { display: block; margin-bottom: 2px; color: #fff; font-size: 1.15rem; font-weight: 700; }

/* Pour qui */
.audience { padding: 36px; }
.audience-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.audience h3 { font-size: 1.45rem; margin-bottom: 4px; }
.audience-tag { color: var(--muted); }
.audience .checks li { font-size: 1rem; }
.audience .checks li + li { margin-top: 12px; }

/* Sur mesure */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
}
.split-copy > p:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: 1.1rem; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 34px;
}
.chips li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}

.steps { position: relative; display: grid; gap: 14px; }
.steps::before {
  content: "";
  position: absolute;
  left: 33px; top: 30px; bottom: 30px;
  width: 2px;
  background: var(--gradient);
  opacity: 0.3;
}
.steps li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 22px 20px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.step-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}
.steps h3 { font-size: 1.08rem; margin: 2px 0 4px; }
.steps p { color: var(--muted); font-size: 0.96rem; }

/* Pourquoi nous */
.feature { padding: 8px 4px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.98rem; }

/* FAQ */
.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
}
.faq details + details { border-top: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 22px 64px 22px 26px;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: background-color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--bg-soft); }
.faq summary::after {
  content: "";
  position: absolute;
  right: 26px; top: 50%;
  width: 10px; height: 10px;
  margin-top: -7px;
  border: solid var(--primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform .25s, margin-top .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 26px 24px; color: var(--muted); }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: 64px;
}
.contact-info > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }

.contact-list { display: grid; gap: 14px; margin-top: 36px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.contact-ico {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}
.contact-ico .icon { width: 22px; height: 22px; }
.contact-list .label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.contact-list a,
.contact-list span:not(.label):not(.contact-ico) { color: var(--ink); font-weight: 500; word-break: break-word; }

.contact-form { padding: 36px; box-shadow: var(--shadow); }
.contact-form h3 { font-size: 1.3rem; margin-bottom: 24px; }

.field { display: grid; gap: 7px; margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label,
.field legend {
  padding: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}
.field legend { margin-bottom: 7px; }
.field .req { color: var(--magenta); }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8cfe4;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 130px; }
select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6482' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(110, 26, 132, 0.14);
}
.was-validated :invalid { border-color: #dc2626; }
.was-validated :invalid:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14); }

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  text-align: center;
  color: var(--muted);
  font-weight: 500;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.segmented input:checked + span { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.segmented input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 1px; }

.form-note { margin-top: 14px; color: var(--muted); font-size: 0.85rem; text-align: center; }
.form-status { margin-top: 8px; font-size: 0.92rem; font-weight: 500; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-error { color: #dc2626; }
.form-status.is-ok { color: #15803d; }

/* ---------- Pied de page ---------- */
.site-footer {
  padding: 72px 0 0;
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(128, 14, 131, 0.35), transparent 70%),
    var(--dark);
  color: var(--on-dark-muted);
  font-size: 0.96rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand p { max-width: 380px; margin-top: 18px; }
.footer-tagline {
  color: var(--lavender);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.footer-col h4 {
  margin-bottom: 16px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: var(--on-dark-muted); word-break: break-word; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 28px;
  border-top: 1px solid var(--dark-line);
  font-size: 0.88rem;
}
.footer-bottom a { color: var(--on-dark-muted); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Apparition au défilement ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(29, 20, 54, 0.4);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility 0s linear .2s;
  }
  .nav-open .site-nav {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: opacity .2s, transform .2s;
  }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav ul a { padding: 12px 10px; font-size: 1.05rem; }
  .nav-cta { justify-content: center; padding: 0.9em 1.2em; font-size: 1rem; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .grid-5 { grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
}

@media (max-width: 1000px) {
  .hero { padding-top: 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-os { max-width: 560px; width: 100%; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .os-cards { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .os-switch { flex-direction: column; align-items: flex-start; }
  .split,
  .contact { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --header-h: 66px; }
  body { font-size: 1rem; }

  .brand-mark { width: 40px; height: 40px; }
  .brand-text strong { font-size: 1.3rem; }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .eyebrow { letter-spacing: 0.14em; }
  .eyebrow::before,
  .section-head .eyebrow::after { width: 24px; background-size: 9px 9px, 15px 2px; }

  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4,
  .grid-5 { grid-template-columns: 1fr; gap: 28px; }

  .card,
  .audience,
  .os-card,
  .contact-form { padding: 24px 20px; }
  .os-switch { padding: 22px 20px; }
  .os-switch .btn { width: 100%; }

  .hero { padding: 48px 0 32px; }
  .hero-lead { font-size: 1.05rem; }
  .hero-actions .btn { width: 100%; }
  .os-panel { padding: 16px; border-radius: 22px; }
  .os-panel-title { margin: 4px 4px 12px; }
  .os-row { gap: 14px; padding: 14px; }
  .os-ico { width: 52px; height: 52px; border-radius: 14px; }
  .os-ico .icon { width: 27px; height: 27px; }
  .os-row strong { font-size: 1.25rem; }
  .os-row small { font-size: 0.86rem; }
  .os-row > .icon-arrow { display: none; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); margin-top: 56px; }
  .hero-facts a { padding: 18px 8px; }

  .os-card-ico { width: 58px; height: 58px; border-radius: 16px; }
  .os-card-ico .icon { width: 29px; height: 29px; }
  .section-brand .os-card h3 { font-size: 1.45rem; }

  .audience-head { gap: 14px; }
  .audience h3 { font-size: 1.25rem; }

  .field-row { grid-template-columns: 1fr; gap: 0; }

  .faq summary { padding: 18px 52px 18px 20px; font-size: 1rem; }
  .faq summary::after { right: 22px; }
  .faq details p { padding: 0 20px 20px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
