/* =============================================================
   Layout : coquille (grille), nav, bande hero, aside sticky,
   footer, barre CTA flottante, points de rupture responsive
   ============================================================= */

/* ---------- Coquille ---------- */
.shell {
  position: relative;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
  display: grid;
  grid-template-columns: 2fr minmax(322px, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 32px;
}

/* Bande violette + image derrière la nav et le hero (pleine largeur écran) */
.shell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: var(--hero-h);
  z-index: 0;
  pointer-events: none;
  background:
    var(--purple)
    image-set(url('../assets/img/hero-bg.webp') type('image/webp'))
    center / cover no-repeat;
}

/* Bande sombre derrière le bas de page */
.shell::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: clamp(300px, 40vh, 440px);
  z-index: 0;
  pointer-events: none;
  background: var(--purple-black);
}

.shell > * { position: relative; z-index: 1; }

/* ---------- Navigation ---------- */
.nav {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 18px 0 22px;
}
.nav__logo { height: 46px; width: auto; }

/* ---------- Zone principale ---------- */
.main {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* ---------- Aside formulaire (sticky) ---------- */
.lead {
  grid-column: 2;
  grid-row: 2;
  position: sticky;
  top: 18px;
  align-self: start;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  background: var(--purple-black);
  color: var(--on-dark);
  padding: 44px clamp(20px, 5vw, 56px);
}
.footer__inner {
  max-width: var(--shell-max);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.footer__logo { height: 46px; width: auto; }
.footer__note { font-size: 13px; font-weight: var(--fw-light); color: var(--on-dark-50); }
.footer__link { color: var(--on-dark-80); text-decoration: underline; text-decoration-color: var(--on-dark-border); text-underline-offset: 3px; transition: color var(--dur-fast) ease, text-decoration-color var(--dur-fast) ease; }
.footer__link:hover { color: var(--on-dark); text-decoration-color: currentColor; }

/* ---------- Barre CTA flottante (mobile) ---------- */
.floating-cta {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 45;
  transform: translateX(-50%) translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.floating-cta.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.floating-cta__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--purple);
  color: var(--on-dark);
  border-radius: var(--radius-pill);
  padding: 8px 8px 8px 22px;
  box-shadow: var(--shadow-float);
  max-width: 92vw;
}
.floating-cta__text {
  font-size: 13px;
  font-weight: var(--fw-light);
  color: var(--on-dark-80);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.floating-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 6px 6px 18px;
  border-radius: var(--radius-pill);
  background: var(--pink);
  color: var(--purple);
  font-weight: var(--fw-medium);
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}
.floating-cta__disc {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--white);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Les points de rupture responsive vivent dans responsive.css (chargé en
   dernier pour l'emporter sur les styles de base). */
