/* ==========================================================================
   Protection Civile Paris Seine — Antenne de Vincennes
   Design system
   ========================================================================== */

:root {
  --bleu: #004080;
  --bleu-fonce: #002b57;
  --bleu-nuit: #061e38;
  --orange: #f18800;
  --orange-fonce: #d97a00;
  --orange-pale: #fff3e2;
  --bleu-pale: #eaf1f8;
  --ink: #14263c;
  --muted: #55677e;
  --line: #dde6ef;
  --bg: #ffffff;
  --surface: #f5f8fb;
  --radius: 18px;
  --shadow-sm: 0 1px 3px rgba(6, 30, 56, .08), 0 4px 14px rgba(6, 30, 56, .06);
  --shadow-lg: 0 10px 40px rgba(6, 30, 56, .16);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --header-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--bleu-fonce);
  line-height: 1.15;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--bleu); }

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--surface); }
.section--navy { background: linear-gradient(160deg, var(--bleu-fonce), var(--bleu-nuit)); color: #dbe7f3; }
.section--navy h2, .section--navy h3 { color: #fff; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange-fonce);
  margin-bottom: .9rem;
}
.kicker::before {
  content: "";
  width: 26px; height: 3px;
  border-radius: 2px;
  background: var(--orange);
}

.lead { font-size: 1.13rem; color: var(--muted); max-width: 46rem; }
.section--navy .lead { color: #b8cadd; }
.center { text-align: center; }
.center .lead, .center .kicker { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .78rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 20px rgba(241, 136, 0, .35);
}
.btn--primary:hover { background: var(--orange-fonce); }

.btn--secondary {
  background: var(--bleu);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 64, 128, .3);
}
.btn--secondary:hover { background: var(--bleu-fonce); }

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .65);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--bleu);
  border-color: var(--bleu);
}
.btn--outline:hover { background: var(--bleu); color: #fff; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header--solid,
.site-header--inner {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(6, 30, 56, .06);
}

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand__logo--white { display: none; }
.site-header--transparent .brand__logo--white { display: block; }
.site-header--transparent .brand__logo--color { display: none; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  color: var(--ink);
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--orange-fonce); border-color: var(--orange); }
.site-header--transparent .nav a { color: #fff; }
.site-header--transparent .nav a:hover,
.site-header--transparent .nav a[aria-current="page"] { color: #ffd9a3; }

.nav .btn { padding: .55rem 1.2rem; font-size: .92rem; border-bottom: none; }
.nav .btn:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--bleu);
  margin: 5px 0;
  transition: transform .2s, opacity .2s;
}
.site-header--transparent .nav-toggle span { background: #fff; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: .5rem 1.25rem 1.25rem;
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem .25rem; border-bottom: 1px solid var(--line); color: var(--ink) !important; }
  .nav .btn { margin-top: 1rem; justify-content: center; color: #fff !important; }
  body.nav-open .site-header { background: #fff; }
  body.nav-open .brand__logo--white { display: none; }
  body.nav-open .brand__logo--color { display: block; }
  body.nav-open .nav-toggle span { background: var(--bleu); }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* --------------------------------------------------------------------------
   Hero (accueil)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease, transform 8s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 30, 56, .55) 0%, rgba(6, 30, 56, .35) 45%, rgba(6, 30, 56, .78) 100%);
}
.hero .container { position: relative; z-index: 2; padding: 8rem 0 5rem; }
.hero h1 { color: #fff; max-width: 15ch; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero h1 .accent { color: var(--orange); }
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 34rem;
  color: #e8eff7;
  text-shadow: 0 1px 12px rgba(0,0,0,.4);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  opacity: .8;
  animation: bounce 2.2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* Page hero (pages intérieures) */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 4.5rem) 0 4rem;
  background-size: cover;
  background-position: center 30%;
  color: #fff;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 43, 87, .88) 20%, rgba(0, 64, 128, .55) 70%, rgba(241, 136, 0, .25));
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #dce8f4; font-size: 1.15rem; max-width: 44rem; }
.page-hero .kicker { color: #ffc470; }
.page-hero .kicker::before { background: var(--orange); }

.breadcrumb {
  font-size: .88rem;
  margin-bottom: 1.2rem;
  color: #a9c1d8;
}
.breadcrumb a { color: #d3e2ef; text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.stat { text-align: center; padding: 1rem .5rem; }
.stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  color: var(--orange);
  line-height: 1;
}
.stat__label {
  margin-top: .5rem;
  font-weight: 500;
  color: #b8cadd;
}

/* --------------------------------------------------------------------------
   Cards / piliers
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
@media (max-width: 920px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__icon {
  position: absolute;
  left: 1.2rem;
  bottom: -26px;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--bleu);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0, 43, 87, .35);
}
.card__icon svg { width: 28px; height: 28px; }
.card__body { padding: 2.4rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card__body p { color: var(--muted); flex: 1; }
.card__link {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--orange-fonce);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

/* --------------------------------------------------------------------------
   Split (texte + image alternés)
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split + .split { margin-top: clamp(3rem, 6vw, 5rem); }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: -1; }
}
.split--reverse .split__media { order: -1; }
@media (min-width: 881px) {
  .split--reverse .split__media { order: 2; }
}

.split__media { position: relative; }
.split__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.split__media::before {
  content: "";
  position: absolute;
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bleu-pale), var(--orange-pale));
  z-index: -1;
}
.split__body p { color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink); }
.checklist li::before {
  content: "";
  flex: 0 0 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--orange-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d97a00' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-11'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* --------------------------------------------------------------------------
   Bandeau CTA
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  background: linear-gradient(120deg, var(--bleu) 0%, var(--bleu-fonce) 60%);
  color: #fff;
  padding: clamp(2.2rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 136, 0, .5), transparent 70%);
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #c6d8ea; margin: 0; max-width: 38rem; }
.cta-band__actions { display: flex; gap: .9rem; flex-wrap: wrap; position: relative; }

/* --------------------------------------------------------------------------
   Infos pratiques / footer
   -------------------------------------------------------------------------- */

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
@media (max-width: 880px) { .info-grid { grid-template-columns: 1fr; } }

.info-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.info-tile h3 { display: flex; align-items: center; gap: .6rem; }
.info-tile h3 svg { width: 22px; height: 22px; color: var(--orange-fonce); flex: none; }
.info-tile p { color: var(--muted); margin-bottom: .4em; }

.site-footer {
  background: var(--bleu-nuit);
  color: #9db4ca;
  padding: 3.5rem 0 2rem;
  font-size: .95rem;
}
.site-footer a { color: #cfe0ef; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: #fff;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer .brand img { height: 42px; }
.footer-baseline { margin-top: 1rem; max-width: 30rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .8rem;
  padding-top: 1.6rem;
  font-size: .85rem;
  color: #6f8aa5;
}

/* --------------------------------------------------------------------------
   Formulaires
   -------------------------------------------------------------------------- */

.form-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  max-width: 780px;
  margin-inline: auto;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: .35rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-display); font-weight: 600; font-size: .92rem; }
.form-field .hint { font-size: .82rem; color: var(--muted); }
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  padding: .7rem .9rem;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--bleu);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 64, 128, .12);
}
.form-actions { margin-top: 1.6rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-note { font-size: .85rem; color: var(--muted); }
.required { color: var(--orange-fonce); }

/* Message de succès (repris de l'ancien site) */
.form-success {
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: var(--orange-pale);
  border: 1.5px solid var(--orange);
  color: var(--orange-fonce);
  text-align: center;
  font-size: 1.05rem;
}

/* Pot de miel anti-spam : champ invisible pour les humains */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Divers
   -------------------------------------------------------------------------- */

.badge-row { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0; }
.badge {
  background: var(--bleu-pale);
  color: var(--bleu-fonce);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  padding: .35rem .9rem;
  border-radius: 999px;
}
.badge--orange { background: var(--orange-pale); color: var(--orange-fonce); }

.pricing-highlight {
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--bleu);
}
.pricing-highlight small { font-size: 1rem; font-weight: 600; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__slide { transition: opacity .5s ease; transform: none; }
  html { scroll-behavior: auto; }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--bleu);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }
