/**
 * Homepage nationale (alignée maquette index.html) — Lot 6.
 */
.ms-home { margin: 0; }
.ms-home .form-group { margin-bottom: 0.7rem; }
.ms-home .form-label {
  display: block;
  color: var(--muted, #5C6B76);
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.ms-home .form-control {
  width: 100%;
  min-height: 46px;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid var(--border, #D0E4E2);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--text, #0A1218);
}
.ms-home .form-control:focus {
  outline: none;
  border-color: var(--action, #FF4D2E);
  box-shadow: 0 0 0 4px rgba(255, 77, 46, 0.18);
}
.ms-home .form-hint { display: block; margin-top: 0.35rem; font-size: 12px; color: var(--muted, #5C6B76); }
.ms-form-row-2 {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr 1fr;
}
.ms-radio-cards { display: grid; gap: 0.5rem; }
.ms-radio-card {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--border, #D0E4E2);
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
}
.ms-radio-card:hover { border-color: var(--brand, #0E9A96); }
.ms-radio-card:has(input:checked) {
  border-color: var(--brand, #0E9A96);
  box-shadow: 0 0 0 3px rgba(14, 154, 150, 0.15);
}
.ms-radio-card input { margin-top: 0.15rem; accent-color: var(--brand, #0E9A96); }
.ms-radio-card strong { display: block; font-size: 14px; }

.ms-hero-command {
  position: relative;
  padding: 2.25rem 0 2.75rem;
  color: #fff;
  background: var(--night, #0A3D4A);
  overflow: hidden;
  min-height: calc(100dvh - 72px);
  display: flex;
  align-items: center;
  isolation: isolate;
}
.ms-hero-command-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--night, #0A3D4A);
}
.ms-hero-command-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 36%;
  display: block;
  transform: scale(1.04);
}
.ms-hero-command-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 61, 74, 0.32) 0%, rgba(14, 154, 150, 0.12) 38%, rgba(10, 61, 74, 0.18) 62%, rgba(10, 61, 74, 0.42) 100%),
    linear-gradient(to top, rgba(10, 61, 74, 0.28) 0%, transparent 48%);
  pointer-events: none;
}
.ms-hero-command-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
  width: min(1140px, calc(100% - 40px));
  margin-inline: auto;
}
@media (min-width: 960px) {
  .ms-hero-command-grid {
    grid-template-columns: minmax(340px, 420px) minmax(280px, 1fr);
    gap: 3.5rem;
  }
}
.ms-booking-module {
  background: #fff;
  color: var(--text, #0A1218);
  border-radius: 20px;
  padding: 1.15rem 1.15rem 1rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.ms-booking-module h2 {
  font-family: var(--font-sans, inherit);
  font-size: 0.95rem;
  font-weight: 650;
  margin: 0 0 1rem;
  color: var(--night, #0A3D4A);
}
.ms-booking-actions { margin-top: 0.35rem; }
.ms-booking-actions .btn {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  background: var(--action, #FF4D2E);
  color: #fff;
  font-weight: 650;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
}
.ms-booking-actions .btn:hover { background: var(--action-hover, #E03D20); color: #fff; }
.ms-booking-supply {
  margin: 1rem 0 0;
  padding-top: 0.95rem;
  border-top: 1px solid var(--border, #D0E4E2);
  font-size: 14px;
  color: var(--muted, #5C6B76);
}
.ms-booking-supply a { color: var(--brand, #0E9A96); font-weight: 650; text-decoration: none; }
.ms-booking-supply a:hover { text-decoration: underline; }

.ms-hero-command-copy { max-width: 28rem; }
@media (min-width: 960px) {
  .ms-hero-command-copy {
    justify-self: end;
    padding: 1.25rem 1.35rem;
    border-radius: 20px;
    background: rgba(8, 16, 24, 0.42);
    backdrop-filter: blur(6px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
}
.ms-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}
.ms-hero-kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--action, #FF4D2E);
  box-shadow: 0 0 0 4px rgba(255, 77, 46, 0.25);
}
.ms-hero-command h1 {
  color: #fff;
  font-family: var(--font-display, inherit);
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 13ch;
  margin: 0 0 0.75rem;
}
.ms-hero-lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  line-height: 1.45;
  max-width: 32ch;
  margin: 0 0 1.1rem;
}
.ms-hero-proof-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}
.ms-hero-proof-inline span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--action, #FF4D2E);
  margin-right: 0.45rem;
  vertical-align: middle;
}
.ms-coverage-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin-top: 1.1rem;
}
.ms-coverage-strip a {
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  opacity: 0.85;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.ms-coverage-strip a:hover { opacity: 1; color: #fff; }
@media (min-width: 960px) {
  .ms-coverage-strip { display: none; }
}

.ms-proof-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--border, #D0E4E2);
  font-size: 14px;
  color: var(--muted, #5C6B76);
}
.ms-proof-strip strong { color: var(--night, #0A3D4A); font-weight: 650; }

.ms-section { padding: 3.5rem 0; }
.ms-section-warm { background: var(--bg-warm, #FFF8EE); }
.ms-section-soft { background: rgba(14, 154, 150, 0.06); }
.ms-section-header { text-align: center; max-width: 40rem; margin: 0 auto 2rem; }
.ms-section-header h2 {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0.35rem 0 0.5rem;
}
.ms-section-header .ms-lead { margin-inline: auto; }

.ms-how-steps { display: grid; gap: 1.25rem; }
@media (min-width: 800px) {
  .ms-how-steps { grid-template-columns: repeat(3, 1fr); }
}
.ms-how-step {
  background: #fff;
  border: 1px solid var(--border, #D0E4E2);
  border-radius: 16px;
  padding: 1.25rem;
}
.ms-how-illu { display: block; margin-bottom: 0.75rem; }
.ms-how-num {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 650;
  color: var(--brand, #0E9A96);
  margin-bottom: 0.35rem;
}
.ms-how-step h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.ms-how-step p { margin: 0; color: var(--muted, #5C6B76); font-size: 14px; }

.ms-gates-dual { display: grid; gap: 1.25rem; }
@media (min-width: 800px) {
  .ms-gates-dual { grid-template-columns: 1fr 1fr; }
}
.ms-gate-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1.5px solid var(--border, #D0E4E2);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.ms-gate-card:hover {
  border-color: var(--brand, #0E9A96);
  box-shadow: 0 12px 40px rgba(10, 61, 74, 0.1);
  color: inherit;
}
.ms-gate-card.is-demand {
  background: linear-gradient(160deg, #fff 0%, #FFF8EE 100%);
}
.ms-gate-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--night, #0A3D4A);
}
.ms-gate-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ms-gate-card-body { padding: 1.35rem 1.4rem 1.5rem; }
.ms-gate-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand, #0E9A96);
  margin-bottom: 0.4rem;
}
.ms-gate-card h3 { margin: 0 0 0.45rem; font-size: 1.25rem; }
.ms-gate-card p { margin: 0 0 0.85rem; color: var(--muted, #5C6B76); font-size: 14px; }
.ms-gate-cta { font-weight: 650; color: var(--action, #FF4D2E); font-size: 14px; }

.ms-proofs-v2 {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.ms-proof-v2 {
  background: #fff;
  border: 1px solid var(--border, #D0E4E2);
  border-radius: 14px;
  padding: 1.1rem;
  text-align: center;
}
.ms-proof-v2 h3 { margin: 0; font-size: 1rem; }

.ms-lifestyle-band {
  position: relative;
  padding: 3.5rem 0;
  color: #fff;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.ms-lifestyle-band-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ms-lifestyle-band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ms-lifestyle-band-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 61, 74, 0.55) 0%, rgba(10, 61, 74, 0.78) 100%);
}
.ms-lifestyle-band .ms-container {
  position: relative;
  z-index: 1;
}
.ms-lifestyle-band h2 {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  color: #fff;
}
.ms-lifestyle-band p { margin: 0 auto; max-width: 40ch; color: rgba(255, 255, 255, 0.8); }

.ms-cta-final {
  padding: 5rem 0;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 90% at 50% 100%, rgba(245, 197, 24, 0.35), transparent 55%),
    radial-gradient(ellipse 55% 70% at 15% 0%, rgba(14, 154, 150, 0.45), transparent 50%),
    linear-gradient(160deg, #0E9A96 0%, var(--night, #0A3D4A) 70%);
  color: #fff;
}
.ms-cta-final h2 {
  color: #fff;
  font-family: var(--font-display, inherit);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 16ch;
  margin: 0 auto 0.75rem;
}
.ms-cta-final > .ms-container > p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 34ch;
  margin: 0 auto 1.5rem;
}
.ms-cta-final .btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  font-weight: 650;
  text-decoration: none;
  display: inline-flex;
}
.ms-cta-final .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.ms-cta-final .btn-accent {
  background: var(--action, #FF4D2E);
  color: #fff;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  font-weight: 650;
  text-decoration: none;
  display: inline-flex;
}

body.ms-home-page .ms-main { padding: 0; }
body.ms-home-page .ms-site-header.is-on-hero {
  background: rgba(10, 61, 74, 0.42);
  backdrop-filter: blur(16px);
  border-bottom-color: transparent;
}
body.ms-home-page .ms-site-header.is-on-hero .ms-nav-public a,
body.ms-home-page .ms-site-header.is-on-hero .ms-nav-links a,
body.ms-home-page .ms-site-header.is-on-hero .ms-brand { color: #fff; }
body.ms-home-page .ms-site-header.is-on-hero .ms-nav-public a,
body.ms-home-page .ms-site-header.is-on-hero .ms-nav-links a { opacity: 0.85; }
body.ms-home-page .ms-site-header.is-on-hero .ms-nav-public a:hover,
body.ms-home-page .ms-site-header.is-on-hero .ms-nav-links a:hover { opacity: 1; color: #fff; }
body.ms-home-page .ms-site-header.is-on-hero .ms-btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}
body.ms-home-page .ms-site-header.is-on-hero .ms-chip-territoire {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
body.ms-home-page .ms-site-header.is-on-hero .ms-chip-territoire-kicker { color: rgba(255, 255, 255, 0.7); }
body.ms-home-page .ms-site-header.is-on-hero .ms-chip-territoire-icon { color: #fff; }
body.ms-home-page .ms-site-header .ms-logo-on-dark { display: none; }
body.ms-home-page .ms-site-header .ms-logo-on-light { display: block; }
body.ms-home-page .ms-site-header.is-on-hero .ms-logo-on-light { display: none; }
body.ms-home-page .ms-site-header.is-on-hero .ms-logo-on-dark { display: block; }

@media (max-width: 920px) {
  .ms-hero-command { min-height: auto; padding: 1.5rem 0 2rem; }
  .ms-booking-module { max-width: none; }
  .ms-hero-command h1 { max-width: none; font-size: 1.75rem; }
  /* Drawer mobile : styles portés par template.css (panneau app plein écran) */
}
