:root {
  --blue: #034bad;
  --navy: #0a2f6b;
  --sky: #3f7fe6;
  --coral: #ff8a73;
  --lav: #f5f6ff;
  --lav-2: #e4e8ff;
  --text: #56607f;
  --line: #e6e9f6;
  --hh: 80px;
  --ease: cubic-bezier(0.77, 0, 0.18, 1);
  --dur: 0.9s;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: var(--hh);
  font-family: 'Open Sans', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h2, p, ul, dl, dd { margin: 0; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--hh);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; height: 100%; padding: 14px 0; }
.brand img { height: 100%; width: auto; display: block; }

/* ---------- Menu (burger) ---------- */
.burger {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  cursor: pointer;
  transition: background 0.2s;
}
.burger:hover { background: var(--navy); }
.burger__icon { position: relative; width: 22px; height: 14px; }
.burger__icon i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: #fff;
  transition: top 0.25s ease, transform 0.25s ease, opacity 0.2s ease;
}
.burger__icon i:nth-child(1) { top: 0; }
.burger__icon i:nth-child(2) { top: 6px; }
.burger__icon i:nth-child(3) { top: 12px; }
.burger[aria-expanded='true'] .burger__icon i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.burger[aria-expanded='true'] .burger__icon i:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] .burger__icon i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: var(--hh) 0 0 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.menu ul { display: grid; gap: clamp(0.9rem, 3vh, 1.6rem); margin: 0; padding: 0; list-style: none; text-align: center; }
.menu a {
  font-size: clamp(1.6rem, 4.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
.menu a:hover, .menu a[aria-current='true'] { color: var(--coral); }
body.menu-open { overflow: hidden; }

/* ---------- Dots ---------- */
.dots { display: none; }

.is-split .dots {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dots a {
  position: relative;
  display: block;
  width: 26px;
  height: 26px;
}
.dots a::after {
  content: '';
  position: absolute;
  inset: 7.75px;
  border-radius: 50%;
  background: #9ea5ba;
  transition: transform 0.3s, background 0.3s;
}
.dots a[aria-current='true']::after { background: var(--coral); transform: scale(1.25); }
.dots a::before {
  content: attr(data-label);
  position: absolute;
  right: 34px;
  top: 50%;
  transform: translate(6px, -50%);
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.dots a:hover::before, .dots a:focus-visible::before { opacity: 1; transform: translate(0, -50%); }

/* ---------- Layout : mobile / fallback (sections empilées) ---------- */
.step { display: flex; flex-direction: column; scroll-margin-top: var(--hh); }
.pane--text { order: 1; }
.pane--visual { order: 2; }

.pane { position: relative; }

.pane--text { display: flex; align-items: center; background: #fff; }
.pane--text.pane--tint { background: var(--lav); }

.pane__inner {
  width: 100%;
  max-width: 34rem;
  padding: clamp(2.5rem, 8vw, 4rem) clamp(1.25rem, 6vw, 3rem);
  margin: 0 auto;
}

.pane--visual {
  display: grid;
  place-items: center;
  min-height: 22rem;
  padding: 2.5rem 1.25rem;
  overflow: hidden;
  background: var(--bg);
}

/* ---------- Layout : split slider (bureau) ---------- */
.is-split { --hh: 96px; }
.is-split, .is-split body { overflow: hidden; height: 100%; }
.is-split body { padding-top: 0; }

/* La diapositive occupe tout l'écran ; le logo et le menu flottent par-dessus,
   comme sur Foton, plutôt que dans une barre séparée. */
.is-split .site-header {
  position: fixed;
  height: auto;
  background: transparent;
  border-bottom: 0;
  padding: clamp(14px, 2.6vh, 22px) clamp(1rem, 4vw, 3rem);
}
.is-split .brand {
  height: auto;
  padding: 10px 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(10, 47, 107, 0.18);
}
.is-split .brand img { height: 30px; }

.is-split .stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
}
.is-split .step {
  position: absolute;
  inset: 0;
  display: block;
  scroll-margin-top: 0;
}
.is-split .pane {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  will-change: transform;
  transition: transform var(--dur) var(--ease);
}
.is-split .pane--l { left: 0; transform: translateY(calc(var(--o, 0) * 100%)); }
.is-split .pane--r { left: 50%; transform: translateY(calc(var(--o, 0) * -100%)); }

.is-split .pane--visual { min-height: 0; padding: 0; }
.is-split .pane__inner {
  padding: clamp(1rem, 4vh, 3rem) clamp(2rem, 5vw, 5rem);
  margin: 0;
  max-width: 36rem;
  max-height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* ---------- Typographie ---------- */
.eyebrow,
.desc,
.checks {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}
.eyebrow { margin-bottom: 0.75rem; }
.desc { font-size: 0.95rem; text-transform: none; }
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 3px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--coral);
  border-radius: 2px;
}
.eyebrow--light { color: #fff; }

h2 {
  font-size: clamp(2.4rem, min(5.2vw, 9vh), 4.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: clamp(0.5rem, 1.6vh, 1rem);
}

.h2--form { font-size: clamp(2rem, min(3.6vw, 6.5vh), 3.2rem); }

.lead {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--blue);
  margin-bottom: clamp(0.5rem, 1.4vh, 0.9rem);
}

.checks {
  list-style: none;
  padding: 0;
  margin: clamp(0.8rem, 2vh, 1.4rem) 0 clamp(1.2rem, 3vh, 2rem);
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: normal;
}
.checks li { position: relative; padding-left: 1.7rem; }
.checks li::before {
  content: '';
  position: absolute;
  left: 0.3rem;
  top: calc(50% - 0.45rem);
  width: 0.4rem;
  height: 0.75rem;
  border: solid var(--coral);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.btn:hover { background: var(--coral); color: var(--navy); transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ---------- Panneaux visuels ---------- */
.tone-blue     { --bg: radial-gradient(circle at 25% 20%, #1a66cf 0%, var(--blue) 55%, #023d8c 100%); --num: rgba(255, 255, 255, 0.1); --accent: var(--blue); }
.tone-coral    { --bg: linear-gradient(160deg, #ffa08c 0%, var(--coral) 100%);                          --num: rgba(10, 47, 107, 0.12);  --accent: var(--coral); }
.tone-navy     { --bg: radial-gradient(circle at 70% 15%, #14498f 0%, var(--navy) 60%, #071f49 100%);   --num: rgba(255, 255, 255, 0.08); --accent: var(--blue); }
.tone-lavender { --bg: linear-gradient(160deg, var(--lav) 0%, var(--lav-2) 100%);                       --num: rgba(3, 75, 173, 0.09);   --accent: var(--blue); }
.tone-sky      { --bg: linear-gradient(160deg, #5f96ee 0%, var(--sky) 45%, #2a68cf 100%);               --num: rgba(255, 255, 255, 0.12); --accent: var(--blue); }

.pane__number {
  position: absolute;
  right: 4%;
  bottom: -0.12em;
  font-size: clamp(9rem, 38vh, 22rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--num);
  user-select: none;
}

.device {
  position: relative;
  width: min(86%, 30rem);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 30px 60px rgba(4, 22, 60, 0.28);
  overflow: hidden;
}
.device__bar { display: flex; align-items: center; justify-content: space-between; min-height: 2.4rem; padding: 6px 14px; background: #eef0fa; }
.device__dots { display: flex; gap: 6px; }
.device__bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9cee6; }
.device__body { display: flex; gap: 14px; padding: 14px; height: clamp(9rem, 28vh, 15rem); }
.device__side { flex: 0 0 18%; display: grid; align-content: start; gap: 8px; }
.device__side b { height: 10px; border-radius: 5px; background: var(--lav-2); }
.device__side b:first-child { background: var(--accent); }
.device__main { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.device__title { height: 14px; width: 55%; border-radius: 7px; background: var(--navy); opacity: 0.85; }
.device__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.device__cards span { height: clamp(2.6rem, 9vh, 4.5rem); border-radius: 8px; background: var(--lav); border-top: 4px solid var(--accent); }
.device__lines { display: grid; gap: 8px; }
.device__lines i { height: 8px; border-radius: 4px; background: var(--lav-2); }
.device__lines i:nth-child(2) { width: 85%; }
.device__lines i:nth-child(3) { width: 60%; }
.device__label {
  padding: 8px 14px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  border-top: 1px dashed var(--line);
}

/* ---------- Contact ---------- */
.contact-card { position: relative; width: min(86%, 26rem); color: #fff; }
.contact-card__big { font-size: clamp(1.8rem, min(3vw, 6vh), 2.6rem); font-weight: 800; line-height: 1.15; margin-bottom: 1.5rem; }
.contact-card dl { display: grid; gap: 0.2rem; }
.contact-card dt { margin-top: 0.8rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); }
.contact-card dd { font-size: 1.1rem; font-weight: 600; }
.contact-card a { text-decoration: none; border-bottom: 2px solid var(--coral); }
.contact-card a:hover { color: var(--coral); }
.pane--contact .legal { position: absolute; left: 0; right: 0; bottom: 1.25rem; text-align: center; font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); }

.form { display: grid; gap: clamp(0.5rem, 1.6vh, 1rem); margin-top: clamp(0.8rem, 2vh, 1.4rem); }
.field label { display: block; margin-bottom: 4px; font-size: 0.8rem; font-weight: 700; color: var(--navy); }
.field input, .field textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 1rem;
  color: var(--navy);
  transition: border-color 0.2s;
}
.field textarea { resize: none; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form__status { font-size: 0.9rem; font-weight: 600; }
.form__status.is-ok { color: #0a7a4b; }
.form__status.is-error { color: #b3261e; }

/* ---------- Animations d'entrée (bureau uniquement) ---------- */
.is-split .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.is-split .reveal--zoom { transform: translateY(26px) scale(0.94); }
.is-split .step.is-active .reveal {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.45s + var(--i, 0) * 0.08s);
}

/* ---------- Mobile étroit ---------- */
@media (max-width: 560px) {
  .brand img { height: 100%; }
  .nav .nav__cta { padding: 7px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .is-split .pane { transition-duration: 0.01s; }
  .is-split .reveal, .is-split .step.is-active .reveal { transition: none; transform: none; opacity: 1; }
}

/* ---------- Capture d'écran (téléversée depuis l'admin) ---------- */
.device__shot {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(48vh, 22rem);
  object-fit: cover;
  object-position: top left;
}

/* ---------- Zoom de la capture ---------- */
.device__zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.device__zoom::after {
  content: '';
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(10, 47, 107, 0.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 18px no-repeat;
  opacity: 0.9;
  transition: transform 0.2s, background-color 0.2s;
}
.device__zoom:hover::after, .device__zoom:focus-visible::after { transform: scale(1.1); background-color: var(--blue); }

.lb {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(7, 31, 73, 0.92);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  overflow: hidden;
}
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: transparent; }

.lb__img {
  display: block;
  max-width: calc(100vw - 2 * clamp(1rem, 5vw, 4rem));
  max-height: calc(100vh - 2 * clamp(1rem, 6vh, 4rem));
  max-height: calc(100dvh - 2 * clamp(1rem, 6vh, 4rem));
  width: auto;
  height: auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  animation: lb-in 0.3s ease both;
}
@keyframes lb-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

.lb__close {
  position: absolute;
  top: clamp(0.8rem, 3vh, 1.6rem);
  right: clamp(0.8rem, 3vw, 1.6rem);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.2s, border-color 0.2s, color 0.2s;
}
.lb__close svg { width: 1.2rem; height: 1.2rem; }
.lb__close:hover, .lb__close:focus-visible {
  transform: rotate(90deg);
  background: var(--coral);
  border-color: var(--coral);
  color: var(--navy);
}

.lb__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.lb__arrow svg { width: 1.3rem; height: 1.3rem; }
.lb__arrow:hover { background: var(--coral); border-color: var(--coral); color: var(--navy); }
.lb__arrow--prev { left: clamp(0.6rem, 3vw, 2rem); }
.lb__arrow--next { right: clamp(0.6rem, 3vw, 2rem); }
.lb__arrow[hidden] { display: none; }

.lb__counter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(0.8rem, 3vh, 1.6rem);
  margin: 0;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}
.lb__counter[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .lb__img { animation: none; }
  .lb__close, .lb__arrow { transition: none; }
  .lb__close:hover, .lb__close:focus-visible { transform: none; }
}

/* ---------- Galerie de captures ---------- */
.gallery__frame { position: relative; }
.gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 47, 107, 0.55);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.gallery__arrow svg { width: 1.1rem; height: 1.1rem; }
.gallery__arrow:hover { background: var(--blue); }
.gallery__arrow--prev { left: 10px; }
.gallery__arrow--next { right: 10px; }

.gallery__dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 10px 0;
}
.gallery__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--lav-2);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.gallery__dots button[aria-selected='true'] { background: var(--accent, var(--blue)); transform: scale(1.2); }

.gallery__caption {
  padding: 0 14px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}
.gallery__caption[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .gallery__arrow, .gallery__dots button { transition: none; }
}


/* ---------- Image de fond partagée entre les deux panneaux d'une section ---------- */
/* Sélecteur à deux classes : doit l'emporter sur .pane--text.pane--tint (même spécificité,
   mais celui-ci arrive avant dans la feuille de style) qui fixe sinon sa propre couleur unie. */
.pane.pane--split-bg {
  background-repeat: no-repeat;
  background-size: 100% auto;
}
/* Chaque moitié (deux images distinctes) est ancrée vers le centre, en bas,
   pour que les deux se raccordent visuellement à la jointure des panneaux. */
.pane--l.pane--split-bg { background-position: right bottom; }
.pane--r.pane--split-bg { background-position: left bottom; }

.pane--split-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.pane--text.pane--split-bg::before { background: rgba(255, 255, 255, 0.74); }
.pane--text.pane--tint.pane--split-bg::before { background: rgba(245, 246, 255, 0.78); }
.pane--visual.pane--split-bg::before { background: linear-gradient(160deg, rgba(3, 32, 90, 0.55), rgba(3, 32, 90, 0.25)); }

.pane--split-bg .pane__inner,
.pane--split-bg .device {
  position: relative;
  z-index: 1;
}
.pane--split-bg .pane__number { z-index: 1; }

