/* ==========================================================================
   2B Space – feuille de style
   Bleu du logo (#0067B4), marine, blanc ; arc de la façade et disque du logo
   comme motif ; une seule police (Archivo, largeur variable).
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0B2A47;
  --ink-soft: #445C74;
  --blue: #0067B4;
  --blue-deep: #00528F;
  --blue-light: #7DB9EA;
  --sky: #EBF3FB;
  --sky-2: #D8E8F6;
  --line: #C8DBEC;
  --paper: #FFFFFF;
  --navy: #082440;
  --navy-2: #051A2F;
  --signal: #E8641E;           /* l'orange du mur et des chaises, en très petite dose */
  --error: #B42318;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --r-l: 28px;
  --r-m: 18px;
  --r-s: 10px;

  --wide: 116%;                /* largeur de police des titres */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }

h1, h2, h3 {
  margin: 0 0 .5em;
  font-stretch: var(--wide);
  line-height: 1.08;
  letter-spacing: -.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 1.3rem + 2.9vw, 3.55rem); font-weight: 760; }
h2 { font-size: clamp(1.8rem, 1.25rem + 1.9vw, 2.6rem); font-weight: 730; }
h3 { font-size: 1.2rem; font-weight: 660; line-height: 1.25; letter-spacing: 0; font-stretch: 106%; }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-s);
}
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(760px + 2 * var(--gutter)); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.5em;
  border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 640; font-stretch: 106%; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); color: #fff; }
.btn--ghost { color: var(--ink); border-color: var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--line { color: var(--blue); border-color: var(--blue); background: transparent; }
.btn--line:hover { background: var(--blue); color: #fff; }
.btn--small { min-height: 40px; padding: .5em 1.15em; font-size: .95rem; }
.btn--wide { min-width: 240px; }
.btn[disabled] { opacity: .65; cursor: progress; }

.link { font-weight: 600; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 44px; height: 44px; }
.brand__name { font-size: 1.2rem; font-weight: 780; font-stretch: 122%; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }

.nav__list { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav__list a:not(.btn) {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--ink-soft); text-decoration: none; font-weight: 540; font-size: .98rem;
}
.nav__list a:not(.btn):hover { color: var(--blue); background: var(--sky); }
.nav__cta-item { margin-left: 10px; }

.site-header__tools { display: flex; align-items: center; gap: 8px; }
.lang-switch {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; border: 1.5px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .85rem; font-stretch: 110%;
}
.lang-switch:hover { border-color: var(--blue); color: var(--blue); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  place-items: center; padding: 0;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: grid; }

@media (max-width: 1000px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__list a:not(.btn) { padding: 12px 8px; border-radius: var(--r-s); font-size: 1.05rem; }
  .nav__cta-item { margin: 12px 0 0; }
  .nav__cta-item .btn { width: 100%; min-height: 48px; }
  .site-header__tools { order: 3; }
}

/* ---------- Accueil (hero) ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  min-height: clamp(560px, calc(100vh - 72px), 780px);
}
.hero__text {
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(40px, 6vw, 88px);
  padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  padding-right: clamp(24px, 4vw, 64px);
}
.hero__title { max-width: 17ch; margin-bottom: .45em; }
.hero__lead { font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); color: var(--ink-soft); max-width: 46ch; margin-bottom: 1.6em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2em; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .97rem; font-weight: 560; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .icon { color: var(--blue); }

/* L'arc : la façade courbe de la Résidence Waltzing et le disque du logo */
.hero__media { position: relative; isolation: isolate; min-height: 320px; }
.hero__media::before,
.hero__img {
  clip-path: ellipse(100% 128% at 100% 50%);
}
.hero__media::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--blue);
  transform: translateX(-20px);
  animation: arc-in 1.1s var(--ease) both;
}
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 40% 50%;
  animation: photo-in 1.1s var(--ease) both;
}
@keyframes arc-in { from { transform: translateX(0); } to { transform: translateX(-20px); } }
@keyframes photo-in { from { opacity: 0; transform: scale(1.035); } to { opacity: 1; transform: none; } }

.status {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  padding: 7px 16px 7px 12px; margin-bottom: 1.4em;
  border-radius: 999px; background: var(--sky);
  font-weight: 640; font-size: .95rem; font-stretch: 106%; color: var(--ink);
}
.status__dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); }
.status--open .status__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--signal); opacity: 0;
  animation: pulse 2.4s ease-out infinite;
}
.status--full .status__dot { background: #8BA0B4; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__text { padding: 40px var(--gutter) 36px; }
  .hero__title { max-width: 18ch; }
  .hero__media { min-height: 0; aspect-ratio: 4 / 3; }
  .hero__media::before, .hero__img { clip-path: ellipse(150% 100% at 50% 100%); }
  .hero__media::before { transform: translateY(-14px); animation: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--compact { padding-block: clamp(48px, 6vw, 80px); }
.section--tint { background: var(--sky); }
.section--dark { background: var(--navy); color: #fff; }
.section__head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head p { font-size: 1.12rem; color: var(--ink-soft); margin: 0; }

/* ---------- Tarifs ---------- */
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.offer {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: clamp(24px, 3vw, 40px);
}
.offer__disc {
  width: 172px; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center; gap: 2px;
  background: var(--blue); color: #fff;
}
.offer--bureau .offer__disc { background: var(--ink); }
.offer__price { font-size: 2.55rem; font-weight: 790; font-stretch: 118%; line-height: 1; letter-spacing: -.02em; }
.offer__per { font-size: .82rem; font-weight: 520; opacity: .88; }
.offer__name { font-size: 1.45rem; font-stretch: var(--wide); font-weight: 720; margin-bottom: .35em; }
.offer__text { color: var(--ink-soft); }
.offer__ttc { font-size: .92rem; color: var(--ink-soft); margin: 1.2em 0 1.4em; }
.offers__note { margin: 28px 0 0; color: var(--ink-soft); }

.ticks { list-style: none; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--blue); margin-top: .15em; }

@media (max-width: 1080px) {
  .offers { grid-template-columns: 1fr; max-width: 720px; }
}
@media (max-width: 560px) {
  .offer { grid-template-columns: 1fr; gap: 20px; }
  .offer__disc { width: 140px; }
  .offer__price { font-size: 2.1rem; }
}

/* ---------- Services ---------- */
.services { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); }
.service {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.service__icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--blue); color: var(--blue);
}
.service__icon .icon { width: 22px; height: 22px; }
.service__title { margin: .55em 0 .3em; }
.service p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

@media (max-width: 960px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }

/* ---------- Plan ---------- */
.plan { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.plan__aside p { color: var(--ink-soft); font-size: 1.08rem; }
.tabs { display: grid; gap: 10px; margin-top: 28px; }
.tab {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  width: 100%; padding: 14px 20px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  font: inherit; font-weight: 680; font-stretch: 108%; text-align: left; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.tab span { font-weight: 480; font-size: .92rem; color: var(--ink-soft); font-stretch: 100%; }
.tab:hover { border-color: var(--blue); }
.tab[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.tab[aria-selected="true"] span { color: rgba(255, 255, 255, .85); }

.plan__figure {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l);
  padding: clamp(12px, 2vw, 24px);
}
.plan__zoom { display: block; cursor: zoom-in; }
.plan__figure img { width: 100%; max-height: 560px; object-fit: contain; }
#panel-n2 .plan__figure img { max-width: 520px; margin-inline: auto; }

.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin: 24px 0 0; }
.legend div { display: flex; gap: 12px; align-items: baseline; }
.legend dt {
  flex: none; padding: 2px 10px; border-radius: 999px; background: var(--sky-2);
  font-size: .82rem; font-weight: 680; font-stretch: 104%;
}
.legend dd { margin: 0; color: var(--ink-soft); font-size: .96rem; }

@media (max-width: 900px) {
  .plan { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: 1fr 1fr; }
  .tab { flex-direction: column; gap: 0; border-radius: var(--r-m); }
}
@media (max-width: 560px) { .legend { grid-template-columns: 1fr; } }

/* ---------- Galerie ---------- */
.gallery {
  list-style: none; display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 15.5vw, 228px);
  gap: 12px;
}
.gallery__item a { display: block; height: 100%; border-radius: var(--r-m); overflow: hidden; background: var(--sky); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item a:hover img { transform: scale(1.03); }
.gallery__item a:focus-visible { outline-offset: 4px; }

.gallery__item--openspace  { grid-column: 1 / 3; grid-row: 1 / 3; }
.gallery__item--bureaux    { grid-column: 3; grid-row: 1; }
.gallery__item--salon      { grid-column: 3; grid-row: 2; }
.gallery__item--local-it   { grid-column: 4; grid-row: 1 / 3; }
.gallery__item--reunion    { grid-column: 1 / 3; grid-row: 3 / 5; }
.gallery__item--cuisine    { grid-column: 3; grid-row: 3; }
.gallery__item--rangements { grid-column: 4; grid-row: 3; }
.gallery__item--facade     { grid-column: 3 / 5; grid-row: 4; }

@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; gap: 8px; }
  .gallery__item { grid-column: auto !important; grid-row: auto !important; }
  .gallery__item--openspace, .gallery__item--rangements, .gallery__item--facade { grid-column: 1 / -1 !important; }
  .gallery__item--local-it { grid-row: span 2 !important; }
}

/* ---------- Conditions ---------- */
.terms { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.5fr); gap: clamp(20px, 5vw, 72px); align-items: start; }
.terms h2 { margin: 0; }
.terms__list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; }
.terms__list li { position: relative; padding-left: 22px; }
.terms__list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--blue);
}
@media (max-width: 900px) {
  .terms, .terms__list { grid-template-columns: 1fr; }
}

/* ---------- Accès ---------- */
.access { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); gap: clamp(28px, 5vw, 64px); align-items: stretch; }
.access__address { font-size: 1.12rem; line-height: 1.5; margin-bottom: 1.1em; }
.access__info > p { color: var(--ink-soft); }
.access__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 1.4em 0 2em; }
.access__facade img { border-radius: var(--r-m); aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.access__map { min-height: 460px; }
.map {
  height: 100%; min-height: 460px; border-radius: var(--r-l); overflow: hidden;
  border: 1px solid var(--line); background: var(--sky);
}
.map .leaflet-tile-pane { filter: grayscale(.85) contrast(.96) brightness(1.04); }
.map-marker { border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 8px 20px rgba(11, 42, 71, .35); }
.map__fallback, .map__hint {
  margin: 0; padding: 16px; font-size: .92rem; color: var(--ink-soft);
}
.map__hint {
  position: absolute; left: 12px; bottom: 12px; z-index: 500;
  padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92);
  pointer-events: none; transition: opacity .3s;
}
.map.is-active .map__hint { opacity: 0; }
.leaflet-container { font: inherit; }
.leaflet-popup-content { margin: 14px 18px; font-size: .95rem; line-height: 1.45; }
.leaflet-popup-content strong { font-stretch: 112%; }

@media (max-width: 900px) {
  .access { grid-template-columns: 1fr; }
  .access__map, .map { min-height: 360px; }
  .access__facade { display: none; }
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact__intro > p { color: rgba(255, 255, 255, .82); font-size: 1.1rem; }
.contact__direct-label { margin-top: 2em; font-weight: 640; color: #fff !important; font-size: 1rem !important; }
.contact__direct { list-style: none; display: grid; gap: 14px; }
.contact__direct li { display: flex; align-items: center; gap: 14px; }
.contact__direct .icon {
  width: 40px; height: 40px; padding: 9px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .3); color: var(--blue-light);
}
.contact__direct a { color: #fff; font-weight: 600; font-size: 1.08rem; text-decoration: none; }
.contact__direct a:hover { text-decoration: underline; color: #fff; }
.contact__direct span { color: rgba(255, 255, 255, .82); }

.contact__panel {
  background: var(--paper); color: var(--ink);
  border-radius: var(--r-l); padding: clamp(22px, 3.5vw, 44px);
}

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

/* ---------- Formulaire ---------- */
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field legend {
  display: block; margin-bottom: 6px; padding: 0;
  font-weight: 640; font-size: .96rem;
}
.opt { font-weight: 420; color: var(--ink-soft); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="date"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1.5px solid #B7CDE2; border-radius: var(--r-s);
  background: #fff; color: var(--ink);
  font: inherit; font-size: 1rem; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230B2A47' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 103, 180, .22);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { margin: 6px 0 0; color: var(--error); font-size: .9rem; font-weight: 540; }
.field__hint { margin: 6px 0 0; color: var(--ink-soft); font-size: .88rem; }
.field ::placeholder { color: #8197AC; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 10px 14px; border-radius: 999px;
  border: 1.5px solid #B7CDE2; font-weight: 620; font-size: .97rem; line-height: 1.25;
  transition: background-color .15s, color .15s, border-color .15s;
}
.segmented input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 3px; }
.segmented label:hover span { border-color: var(--blue); }

.field--hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field > .check { display: flex; margin: 0; font-weight: 420; gap: 12px; align-items: flex-start; font-size: .94rem; color: var(--ink-soft); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }

.form__alert {
  padding: 12px 16px; border-radius: var(--r-s);
  background: #FEF3F2; border: 1px solid #FDA29B; color: #912018; font-weight: 540;
}
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.form__note { margin: 0; font-size: .86rem; color: var(--ink-soft); }

.form-success { text-align: center; padding: clamp(16px, 4vw, 40px) 8px; }
.form-success:focus { outline: none; }
.form-success__icon {
  display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 16px;
  border-radius: 50%; background: var(--blue); color: #fff;
}
.form-success__icon .icon { width: 30px; height: 30px; }
.form-success p { color: var(--ink-soft); max-width: 42ch; margin-inline: auto; }

@media (max-width: 620px) {
  .form__row, .segmented { grid-template-columns: 1fr; }
  .btn--wide { width: 100%; }
}

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy-2); color: rgba(255, 255, 255, .74); font-size: .94rem; padding-top: 56px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer strong { color: #fff; }
.site-footer__inner { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-footer__brand { display: flex; gap: 16px; align-items: flex-start; }
.site-footer__brand img { width: 56px; height: 56px; flex: none; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer__copy { margin: 0 auto; padding-block: 20px 28px; font-size: .85rem; color: rgba(255, 255, 255, .5); }
@media (max-width: 860px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ---------- Pages de texte ---------- */
.prose-page h1 { margin-top: .4em; }
.prose-page h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose-page ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose-page p, .prose-page li { max-width: 68ch; }

/* ---------- Visionneuse ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(4, 18, 33, .95); color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(4, 18, 33, .7); }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: 14px; padding: 64px 72px 72px; }
.lightbox__figure img { max-width: min(92vw, 1600px); max-height: 80vh; width: auto; height: auto; object-fit: contain; border-radius: 6px; background: #fff; }
.lightbox__figure figcaption { font-size: 1rem; color: rgba(255, 255, 255, .85); text-align: center; }
.lightbox__btn {
  position: fixed; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .2); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next, .lightbox.is-single .lightbox__count { display: none; }
@media (max-width: 620px) {
  .lightbox__figure { padding: 64px 12px 80px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; transform: none; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
