:root {
  color-scheme: light;
}

body {
  margin: 0;
  padding: 0;
  font:
    14px -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: #faf9f5;
  color: #141413;
}

img {
  max-width: 100%;
}

[hidden]:not([hidden="until-found" i]) {
  display: none !important;
}

/* ==========================================================================
   LES CONSTRUCTIONS BERNARD & ROY — feuille de style unique
   Palette : bleu profond · Montserrat / Inter
   ========================================================================== */

:root {
  --ground: #0a1234;
  --surface: #121c47;
  --surface-2: #19255c;
  --line: #253571;
  --line-soft: #212d6c;
  --ink: #e8edfb;
  --ink-2: #9daad2;
  --ink-3: #71809f;
  --accent: #6e8cff;
  --accent-2: #8fa6ff;
  --accent-soft: #1b2868;
  --deep: #080f30;
  --deep-2: #132160;
  --on-deep: #eaeffc;
  --on-deep-2: #96a6d6;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 28px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg:
    0 2px 6px rgba(0, 0, 0, 0.5), 0 30px 70px -30px rgba(0, 0, 0, 0.8);
  --maxw: 1240px;
  --pad: clamp(18px, 4vw, 56px);
  --f-display: "Montserrat", Arial, sans-serif;
  --f-serif: "Montserrat", Arial, sans-serif;
  --f-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Montserrat", Arial, sans-serif;
}

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

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  overflow-x: clip;
  overflow-wrap: break-word;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2.5px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

h1,
h2 {
  font-weight: 600;
  line-height: 1.04;
}

h1 {
  font-size: clamp(2.6rem, 5.8vw, 5rem);
  letter-spacing: -0.004em;
}

h2 {
  font-size: clamp(2rem, 3.9vw, 3.15rem);
  letter-spacing: -0.003em;
}

h3 {
  font-size: clamp(1.14rem, 1.8vw, 1.42rem);
  letter-spacing: 0.002em;
}

h4 {
  font-size: 1.02rem;
}

p {
  margin: 0;
}

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.wrap.narrow {
  max-width: 920px;
}

.sec {
  padding-block: clamp(60px, 8vw, 118px);
}

.sec.tight {
  padding-block: clamp(40px, 5vw, 72px);
}

.alt {
  background: linear-gradient(180deg, #0f1844 0%, #13215c 50%, #0f1844 100%);
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--ink-2);
  max-width: 62ch;
  line-height: 1.66;
}

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

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-weight: 500;
}

.eyebrow b {
  color: var(--accent);
  font-weight: 600;
}

.head-2col {
  display: grid;
  gap: clamp(18px, 3vw, 48px);
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 64px);
}

@media (min-width: 900px) {
  .head-2col {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
}

/* --- boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  background: linear-gradient(135deg, #3d62ee 0%, #2445c9 55%, #1e3fc4 100%);
  color: #fff;
  transition:
    transform 0.16s cubic-bezier(0.2, 0.7, 0.3, 1),
    background 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}

.btn:hover {
  background: linear-gradient(135deg, #5478f5 0%, #3d62ee 60%, #2e51e0 100%);
  transform: translateY(-1.5px);
  box-shadow: 0 8px 22px -10px var(--accent);
}

.btn:active {
  transform: translateY(0);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn.ghost:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
}

.btn.on-deep {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: none;
}

.btn.on-deep:hover {
  background: #fff;
  border-color: #fff;
  color: #101c57;
  box-shadow: none;
  transform: translateY(-1.5px);
}

.btn.lg {
  padding: 18px 32px;
  font-size: 0.84rem;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* --- barre de titre : marine en permanence, logo blanc --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(
    100deg,
    rgba(12, 20, 59, 0.97),
    rgba(24, 39, 110, 0.95) 58%,
    rgba(14, 24, 76, 0.97)
  );
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.topbar-in {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 64px;
  padding-block: 10px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}

.logo .mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.logo-img {
  display: none;
  height: 40px;
  width: auto;
  flex: none;
}

.logo-full {
  margin-bottom: 16px;
}

.logo-full img {
  height: 118px;
  width: auto;
  display: block;
}

.story-logo {
  display: block;
  width: min(210px, 70%);
  margin: 2px auto 14px;
}

.only-light {
  display: none;
}

.only-dark {
  display: block;
}

.logo .txt {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 0.84rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}

.logo .txt span {
  display: block;
  color: rgba(160, 178, 226, 0.85);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  font-family: var(--f-mono);
  text-transform: uppercase;
  margin-top: 2px;
}

nav.main {
  display: flex;
  gap: 2px;
  order: 3;
  flex: 1 0 100%;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

nav.main::-webkit-scrollbar {
  display: none;
}

nav.main a {
  font-size: 0.82rem;
  text-decoration: none;
  color: rgba(210, 221, 250, 0.82);
  padding: 9px 13px;
  position: relative;
  transition: color 0.16s;
  font-weight: 550;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

nav.main a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 1.5px;
  background: #8fa6ff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1);
}

nav.main a:hover {
  color: #fff;
}

nav.main a:hover::after {
  transform: scaleX(1);
}

nav.main a[aria-current="page"] {
  color: #fff;
  font-weight: 600;
}

nav.main a[aria-current="page"]::after {
  transform: scaleX(1);
}

.topbar-act {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

@media (min-width: 1080px) {
  .topbar-in {
    flex-wrap: nowrap;
    height: 70px;
    min-height: 0;
    padding-block: 0;
    gap: clamp(8px, 1.4vw, 20px);
  }

  nav.main {
    order: 0;
    flex: 0 1 auto;
    margin-left: auto;
    overflow: visible;
    padding-bottom: 0;
  }

  .topbar-act {
    margin-left: 14px;
  }
}

.iconbtn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  color: rgba(210, 221, 250, 0.85);
  cursor: pointer;
  transition: 0.16s;
}

.iconbtn:hover {
  color: #fff;
  border-color: #fff;
}

.iconbtn svg {
  width: 16px;
  height: 16px;
}

.langsw {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--r-sm);
  overflow: hidden;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 600;
}

.langsw button {
  background: transparent;
  border: 0;
  color: rgba(210, 221, 250, 0.7);
  padding: 7px 9px;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: 0.16s;
}

.langsw button[aria-pressed="true"] {
  background: #fff;
  color: #0e184c;
}

.portail-sq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-sm);
  padding: 7px 10px;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(150, 166, 214, 0.4) !important;
  text-decoration: none;
  transition: 0.16s;
}

.portail-sq:hover {
  color: rgba(210, 221, 250, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.3);
}

.tel-btn {
  display: none;
  white-space: nowrap;
}

@media (min-width: 700px) {
  .tel-btn {
    display: inline-flex;
  }
}

/* ==========================================================================
   OUVERTURE CINÉMATIQUE
   ========================================================================== */
.filmtrack {
  position: relative;
  height: 440svh;
}

.filmtrack.noscrub {
  height: auto;
}

.film {
  position: sticky;
  top: 70px;
  height: calc(100svh - 70px);
  min-height: 580px;
  background: #09113c;
  overflow: hidden;
  isolation: isolate;
}

@media (max-width: 1079px) {
  .film {
    top: 118px;
    height: calc(100svh - 118px);
    min-height: 500px;
  }
}

#film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
}

.film-photo {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  background: #09113c;
}

.film-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform, opacity;
}

.film-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(7, 14, 46, 0.86) 0%,
      rgba(7, 14, 46, 0.42) 34%,
      rgba(7, 14, 46, 0.1) 62%
    ),
    linear-gradient(
      to right,
      rgba(7, 14, 46, 0.62) 0%,
      rgba(7, 14, 46, 0.28) 38%,
      transparent 64%
    );
}

.film-photo-tag {
  position: absolute;
  top: clamp(18px, 3vh, 30px);
  left: var(--pad);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(7, 14, 46, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.4s,
    transform 0.4s;
}

.film-photo-tag i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38d07c;
  flex: none;
  box-shadow: 0 0 0 3px rgba(56, 208, 124, 0.25);
}

.film-photo.on .film-photo-tag {
  opacity: 1;
  transform: none;
}

.film-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to top,
      rgba(7, 14, 46, 0.88) 0%,
      rgba(7, 14, 46, 0.4) 30%,
      transparent 56%
    ),
    radial-gradient(
      125% 95% at 50% 42%,
      transparent 54%,
      rgba(7, 14, 46, 0.38) 100%
    );
}

.film-ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: #eaeffc;
}

.film-chapter {
  position: absolute;
  top: clamp(18px, 3vh, 30px);
  right: var(--pad);
  text-align: right;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(160, 180, 230, 0.75);
  transition: opacity 0.6s;
}

.film-chapter b {
  display: block;
  font-size: 1.5rem;
  font-family: var(--f-display);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.film-copy {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: clamp(84px, 11vh, 120px);
  max-width: min(900px, 90vw);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.7, 0.3, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.film-copy.on {
  opacity: 1;
  transform: none;
}

.film-copy .eyebrow {
  color: rgba(170, 190, 240, 0.9);
  margin-bottom: 14px;
}

.film-copy .eyebrow::after {
  background: rgba(255, 255, 255, 0.22);
}

.film-copy .eyebrow b {
  color: #9db6ff;
}

.film-copy h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6.4vw, 5.2rem);
  letter-spacing: -0.03em;
}

.film-copy h1 em {
  font-style: normal;
  display: block;
  color: rgba(178, 196, 246, 0.92);
  font-weight: 400;
}

.film-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  pointer-events: auto;
}

.film-caption {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: clamp(84px, 11vh, 120px);
  font-family: var(--f-mono);
  font-size: clamp(0.78rem, 1.5vw, 0.95rem);
  letter-spacing: 0.03em;
  color: rgba(200, 214, 255, 0.92);
  max-width: min(560px, 80vw);
  line-height: 1.6;
  transition: opacity 0.5s;
}

.film-strip {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: clamp(26px, 4.5vh, 42px);
  pointer-events: auto;
}

.film-bar {
  height: 2px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}

.film-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #3d62ee, #9db6ff);
}

.film-steps {
  display: flex;
  gap: 2px;
}

.film-steps button {
  flex: 1;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 3px 2px;
  text-align: left;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(150, 170, 220, 0.5);
  transition: color 0.25s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.film-steps button[data-on="1"] {
  color: #fff;
}

.film-steps button:hover {
  color: #c8d6ff;
}

@media (max-width: 640px) {
  .film-steps button {
    font-size: 0.5rem;
    letter-spacing: 0.02em;
  }

  .film-chapter {
    top: 14px;
  }

  .film-chapter b {
    font-size: 1.1rem;
  }
}

.scrollcue {
  position: absolute;
  left: 50%;
  bottom: clamp(74px, 10vh, 104px);
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(160, 180, 230, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  transition: opacity 0.5s;
}

.scrollcue svg {
  width: 14px;
  height: 14px;
  animation: bob 1.9s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scrollcue svg {
    animation: none;
  }
}

@media (max-width: 900px) {
  .scrollcue {
    display: none;
  }
}

/* ==========================================================================
   BANNIÈRE DES PAGES INTÉRIEURES
   ========================================================================== */
.pagehead {
  background: var(--deep);
  color: var(--on-deep);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: clamp(52px, 8vw, 110px);
  padding-bottom: clamp(44px, 6.5vw, 88px);
}

.pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      120% 80% at 78% 8%,
      rgba(61, 98, 238, 0.42),
      transparent 62%
    ),
    radial-gradient(90% 70% at 6% 96%, rgba(30, 63, 196, 0.34), transparent 60%);
}

.pagehead::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(80% 70% at 50% 10%, #000, transparent 78%);
}

.pagehead .wm {
  position: absolute;
  right: -30px;
  bottom: -46px;
  width: min(360px, 42vw);
  opacity: 0.08;
  pointer-events: none;
}

.pagehead h1 {
  color: #fff;
}

.pagehead .eyebrow {
  color: var(--on-deep-2);
}

.pagehead .eyebrow::after {
  background: rgba(255, 255, 255, 0.22);
}

.pagehead .eyebrow b {
  color: #9db6ff;
}

.pagehead .lede {
  color: var(--on-deep-2);
  margin-top: 18px;
}

.crumbs {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(150, 166, 214, 0.75);
  margin-bottom: 18px;
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  color: #fff;
}

/* ==========================================================================
   BLOCS
   ========================================================================== */
.grid {
  display: grid;
  gap: clamp(12px, 1.6vw, 20px);
}

.g2 {
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}

.g3 {
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}

.g4 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.card {
  background: linear-gradient(165deg, #152254 0%, #111c48 60%, #101842 100%);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: clamp(22px, 2.6vw, 34px);
  transition:
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

.card:hover {
  border-color: var(--line);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card .num {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  color: var(--accent);
  letter-spacing: 0.13em;
  font-weight: 600;
}

.card h3 {
  margin: 12px 0 9px;
}

.card p {
  color: var(--ink-2);
  font-size: 0.945rem;
}

.card .ico {
  width: 34px;
  height: 34px;
  color: var(--accent);
  margin-bottom: 14px;
}

.card .ico svg {
  width: 100%;
  height: 100%;
}

.card ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card ul li {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--ink-3);
  padding-left: 15px;
  position: relative;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 1.5px;
  background: var(--accent);
}

a.card {
  text-decoration: none;
  display: block;
}

/* --- emplacements photo --- */
.shot {
  margin: 0;
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 4/3;
  isolation: isolate;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

.shot::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 16px;
  white-space: pre-line;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1.5px dashed var(--line);
  border-radius: var(--r-md);
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 9px,
    var(--line-soft) 9px,
    var(--line-soft) 10px
  );
}

.shot.empty img {
  display: none;
}

/* --- avant / après --- */
.ba {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 4/3;
  user-select: none;
  touch-action: pan-y;
  border: 1px solid var(--line-soft);
  cursor: ew-resize;
}

@media (min-width: 760px) {
  .ba {
    aspect-ratio: 16/10;
  }
}

.ba .shot {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  border-radius: 0;
}

.ba .before::before {
  place-content: center start;
  padding-left: 7%;
  text-align: left;
}

.ba .after::before {
  place-content: center end;
  padding-right: 7%;
  text-align: right;
}

.ba .after {
  clip-path: inset(0 0 0 var(--split, 50%));
}

.ba .bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  width: 2px;
  background: #fff;
  z-index: 5;
  box-shadow: 0 0 0 1px rgba(16, 28, 87, 0.3);
  cursor: ew-resize;
}

.ba .bar::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 16px rgba(16, 28, 87, 0.45);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3FC4' stroke-width='2.2' stroke-linecap='round'><path d='M9 6 4 12l5 6M15 6l5 6-5 6'/></svg>");
  background-size: 20px;
  background-position: center;
  background-repeat: no-repeat;
}

.ba .tag {
  position: absolute;
  bottom: 12px;
  z-index: 6;
  font-family: var(--f-mono);
  font-size: 0.63rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  background: rgba(16, 28, 87, 0.8);
  color: #fff;
  padding: 5px 10px;
  border-radius: 99px;
  backdrop-filter: blur(6px);
}

.ba .tag.l {
  left: 12px;
}

.ba .tag.r {
  right: 12px;
}

.ba-cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.ba-cap b {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.06rem;
}

.ba-cap span {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* --- projets --- */
.proj {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: 0.2s;
  text-decoration: none;
  display: block;
}

.proj:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line);
}

.proj .meta {
  padding: 16px 18px 18px;
}

.proj .meta h3 {
  margin-bottom: 5px;
}

.proj .meta .d {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* --- avis --- */
.rev {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-height: 190px;
}

.stars {
  display: flex;
  gap: 2px;
  color: #e8a317;
}

.stars svg {
  width: 15px;
  height: 15px;
}

.rev q {
  quotes: none;
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.58;
  flex: 1;
}

.rev .who {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--ink-2);
}

.rev .av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.82rem;
  flex: none;
}

.rating {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line-soft);
}

.rating .score {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink-3);
}

/* --- FAQ --- */
.faq {
  border-top: 1px solid var(--line-soft);
}

.faq details {
  border-bottom: 1px solid var(--line-soft);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 19px 40px 19px 0;
  position: relative;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.03rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.22s;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq .a {
  padding: 0 0 20px;
  color: var(--ink-2);
  max-width: 70ch;
  font-size: 0.96rem;
}

/* --- à propos --- */
.story {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

@media (min-width: 940px) {
  .story {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
}

.story p + p {
  margin-top: 1.05em;
}

.story p {
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.68;
}

.story .first {
  color: var(--ink);
  font-size: clamp(1.08rem, 1.6vw, 1.24rem);
  font-weight: 500;
}

.founders {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.founder {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 15px 18px;
}

.founder .ini {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1rem;
}

.founder b {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
}

.founder span {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.tline {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  border-left: 2px solid var(--line);
  display: flex;
  flex-direction: column;
}

.tline li {
  position: relative;
  padding: 0 0 20px 24px;
}

.tline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--ground);
}

.tline b {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: block;
  margin-bottom: 3px;
}

.tline span {
  color: var(--ink-2);
  font-size: 0.96rem;
}

.mini-stats {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 6px;
}

.mini-stats > div {
  background: var(--surface);
  padding: 16px 14px;
}

.mini-stats b {
  display: block;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.mini-stats span {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 8px;
  line-height: 1.4;
}

.vals {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.vals > div {
  background: var(--surface);
  padding: 22px 20px;
}

.vals h4 {
  font-family: var(--f-display);
  font-weight: 700;
  margin: 0 0 7px;
}

.vals p {
  color: var(--ink-2);
  font-size: 0.92rem;
}

.vals .ico {
  width: 26px;
  height: 26px;
  color: var(--accent);
  margin-bottom: 12px;
}

/* --- contact --- */
.quick {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.quick a,
.quick div {
  background: var(--surface);
  padding: 20px;
  text-decoration: none;
  display: block;
  transition: background 0.18s;
}

.quick a:hover {
  background: var(--accent-soft);
}

.quick .l {
  font-family: var(--f-mono);
  font-size: 0.63rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 7px;
}

.quick .v {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--ink);
  line-height: 1.32;
}

.quick .v small {
  display: block;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 0.86rem;
  color: var(--ink-2);
  margin-top: 3px;
}

/* --- formulaire --- */
.form {
  display: grid;
  gap: 14px;
}

.form .two {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .form .two {
    grid-template-columns: 1fr 1fr;
  }
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 0.645rem;
  letter-spacing: 0.115em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.form input,
.form select,
.form textarea {
  font-family: var(--f-body);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 13px;
  width: 100%;
  transition:
    border-color 0.16s,
    box-shadow 0.16s;
}

.form textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.55;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form .note {
  font-size: 0.8rem;
  color: var(--ink-3);
  line-height: 1.5;
}

/* --- bandeau à remplir --- */
.todo {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--r-md);
  padding: 11px 15px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  line-height: 1.6;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

/* --- bandeau d'appel --- */
.cta-band {
  background:
    radial-gradient(
      110% 130% at 88% 0%,
      rgba(61, 98, 238, 0.5),
      transparent 55%
    ),
    linear-gradient(135deg, #1c2d80 0%, #101c57 62%, #0d1642 100%);
  color: var(--on-deep);
  border-radius: 22px;
  padding: clamp(36px, 4.5vw, 56px) clamp(28px, 4vw, 48px);
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.cta-band h2 {
  color: #fff;
  max-width: 26ch;
  margin-inline: auto;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

.cta-band p {
  color: var(--on-deep-2);
  margin: 14px auto 0;
  max-width: 48ch;
  font-size: 1.04rem;
}

.cta-band > div {
  justify-content: center;
}

.cta-band .acts {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}

.cta-band .btn.lg {
  font-size: 1.08rem;
  padding: 18px 36px;
}

/* section qui ne contient que le bandeau : coller au contenu au-dessus */
.sec.tight:has(> .wrap > .cta-band:first-child),
.sec.tight:has(> .wrap.narrow > .cta-band:first-child),
.sec.tight:has(> div > .cta-band:first-child) {
  padding-top: 0;
  padding-bottom: clamp(40px, 5vw, 72px);
}

#svFoot {
  padding-top: 0;
}

#svFoot .cta-band {
  margin-top: 0 !important;
}

.plan-help {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto;
  color: var(--ink-3);
  font-size: 0.98rem;
}

.plan-help a {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(91, 141, 239, 0.35);
}

.plan-help a:hover {
  border-bottom-color: var(--accent-2);
}

/* ==========================================================================
   PLANIFICATEUR 3D
   ========================================================================== */
.svc-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: clamp(16px, 2.4vw, 24px);
}

.svc-tab {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: var(--r-md);
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.92rem;
  transition: 0.18s;
  line-height: 1;
}

.svc-tab svg {
  width: 17px;
  height: 17px;
  color: var(--ink-3);
  transition: 0.18s;
}

.svc-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.svc-tab:hover svg {
  color: var(--accent);
}

.svc-tab[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.svc-tab[aria-pressed="true"] svg {
  color: #fff;
}

.planner {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 1000px) {
  .planner {
    grid-template-columns: minmax(0, 1fr) 366px;
  }
}

.stage {
  position: relative;
  background: linear-gradient(178deg, #162872, #0a123e);
  min-height: 390px;
  aspect-ratio: 16/11;
}

@media (min-width: 1000px) {
  .stage {
    aspect-ratio: auto;
    min-height: 640px;
  }
}

#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

#scene:active {
  cursor: grabbing;
}

.stage-hud {
  position: absolute;
  left: 14px;
  top: 13px;
  right: 56px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  pointer-events: none;
}

.chip {
  font-family: var(--f-mono);
  font-size: 0.655rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(9, 17, 57, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #b9c9f8;
  padding: 5px 9px;
  border-radius: 99px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.stage-tools {
  position: absolute;
  right: 13px;
  top: 13px;
  display: flex;
  gap: 6px;
}

.tool {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  cursor: pointer;
  background: rgba(9, 17, 57, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.17);
  color: #b9c9f8;
  backdrop-filter: blur(8px);
  transition: 0.15s;
}

.tool:hover {
  background: rgba(61, 98, 238, 0.65);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.tool svg {
  width: 15px;
  height: 15px;
}

.stage-hint {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--f-mono);
  font-size: 0.63rem;
  color: rgba(185, 201, 248, 0.6);
  letter-spacing: 0.05em;
  pointer-events: none;
}

.panel {
  background: var(--deep-2);
  padding: 20px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 17px;
}

@media (min-width: 1000px) {
  .panel {
    max-height: 640px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
  }
}

.panel::-webkit-scrollbar {
  width: 7px;
}

.panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.panel h3 {
  color: #fff;
  font-size: 1.02rem;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.panel-head .sub {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-deep-2);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field > label {
  font-family: var(--f-mono);
  font-size: 0.645rem;
  letter-spacing: 0.115em;
  text-transform: uppercase;
  color: var(--on-deep-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.field > label output {
  color: #fff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.opt {
  font-size: 0.8rem;
  padding: 8px 11px;
  border-radius: var(--r-sm);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd7f7;
  transition: 0.15s;
  font-family: var(--f-body);
  line-height: 1.2;
}

.opt:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.3);
}

.opt[aria-pressed="true"] {
  background: var(--accent-2);
  border-color: #8fa6ff;
  color: #fff;
  font-weight: 600;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sw {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.18);
  padding: 0;
  position: relative;
  transition: 0.15s;
}

.sw:hover {
  transform: translateY(-2px);
}

.sw[aria-pressed="true"] {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(143, 166, 255, 0.6);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
  margin: 6px 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--accent-2);
  cursor: grab;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

input[type="range"]::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--accent-2);
  cursor: grab;
}

.est {
  border-top: 0;
  margin: auto -20px 0;
  padding: 16px 20px 20px;
  background: linear-gradient(180deg, #1b2b7a 0%, #142265 55%, #132160 100%);
  box-shadow:
    0 -16px 30px -10px rgba(5, 10, 37, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@media (min-width: 1000px) {
  .est {
    position: sticky;
    bottom: 0;
  }
}

.est .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--on-deep-2);
  padding: 3px 0;
}

.est .row b {
  color: #fff;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.est .tot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 9px;
  padding-top: 11px;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
}

.est .tot span {
  font-family: var(--f-mono);
  font-size: 0.645rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--on-deep-2);
}

.est .tot b {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.42rem;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.est small {
  display: block;
  color: var(--on-deep-2);
  font-size: 0.7rem;
  line-height: 1.45;
  margin-top: 9px;
}

.panel .btn {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}

/* --- instagram --- */
.ig {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.ig .shot {
  aspect-ratio: 1;
}

/* ==========================================================================
   PIED DE PAGE
   ========================================================================== */
footer {
  background: linear-gradient(170deg, #132160 0%, #0d1642 55%, #080f30 100%);
  color: var(--on-deep-2);
  padding-block: clamp(46px, 6vw, 72px) 26px;
}

footer h4 {
  font-family: var(--f-mono);
  font-size: 0.645rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 14px;
  font-weight: 600;
}

footer a {
  color: var(--on-deep-2);
  text-decoration: none;
  transition: color 0.15s;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer .cols {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.9rem;
}

footer .fine {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: rgba(150, 166, 214, 0.8);
}

/* --- explorateur de services (page Services) --- */
.sx {
  display: grid;
  gap: clamp(16px, 2.4vw, 30px);
  align-items: start;
}

@media (min-width: 980px) {
  .sx {
    grid-template-columns: 300px minmax(0, 1fr);
  }
}

.sx-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.sx-nav::-webkit-scrollbar {
  display: none;
}

@media (min-width: 980px) {
  .sx-nav {
    position: sticky;
    top: 86px;
    flex-direction: column;
    overflow: visible;
    padding-bottom: 0;
  }
}

.sx-nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  color: var(--ink-2);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.18s;
  white-space: nowrap;
  line-height: 1.2;
}

@media (min-width: 980px) {
  .sx-nav button {
    white-space: normal;
  }
}

.sx-nav button svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--ink-3);
  transition: 0.18s;
}

.sx-nav button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.sx-nav button:hover svg {
  color: var(--accent);
}

.sx-nav button[aria-selected="true"] {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(16, 28, 87, 0.5);
}

.sx-nav button[aria-selected="true"] svg {
  color: #9db6ff;
}

.sx-panel {
  display: none;
  background: linear-gradient(160deg, #152254 0%, #111c48 55%, #101842 100%);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  padding: clamp(24px, 3.4vw, 46px);
}

.sx-panel.on {
  display: block;
  animation: sxin 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}

@keyframes sxin {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sx-panel.on {
    animation: none;
  }
}

.sx-panel h2 {
  margin-bottom: 14px;
}

.sx-panel .lede {
  margin-bottom: 8px;
}

.sx-cols {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  margin-top: 22px;
}

@media (min-width: 760px) {
  .sx-cols {
    grid-template-columns: 1fr 1fr;
  }
}

.sx-box {
  background: var(--ground);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 20px;
}

.sx-box h4 {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 12px;
}

.sx-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sx-box li {
  font-size: 0.92rem;
  color: var(--ink-2);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.sx-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 1.5px;
  background: var(--accent);
}

.sx-box ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: sx;
}

.sx-box ol li {
  padding-left: 30px;
  counter-increment: sx;
}

.sx-box ol li::before {
  content: counter(sx, decimal-leading-zero);
  width: auto;
  height: auto;
  top: 0;
  background: none;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.sx-note {
  margin-top: 22px;
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 18px;
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.6;
}

.sx-note b {
  color: var(--ink);
  font-weight: 600;
}

.sx-more {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
}

.sx-more .lbl {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.sx-more .tlink {
  margin-top: 0;
}

.sx-cta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* --- avis façon Google --- */
.gbadge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 0.76rem;
  color: var(--ink-3);
  font-weight: 500;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}

.gG {
  width: 17px;
  height: 17px;
  flex: none;
}

/* --- liens texte fléchés --- */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.tlink::after {
  content: "→";
  transition: transform 0.18s;
}

.tlink:hover::after {
  transform: translateX(4px);
}

/* --- navigation précédent / suivant --- */
.pager {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
  grid-template-columns: 1fr 1fr;
}

.pager a {
  background: var(--ground);
  padding: clamp(26px, 4vw, 44px) var(--pad);
  text-decoration: none;
  display: block;
  transition: background 0.2s;
}

.pager a:hover {
  background: var(--surface);
}

.pager .lab {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
  display: block;
}

.pager .ttl {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  color: var(--ink);
  letter-spacing: -0.01em;
}

.pager .next {
  text-align: right;
}

.pager a:hover .ttl {
  color: var(--accent);
}

/* --- révélation au défilement --- */
.rise {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.rise.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .rise {
    opacity: 1;
    transform: none;
  }
}

/* --- article --- */
.artwrap {
  max-width: 760px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.prose {
  padding-bottom: clamp(40px, 6vw, 72px);
  font-size: 1.055rem;
  line-height: 1.72;
  color: var(--ink);
}

.prose > * + * {
  margin-top: 1.15em;
}

.prose h2 {
  font-size: clamp(1.32rem, 2.4vw, 1.72rem);
  margin-top: 2em;
  letter-spacing: -0.014em;
}

.prose ul {
  padding-left: 1.15em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.prose li::marker {
  color: var(--accent);
}

.prose strong {
  font-weight: 600;
}

.pull {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  font-family: var(--f-display);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.42;
  color: var(--ink);
}

.artmeta {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-deep-2);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* -- chips de finition (fin du film 3D) ----------------------------------- */
.finishes {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
  pointer-events: auto;
}

.fin-lab {
  font-family: var(--f-mono, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(210, 222, 255, 0.75);
  margin-right: 4px;
  width: 100%;
}

.finishes button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(13, 22, 64, 0.42);
  color: #eaf0ff;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  backdrop-filter: blur(6px);
  transition:
    border-color 0.2s,
    transform 0.2s,
    background 0.2s;
}

.finishes button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.5);
}

.finishes button.on {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.finishes button i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  flex: none;
}

/* -- références et maillage en bas d'article ------------------------------ */
.refbox {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(20px, 3vw, 34px);
  margin-bottom: 26px;
  box-shadow: var(--shadow);
}

.refbox h3 {
  margin: 0 0 12px;
  font-size: 1.02rem;
}

.refbox h3 + .reflinks + h3 {
  margin-top: 22px;
}

.reflinks,
.readnext {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.reflinks li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
}

.reflinks a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.reflinks a:hover {
  text-decoration: underline;
}

.reflinks span {
  color: var(--ink-3);
  font-size: 0.86rem;
}

.readnext a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.readnext a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* -- bascule pieds / mètres du planificateur ------------------------------ */
.unitsw {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  overflow: hidden;
  margin-right: 6px;
}

.unitsw button {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 8px 11px;
  border: 0;
  cursor: pointer;
  background: rgba(13, 22, 64, 0.5);
  color: rgba(220, 230, 255, 0.8);
  transition:
    background 0.15s,
    color 0.15s;
}

.unitsw button[aria-pressed="true"] {
  background: #fff;
  color: #101c57;
}

/* -- couvertures et cartes du blog ---------------------------------------- */
.artcover {
  margin: 0;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.artcover img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  margin-top: clamp(-70px, -5vw, -34px);
  position: relative;
}

.bloggrid {
  display: grid;
  gap: clamp(18px, 2.6vw, 30px);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.bcard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(165deg, #152254 0%, #111c48 60%, #101842 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s cubic-bezier(0.2, 0.7, 0.3, 1),
    box-shadow 0.2s,
    border-color 0.2s;
}

.bcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.bimg {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--deep);
}

.bimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.bcard:hover .bimg img {
  transform: scale(1.05);
}

.bmeta {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 4px 18px 0;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.bmeta b {
  color: var(--accent);
  font-weight: 600;
}

.bcard strong {
  padding: 0 18px;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.bdesc {
  padding: 0 18px;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bcard .tlink {
  margin: 2px 18px 18px;
}

/* -- prise de rendez-vous -------------------------------------------------- */
.rvsteps {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  flex-wrap: wrap;
}

.rvsteps li {
  flex: 1;
  min-width: 130px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-3);
  font-size: 0.82rem;
  font-weight: 600;
}

.rvsteps li b {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: var(--f-mono);
  font-size: 0.75rem;
}

.rvsteps li.on {
  border-color: var(--accent);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.rvsteps li.on b {
  background: var(--accent);
  color: #fff;
}

.rvsteps li.done {
  color: var(--ink-2);
}

.rvsteps li.done b {
  background: #1f9d61;
  color: #fff;
}

.rvcard {
  background: linear-gradient(160deg, #152254 0%, #111c48 55%, #101842 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(22px, 3.4vw, 40px);
}

.rvstep {
  display: none;
}

.rvstep.on {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: rvin 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}

@keyframes rvin {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.rvh {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
}

.rvnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  gap: 10px;
  flex-wrap: wrap;
}

.rverr {
  color: #c0392b;
  font-size: 0.86rem;
  font-weight: 600;
}

.rvhint {
  color: var(--ink-3);
  font-size: 0.85rem;
}

.rvmap iframe-x {
  width: 100%;
  height: min(330px, 44vw);
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface-2);
}

/* calendrier */
.cal {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
  background: var(--ground);
}

.calhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.calhead b {
  font-family: var(--f-display);
  font-size: 1.02rem;
}

.calhead .tool {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-size: 1rem;
  color: var(--ink);
}

.calhead .tool:disabled {
  opacity: 0.35;
  cursor: default;
}

.caldays,
.calgrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.caldays span {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding: 4px 0;
}

.calgrid button,
.calgrid span,
.calgrid i {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
}

.calgrid span {
  color: var(--ink-3);
  opacity: 0.45;
}

.calgrid button {
  background: var(--surface);
  border-color: var(--line);
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
  transition:
    transform 0.12s,
    border-color 0.12s,
    background 0.12s;
}

.calgrid button:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.calgrid button.sel {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.slots {
  margin-top: 4px;
}

.slotlab {
  font-size: 0.88rem;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.slotlist {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.slot {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.12s;
}

.slot:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.slot.sel {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* récapitulatif + succès */
.recap {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.recap > div {
  display: grid;
  grid-template-columns: minmax(110px, 180px) 1fr;
  gap: 10px;
  padding: 11px 16px;
  background: var(--ground);
}

.recap > div:nth-child(even) {
  background: var(--surface);
}

.recap dt {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  align-self: center;
}

.recap dd {
  margin: 0;
  font-weight: 600;
}

.rvdone {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  padding: 22px 0;
}

.rvdone svg {
  width: 74px;
  height: 74px;
  color: #1f9d61;
}

/* -- étapes du processus (accueil) ------------------------------------------ */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(12px, 1.6vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  counter-reset: none;
}

.steps li {
  position: relative;
  background: linear-gradient(165deg, #152254 0%, #111c48 60%, #101842 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 32px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    transform 0.2s cubic-bezier(0.2, 0.7, 0.3, 1),
    border-color 0.2s;
}

.steps li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.steps li:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.steps .n {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 14px;
}

.steps h3 {
  color: #fff;
  margin-bottom: 10px;
  font-size: clamp(1.12rem, 1.6vw, 1.3rem);
}

.steps p {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* -- « Comment ça se passe » : version vivante ---------------------------- */
.proc-head {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto clamp(30px, 4vw, 48px);
}

.proc-head .lede {
  margin: 14px auto 0;
}

.steps.flow {
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.steps.flow li {
  --stepc: var(--accent-2);
  padding-top: clamp(30px, 3.4vw, 42px);
  background:
    radial-gradient(
      120% 90% at 12% 0%,
      color-mix(in srgb, var(--stepc) 20%, transparent),
      transparent 60%
    ),
    linear-gradient(165deg, #152254 0%, #111c48 60%, #101842 100%);
}

.steps.flow li::after {
  background: linear-gradient(
    90deg,
    var(--stepc),
    color-mix(in srgb, var(--stepc) 35%, transparent)
  );
  height: 4px;
}

.steps.flow li::before {
  content: "";
  position: absolute;
  right: clamp(16px, 2vw, 26px);
  top: clamp(14px, 2vw, 22px);
  font-family: var(--f-cond);
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 0.8;
  color: color-mix(in srgb, var(--stepc) 22%, transparent);
  pointer-events: none;
}

.steps.flow li:nth-child(1)::before {
  content: "1";
}

.steps.flow li:nth-child(2)::before {
  content: "2";
}

.steps.flow li:nth-child(3)::before {
  content: "3";
}

.steps.flow li:hover {
  border-color: var(--stepc);
}

.steps.flow .ico {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  margin-bottom: 18px;
  color: #fff;
  background: linear-gradient(
    150deg,
    var(--stepc),
    color-mix(in srgb, var(--stepc) 55%, #0d1642)
  );
  box-shadow:
    0 8px 22px -10px var(--stepc),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.steps.flow .ico svg {
  width: 27px;
  height: 27px;
}

.steps.flow .n {
  color: var(--stepc);
  opacity: 0.95;
}

.proc-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: clamp(30px, 3.6vw, 44px);
}

.proc-note {
  font-size: 0.9rem;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}

@supports not (color: color-mix(in srgb, #000, #fff)) {
  .steps.flow li {
    background: linear-gradient(165deg, #152254 0%, #111c48 60%, #101842 100%);
  }

  .steps.flow li::before {
    color: rgba(91, 141, 239, 0.26);
  }

  .steps.flow .ico {
    background: linear-gradient(150deg, var(--accent-2), #0d1642);
  }
}

/* -- envoyer mon modèle 3D (planificateur.html#envoyer) -------------------- */
.chip-load {
  background: rgba(31, 157, 97, 0.22);
  border-color: rgba(31, 157, 97, 0.5);
  color: #8fe3b4;
}

body.md-open #contenu,
body.md-open #planificateur,
body.md-open #ctaPlan {
  display: none;
}

.md-page {
  padding-top: clamp(28px, 4vw, 52px);
  padding-bottom: clamp(40px, 5vw, 72px);
}

.md-back {
  background: transparent;
  border: 0;
  color: var(--accent-2);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 6px 0;
  margin-bottom: 18px;
}

.md-back:hover {
  color: #fff;
}

.md-head {
  max-width: 64ch;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.md-head h1 {
  color: #fff;
  margin-bottom: 14px;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
}

.md-grid {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 960px) {
  .md-grid {
    grid-template-columns: minmax(300px, 5fr) minmax(360px, 7fr);
  }
}

.md-model {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.md-shot {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #1a2c7b, #09113c);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3/2;
}

.md-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.md-sum {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.md-sum h3 {
  font-size: 1.15rem;
  margin: 0;
}

.md-sum .recap > div {
  padding: 9px 14px;
}

.md-tot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
  margin-top: 2px;
}

.md-tot span {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.md-tot b {
  font-family: var(--f-display);
  font-size: 1.5rem;
  color: #fff;
}

.md-sum small {
  color: var(--ink-3);
  font-size: 0.78rem;
  line-height: 1.5;
}

.md-form .rvsteps li {
  min-width: 110px;
}

/* gestion */
.admgrid {
  display: grid;
  gap: 18px;
  margin-top: 26px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.admcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admcard h3 {
  font-size: 0.98rem;
}

.admday {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 8px;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.admday input[type="time"] {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 0.8rem;
}

.admchk {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
}

.admrow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.admrow input {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 0.82rem;
}

.admlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
  max-height: 220px;
  overflow: auto;
}

.admlist button {
  border: 0;
  background: var(--surface-2);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  cursor: pointer;
  color: var(--ink-2);
}

.admacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admacts .btn {
  justify-content: center;
}

/* -- défilement premium : révélations avec flou + parallaxe ---------------- */
@media (prefers-reduced-motion: no-preference) {
  .rise {
    opacity: 0;
    transform: translateY(26px) scale(0.99);
    filter: blur(3px);
    transition:
      opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1),
      transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1),
      filter 0.7s;
  }

  .rise.in {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .grid.rise > * {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1),
      transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
  }

  .grid.rise.in > * {
    opacity: 1;
    transform: none;
  }

  .grid.rise.in > *:nth-child(2) {
    transition-delay: 0.09s;
  }

  .grid.rise.in > *:nth-child(3) {
    transition-delay: 0.18s;
  }

  .grid.rise.in > *:nth-child(4) {
    transition-delay: 0.27s;
  }

  .bloggrid .bcard:nth-child(3n + 2) {
    transition-delay: 0.08s;
  }

  .bloggrid .bcard:nth-child(3n) {
    transition-delay: 0.16s;
  }

  .plx {
    will-change: transform;
  }
}

/* -- bandeau à défilement constant ----------------------------------------- */
.marquee {
  overflow: hidden;
  background: var(--deep);
  border-block: 1px solid rgba(255, 255, 255, 0.07);
  padding-block: 16px;
}

.mq {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  white-space: nowrap;
  will-change: transform;
  animation: mqslide 30s linear infinite;
  padding-right: 34px;
}

.marquee.rev .mq {
  animation-direction: reverse;
}

.mq span {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-deep);
}

.mq span:nth-child(4n + 1) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(210, 222, 255, 0.65);
}

.mq i {
  color: #8fa6ff;
  font-style: normal;
  font-size: 0.9rem;
}

@keyframes mqslide {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mq {
    animation: none;
  }
}

.marquee:hover .mq {
  animation-play-state: paused;
}

/* -- accordéon « Pourquoi nous » -------------------------------------------- */
.acc {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.acc-item {
  border-bottom: 1px solid var(--line-soft);
}

.acc-item:last-child {
  border-bottom: 0;
}

.acc-btn {
  display: grid;
  grid-template-columns: auto 1fr auto 22px;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 20px clamp(16px, 2.6vw, 28px);
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  font: inherit;
  transition: background 0.18s;
}

.acc-btn:hover {
  background: var(--ground);
}

.acc-btn b {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
}

.acc-btn > span {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(0.98rem, 1.6vw, 1.15rem);
}

.acc-btn em {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  white-space: nowrap;
}

.acc-btn i {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
}

.acc-btn i::before,
.acc-btn i::after {
  content: "";
  position: absolute;
  inset: auto;
  left: 2px;
  right: 2px;
  top: 8px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.acc-btn i::after {
  transform: rotate(90deg);
}

.acc-item.open .acc-btn i::after {
  transform: rotate(0);
}

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.acc-item.open .acc-panel {
  grid-template-rows: 1fr;
}

.acc-panel > div {
  overflow: hidden;
  padding: 0 clamp(16px, 2.6vw, 28px);
}

.acc-item.open .acc-panel > div {
  padding-bottom: 22px;
}

.acc-panel p {
  color: var(--ink-2);
  line-height: 1.66;
  max-width: 70ch;
}

.acc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 6px;
}

.acc-chips span {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--ground);
  color: var(--ink-2);
}

.acc-panel .tlink {
  margin-top: 10px;
  display: inline-flex;
}

/* -- cartes services de l'accueil + photo histoire + images services ------- */
.grid.g4 {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.scard {
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: linear-gradient(165deg, #152254 0%, #111c48 60%, #101842 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s cubic-bezier(0.2, 0.7, 0.3, 1),
    box-shadow 0.2s,
    border-color 0.2s;
}

.scard:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.scard .simg {
  display: block;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--deep);
}

.scard .simg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.scard:hover .simg img {
  transform: scale(1.06);
}

.scard h3 {
  padding: 4px 16px 0;
}

.scard p {
  padding: 0 16px;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.5;
  min-height: 2.9em;
}

.scard .tlink {
  margin: 2px 16px 16px;
}

.story-photo {
  margin: 0 0 18px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.story-photo img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.sx-img {
  margin: 14px 0 4px;
  border-radius: var(--r-md);
  overflow: hidden;
}

.sx-img img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
}

.proj .pdesc {
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.55;
  margin-top: 6px;
}

/* liste de suggestions d'adresses */
.addrwrap {
  position: relative;
}

.addrlist {
  list-style: none;
  margin: 4px 0 0;
  padding: 6px;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 30;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 280px;
  overflow: auto;
}

.addrlist li {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.addrlist li:hover,
.addrlist li.act {
  background: var(--accent-soft);
}

.addrlist li b {
  font-size: 0.92rem;
}

.addrlist li span {
  font-size: 0.76rem;
  color: var(--ink-3);
}

.addrlist li.far {
  opacity: 0.55;
}

.addrlist li.far b {
  text-decoration: line-through;
}

/* --- pages de service --- */
.svback {
  margin-bottom: 22px;
}

.svback::before {
  content: "\2190";
  margin-right: 8px;
}

.svback::after {
  content: none;
}

.svtitle {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  margin-bottom: 16px;
  color: #fff;
}

.svview {
  padding-top: clamp(28px, 4vw, 52px);
}

.svview .lede {
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
  max-width: 58ch;
}

/* en-tête du service : texte + photo */
.svhero {
  display: grid;
  gap: clamp(22px, 3vw, 44px);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .svhero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
}

.svhero-acts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.svhero-img {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

.svhero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* blocs */
.svblock {
  margin-top: clamp(44px, 6vw, 80px);
}

.svhead {
  margin-bottom: clamp(18px, 2.4vw, 28px);
}

.svhead h3 {
  color: #fff;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.svhead .lede {
  max-width: 64ch;
}

/* inclusions */
.svinc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.svinc li {
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 3px;
  align-items: start;
  background: linear-gradient(165deg, #152254 0%, #111c48 60%, #101842 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 18px 18px 16px;
  transition:
    transform 0.2s cubic-bezier(0.2, 0.7, 0.3, 1),
    border-color 0.2s;
}

.svinc li:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.svinc svg {
  grid-row: 1/3;
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 11px;
  color: #9db6ff;
  background: rgba(110, 140, 255, 0.12);
  border: 1px solid rgba(110, 140, 255, 0.22);
}

.svinc b {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  line-height: 1.25;
}

.svinc span {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.5;
}

/* visualisation 3D */
.svviz {
  display: grid;
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
  grid-template-columns: 1fr;
  background: linear-gradient(135deg, #1c2d80 0%, #101c57 62%, #0d1642 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(20px, 3vw, 36px);
}

@media (min-width: 900px) {
  .svviz {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

.svviz-txt h3 {
  color: #fff;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  margin-bottom: 12px;
}

.svviz-txt p {
  color: var(--on-deep-2);
  margin-bottom: 20px;
  max-width: 46ch;
}

.svviz-cv {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(178deg, #162872, #0a123e);
  aspect-ratio: 16/11;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.svviz-cv canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

.svviz-cv canvas:active {
  cursor: grabbing;
}

.svviz-cv .chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  pointer-events: none;
}

/* déroulement : ligne du temps */
.svtl {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  counter-reset: none;
}

.svtl li {
  position: relative;
  padding: 22px 18px 20px;
  background: linear-gradient(165deg, #152254 0%, #111c48 60%, #101842 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition:
    transform 0.2s cubic-bezier(0.2, 0.7, 0.3, 1),
    border-color 0.2s;
}

.svtl li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 3px 3px 0 0;
}

.svtl li:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.svtl .n {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent-2);
  font-weight: 600;
}

.svtl b {
  font-family: var(--f-display);
  font-weight: 700;
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.25;
}

.svtl p {
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

.svview .sx-note {
  margin-top: 22px;
  background: linear-gradient(
    135deg,
    rgba(61, 98, 238, 0.14),
    rgba(61, 98, 238, 0.04)
  );
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 16px 20px;
  max-width: 72ch;
  color: var(--ink-2);
  line-height: 1.7;
}

.svmore {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.svmore .scard p {
  min-height: 0;
}

#svFoot {
  padding-top: 0;
}

/* --- réalisations : publications Instagram en vue téléphone --- */
.phones {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 860px) {
  .phones {
    grid-template-columns: 1fr 1fr;
    max-width: 940px;
    margin-inline: auto;
  }
}

.phone {
  max-width: 390px;
  width: 100%;
  margin-inline: auto;
  background: linear-gradient(170deg, #121c47, #0d153b);
  border: 1.5px solid #2d3c75;
  border-radius: 34px;
  padding: 12px 12px 18px;
  box-shadow:
    0 24px 60px -24px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.phone::before {
  content: "";
  display: block;
  width: 84px;
  height: 5px;
  border-radius: 99px;
  background: #253571;
  margin: 4px auto 12px;
}

.igbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px 10px;
}

.igav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: none;
  padding: 2px;
  background: conic-gradient(
    from 210deg,
    #ffdc80,
    #f77737,
    #e1306c,
    #c13584,
    #5851db,
    #ffdc80
  );
}

.igav img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #101c57;
  display: block;
}

.ignm {
  line-height: 1.15;
  flex: 1;
  min-width: 0;
}

.ignm b {
  display: block;
  font-size: 0.84rem;
  color: var(--ink);
}

.ignm small {
  display: block;
  font-size: 0.68rem;
  color: var(--ink-3);
}

.igdots {
  color: var(--ink-3);
  flex: none;
  letter-spacing: 2px;
  font-weight: 700;
}

.phone .ba {
  aspect-ratio: 4/5;
  border-radius: 12px;
}

.igact {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px 6px 4px;
  color: var(--ink);
}

.igact svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.igact .sp {
  flex: 1;
}

.igact .lk {
  fill: #ff3040;
  stroke: #ff3040;
}

.igcap {
  padding: 2px 6px 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.igcap b {
  color: var(--ink);
  margin-right: 6px;
}

.phone .tlink {
  margin: 12px 6px 0;
}

/* Projet vedette : deux glissieres cote a cote */
.ba-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.5vw, 30px);
  align-items: start;
}

.ba-duo .ba {
  aspect-ratio: 4/3;
}

@media (max-width: 759px) {
  .ba-duo {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   OUVERTURE VIDÉO (accueil) : plein écran, épinglée, texte révélé à la fin
   ========================================================================== */
.hero-track {
  position: relative;
  height: 190svh;
}

.hero-track.static {
  height: auto;
}

.hero-film {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  background: #0e184c;
  isolation: isolate;
}

.hero-track.static .hero-film {
  position: relative;
}

.hero-poster,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-poster {
  z-index: 2;
  transition: opacity 0.6s ease;
}

.hero-poster.off {
  opacity: 0;
  pointer-events: none;
}

.hero-video {
  z-index: 1;
}

.hero-grad {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(
      90% 80% at 50% 100%,
      rgba(9, 17, 60, 0.8),
      rgba(9, 17, 60, 0.4) 45%,
      transparent 78%
    ),
    linear-gradient(
      to top,
      rgba(6, 12, 46, 0.78),
      rgba(6, 12, 46, 0.25) 45%,
      transparent 74%
    );
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 5.6vw, 4.6rem);
}

.hero-copy h1 small {
  display: block;
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(214, 225, 255, 0.9);
  margin-bottom: 6px;
}

.hero-tag {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.1vw, 1.6rem);
  color: rgba(236, 240, 255, 0.95);
  margin: 14px 0 0;
  letter-spacing: -0.01em;
}

.hero-copy {
  position: absolute;
  z-index: 4;
  left: var(--pad);
  right: var(--pad);
  bottom: clamp(44px, 9vh, 96px);
  text-align: center;
  color: #fff;
}

.hero-copy [data-rv] {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-copy [data-rv].in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.hero-eyebrow {
  font-family: "Montserrat", var(--f-display), sans-serif;
  font-weight: 700;
  font-size: clamp(0.8rem, 1.3vw, 1.05rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(220, 230, 255, 0.95);
  margin: 0 0 16px;
}

.hero-copy h1 {
  color: #fff;
  margin: 0;
  line-height: 0.98;
  text-shadow: 0 3px 30px rgba(0, 0, 0, 0.35);
}

.hero-copy h1 small {
  display: block;
  font-family: "Montserrat", var(--f-display), sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3.6vw, 3.2rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 8px;
}

.hero-copy h1 span {
  display: block;
  font-family: "Montserrat", var(--f-display), sans-serif;
  font-weight: 700;
  font-size: clamp(3.4rem, 9.5vw, 8.2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-tag {
  font-family: "Montserrat", var(--f-display), sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.75rem);
  color: rgba(240, 244, 255, 0.96);
  margin: 18px 0 0;
  letter-spacing: -0.005em;
}

.hero-acts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
}

.hero-acts .btn {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  padding: 20px 44px;
  border-radius: 12px;
  box-shadow: 0 10px 30px -10px rgba(30, 63, 196, 0.7);
}

/* la navigation s'efface au tout début, revient vers la fin de la construction */
body.hero-open .topbar {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

body.hero-open.hero-nav .topbar {
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy [data-rv] {
    transition: none;
  }

  body.hero-open .topbar {
    transition: none;
  }
}

/* ===== FINITION HAUT DE GAMME ===== */
.card,
.steps.flow li,
.sx-panel,
.sx-box,
.proj,
.rev,
.rvcard,
.bcard,
.founder,
.planner,
.quick a,
.quick div,
.vals > div,
.mini-stats > div,
.rating {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 22px 48px -28px rgba(0, 0, 0, 0.82) !important;
}

.card:hover,
.steps.flow li:hover,
.proj:hover,
.bcard:hover,
.sx-nav button:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 30px 66px -28px rgba(31, 63, 196, 0.6),
    0 0 0 1px rgba(110, 140, 255, 0.3) !important;
}

/* reflet vitré discret en haut des cartes */
.card,
.rev,
.proj,
.bcard,
.sx-panel,
.rvcard,
.founder {
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0) 26%
    ),
    linear-gradient(165deg, #152254 0%, #111c48 60%, #101842 100%);
}

/* icônes du déroulement : matière, reflet, profondeur */
.steps.flow .ico {
  box-shadow:
    0 14px 32px -8px var(--stepc),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.38),
    inset 0 -10px 16px -10px rgba(0, 0, 0, 0.55) !important;
}

/* fil du déroulement : halo lumineux */
.deroule.play::after {
  box-shadow: 0 0 18px rgba(91, 141, 239, 0.55);
}

/* boutons : reflet qui balaie au survol */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 55%;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.26),
    transparent
  );
  transform: translateX(-190%) skewX(-14deg);
}

.btn:hover::after {
  transform: translateX(360%) skewX(-14deg);
  transition: transform 0.8s cubic-bezier(0.3, 0.7, 0.2, 1);
}

/* bandeau d'appel : profondeur premium */
.cta-band {
  box-shadow:
    0 34px 90px -34px rgba(31, 63, 196, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;
}

/* liens fléchés : plus vivants */
.tlink {
  transition: color 0.18s;
}

.tlink:hover {
  color: var(--accent-2);
}

/* onglets et cartes de service : survol raffiné */
.svc-tab:hover,
.sx-nav button:hover {
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .btn::after {
    display: none;
  }
}

/* ===== GESTION DES DISPONIBILITÉS ===== */
.adm-fab {
  position: fixed;
  right: clamp(14px, 2.4vw, 28px);
  bottom: clamp(14px, 2.4vw, 28px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  color: #fff;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #3d62ee, #1e3fc4);
  box-shadow:
    0 16px 40px -14px rgba(61, 98, 238, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.adm-fab svg {
  width: 20px;
  height: 20px;
}

.adm-fab:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

body.adm-on {
  overflow: hidden;
}

body.adm-on .adm-fab {
  display: none;
}

.adm-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: auto;
  background:
    radial-gradient(
      120% 60% at 80% 0%,
      rgba(61, 98, 238, 0.18),
      transparent 60%
    ),
    var(--ground);
}

.adm-top {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(10, 18, 52, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.adm-top-in {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-block: 16px;
}

.adm-title h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: #fff;
}

.adm-sub {
  color: var(--ink-2);
  font-size: 0.92rem;
  margin-top: 4px;
}

.adm-top-acts {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.adm-state {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.adm-state.dirty {
  color: #f2c14e;
}

.adm-state.ok {
  color: #4cc98a;
}

.adm-x {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.adm-body {
  padding-block: 22px 60px;
}

.adm-status {
  min-height: 1.4em;
  margin-bottom: 12px;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.adm-status.err {
  color: #f28b82;
}

.adm-status.ok {
  color: #4cc98a;
}

.adm-cols {
  display: grid;
  gap: 18px;
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
}

.adm-side,
.adm-cols > .admcard,
.adm-side > .admcard {
  min-width: 0;
}

@media (max-width: 640px) {
  .adm-gridwrap .adm-grid {
    min-width: 0;
    table-layout: fixed;
    border-spacing: 3px;
  }

  .adm-gridwrap .adm-grid th {
    font-size: 0.6rem;
    letter-spacing: 0;
  }

  .adm-gridwrap .adm-grid tbody th {
    width: 34px;
    padding-right: 2px;
  }

  .adm-gridwrap .adm-cell {
    height: 26px;
    border-radius: 5px;
  }

  .admcard.adm-week {
    padding: 16px 12px;
  }

  .adm-top-in {
    padding-block: 12px;
  }

  .adm-sub {
    display: none;
  }

  .adm-top-acts .btn {
    padding: 11px 16px;
  }
}

@media (min-width: 1040px) {
  .adm-cols {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
}

.adm-side {
  display: grid;
  gap: 18px;
}

.admcard h3 {
  color: #fff;
  margin-bottom: 6px;
}

.adm-hint {
  font-size: 0.86rem;
  color: var(--ink-3);
  margin-bottom: 14px;
  line-height: 1.5;
}

.adm-gridwrap {
  overflow-x: auto;
}

.adm-grid {
  border-collapse: separate;
  border-spacing: 4px;
  width: 100%;
  min-width: 420px;
  user-select: none;
  touch-action: none;
}

.adm-grid th {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-weight: 600;
  text-align: center;
  padding: 2px;
}

.adm-grid tbody th {
  text-align: right;
  padding-right: 6px;
  white-space: nowrap;
}

.adm-grid td {
  padding: 0;
}

.adm-cell {
  display: block;
  width: 100%;
  height: 30px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  cursor: pointer;
  transition:
    background 0.12s,
    border-color 0.12s;
}

.adm-cell.on {
  background: linear-gradient(135deg, #3d62ee, #2f55e0);
  border-color: #5b7bf2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.adm-cell:hover {
  border-color: var(--accent-2);
}

.adm-quick {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.adm-chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 7px 13px;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.adm-chip:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.adm-chip.on {
  background: rgba(61, 98, 238, 0.22);
  border-color: #5b7bf2;
  color: #fff;
}

.adm-chip.warn {
  border-color: rgba(242, 139, 130, 0.5);
  color: #f28b82;
}

.adm-calhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.adm-calhead b {
  font-family: var(--f-display);
  font-size: 1.02rem;
  color: #fff;
}

.adm-nav {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.1rem;
}

.adm-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.adm-dows,
.adm-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.adm-dows span {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 0.64rem;
  color: var(--ink-3);
  padding: 3px 0;
}

.adm-days i {
  display: block;
}

.adm-d {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.adm-d small {
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  font-size: 0.56rem;
  font-weight: 600;
  color: #7fa0ff;
  text-align: center;
}

.adm-d.none small {
  color: var(--ink-3);
}

.adm-d.blk {
  background: rgba(242, 139, 130, 0.14);
  border-color: rgba(242, 139, 130, 0.5);
}

.adm-d.blk small {
  color: #f28b82;
}

.adm-d.ovr {
  border-style: dashed;
  border-color: #f2c14e;
}

.adm-d.sel {
  outline: 2px solid var(--accent-2);
  outline-offset: 1px;
}

.adm-d:disabled {
  opacity: 0.3;
  cursor: default;
}

.adm-day {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ground);
}

.adm-day h4 {
  font-family: var(--f-display);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 10px;
}

.adm-hours {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.adm-acts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.adm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--ink-2);
  margin-top: 10px;
}

.adm-field input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ground);
  color: var(--ink);
  font: inherit;
  max-width: 160px;
}

.adm-prev {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
}

.adm-prev li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--ground);
  border: 1px solid var(--line-soft);
}

.adm-prev li b {
  color: #fff;
  font-weight: 600;
}

.adm-prev li span {
  color: var(--ink-2);
  text-align: right;
}

.adm-prev li.none span {
  color: var(--ink-3);
}

/* ===== DEMANDE DE SOUMISSION : réservation + modèle 3D facultatif ===== */
.md-page {
  padding-top: clamp(34px, 4vw, 56px);
}

@media (min-width: 960px) {
  .md-grid {
    grid-template-columns: minmax(380px, 7fr) minmax(300px, 5fr);
  }
}

.md-model {
  gap: 18px;
}

.md-promo {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 30px);
  background:
    radial-gradient(
      120% 90% at 100% 0%,
      rgba(138, 114, 240, 0.28),
      transparent 60%
    ),
    linear-gradient(160deg, #1a2c7b 0%, #0d1a58 55%, #09113c 100%);
  border: 1px solid rgba(143, 166, 255, 0.22);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.md-promo::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 98, 238, 0.35), transparent 70%);
  pointer-events: none;
}

.md-promo-ico {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #3d62ee, #8a72f0);
  box-shadow:
    0 10px 26px rgba(61, 98, 238, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.md-promo-ico svg {
  width: 30px;
  height: 30px;
}

.md-promo h3 {
  margin: 4px 0 0;
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  color: #fff;
}

.md-promo p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.96rem;
  line-height: 1.6;
}

.md-promo .btn {
  align-self: flex-start;
  position: relative;
  z-index: 1;
}

.md-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  align-self: flex-start;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: #cff5e1;
  background: rgba(76, 201, 138, 0.14);
  border: 1px solid rgba(76, 201, 138, 0.35);
}

.md-badge svg {
  width: 15px;
  height: 15px;
  color: #4cc98a;
}

.md-attached {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.md-attached[hidden] {
  display: none !important;
}

.md-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding-top: 4px;
}

.md-remove {
  background: transparent;
  border: 0;
  padding: 6px 0;
  color: var(--ink-3);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.25);
}

.md-remove:hover {
  color: #fff;
}

.md-trust {
  list-style: none;
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.md-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.md-trust li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: #4cc98a
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23062b18' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center/12px no-repeat;
}

#planificateur {
  scroll-margin-top: 76px;
}

#envoi {
  scroll-margin-top: 76px;
}

.plan-divider {
  max-width: 64ch;
  margin: 0 auto clamp(22px, 3vw, 34px);
  text-align: center;
}

.plan-divider h2 {
  color: #fff;
}

@media (max-width: 959px) {
  .md-model {
    position: static;
  }
}

/* ===== Demande de soumission : formulaire centré et agrandi ===== */
.pagehead#contenu .wrap {
  text-align: center;
}

.pagehead#contenu .lede {
  margin-inline: auto;
}

#envoi {
  padding-top: clamp(36px, 5vw, 64px);
}

#envoi .md-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  max-width: 940px;
  margin-inline: auto;
  gap: clamp(18px, 2.4vw, 28px);
}

#envoi .md-model {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#envoi .rvsteps {
  gap: 10px;
  margin-bottom: 26px;
}

#envoi .rvsteps li {
  min-width: 150px;
  padding: 16px 18px;
  font-size: 0.95rem;
  border-radius: 12px;
}

#envoi .rvsteps li b {
  width: 32px;
  height: 32px;
  font-size: 0.88rem;
}

#envoi .rvcard {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(28px, 4.4vw, 56px);
  border-radius: 20px;
}

#envoi .rvstep.on {
  min-width: 0;
  gap: 22px;
}

#envoi .rvh {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}

#envoi .form .two {
  gap: 20px;
}

#envoi .form .one {
  display: grid;
  gap: 14px;
}

#envoi .form label {
  font-size: 0.74rem;
  gap: 9px;
}

#envoi .form input,
#envoi .form textarea {
  font-size: 1.1rem;
  padding: 17px 18px;
  border-radius: 12px;
}

#envoi .rvhint {
  font-size: 0.95rem;
}

#envoi .rverr {
  font-size: 0.95rem;
}

#envoi .rvnav .btn.lg {
  font-size: 0.95rem;
  padding: 20px 40px;
  border-radius: 10px;
}

#envoi input:user-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

#envoi input:user-valid {
  border-color: #1b9e5a;
  box-shadow: 0 0 0 3px rgba(27, 158, 90, 0.12);
}

#envoi .md-match-hint {
  font-size: 0.85rem;
  margin-top: 6px;
}

#envoi .md-match-ok {
  color: #1b9e5a;
  font-weight: 600;
}

#envoi .md-match-ko {
  color: #c0392b;
  font-weight: 600;
}

#envoi .calgrid button,
#envoi .calgrid span,
#envoi .calgrid i {
  font-size: 1.02rem;
  border-radius: 10px;
}

#envoi .cal {
  padding: 18px;
}

#envoi .calhead b {
  font-size: 1.2rem;
}

#envoi .slot {
  font-size: 1rem;
  padding: 13px 22px;
}

#envoi .recap > div {
  grid-template-columns: minmax(110px, 180px) minmax(0, 1fr);
  padding: 14px 18px;
  font-size: 1.02rem;
}

#envoi .recap dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* plan 3D joint : image et résumé côte à côte */
@media (min-width: 760px) {
  #envoi .md-attached {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }

  #envoi .md-attached[hidden] {
    display: none !important;
  }

  #envoi .md-badge {
    grid-column: 1/-1;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  #envoi .md-draft-notice {
    display: none;
  }

  #envoi #mds5 .rvh {
    font-size: clamp(1.4rem, 6vw, 1.9rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  #envoi #mdRecap > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 14px;
  }

  #envoi .rvstep > .rvnav {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  #envoi .rvstep > .rvnav .btn {
    max-width: 100%;
    padding-inline: 16px;
    overflow-wrap: anywhere;
  }

  #envoi .rvsteps li {
    min-width: 0;
    flex: 1 1 calc(50% - 10px);
    padding: 12px 14px;
    font-size: 0.86rem;
  }

  #envoi .rvsteps li b {
    width: 28px;
    height: 28px;
  }
}

/* modèle 3D joint : bandeau bien visible au-dessus du formulaire */
#envoi .md-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 14px 18px 14px 14px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(76, 201, 138, 0.16),
    rgba(31, 157, 97, 0.08) 60%,
    rgba(18, 28, 71, 0.6)
  );
  border: 1px solid rgba(76, 201, 138, 0.45);
  box-shadow:
    0 18px 40px -24px rgba(31, 157, 97, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#envoi .md-banner[hidden] {
  display: none;
}

#envoi .md-banner-shot {
  width: 112px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0d1a58;
}

#envoi .md-banner-txt {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

#envoi .md-banner-txt b {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.2;
}

#envoi .md-banner-txt > span {
  color: #bfebd3;
  font-size: 0.95rem;
}

#envoi .md-banner .ck,
#envoi .rc-model .ck svg {
  flex: none;
}

#envoi .md-banner .ck {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #5ad39a, #4cc98a 45%, #1f9d61);
  box-shadow: 0 6px 16px -6px rgba(31, 157, 97, 0.9);
}

#envoi .md-banner .ck svg {
  width: 14px;
  height: 14px;
  color: #fff;
}

#envoi .md-banner-edit {
  flex: none;
  color: #cff5e1;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(76, 201, 138, 0.45);
  transition: background 0.18s;
}

#envoi .md-banner-edit:hover {
  background: rgba(76, 201, 138, 0.15);
}

@media (max-width: 640px) {
  #envoi .md-banner {
    flex-wrap: wrap;
  }

  #envoi .md-banner-shot {
    width: 88px;
    height: 60px;
  }

  #envoi .md-banner-edit {
    width: 100%;
    text-align: center;
  }
}

#envoi .md-banner-acts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: none;
}

#envoi .md-banner .md-remove {
  font-size: 0.8rem;
  padding: 2px 0;
}

#envoi .md-attached {
  display: none !important;
}

@media (max-width: 640px) {
  #envoi .md-banner-acts {
    width: 100%;
  }
}

/* garanties dans l'en-tête de la page Soumission */
.ph-perks {
  list-style: none;
  margin: clamp(18px, 2.4vw, 26px) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
}

.ph-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #eaeffc;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  isolation: isolate;
}

.ph-perks .ck {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #5ad39a 0%, #4cc98a 45%, #1f9d61 100%);
  box-shadow:
    0 0 0 1px rgba(76, 201, 138, 0.35),
    0 8px 20px -6px rgba(31, 157, 97, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.ph-perks .ck::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  z-index: -1;
  background: radial-gradient(
    circle,
    rgba(76, 201, 138, 0.4) 0%,
    rgba(76, 201, 138, 0) 68%
  );
  filter: blur(8px);
}

.ph-perks .ck svg {
  width: 15px;
  height: 15px;
  color: #fff;
  filter: drop-shadow(0 1px 1px rgba(10, 70, 40, 0.5));
}

/* coordonnées dans l'en-tête de la page Soumission */
.ph-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 48px;
  margin-top: clamp(22px, 3vw, 32px);
}

.ph-contact a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #eaeffc;
  text-decoration: none;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  transition: color 0.18s;
}

.ph-contact a:hover {
  color: #fff;
}

.ph-contact a:hover span {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(143, 166, 255, 0.6);
}

.ph-contact svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: #8fa6ff;
}

/* planificateur : confirmation que le plan sera joint */
.plan-joint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.35;
  color: #cff5e1;
  background: rgba(76, 201, 138, 0.12);
  border: 1px solid rgba(76, 201, 138, 0.4);
}

.plan-joint[hidden] {
  display: none;
}

.plan-joint .ck {
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #5ad39a, #4cc98a 45%, #1f9d61);
  box-shadow: 0 6px 14px -6px rgba(31, 157, 97, 0.9);
}

.plan-joint .ck svg {
  width: 13px;
  height: 13px;
  color: #fff;
}

/* récapitulatif : ligne du modèle */
#envoi .recap .rc-model {
  background: rgba(76, 201, 138, 0.1) !important;
  border-top: 1px solid rgba(76, 201, 138, 0.35);
}

#envoi .recap .rc-model dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

#envoi .recap .rc-model img {
  width: 88px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex: none;
}

#envoi .recap .rc-model span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#envoi .recap .rc-model b {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #8be3b5;
  font-size: 0.9rem;
}

#envoi .recap .rc-model b svg {
  width: 15px;
  height: 15px;
  color: #4cc98a;
}

/* confirmation : vignette du modèle envoyé */
#envoi .md-done-model {
  margin: 4px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#envoi .md-done-model[hidden] {
  display: none;
}

#envoi .md-done-model img {
  width: min(320px, 80%);
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(76, 201, 138, 0.45);
  box-shadow: 0 18px 40px -20px rgba(31, 157, 97, 0.7);
}

#envoi .md-done-model figcaption {
  color: #bfebd3;
  font-size: 0.95rem;
}

/* garanties : une rangée épurée, vrais crochets avec halo vert */
#envoi .md-trust {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 44px;
  padding: 8px 0 0;
  border: 0;
  background: none;
  box-shadow: none;
}

#envoi .md-trust li {
  gap: 14px;
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: 0.005em;
}

#envoi .md-trust li::before {
  display: none;
}

#envoi .md-trust .ck {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #5ad39a 0%, #4cc98a 45%, #1f9d61 100%);
  box-shadow:
    0 0 0 1px rgba(76, 201, 138, 0.35),
    0 8px 20px -6px rgba(31, 157, 97, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

#envoi .md-trust .ck::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  z-index: -1;
  background: radial-gradient(
    circle,
    rgba(76, 201, 138, 0.4) 0%,
    rgba(76, 201, 138, 0) 68%
  );
  filter: blur(8px);
}

#envoi .md-trust .ck svg {
  width: 15px;
  height: 15px;
  color: #fff;
  filter: drop-shadow(0 1px 1px rgba(10, 70, 40, 0.5));
}

#envoi .md-trust li {
  isolation: isolate;
}

/* sélecteur de page : demande de soumission / planificateur 3D */
.viewsw {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  margin: 0 auto clamp(22px, 3vw, 34px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.viewsw button {
  border: 0;
  cursor: pointer;
  padding: 11px 22px;
  border-radius: 999px;
  background: transparent;
  color: rgba(210, 221, 250, 0.78);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  transition:
    background 0.18s,
    color 0.18s;
}

.viewsw button:hover {
  color: #fff;
}

.viewsw button[aria-selected="true"] {
  background: linear-gradient(135deg, #3d62ee, #2445c9);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(61, 98, 238, 0.9);
}

#planHead .wrap {
  text-align: center;
}

#planHead .lede {
  margin-inline: auto;
}

#planificateur {
  padding-top: clamp(30px, 4vw, 52px) !important;
}

/* reflet des boutons : découpé proprement (Safari) et invisible au repos */
.btn {
  transform: translateZ(0);
}

.btn::after {
  opacity: 0;
}

.btn:hover::after {
  transition: none;
  animation: brSheen 0.8s cubic-bezier(0.3, 0.7, 0.2, 1) 1;
}

@keyframes brSheen {
  0% {
    transform: translateX(-190%) skewX(-14deg);
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    transform: translateX(360%) skewX(-14deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover::after {
    animation: none;
  }
}

/* ===== RYTHME UNIFIÉ : mêmes espacements sur tout le site ===== */
:root {
  --sp-sec: clamp(56px, 7vw, 96px);
  /* haut et bas de chaque section */
  --sp-first: clamp(40px, 5vw, 64px);
  /* première section après l'en-tête de page */
  --sp-block: clamp(56px, 7vw, 96px);
  /* entre deux blocs d'une même page */
  --sp-head: clamp(24px, 3vw, 40px);
  /* titre de section -> contenu */
  --sp-cta: clamp(28px, 3.5vw, 44px);
  /* contenu -> bouton centré */
}

.pagehead {
  padding-top: clamp(56px, 8vw, 112px) !important;
  padding-bottom: clamp(48px, 6vw, 88px) !important;
}

.sec:not(.tight) {
  padding-top: var(--sp-sec) !important;
  padding-bottom: var(--sp-sec) !important;
}

.pagehead + .sec:not(.tight),
.pagehead ~ .svview,
.pagehead + .sec + .svview {
  padding-top: var(--sp-first) !important;
}

.sec.tight {
  padding-top: 0 !important;
  padding-bottom: var(--sp-sec) !important;
}

.head-2col,
.proc-head {
  margin-bottom: var(--sp-head) !important;
}

.svhead {
  margin-bottom: var(--sp-head) !important;
}

.svblock {
  margin-top: var(--sp-block) !important;
}

.svcta,
.proc-cta {
  margin-top: var(--sp-cta) !important;
}

.wrap > div[style*="justify-content:center;margin-top"] {
  margin-top: var(--sp-cta) !important;
}

.wrap > .grid[style*="margin-top"] {
  margin-top: var(--sp-head) !important;
}

.wrap > h2.rise + .lede {
  margin-top: 14px !important;
}

.svback {
  margin-bottom: clamp(18px, 2.4vw, 26px);
}

/* ===== Cellulaire ===== */
@media (max-width: 640px) {
  :root {
    --pad: 20px;
  }

  h2 {
    font-size: clamp(1.7rem, 7.2vw, 2rem);
  }

  .lede {
    font-size: 1rem;
    line-height: 1.62;
  }

  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    justify-content: center;
  }

  .svhero-acts .btn,
  .proc-cta .btn,
  .svcta .btn {
    width: 100%;
  }

  .cta-band {
    padding: 30px 22px !important;
    border-radius: 18px;
  }

  .cta-band .acts {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  .cta-band .acts .btn {
    width: 100%;
    font-size: 0.9rem !important;
    padding: 16px 18px !important;
  }

  .grid {
    gap: 14px;
  }

  .svinc {
    gap: 10px;
  }

  .svhero-img {
    border-radius: 16px;
  }

  footer .cols {
    gap: 26px;
  }

  footer .fine {
    gap: 12px;
  }
}

/* ===== TYPOGRAPHIE ÉPURÉE : plus de petites étiquettes en capitales espacées ===== */
.eyebrow,
.hero-eyebrow,
.chip,
.crumbs,
.artmeta,
.bmeta,
.ba .tag,
.ba-cap span,
.gal-tag,
.tag,
.est .tot span,
.md-tot span,
.field > label,
.form label,
.recap dt,
.founder span,
.mini-stats span,
.quick .l,
.pager .lab,
.panel-head .sub,
.proj .meta .d,
.sx-box h4,
.sx-more .lbl,
footer h4,
.svtl .n,
.svtl.flowx .n,
.deroule .n,
.steps .n,
.fin-lab,
.tlink,
.adm-state {
  text-transform: none !important;
  letter-spacing: 0.005em !important;
  font-family: var(--f-body) !important;
}

.form label,
.field > label {
  font-size: 0.9rem !important;
  font-weight: 500;
  color: var(--ink-2) !important;
}

.recap dt {
  font-size: 0.9rem !important;
  font-weight: 500;
}

.svtl.flowx .n,
.deroule .n,
.steps .n {
  font-size: 0.82rem !important;
  font-weight: 600;
}

.tlink {
  font-size: 0.95rem !important;
  font-weight: 600;
}

footer h4 {
  font-size: 0.95rem !important;
  font-weight: 600;
  color: #fff;
}

.chip,
.ba .tag,
.gal-tag,
.tag {
  font-size: 0.78rem !important;
  font-weight: 500;
}

.est .tot span,
.md-tot span {
  font-size: 0.9rem !important;
}

/* ===== Planificateur : panneau d'options aéré + barre d'estimation pleine largeur ===== */
@media (min-width: 1000px) {
  .planner {
    grid-template-columns: minmax(0, 1fr) 410px;
    align-items: stretch;
  }

  .stage {
    min-height: 680px;
  }

  .panel {
    max-height: none !important;
    overflow: visible !important;
  }
}

.panel {
  padding: 20px 20px 20px !important;
  gap: 14px !important;
  background: linear-gradient(180deg, #16236a 0%, #111c57 100%);
}

.panel h3 {
  font-size: 1.18rem !important;
  letter-spacing: -0.01em;
}

#controls {
  gap: 12px !important;
}

.pgrp {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 14px 15px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.pgrp h4 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
  counter-increment: pg;
}

#controls {
  counter-reset: pg;
}

.pgrp h4::before {
  content: counter(pg);
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #5b7bff, #3d62ee);
}

.pgrp .field {
  gap: 8px;
}

.pgrp .field > label {
  color: #c9d3f0 !important;
  font-size: 0.88rem !important;
}

.pgrp .opt {
  padding: 8px 12px;
  font-size: 0.84rem;
}

.pgrp input[type="range"] {
  margin: 4px 0;
}

.pgrp .sw {
  width: 36px;
  height: 36px;
}

.planner > .est {
  grid-column: 1/-1;
  position: static !important;
  margin: 0 !important;
  display: grid;
  gap: 22px 34px;
  align-items: center;
  padding: 24px clamp(20px, 2.6vw, 34px);
  background: linear-gradient(180deg, #1a2a78 0%, #132062 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@media (min-width: 1000px) {
  .planner > .est {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 320px;
  }
}

.est-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.est-rows .row span {
  white-space: nowrap;
}

.est-rows .row:last-child:nth-child(odd) {
  grid-column: 1/-1;
}

.est-rows .row {
  flex-direction: column;
  align-items: flex-start !important;
  gap: 3px;
  padding: 11px 13px !important;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--f-body) !important;
  font-size: 0.82rem !important;
}

.est-rows .row b {
  font-size: 0.98rem;
  font-weight: 600 !important;
}

.est-tot .tot {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  gap: 4px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.est-tot .tot span {
  font-size: 0.95rem !important;
  color: #c9d3f0 !important;
}

.est-tot .tot b {
  font-size: clamp(1.6rem, 2.3vw, 2.05rem) !important;
  line-height: 1.1;
}

.est-tot small {
  margin-top: 10px !important;
  font-size: 0.76rem !important;
  line-height: 1.5;
  max-width: 52ch;
}

.est-go {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.est-go .plan-joint {
  margin: 0;
}

.est-go .btn {
  width: 100%;
  justify-content: center;
  margin: 0 !important;
}

@media (max-width: 999px) {
  .planner {
    grid-template-columns: minmax(0, 1fr);
  }

  .planner > .est {
    grid-template-columns: minmax(0, 1fr);
  }

  .est-rows {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .est-rows .row span {
    white-space: normal;
  }

  .est-go .btn {
    white-space: normal;
  }
}

/* ===== En-tête Soumission : sobre et aéré ===== */
#contenu.view-soum h1 {
  margin-bottom: 0;
}

#contenu .ph-perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 44px;
  margin: clamp(28px, 3.4vw, 40px) auto 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  max-width: none;
}

#contenu .ph-perks li {
  gap: 12px;
  padding: 0;
  border: 0 !important;
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  font-weight: 500;
  color: #f1f4fd;
}

#contenu .ph-perks .ck {
  width: 26px;
  height: 26px;
}

#contenu .ph-perks .ck svg {
  width: 14px;
  height: 14px;
}

#contenu .ph-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 56px;
  margin: clamp(30px, 3.6vw, 44px) auto 0;
  padding-top: clamp(26px, 3.2vw, 36px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 760px;
}

#contenu .ph-contact a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  text-decoration: none;
  color: #dce4fa;
  transition: color 0.18s;
}

#contenu .ph-contact a:hover {
  color: #fff;
  transform: none;
  background: none;
}

#contenu .ph-contact .ic {
  width: auto;
  height: auto;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

#contenu .ph-contact .ic svg {
  width: 21px;
  height: 21px;
  color: #8fa6ff;
}

#contenu .ph-contact .tx {
  font-size: clamp(1.02rem, 1.4vw, 1.12rem);
  font-weight: 500;
}

#contenu .ph-contact a:hover .tx {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: rgba(143, 166, 255, 0.6);
}

@media (max-width: 640px) {
  #contenu .ph-perks {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  #contenu .ph-contact {
    flex-direction: column;
    gap: 16px;
  }

  #contenu .ph-contact .tx {
    font-size: 1rem;
  }
}

/* ===== Barre du haut blanche + logo officiel ===== */
.topbar {
  background: linear-gradient(
    100deg,
    #ffffff 0%,
    #f8fafd 55%,
    #eef2f9 100%
  ) !important;
  backdrop-filter: none !important;
  border-bottom: 1px solid rgba(10, 18, 52, 0.1) !important;
  box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.55) !important;
}

.topbar-in {
  min-height: 58px !important;
  padding-block: 6px !important;
}

@media (min-width: 1080px) {
  .topbar-in {
    height: 68px !important;
    min-height: 0 !important;
    padding-block: 0 !important;
  }
}

.topbar .logo {
  gap: 12px;
  align-items: center;
}

.topbar .brand-mark img {
  height: 40px;
  width: auto;
  display: block;
}

.topbar .brand-text img {
  height: 30px;
  width: auto;
  display: block;
}

.topbar .logo-img,
.topbar .mark,
.topbar .logo .txt {
  display: none !important;
}

.topbar nav.main a {
  color: #3a4256 !important;
  font-weight: 500 !important;
}

.topbar nav.main a:hover,
.topbar nav.main a[aria-current="page"] {
  color: #16215a !important;
}

.topbar nav.main a[aria-current="page"] {
  font-weight: 600 !important;
}

.topbar nav.main a::after {
  background: #1b2a6b !important;
}

.topbar .iconbtn,
.topbar .langsw {
  border-color: rgba(10, 18, 52, 0.18) !important;
  color: #3a4256 !important;
}

.topbar .langsw button {
  color: #3a4256 !important;
}

.topbar .langsw button[aria-pressed="true"] {
  background: #16215a !important;
  color: #fff !important;
}

@media (max-width: 640px) {
  .topbar .brand-mark img {
    height: 34px;
  }

  .topbar .brand-text img {
    height: 26px;
  }

  .topbar-in {
    padding-top: 10px !important;
  }
}

/* ===== Boutons et numéros de téléphone : Montserrat, la police du logo ===== */
.btn,
.btn.lg,
.tel-btn,
.adm-fab,
.md-banner-edit,
.cta-band .btn,
.cta-band .btn.lg {
  font-family: "Montserrat", Arial, sans-serif !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 600 !important;
}

.btn {
  font-size: 0.92rem !important;
}

.btn.lg,
.cta-band .btn.lg {
  font-size: 0.98rem !important;
}

.tel-btn {
  font-size: 0.95rem !important;
  padding: 11px 18px !important;
}

a[href^="tel:"] {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}

#contenu .ph-contact .tx {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 500;
  font-size: 1.02rem;
}

.topbar .tel-btn {
  background: linear-gradient(
    135deg,
    #1b2a6b 0%,
    #131e52 60%,
    #0e1742 100%
  ) !important;
  color: #fff !important;
  border: 1px solid rgba(10, 18, 52, 0.2) !important;
  box-shadow: 0 6px 16px -10px rgba(10, 18, 52, 0.6) !important;
}

.topbar .tel-btn:hover {
  background: linear-gradient(
    135deg,
    #243580 0%,
    #182462 60%,
    #111c4e 100%
  ) !important;
  box-shadow: 0 10px 22px -12px rgba(10, 18, 52, 0.7) !important;
}

.rv-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 56px;
  margin: 26px 0 0 !important;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(100deg, #111b4a 0%, #0c1440 60%, #0a1136 100%);
  border: 1px solid var(--line-soft);
}

.rv-contact a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  color: #dce4fa !important;
  text-decoration: none;
  line-height: 1;
}

.rv-contact a:hover {
  color: #fff !important;
}

.rv-contact .ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: none;
}

.rv-contact .ic svg {
  display: block;
  width: 21px;
  height: 21px;
  color: #8fa6ff;
}

.rv-contact .tx {
  display: block;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 22px;
}

.rv-contact a:hover .tx {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: rgba(143, 166, 255, 0.6);
}

@media (max-width: 640px) {
  .rv-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
  }

  .rv-contact .tx {
    font-size: 0.95rem;
  }
}

/* ===== Pied de page blanc + logo officiel ===== */
footer {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f7f9fc 55%,
    #eef2f9 100%
  ) !important;
  color: #4a5264 !important;
  border-top: 1px solid rgba(10, 18, 52, 0.1);
}

footer p,
footer li,
footer span {
  color: #4a5264;
}

footer h4 {
  color: #16215a !important;
}

footer a {
  color: #4a5264 !important;
}

footer a:hover {
  color: #16215a !important;
}

footer a[href^="tel:"] {
  color: #16215a !important;
}

footer .fine {
  border-top-color: rgba(10, 18, 52, 0.1) !important;
  color: #6c7486 !important;
}

footer .fine span {
  color: #6c7486;
}

footer .langsw {
  border-color: rgba(10, 18, 52, 0.18) !important;
}

footer .langsw button {
  color: #4a5264 !important;
  background: transparent !important;
}

footer .langsw button[aria-pressed="true"] {
  background: #16215a !important;
  color: #fff !important;
}

footer .portail-sq {
  border-color: rgba(10, 18, 52, 0.16) !important;
  color: #6c7486 !important;
}

footer .portail-sq:hover {
  color: #16215a !important;
  border-color: rgba(10, 18, 52, 0.35) !important;
}

/* ===== Titres de page alignés à gauche, comme partout ===== */
#planHead .wrap {
  text-align: left !important;
}

.pagehead#contenu .wrap {
  text-align: center !important;
}

.pagehead#contenu .lede,
#planHead .lede {
  margin-inline: 0 !important;
}

#contenu .ph-perks {
  justify-content: flex-start !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (max-width: 640px) {
  #contenu .ph-perks {
    align-items: flex-start !important;
  }
}

/* ===== Polices : Montserrat (celle du logo) pour titres et étiquettes, Inter pour le texte ===== */
:root {
  --f-display: "Montserrat", Arial, sans-serif;
  --f-serif: "Montserrat", Arial, sans-serif;
  --f-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Montserrat", Arial, sans-serif;
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  letter-spacing: -0.02em !important;
}

h1 {
  font-size: clamp(2.2rem, 4.6vw, 4rem) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
}

h2 {
  font-size: clamp(1.7rem, 3.1vw, 2.6rem) !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
}

h3 {
  font-weight: 700 !important;
  line-height: 1.22 !important;
  letter-spacing: -0.01em !important;
}

footer .fine,
footer .fine *,
.crumbs,
.eyebrow {
  letter-spacing: 0 !important;
}

footer .fine {
  font-family: var(--f-body) !important;
  font-size: 0.82rem !important;
}

footer a[href^="mailto:"] {
  font-size: 0.88rem;
  white-space: nowrap;
}

@media (max-width: 360px) {
  footer a[href^="mailto:"] {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* ===== Barre du haut et pied de page : gris dégradé ===== */
.topbar {
  background: linear-gradient(
    180deg,
    #fdfefe 0%,
    #f1f1f1 45%,
    #dbdbdb 100%
  ) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

footer {
  background: linear-gradient(
    180deg,
    #fdfefe 0%,
    #f0f0f0 28%,
    #e1e1e1 62%,
    #c6c6c6 100%
  ) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

footer .fine {
  border-top-color: rgba(20, 24, 40, 0.12) !important;
}

footer .langsw,
footer .portail-sq {
  background: rgba(255, 255, 255, 0.5);
}

#contenu .ph-perks {
  justify-content: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 640px) {
  #contenu .ph-perks {
    align-items: center !important;
  }
}

/* ===== « Voir le service » toujours au bas de la carte ===== */
.scard,
.bcard {
  height: 100%;
}

.scard .tlink,
.bcard .tlink {
  margin-top: auto !important;
  padding-top: 12px;
  margin-bottom: 22px !important;
}

.svviz-cv .chip,
#hint,
.stage-hint {
  display: none !important;
}

/* ===== Lien Gestion : discret, se fond dans la ligne du bas ===== */
footer .portail-sq {
  display: inline-flex !important;
  align-items: center;
  gap: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  font-family: var(--f-body) !important;
  font-size: 0.78rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: rgba(80, 88, 104, 0.55) !important;
  text-decoration: none !important;
  transition: color 0.2s;
}

footer .portail-sq svg {
  display: none;
}

footer .portail-sq span {
  color: inherit !important;
  font: inherit !important;
}

footer .portail-sq:hover {
  color: rgba(40, 46, 60, 0.85) !important;
  transform: none;
  box-shadow: none;
}

footer .fine {
  align-items: center !important;
}

#envoi #mds3 select {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  padding: 16px 44px 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--ground)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238FA6FF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>")
    no-repeat right 16px center;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

#envoi #mds3 select option {
  background: #0e184c;
  color: #e8edfb;
}

#envoi #mds3 > label {
  display: flex;
  flex-direction: column;
}

.zmap {
  width: 100%;
  height: clamp(220px, 40vw, 320px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b1440;
}

.zmap iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

#mds3 .addrlist {
  max-height: 330px;
}

#mds3 .addrlist li {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
}

#mds3 .addrlist li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  opacity: 0.85;
  background: no-repeat center/contain
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238FA6FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/><circle cx='12' cy='9.5' r='2.5'/></svg>");
}

#mds3 .addrlist li b {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
}

#mds3 .addrlist li span {
  font-size: 0.92rem;
  color: var(--ink-2);
}

#mds3 .addrlist li span::before {
  content: "· ";
  color: var(--ink-3);
}

.adm-fab,
#admFab {
  display: none !important;
}

/* ===== Gestion des disponibilités : calendrier des réservations ===== */
.adm-sheet .adm-title h2 {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
}

.adm-state {
  font-family: var(--f-body) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.85rem !important;
}

.adm-main {
  display: grid;
  gap: 18px;
  align-items: start;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
}

@media (max-width: 980px) {
  .adm-main {
    grid-template-columns: minmax(0, 1fr);
  }
}

.adm-side {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.admcard {
  padding: 20px;
  border-radius: 18px;
}

.admcard h3 {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 10px;
}

.ac-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.ac-head b {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.25rem;
  color: #fff;
  min-width: 170px;
  text-align: center;
}

.ac-today {
  margin-left: auto;
}

.ac-dows,
.ac-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.ac-dows span {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-3);
  padding: 2px 0 4px;
}

.ac-pad {
  display: block;
}

.ac-d {
  position: relative;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 8px 7px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s,
    transform 0.15s,
    background 0.15s;
  overflow: hidden;
}

.ac-d:hover {
  border-color: var(--accent-2);
  transform: translateY(-1px);
}

.ac-d b {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.ac-d em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 3px 6px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-libre {
  background: rgba(76, 201, 138, 0.14);
  color: #6fe0a6;
}

.p-resa {
  background: rgba(110, 140, 255, 0.24);
  color: #d6e0ff;
}

.p-blk {
  background: rgba(242, 139, 130, 0.16);
  color: #f7a39c;
}

.p-ferie {
  background: rgba(242, 193, 78, 0.16);
  color: #f5cf72;
}

.ac-d.is-blk {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(242, 139, 130, 0.08) 0 8px,
      transparent 8px 16px
    ),
    var(--surface);
  border-color: rgba(242, 139, 130, 0.35);
}

.ac-d.is-ferie {
  border-color: rgba(242, 193, 78, 0.35);
}

.ac-d.is-ferme {
  background: transparent;
  border-style: dashed;
  opacity: 0.55;
}

.ac-d.is-past {
  opacity: 0.38;
}

.ac-d.is-today b {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: -4px 0 0 -3px;
  border-radius: 50%;
  background: #3d62ee;
}

.ac-d.ovr::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f2c14e;
}

.ac-d.sel {
  border-color: #8fa6ff;
  box-shadow: 0 0 0 2px rgba(143, 166, 255, 0.55);
}

.ac-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--ink-2);
}

.ac-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ac-legend i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
}

.lg-libre {
  background: #4cc98a;
}

.lg-resa {
  background: #6e8cff;
}

.lg-blk {
  background: #f28b82;
}

.lg-ferie {
  background: #f2c14e;
}

.lg-ferme {
  border: 1px dashed var(--ink-3);
}

@media (max-width: 640px) {
  .admcard {
    padding: 14px;
  }

  .ac-dows,
  .ac-days {
    gap: 3px;
  }

  .ac-d {
    min-height: 54px;
    padding: 5px 3px;
    align-items: center;
    border-radius: 9px;
  }

  .ac-d b {
    font-size: 0.82rem;
  }

  .ac-d em {
    font-size: 0;
    padding: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
  }

  .ac-d em.p-libre {
    background: #4cc98a;
  }

  .ac-d em.p-resa {
    background: #6e8cff;
  }

  .ac-d em.p-blk {
    background: #f28b82;
  }

  .ac-d em.p-ferie {
    background: #f2c14e;
  }

  .ac-head b {
    min-width: 0;
    font-size: 1rem;
    white-space: nowrap;
  }

  .ac-head {
    gap: 6px;
  }

  .ac-today {
    padding: 6px 10px !important;
    font-size: 0.75rem !important;
  }
}

/* journée choisie */
.ac-daycard h3::first-letter,
.ac-up b::first-letter {
  text-transform: uppercase;
}

.ac-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
}

.t-libre {
  background: rgba(76, 201, 138, 0.14);
  color: #6fe0a6;
}

.t-resa {
  background: rgba(110, 140, 255, 0.22);
  color: #d6e0ff;
}

.t-blk {
  background: rgba(242, 139, 130, 0.16);
  color: #f7a39c;
}

.t-ferie {
  background: rgba(242, 193, 78, 0.16);
  color: #f5cf72;
}

.t-ferme {
  background: var(--surface-2);
  color: var(--ink-3);
}

.ac-sec {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.ac-sec h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  font-family: var(--f-body);
}

.ac-rlist {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 6px;
}

.ac-rlist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(110, 140, 255, 0.12);
  border: 1px solid rgba(110, 140, 255, 0.25);
}

.ac-rh {
  font-weight: 700;
  color: #fff;
  min-width: 42px;
}

.ac-rn {
  flex: 1;
  min-width: 0;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ac-del {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-2);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.ac-del:hover {
  background: rgba(242, 139, 130, 0.25);
  color: #fff;
}

.ac-add {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
}

.ac-add select,
.ac-add input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ground);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  min-width: 0;
}

.ac-add .btn {
  padding: 10px 16px !important;
  font-size: 0.88rem !important;
}

.ac-note {
  font-size: 0.78rem;
  color: var(--ink-3);
  margin-top: 8px;
  line-height: 1.45;
}

.adm-acts {
  margin-top: 18px;
}

/* prochaines réservations */
.ac-up {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.ac-up button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: var(--ground);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  text-align: left;
}

.ac-up button:hover {
  border-color: var(--accent-2);
}

.ac-up b {
  font-weight: 600;
  display: inline-block;
}

.ac-up span {
  color: #b9c8ff;
  white-space: nowrap;
}

.ac-empty {
  font-size: 0.86rem;
  color: var(--ink-3);
}

/* sections repliables */
.adm-more {
  margin-top: 18px;
}

.adm-more summary {
  cursor: pointer;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-more summary::-webkit-details-marker {
  display: none;
}

.adm-more summary::before {
  content: "›";
  display: inline-block;
  transition: transform 0.2s;
  color: var(--accent-2);
  font-size: 1.3rem;
  line-height: 1;
}

.adm-more[open] summary::before {
  transform: rotate(90deg);
}

.adm-more[open] summary {
  margin-bottom: 14px;
}

.ac-settings {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  align-items: end;
  margin-top: 16px;
}

.ac-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-2);
  margin-top: 10px;
  cursor: pointer;
}

.ac-check input {
  width: 18px;
  height: 18px;
  accent-color: #3d62ee;
}

/* demande reçue par courriel */
.adm-pending {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(76, 201, 138, 0.16),
    rgba(76, 201, 138, 0.05)
  );
  border: 1px solid rgba(76, 201, 138, 0.45);
}

.adm-pending div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.adm-pending b {
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
}

.adm-pending span {
  color: var(--ink-2);
  font-size: 0.92rem;
}

/* code d'accès */
.adm-gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 9, 30, 0.72);
  backdrop-filter: blur(8px);
}

.adm-gate[hidden] {
  display: none !important;
}

.adm-gate-box {
  position: relative;
  width: min(380px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 28px 28px;
  border-radius: 22px;
  background: linear-gradient(170deg, #18255f, #0e1742);
  border: 1px solid rgba(143, 166, 255, 0.25);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
  text-align: center;
}

.adm-gate-box .adm-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  font-size: 1.2rem;
}

.adm-gate-ic {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(61, 98, 238, 0.22);
  color: #afc0ff;
}

.adm-gate-ic svg {
  width: 26px;
  height: 26px;
}

.adm-gate-box h3 {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.25rem;
  color: #fff;
  margin-top: 4px;
}

.adm-gate-box p {
  color: var(--ink-2);
  font-size: 0.92rem;
}

.adm-gate-box input {
  width: 100%;
  margin-top: 6px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--ground);
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.5em;
  text-align: center;
  text-indent: 0.5em;
}

.adm-gate-box input:focus {
  outline: none;
  border-color: #8fa6ff;
  box-shadow: 0 0 0 3px rgba(143, 166, 255, 0.25);
}

.adm-gate-box .btn {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.adm-gate-err {
  color: #f7a39c !important;
  font-weight: 600;
}

.adm-gate-box.shake {
  animation: acShake 0.35s;
}

@keyframes acShake {
  0%,
  100% {
    transform: none;
  }

  25% {
    transform: translateX(-8px);
  }

  75% {
    transform: translateX(8px);
  }
}

#mds3 .addrlist li span::before {
  content: "";
}

/* ===== Texte justifié partout, avec coupure des mots en français ===== */
.tj-l {
  text-align: justify !important;
  text-justify: inter-word;
  hyphens: manual;
  -webkit-hyphens: manual;
  overflow-wrap: normal;
  word-break: normal;
}

.tj-c {
  text-align: justify !important;
  text-align-last: center !important;
  text-justify: inter-word;
  hyphens: manual;
  -webkit-hyphens: manual;
  overflow-wrap: normal;
  word-break: normal;
}

/* même espace vide sous le planificateur que sous la demande de soumission */
#planificateur.sec {
  padding-bottom: calc(var(--sp-sec) + clamp(18px, 2.4vw, 28px)) !important;
}

/* ===== Couche interactive 3D : ruban à mesurer, cartes en relief, plan filaire, grille de chantier ===== */
/* ruban à mesurer : progression de la lecture, sous la barre du haut */
.fx-tape {
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 5px;
  width: 100%;
  pointer-events: none;
  z-index: 2;
  transform-origin: left center;
  transform: scaleX(var(--fx-p, 0));
  background:
    repeating-linear-gradient(
      90deg,
      rgba(20, 20, 20, 0.55) 0 1px,
      transparent 1px 12px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(20, 20, 20, 0.7) 0 1.5px,
      transparent 1.5px 60px
    ),
    linear-gradient(180deg, #f7d365, #e8b928);
  background-size:
    auto 45%,
    auto 100%,
    auto;
  background-repeat: repeat-x;
  background-position:
    0 0,
    0 0,
    0 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.fx-tape::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -2px;
  width: 5px;
  height: 9px;
  border-radius: 1px;
  background: #2a2a2a;
}

/* cartes en relief 3D */
.fx-tilt {
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1),
    box-shadow 0.3s;
}

.fx-tilt.fx-on {
  transition:
    transform 0.08s linear,
    box-shadow 0.3s;
}

.fx-tilt.fx-hot,
.fx-tilt.fx-on {
  transition-delay: 0s !important;
}

.fx-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(
    420px circle at var(--gx, 50%) var(--gy, 50%),
    rgba(255, 255, 255, 0.16),
    rgba(143, 166, 255, 0.06) 35%,
    transparent 60%
  );
  mix-blend-mode: screen;
}

.fx-tilt.fx-on .fx-glare {
  opacity: 1;
}

.fx-tilt .simg img {
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* boutons magnétiques */
.fx-mag {
  transition: translate 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
  translate: var(--mx, 0) var(--my, 0);
}

/* halo qui suit le curseur dans les sections foncées */
.fx-spot {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
    600px circle at var(--cx, 50%) var(--cy, 30%),
    rgba(61, 98, 238, 0.1),
    transparent 60%
  );
}

/* en-tête de page : plan filaire 3D + grille de chantier en perspective */
.pagehead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.pagehead > .wrap {
  position: relative;
  z-index: 1;
}

.fx-house {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(42%, 620px);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}

.fx-house.on {
  opacity: 1;
}

.fx-floor {
  position: absolute;
  left: -25%;
  right: -25%;
  bottom: -2px;
  height: 62%;
  z-index: -1;
  pointer-events: none;
  transform: perspective(520px) rotateX(62deg);
  transform-origin: 50% 100%;
  background-image:
    linear-gradient(rgba(143, 166, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 166, 255, 0.22) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: fxFloor 6s linear infinite;
  -webkit-mask-image: linear-gradient(
    to top,
    #000 0%,
    rgba(0, 0, 0, 0.6) 45%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to top,
    #000 0%,
    rgba(0, 0, 0, 0.6) 45%,
    transparent 100%
  );
}

@keyframes fxFloor {
  to {
    background-position:
      0 48px,
      0 0;
  }
}

/* entrée des sections en 3D */
.fx-rise {
  opacity: 0;
  transform: perspective(1100px) rotateX(10deg) translateY(34px);
  transform-origin: 50% 0;
  transition:
    opacity 0.9s ease,
    transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.fx-rise.fx-seen {
  opacity: 1;
  transform: none;
}

/* titre de l'accueil : léger relief qui suit la souris */
.hero-copy {
  transition: translate 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
  translate: var(--hx, 0) var(--hy, 0);
}

@media (max-width: 900px) {
  .fx-house {
    display: none;
  }

  .fx-floor {
    height: 48%;
  }

  .fx-rise {
    transform: translateY(28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-floor {
    animation: none;
  }

  .fx-rise {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .fx-tilt,
  .fx-mag,
  .hero-copy {
    transition: none;
    translate: none;
  }
}

/* sur les grands écrans, le contenu occupe plus de largeur */
:root {
  --maxw: clamp(1240px, 86vw, 1720px);
}

footer .lnk-legal {
  color: #6c7486;
  font-size: 0.82rem;
}

footer .lnk-legal a {
  color: #4a5264 !important;
  text-decoration: none;
}

footer .lnk-legal a:hover {
  color: #16215a !important;
  text-decoration: underline !important;
}

.md-consent {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 12px;
  margin: 18px 0 6px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(61, 98, 238, 0.06);
  cursor: pointer;
}

.md-consent input {
  width: 20px;
  height: 20px;
  flex: none;
  margin: 2px 0 0;
  accent-color: #3d62ee;
  padding: 0 !important;
}

.md-consent span {
  font-size: 0.95rem !important;
  line-height: 1.55;
  color: var(--ink-2) !important;
  font-weight: 400 !important;
}

.md-consent a {
  color: #afc0ff;
}

.svc-tabs {
  gap: 10px !important;
}

.svc-tab {
  display: inline-flex !important;
  align-items: center;
  gap: 12px !important;
  padding: 8px 20px 8px 8px !important;
  border-radius: 14px !important;
  font-family: "Montserrat", Arial, sans-serif !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
}

.svc-tab .tab-ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(143, 166, 255, 0.12);
  transition: background 0.2s;
}

.svc-tab .tab-ic svg {
  width: 22px !important;
  height: 22px !important;
  color: #afc0ff !important;
}

.svc-tab[aria-pressed="true"] .tab-ic {
  background: rgba(255, 255, 255, 0.2);
}

.svc-tab[aria-pressed="true"] .tab-ic svg {
  color: #fff !important;
}

/* ===== Sélecteur Cuisine / Salle de bain : interrupteur segmenté avec curseur glissant ===== */
#svcTabs {
  --i: 0;
  --n: 2;
  position: relative;
  display: grid !important;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 0 !important;
  width: min(100%, 520px);
  padding: 6px;
  border-radius: 18px;
  isolation: isolate;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.025)
  );
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 34px -18px rgba(0, 0, 0, 0.7);
}

#svcTabs::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: calc((100% - 12px) / var(--n));
  border-radius: 13px;
  transform: translateX(calc(var(--i) * 100%));
  transition: transform 0.5s cubic-bezier(0.3, 0.8, 0.2, 1);
  background: linear-gradient(135deg, #4a6cf7 0%, #3556e6 55%, #2a44c9 100%);
  box-shadow:
    0 10px 24px -10px rgba(58, 92, 240, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

#svcTabs .svc-tab {
  justify-content: center;
  gap: 12px !important;
  padding: 12px 18px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: transparent !important;
  color: #9aa8d6 !important;
  box-shadow: none !important;
  transform: none !important;
  font-size: 1.02rem !important;
  transition: color 0.3s;
}

#svcTabs .svc-tab:hover {
  color: #fff !important;
}

#svcTabs .svc-tab[aria-pressed="true"] {
  color: #fff !important;
  background: transparent !important;
}

#svcTabs .svc-tab .tab-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.3s;
}

#svcTabs .svc-tab[aria-pressed="true"] .tab-ic {
  background: rgba(255, 255, 255, 0.16);
}

#svcTabs .svc-tab .tab-ic svg {
  color: #9aa8d6 !important;
  transition: color 0.3s;
}

#svcTabs .svc-tab:hover .tab-ic svg,
#svcTabs .svc-tab[aria-pressed="true"] .tab-ic svg {
  color: #fff !important;
}

#svcTabs .svc-tab:focus-visible {
  outline: 2px solid #8fa6ff;
  outline-offset: 2px;
}

.address-suggestions {
  border: 1px solid #d5d9d6;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  margin: -8px 0 12px;
  color: #1f1f1f;
}
.address-suggestions[hidden] {
  display: none;
}
.address-suggestions [role="option"] {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  line-height: 1.4;
}
.address-suggestions [role="option"]:hover,
.address-suggestions [aria-selected="true"] {
  background: #eef3ed;
}
.google-attribution {
  padding: 8px 16px;
  text-align: right;
  font:
    normal 400 13px Arial,
    sans-serif;
  letter-spacing: normal;
  white-space: nowrap;
  color: #5e5e5e;
}

@media (max-width: 560px) {
  #svcTabs {
    width: 100%;
  }

  #svcTabs .svc-tab {
    padding: 10px 10px !important;
    gap: 9px !important;
    font-size: 0.95rem !important;
  }

  #svcTabs .svc-tab .tab-ic {
    width: 30px;
    height: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #svcTabs::before {
    transition: none;
  }
}

/* ===== Planificateur : tout visible dans un seul écran ===== */
#planificateur {
  scroll-margin-top: calc(var(--hdr, 70px) + 8px);
}

.chip-ech {
  display: none;
}

.est-note {
  margin: 14px 2px 0;
  color: var(--on-deep-2, #9fb0df);
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: left !important;
}

.panel .svc-tabs {
  margin: 0 !important;
}

#svcTabs {
  width: 100% !important;
}

.panel-head {
  margin-top: 2px;
}

@media (min-width: 1000px) {
  .planner {
    height: clamp(520px, calc((100vh - var(--hdr, 70px)) * 0.9 - 12px), 860px);
    grid-template-columns: minmax(0, 1fr) clamp(420px, 34vw, 500px) !important;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .stage {
    min-height: 0 !important;
    height: auto !important;
  }

  .panel {
    min-height: 0;
    overflow-y: auto !important;
    max-height: none !important;
    padding: 14px 18px 16px !important;
    gap: 12px !important;
  }

  #svcTabs {
    padding: 5px;
  }

  #svcTabs .svc-tab {
    padding: 8px 12px !important;
    font-size: 0.95rem !important;
  }

  #svcTabs .svc-tab .tab-ic {
    width: 30px;
    height: 30px;
  }

  .panel h3 {
    font-size: 1.05rem !important;
  }

  #controls {
    gap: 0 !important;
  }

  .pgrp {
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 12px 0 !important;
    gap: 10px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.09) !important;
  }

  .pgrp:first-child {
    border-top: 0 !important;
    padding-top: 4px !important;
  }

  .pgrp h4 {
    font-size: 0.92rem !important;
  }

  .pgrp h4::before {
    width: 21px !important;
    height: 21px !important;
    font-size: 0.72rem !important;
  }

  .pgrp .field {
    display: grid !important;
    grid-template-columns: 128px minmax(0, 1fr);
    align-items: center;
    gap: 6px 12px !important;
  }

  .pgrp .field > label {
    font-size: 0.84rem !important;
    line-height: 1.25;
  }

  .pgrp .field:has(input[type="range"]) {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px !important;
  }

  .pgrp .opts {
    gap: 5px;
  }

  .pgrp .opt {
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
  }

  .pgrp .swatches {
    gap: 6px;
  }

  .pgrp .sw {
    width: 30px !important;
    height: 30px !important;
  }

  .pgrp input[type="range"] {
    margin: 5px 0 2px !important;
  }

  .panel-head {
    display: none !important;
  }

  .chip-ech {
    display: inline-block;
  }

  .pgrp {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 18px !important;
  }

  .pgrp > * {
    grid-column: 1/-1;
  }

  .pgrp > .field:has(input[type="range"]) {
    grid-column: auto;
  }

  .est-rows {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2px 22px !important;
  }

  .est-rows .row {
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: space-between;
    background: none !important;
    border: 0 !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12) !important;
    border-radius: 0 !important;
    padding: 5px 0 !important;
    min-width: 0 !important;
  }

  .est-rows .row span {
    color: #aebbe3;
  }

  /* estimation : une seule rangée compacte */
  .planner > .est {
    grid-template-columns: minmax(0, 1fr) auto 300px !important;
    gap: 14px 28px !important;
    padding: 14px 20px !important;
  }

  .est-rows .row {
    font-size: 0.8rem !important;
  }

  .est-rows .row:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .est-rows .row b {
    font-size: 0.9rem !important;
  }

  .est-tot .tot b {
    font-size: clamp(1.35rem, 1.9vw, 1.75rem) !important;
  }

  .est-tot .tot span {
    font-size: 0.85rem !important;
  }

  .est-go {
    gap: 8px !important;
  }

  .est-go .plan-joint {
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
  }

  .est-go .plan-joint .ck {
    width: 20px !important;
    height: 20px !important;
  }

  .est-go .btn {
    padding-block: 13px !important;
    font-size: 0.98rem !important;
  }
}

/* ===== Disponibilités : semaine claire, un clic pour choisir ===== */
.wk {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 6px;
}

.wk-first {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(74, 108, 247, 0.22),
    rgba(42, 68, 201, 0.12)
  );
  border: 1px solid rgba(143, 166, 255, 0.35);
}

.wk-first[hidden] {
  display: none;
}

.wk-first-txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wk-first-txt span {
  font-size: 0.9rem;
  color: #c9d3f0;
}

.wk-first-txt b {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
}

.wk-first-btn {
  font:
    600 0.95rem "Montserrat",
    Arial,
    sans-serif;
  color: #fff;
  cursor: pointer;
  padding: 11px 20px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(135deg, #4a6cf7, #2a44c9);
  box-shadow: 0 10px 22px -12px rgba(58, 92, 240, 0.9);
  transition:
    transform 0.15s,
    filter 0.15s;
}

.wk-first-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.wk-first.on {
  background: linear-gradient(
    135deg,
    rgba(76, 201, 138, 0.18),
    rgba(31, 157, 97, 0.1)
  );
  border-color: rgba(90, 211, 154, 0.45);
}

.wk-first.on .wk-first-btn {
  background: linear-gradient(145deg, #5ad39a, #1f9d61);
  box-shadow: 0 10px 22px -12px rgba(31, 157, 97, 0.9);
}

.wk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wk-head b {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.wk-nav {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition:
    background 0.15s,
    border-color 0.15s;
}

.wk-nav svg {
  width: 18px;
  height: 18px;
}

.wk-nav:hover:not(:disabled) {
  background: rgba(74, 108, 247, 0.35);
  border-color: rgba(143, 166, 255, 0.6);
}

.wk-nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.wk-days {
  display: grid;
  grid-template-columns: repeat(var(--wkn, 5), minmax(0, 1fr));
  gap: 10px;
}

.wk-day {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 10px 12px;
  border-radius: 14px;
  min-height: 150px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    border-color 0.2s,
    background 0.2s;
}

.wk-day.open {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.wk-day.sel {
  border-color: rgba(143, 166, 255, 0.7);
  background: rgba(74, 108, 247, 0.14);
}

.wk-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  text-align: center;
}

.wk-dow {
  font-size: 0.85rem;
  color: #aebbe3;
  text-transform: capitalize;
}

.wk-date b {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.wk-mon {
  font-size: 0.8rem;
  color: #8f9cc8;
}

.wk-day.today .wk-date b {
  color: #f2c14e;
}

.wk-day.off .wk-date b,
.wk-day.off .wk-dow,
.wk-day.off .wk-mon {
  opacity: 0.45;
}

.wk-slots {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.wk-slot {
  font:
    600 0.92rem "Inter",
    Arial,
    sans-serif;
  color: #fff;
  cursor: pointer;
  padding: 10px 6px;
  border-radius: 10px;
  background: rgba(74, 108, 247, 0.18);
  border: 1px solid rgba(143, 166, 255, 0.4);
  transition:
    background 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}

.wk-slot:hover {
  background: rgba(74, 108, 247, 0.4);
  transform: translateY(-1px);
}

.wk-slot.sel {
  background: linear-gradient(135deg, #4a6cf7, #2a44c9);
  border-color: transparent;
  box-shadow: 0 8px 20px -10px rgba(58, 92, 240, 0.95);
}

.wk-none {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  color: #7f8bb5;
  padding: 10px 0;
}

.wk-sel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 14px;
  color: #cff5e1;
  font-size: 0.98rem;
  background: linear-gradient(
    135deg,
    rgba(76, 201, 138, 0.16),
    rgba(31, 157, 97, 0.08)
  );
  border: 1px solid rgba(90, 211, 154, 0.4);
}

.wk-sel[hidden] {
  display: none;
}

.wk-sel b {
  color: #fff;
  font-weight: 600;
}

.wk-sel .ck {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #5ad39a, #1f9d61);
}

.wk-sel .ck svg {
  width: 14px;
  height: 14px;
  color: #fff;
}

@media (max-width: 640px) {
  .wk-days {
    grid-template-columns: minmax(0, 1fr);
  }

  .wk-day {
    flex-direction: row;
    align-items: center;
    min-height: 0;
    padding: 10px 12px;
    gap: 14px;
  }

  .wk-date {
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    min-width: 118px;
  }

  .wk-date b {
    font-size: 1.25rem;
  }

  .wk-slots {
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0 0 0 auto;
    justify-content: flex-end;
  }

  .wk-slot {
    padding: 9px 14px;
  }

  .wk-none {
    padding: 0;
  }

  .wk-first-btn {
    width: 100%;
  }
}

/* ===== Planificateur v4 : aéré, lisible, sans sous-sections ===== */
#controls {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px 20px !important;
}

#controls .pgrp {
  display: contents !important;
}

#controls .pgrp h4 {
  display: none !important;
}

#controls .field {
  grid-column: 1/-1;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

#controls .field:has(input[type="range"]) {
  grid-column: auto;
  gap: 6px !important;
}

#controls .field > label {
  display: flex !important;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-family: "Inter", Arial, sans-serif !important;
  font-size: 0.93rem !important;
  font-weight: 500 !important;
  color: #dce3f7 !important;
  line-height: 1.3;
}

#controls .field > label output {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  color: #fff;
  font-size: 0.93rem;
}

#controls .field > label .sw-name {
  font-family: "Inter", Arial, sans-serif;
  font-weight: 500;
  color: #9fb0df;
  font-size: 0.86rem;
}

#controls .opts {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 6px !important;
  padding: 4px;
  border-radius: 13px;
  background: rgba(6, 12, 44, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

#controls .opt {
  padding: 10px 8px !important;
  font-size: 0.86rem !important;
  font-weight: 500;
  border-radius: 9px !important;
  text-align: center;
  background: transparent !important;
  border: 1px solid transparent !important;
  color: #b9c5ea !important;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease !important;
}

#controls .opt:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #fff !important;
}

#controls .opt[aria-pressed="true"] {
  background: linear-gradient(135deg, #4a6cf7, #2f4fd8) !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow:
    0 6px 16px -8px rgba(58, 92, 240, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

#controls .swatches {
  gap: 10px !important;
}

#controls .sw {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(255, 255, 255, 0.14) !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

#controls .sw:hover {
  transform: scale(1.08);
}

#controls .sw[aria-pressed="true"] {
  border-color: #fff !important;
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.85) !important;
}

#controls input[type="range"] {
  height: 4px;
  margin: 8px 0 4px !important;
  background: linear-gradient(
    90deg,
    #4a6cf7 0 var(--fill, 50%),
    rgba(255, 255, 255, 0.16) var(--fill, 50%) 100%
  ) !important;
}

#controls input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  border: 5px solid #4a6cf7;
  transition: transform 0.15s;
}

#controls input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.15);
}

@media (min-width: 1000px) {
  .planner {
    grid-template-columns: minmax(0, 1fr) clamp(430px, 33vw, 500px) !important;
  }

  .panel {
    padding: 18px 22px 22px !important;
    gap: 22px !important;
  }

  .planner > .est {
    grid-template-columns: auto minmax(0, 1fr) 290px !important;
    gap: 18px 36px !important;
    padding: 16px 24px !important;
  }

  .est-tot {
    order: -1;
  }

  .est-rows {
    display: flex !important;
    flex-wrap: wrap;
    gap: 4px 22px !important;
    align-content: center;
  }

  .est-rows .row {
    border: 0 !important;
    padding: 2px 0 !important;
    gap: 8px !important;
    justify-content: flex-start !important;
  }
}

.est-rows .row span {
  color: #9fb0df !important;
}

.est-rows .row b {
  color: #fff;
}

#pTot {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

#pTot.bump {
  animation: totBump 0.5s ease;
}

@keyframes totBump {
  0% {
    transform: scale(1);
  }

  35% {
    transform: scale(1.035);
    color: #dce6ff;
  }

  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  #pTot.bump {
    animation: none;
  }
}

#controls .opts.opts-2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

#controls .opts.opts-2 > .opt:last-child:nth-child(odd) {
  grid-column: 1/-1;
}

#controls .opt {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 9px 8px !important;
}

#controls {
  row-gap: 19px !important;
}

@media (min-width: 1000px) {
  .panel {
    gap: 19px !important;
  }
}

.panel {
  -webkit-mask-image: none;
}

@media (max-width: 560px) {
  #controls {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #controls .field:has(input[type="range"]) {
    grid-column: 1/-1;
  }

  #controls .opts {
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  }

  #controls .opt {
    font-size: 0.84rem !important;
  }
}

/* ===== Barre d'estimation : épurée, aérée, alignée ===== */
.planner > .est {
  position: relative !important;
  overflow: hidden;
  background:
    radial-gradient(
      120% 160% at 0% 0%,
      rgba(74, 108, 247, 0.28) 0%,
      rgba(74, 108, 247, 0) 55%
    ),
    linear-gradient(180deg, #17256f 0%, #101b55 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  border-top: 1px solid rgba(143, 166, 255, 0.22);
}

.est-tot .tot span {
  font-family: "Inter", Arial, sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 500;
  color: #afc0ee !important;
  letter-spacing: 0 !important;
}

.est-tot .tot b {
  font-family: "Montserrat", Arial, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  white-space: nowrap;
  background: linear-gradient(180deg, #ffffff 30%, #c9d6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.est-rows .row span {
  font-family: "Inter", Arial, sans-serif !important;
  font-size: 0.8rem !important;
  color: #93a3d6 !important;
  white-space: nowrap;
}

.est-rows .row b {
  font-family: "Montserrat", Arial, sans-serif !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  white-space: nowrap;
}

.est-go .plan-joint {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  justify-content: center;
  font-size: 0.84rem !important;
  color: #9fe3c1 !important;
  gap: 8px !important;
}

.est-go .plan-joint .ck {
  width: 18px !important;
  height: 18px !important;
  box-shadow: none !important;
}

.est-go .plan-joint .ck svg {
  width: 11px !important;
  height: 11px !important;
}

#sendPlan {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  white-space: nowrap;
  border-radius: 14px !important;
  font-family: "Montserrat", Arial, sans-serif !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 16px 22px !important;
  background: linear-gradient(
    135deg,
    #5474fa 0%,
    #3556e6 50%,
    #2a44c9 100%
  ) !important;
  border: 0 !important;
  box-shadow:
    0 14px 30px -14px rgba(58, 92, 240, 1),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    filter 0.2s;
}

#sendPlan::after {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  background: currentColor;
  transition: transform 0.25s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E")
    center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E")
    center/contain no-repeat;
}

#sendPlan:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow:
    0 18px 34px -14px rgba(58, 92, 240, 1),
    inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

#sendPlan:hover::after {
  transform: translateX(3px);
}

@media (min-width: 1000px) {
  .planner > .est {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: 0 !important;
    padding: 20px 26px !important;
    align-items: center;
  }

  .est-tot {
    padding-right: 30px;
    margin-right: 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  .est-tot .tot {
    gap: 2px !important;
  }

  .est-tot .tot b {
    font-size: clamp(1.6rem, 2.2vw, 2.1rem) !important;
  }

  .est-rows {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    align-items: stretch;
    min-width: 0;
  }

  .est-rows .row {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 0 22px !important;
    border: 0 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    min-width: 0;
  }

  .est-rows .row:first-child {
    border-left: 0 !important;
    padding-left: 0 !important;
  }

  .est-go {
    padding-left: 24px;
    align-items: stretch;
    gap: 9px !important;
    min-width: 280px;
  }
}

@media (min-width: 1000px) and (max-width: 1250px) {
  .est-rows .row {
    padding: 0 14px !important;
  }

  .est-rows .row span {
    font-size: 0.74rem !important;
  }

  .est-rows .row b {
    font-size: 0.92rem !important;
  }
}

@media (max-width: 999px) {
  .planner > .est {
    gap: 18px !important;
    padding: 20px !important;
  }

  .est-rows {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px !important;
  }

  .est-rows .row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 3px !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
  }

  .est-tot {
    order: -1;
  }

  .est-tot .tot b {
    font-size: 1.9rem !important;
  }
}

@media (min-width: 1000px) {
  .planner > .est {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "tot go" "rows rows";
    gap: 0 !important;
    padding: 18px 26px 0 !important;
  }

  .est-tot {
    grid-area: tot;
    order: 0;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
  }

  .est-go {
    grid-area: go;
    padding: 0 !important;
    min-width: 0 !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 18px !important;
  }

  .est-go .plan-joint {
    max-width: 210px;
    text-align: left !important;
    justify-content: flex-start;
  }

  #sendPlan {
    padding: 15px 24px !important;
  }

  .est-rows {
    grid-area: rows;
    display: flex !important;
    flex-wrap: nowrap !important;
    margin: 16px -26px 0;
    padding: 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(4, 10, 40, 0.22);
  }

  .est-rows .row {
    flex: 1 1 0 !important;
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 12px 18px !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .est-rows .row:first-child {
    padding-left: 0 !important;
  }

  .est-rows .row:last-child {
    padding-right: 0 !important;
  }

  .est-rows .row span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
}

@media (min-width: 1000px) {
  .est-rows .row {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 3px !important;
    padding: 12px 18px 14px !important;
  }

  .est-rows .row span {
    white-space: normal;
    overflow: visible;
  }
}

@media (min-width: 1000px) and (max-width: 1250px) {
  .est-rows .row {
    padding: 11px 12px 13px !important;
  }
}

/* ===== Détails du projet ===== */
.pj {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pj-h {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.pj-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pj-lab {
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #dce3f7;
}

.pj-sub {
  font-size: 0.84rem;
  color: #93a3d6;
  margin-top: -2px;
}

.pj-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.pj-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font:
    500 0.9rem "Inter",
    Arial,
    sans-serif;
  color: #c9d3f0;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}

.pj-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.pj-chip[aria-pressed="true"] {
  background: linear-gradient(135deg, #4a6cf7, #2f4fd8);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 18px -10px rgba(58, 92, 240, 0.95);
}

#mdTypes .pj-chip[aria-pressed="true"]::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.2 4.2L18.5 7.8'/%3E%3C/svg%3E")
    center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.2 4.2L18.5 7.8'/%3E%3C/svg%3E")
    center/contain no-repeat;
}

.pj .pj-msg textarea {
  min-height: 120px;
}

/* ===== Calendrier style agenda ===== */
.gcal {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 6px;
  background: rgba(6, 12, 44, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gcal-month {
  padding: 22px 24px 24px;
}

.gcal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.gcal-head b {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.gcal-dows,
.gcal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  justify-items: center;
}

.gcal-dows {
  margin-bottom: 8px;
}

.gcal-dows span {
  font:
    600 0.82rem "Inter",
    Arial,
    sans-serif;
  color: #8f9cc8;
  padding: 6px 0;
}

.gcal-grid {
  row-gap: 6px;
}

.gd {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font:
    500 0.95rem "Inter",
    Arial,
    sans-serif;
  position: relative;
}

span.gd {
  color: rgba(185, 197, 234, 0.3);
}

button.gd {
  cursor: pointer;
  border: 0;
  color: #fff;
  font-weight: 700;
  background: rgba(74, 108, 247, 0.2);
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
}

button.gd:hover {
  background: rgba(74, 108, 247, 0.42);
  transform: scale(1.06);
}

.gd.today::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: #f2c14e;
}

button.gd.sel {
  background: linear-gradient(135deg, #5474fa, #2f4fd8);
  box-shadow: 0 8px 20px -8px rgba(58, 92, 240, 1);
}

.gcal-side {
  padding: 22px 22px 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}

.gcal-day {
  margin: 0;
  font-size: 1rem;
  color: #c9d3f0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.gcal-day b {
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  margin-right: 6px;
}

.gcal-slots {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 340px;
  overflow: auto;
}

.gslot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  cursor: pointer;
  padding: 14px 16px;
  border-radius: 12px;
  font:
    600 1rem "Inter",
    Arial,
    sans-serif;
  color: #dce6ff;
  background: transparent;
  border: 1.5px solid rgba(143, 166, 255, 0.55);
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}

.gslot:hover {
  background: rgba(74, 108, 247, 0.18);
  border-color: #8fa6ff;
  color: #fff;
}

.gslot-ck {
  display: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  place-items: center;
}

.gslot-ck svg {
  width: 12px;
  height: 12px;
  color: #fff;
}

.gslot.sel {
  background: linear-gradient(135deg, #5474fa, #2f4fd8);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(58, 92, 240, 1);
}

.gslot.sel .gslot-ck {
  display: grid;
}

.gcal-none {
  margin: 0;
  color: #8f9cc8;
  font-size: 0.92rem;
}

#mds4 .wk-sel {
  margin-top: 16px;
}

@media (max-width: 760px) {
  .gcal {
    grid-template-columns: minmax(0, 1fr);
  }

  .gcal-month {
    padding: 16px 12px 18px;
  }

  .gd {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .gcal-side {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 16px 20px;
  }

  .gcal-slots {
    max-height: none;
  }
}

.est-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  font:
    600 0.88rem "Inter",
    Arial,
    sans-serif;
  color: #afc0ff;
  transition: color 0.2s;
}

.est-more:hover {
  color: #fff;
}

.est-more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.est.open .est-more svg {
  transform: rotate(180deg);
}

.planner > .est .est-rows {
  display: none !important;
}

.planner > .est.open .est-rows {
  display: flex !important;
  animation: estIn 0.35s ease;
}

@media (max-width: 999px) {
  .planner > .est.open .est-rows {
    display: grid !important;
  }
}

@keyframes estIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 1000px) {
  .planner > .est:not(.open) {
    padding-bottom: 18px !important;
  }
}

/* ===== Détails du projet (étape 2) ===== */
#mds2 .pj {
  margin: 0;
  padding: 0;
  border: 0;
  gap: 26px;
}

#mds2 .pj-lab {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
}

#mds2 .pj-sub {
  font-size: 0.88rem;
  color: #9fb0df;
  margin: 0;
}

.pj-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.pj-card {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  gap: 14px !important;
  text-align: left;
  padding: 16px 16px 18px !important;
  border-radius: 14px !important;
  min-height: 112px;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #dce3f7 !important;
  font:
    600 0.92rem "Inter",
    Arial,
    sans-serif !important;
  line-height: 1.3;
  box-shadow: none !important;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s !important;
}

.pj-card:hover {
  border-color: rgba(143, 166, 255, 0.55) !important;
  background: rgba(74, 108, 247, 0.1) !important;
  transform: translateY(-2px);
}

.pj-ic {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(143, 166, 255, 0.12);
  color: #afc0ff;
  transition:
    background 0.2s,
    color 0.2s;
}

.pj-ic svg {
  width: 22px;
  height: 22px;
}

.pj-ck {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s;
}

.pj-card[aria-pressed="true"] {
  border-color: #5b7bff !important;
  background: linear-gradient(
    160deg,
    rgba(74, 108, 247, 0.26),
    rgba(42, 68, 201, 0.14)
  ) !important;
  color: #fff !important;
  box-shadow:
    0 0 0 1px #5b7bff inset,
    0 12px 26px -16px rgba(58, 92, 240, 0.9) !important;
}

.pj-card[aria-pressed="true"] .pj-ic {
  background: linear-gradient(135deg, #5474fa, #2f4fd8);
  color: #fff;
}

.pj-card[aria-pressed="true"] .pj-ck {
  border-color: transparent;
  background: #4a6cf7 center/12px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.2 4.2L18.5 7.8'/%3E%3C/svg%3E");
}

#mdTypes .pj-card[aria-pressed="true"]::before {
  content: none !important;
}

.pj-seg {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(6, 12, 44, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pj-seg .pj-chip {
  justify-content: center;
  text-align: center;
  border-radius: 10px !important;
  border: 0 !important;
  background: transparent !important;
  padding: 12px 10px !important;
  font:
    500 0.9rem "Inter",
    Arial,
    sans-serif !important;
  color: #b9c5ea !important;
  line-height: 1.25;
  box-shadow: none !important;
}

.pj-seg .pj-chip:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #fff !important;
}

.pj-seg .pj-chip[aria-pressed="true"] {
  background: linear-gradient(135deg, #4a6cf7, #2f4fd8) !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 6px 16px -8px rgba(58, 92, 240, 0.95) !important;
}

#mds2 .pj-msg {
  margin-top: 0;
}

#mds2 .pj-msg > span {
  font:
    600 1rem "Montserrat",
    Arial,
    sans-serif !important;
  color: #fff !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

@media (max-width: 900px) {
  .pj-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pj-seg {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .panel {
    padding: 14px 18px 16px !important;
    gap: 14px !important;
  }

  #controls {
    row-gap: 12px !important;
    column-gap: 16px !important;
  }

  #controls .field {
    gap: 7px !important;
  }

  #controls .field > label {
    font-size: 0.88rem !important;
  }

  #controls .opts {
    padding: 3px !important;
    gap: 4px !important;
    border-radius: 11px;
  }

  #controls .opt {
    padding: 7px 8px !important;
    font-size: 0.83rem !important;
  }

  #controls .sw {
    width: 30px !important;
    height: 30px !important;
  }

  #controls .swatches {
    gap: 8px !important;
  }

  #controls input[type="range"] {
    margin: 6px 0 2px !important;
  }

  #svcTabs {
    padding: 4px !important;
  }

  #svcTabs .svc-tab {
    padding: 6px 10px !important;
    font-size: 0.92rem !important;
  }

  #svcTabs .svc-tab .tab-ic {
    width: 28px !important;
    height: 28px !important;
  }

  .planner > .est {
    padding: 14px 24px 0 !important;
  }

  .planner > .est:not(.open) {
    padding-bottom: 14px !important;
  }

  .est-tot .tot b {
    font-size: clamp(1.45rem, 2vw, 1.85rem) !important;
  }

  #sendPlan {
    padding: 13px 22px !important;
  }
}

/* ===== Panneau d'options : sections distinctes, défilement doux ===== */
#controls {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

#controls .psec {
  display: block;
  border-radius: 16px;
  padding: 14px 16px 16px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.025)
  );
  border: 1px solid rgba(255, 255, 255, 0.09);
}

#controls .psec-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font:
    700 0.98rem "Montserrat",
    Arial,
    sans-serif;
  color: #fff;
  letter-spacing: 0;
}

#controls .psec-ic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
  background: linear-gradient(
    135deg,
    rgba(84, 116, 250, 0.35),
    rgba(47, 79, 216, 0.25)
  );
  color: #c7d3ff;
  border: 1px solid rgba(143, 166, 255, 0.25);
}

#controls .psec-ic svg {
  width: 17px;
  height: 17px;
}

#controls .psec-b {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 18px;
}

#controls .psec-b > .field {
  grid-column: 1/-1;
  gap: 9px !important;
}

#controls .psec-b > .field:has(input[type="range"]) {
  grid-column: auto;
  gap: 4px !important;
}

#controls .psec-solo .psec-b > .field > label {
  display: none !important;
}

#controls .opts {
  padding: 4px !important;
  gap: 5px !important;
  border-radius: 12px;
}

#controls .opt {
  padding: 9px 8px !important;
  font-size: 0.86rem !important;
}

#controls .sw {
  width: 34px !important;
  height: 34px !important;
}

#controls .swatches {
  gap: 10px !important;
}

#controls .field > label {
  font-size: 0.9rem !important;
  color: #c9d3f0 !important;
}

@media (min-width: 1000px) {
  .panel {
    padding: 0 16px 18px !important;
    gap: 14px !important;
    overflow-y: auto !important;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(143, 166, 255, 0.35) transparent;
  }

  .panel::-webkit-scrollbar {
    width: 6px;
  }

  .panel::-webkit-scrollbar-thumb {
    background: rgba(143, 166, 255, 0.35);
    border-radius: 6px;
  }

  .panel #svcTabs {
    position: sticky !important;
    top: 12px;
    z-index: 5;
    margin: 12px 0 2px !important;
    background: linear-gradient(180deg, #1e2e80, #1a2872) !important;
    box-shadow:
      0 -14px 0 12px #16236a,
      0 12px 20px -8px rgba(8, 14, 50, 0.75),
      inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  }

  .panel.more {
    -webkit-mask-image: linear-gradient(
      180deg,
      #000 calc(100% - 46px),
      transparent
    );
    mask-image: linear-gradient(180deg, #000 calc(100% - 46px), transparent);
  }
}

#controls .field:has(input[type="range"]) > label {
  font-size: 0.84rem !important;
  align-items: baseline;
}

#controls .field:has(input[type="range"]) > label output {
  white-space: nowrap;
  flex: none;
}

/* ===== Cellulaire : téléphone toujours accessible, menu lisible, zones tactiles confortables ===== */
@media (max-width: 767px) {
  .topbar-in {
    position: relative;
  }

  .topbar .tel-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0 !important;
    border-radius: 13px !important;
    gap: 0 !important;
  }

  .topbar .tel-btn span {
    display: none !important;
  }

  .topbar .tel-btn svg {
    width: 19px;
    height: 19px;
  }

  nav.main {
    scroll-behavior: smooth;
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
    mask-image: linear-gradient(90deg, #000 82%, transparent);
  }

  nav.main.at-end {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%);
    mask-image: linear-gradient(90deg, transparent, #000 18%);
  }

  nav.main.no-fade {
    -webkit-mask-image: none;
    mask-image: none;
  }

  nav.main a {
    padding-block: 10px !important;
  }

  footer ul {
    gap: 0 !important;
  }

  footer ul li {
    min-height: 40px;
    display: flex;
    align-items: center;
  }

  footer ul a {
    display: inline-flex !important;
    align-items: center;
    min-height: 40px;
  }

  footer .fine a,
  footer .lnk-legal a {
    display: inline-block;
    padding: 8px 0;
  }

  a.tlink {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .est-more {
    min-height: 40px;
  }

  .ignm small {
    font-size: 0.75rem !important;
  }

  .panel-head .sub {
    font-size: 0.78rem !important;
  }
}

@media (max-width: 640px) {
  #envoi .rvsteps {
    flex-wrap: nowrap !important;
    gap: 4px !important;
    margin-bottom: 20px !important;
  }

  #envoi .rvsteps {
    align-items: center;
  }

  #envoi .rvsteps li {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    justify-content: center;
    background: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  #envoi .rvsteps li span {
    display: none;
  }

  #envoi .rvsteps li.on {
    flex: 1 1 auto !important;
    justify-content: flex-start;
    padding: 8px 12px 8px 8px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--accent) !important;
  }

  #envoi .rvsteps li.on span {
    display: inline;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.stage-hud {
  right: 230px !important;
}

@media (max-width: 1279px) {
  .stage-hud .chip-ech {
    display: none !important;
  }
}

#controls .opts {
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)) !important;
}

#controls .opts.opts-2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

@media (max-width: 560px) {
  .stage-hud {
    right: 14px !important;
    top: 60px !important;
  }

  #controls .psec-b {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #controls .psec-b > .field:has(input[type="range"]) {
    grid-column: 1/-1;
  }

  #svcTabs .svc-tab {
    white-space: nowrap;
    gap: 8px !important;
    padding: 10px 8px !important;
    font-size: 0.9rem !important;
  }

  #svcTabs .svc-tab .tab-ic {
    width: 26px !important;
    height: 26px !important;
  }

  #svcTabs .svc-tab .tab-ic svg {
    width: 18px !important;
    height: 18px !important;
  }

  #controls .opts,
  #controls .opts.opts-2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  #controls .opts > .opt:last-child:nth-child(odd) {
    grid-column: 1/-1;
  }

  #controls .opt {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  #controls .sw {
    width: 32px !important;
    height: 32px !important;
  }

  #controls .swatches {
    gap: 8px !important;
  }

  #controls .psec {
    padding: 14px 14px 16px !important;
  }
}

@media (pointer: coarse) {
  #controls input[type="range"] {
    height: 28px !important;
    margin: 2px 0 !important;
    background-size: 100% 4px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
  }

  #unitSw button {
    min-width: 40px;
    min-height: 40px;
  }

  .rv-contact a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (max-width: 999px) {
  .planner .stage {
    aspect-ratio: auto !important;
    min-height: 0 !important;
    width: auto !important;
    height: clamp(340px, 82vw, 560px) !important;
  }
}

footer .cols p[data-fr^="Entrepreneur"],
footer .cols p.tj-x[data-fr^="Entrepreneur"] {
  text-align: justify !important;
  text-justify: inter-word;
  hyphens: manual;
  -webkit-hyphens: manual;
  max-width: 36ch !important;
}

@supports (text-box: trim-both cap alphabetic) {
  .rv-contact .tx {
    line-height: 1 !important;
    text-box: trim-both cap alphabetic;
  }

  .rv-contact a[href^="mailto"] .tx {
    text-box: trim-both ex alphabetic;
  }
}

/* ===== Pied de page : colonnes équilibrées et aérées ===== */
footer .cols {
  display: grid !important;
  grid-template-columns:
    minmax(0, 1.3fr) minmax(0, 1.15fr) minmax(0, 1fr)
    minmax(0, 0.8fr) !important;
  gap: 44px clamp(36px, 4.8vw, 80px) !important;
  align-items: start;
}

footer .cols > div:first-child .logo {
  display: inline-block;
  margin-bottom: 22px;
}

footer .cols p[data-fr^="Entrepreneur"] {
  max-width: 46ch !important;
  margin: 0 !important;
  line-height: 1.7 !important;
}

footer h4 {
  margin: 6px 0 20px !important;
}

footer ul {
  display: flex !important;
  flex-direction: column;
  gap: 13px !important;
  margin: 0;
  padding: 0;
}

footer ul li {
  line-height: 1.45;
}

footer .fine {
  margin-top: clamp(40px, 5vw, 60px) !important;
  padding-top: 24px !important;
  gap: 12px 28px !important;
  align-items: center;
}

@media (max-width: 1023px) {
  footer .cols {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 40px 48px !important;
  }
}

@media (max-width: 560px) {
  footer .cols {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 34px !important;
  }

  footer ul {
    gap: 4px !important;
  }

  footer .fine {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Submission: remain on screen until the server confirms or returns an error. */
html.submission-pending {
  overflow: hidden;
}
.submission-loading {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  color: #f5f7ff;
  background: rgba(8, 17, 48, 0.95);
  text-align: center;
}
.submission-loading[open] {
  display: grid;
  place-items: center;
}
.submission-loading::backdrop {
  background: #081130;
}
.submission-loading-card {
  width: min(100%, 440px);
}
.submission-loading h2 {
  margin: 24px 0 12px;
  font-size: clamp(1.45rem, 4vw, 1.9rem);
}
.submission-loading p {
  color: #c5cee5;
  line-height: 1.6;
  margin: 0;
  text-align: center;
}
.submission-spinner {
  display: inline-block;
  width: 56px;
  height: 56px;
  border: 4px solid #fff3;
  border-top-color: #829eff;
  border-radius: 50%;
  animation: submission-spin 1s linear infinite;
}
@keyframes submission-spin {
  to {
    transform: rotate(360deg);
  }
}
.adm-tabs, .adm-drafts-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.adm-tabs [aria-selected="true"] {
  background: var(--ink, #e8edfb);
  color: var(--bg, #0a1234);
}
.adm-drafts-head > div { flex: 1 1 280px; }
#admDraftsList { display: grid; gap: 16px; margin: 20px 0; }
.adm-draft-card dl { display: grid; grid-template-columns: minmax(120px, 180px) minmax(0, 1fr); gap: 8px 16px; }
.adm-draft-card dt { font-weight: 600; }
.adm-draft-card dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .adm-draft-card dl { grid-template-columns: 1fr; gap: 4px; }
  .adm-draft-card dd { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .submission-spinner {
    animation: none;
  }
}
