:root {
  --primary-dark: #1C244B;
  --slate: #3C5672;
  --sage: #79977A;
  --cream: #EFEFE0;
  --light-gray: #F3F5F8;
  --accent-blue: #467FF7;
  --white: #FFFFFF;
  --header-h: 116px;
  --shadow: 6px 6px 9px rgba(0, 0, 0, .2);
  --fs-h1: clamp(31.6px, 1.976rem + (1vw - 3.2px) * 2.541, 56px);
  --fs-h2: clamp(25px, 1.563rem + (1vw - 3.2px) * 1.769, 42px);
  --fs-lead: clamp(14px, .875rem + (1vw - 3.2px) * .417, 18px);
  --fs-lead-strong: clamp(14px, .875rem + (1vw - 3.2px) * .625, 20px);
  --fs-h3: clamp(14.6px, .915rem + (1vw - 3.2px) * .766, 22px);
  --fs-h3-price: clamp(15.7px, .984rem + (1vw - 3.2px) * .86, 24px);
  --fs-text: clamp(14px, .875rem + (1vw - 3.2px) * .208, 16px);
  --fs-note: clamp(14px, .875rem + (1vw - 3.2px) * .104, 15px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 10px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--primary-dark);
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 300;
  background: var(--white); color: var(--primary-dark);
  padding: 8px 14px; border-radius: 6px; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 8px; }

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

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--cream);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(28, 36, 75, .12); }
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 8px 5%; max-width: 1400px; margin: 0 auto; position: relative;
}
.logo { display: block; flex: none; line-height: 0; }
.logo img { width: 150px; height: auto; transition: transform .3s ease; }
.logo:hover img { transform: scale(1.04); }

.nav { display: flex; align-items: center; gap: 36px; font-weight: 600; }
.nav a {
  position: relative; text-decoration: none; padding: 6px 0;
  transition: color .3s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent-blue); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.nav a:hover, .nav a.active { color: var(--accent-blue); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.burger {
  display: none; flex-direction: column; justify-content: space-between;
  width: 28px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer;
}
.burger span {
  display: block; height: 3px; width: 100%; background: var(--primary-dark);
  border-radius: 2px; transition: transform .3s ease, opacity .3s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* Sections */
.band { padding: 80px 5%; }
.band-slate { background: var(--slate); color: var(--white); }
.band-cream { background: var(--cream); }
.wrap { max-width: 1280px; margin: 0 auto; }

h1 { font-size: var(--fs-h1); font-weight: 600; line-height: 1.1; color: var(--white); margin-bottom: 20px; }
h2 { font-size: var(--fs-h2); font-weight: 600; text-align: center; margin-bottom: 50px; line-height: 1.25; }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.3; }

.two-cols { display: grid; gap: 48px; align-items: center; }
.cols-60-40 { grid-template-columns: 3fr 2fr; }
.cols-40-60 { grid-template-columns: 2fr 3fr; align-items: stretch; }

.lead-strong { font-size: var(--fs-lead-strong); margin-bottom: 1em; }
.lead { font-size: var(--fs-lead); margin-bottom: 1em; }
.cta-wrap { margin-top: 25px; }

.btn {
  position: relative; overflow: hidden; display: inline-block;
  background: var(--sage); color: var(--white);
  padding: .8em 1.7em; border-radius: 30px; text-decoration: none;
  font-size: var(--fs-lead); font-weight: 600; line-height: 1.35; text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0, 0, 0, .25); background: #6a876b; }
.btn:active { transform: translateY(-1px); }
.ripple {
  position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45);
  transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

.photo { margin: 0; overflow: hidden; border-radius: 16px; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.photo:hover img { transform: scale(1.04); }
.cols-60-40 .photo img { aspect-ratio: 15 / 16; }
.contact .photo { display: flex; max-height: 560px; }

/* Cartes */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature {
  border: 1px solid var(--light-gray); border-radius: 8px; padding: 20px;
  background: var(--white);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(28, 36, 75, .12); border-color: var(--sage); }
.feature hr {
  width: 100%; height: 2px; border: 0; background: var(--sage); margin: 0 0 1.2em;
  transform-origin: left; transition: transform .5s ease;
}
.feature h3 { margin-bottom: .6em; }
.feature p { font-size: var(--fs-text); }

.prices { align-items: stretch; }
.price {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--sage); color: var(--white); border-radius: 12px; padding: 40px 30px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.price:hover { transform: translateY(-8px); box-shadow: 0 18px 32px rgba(28, 36, 75, .25); }
.price h3 { font-size: var(--fs-h3-price); font-weight: 600; margin-bottom: 20px; }
.amount { font-size: var(--fs-h1); font-weight: 700; line-height: 1; margin-bottom: 8px; }
.unit { font-size: var(--fs-note); min-height: 1.55em; }
.price hr {
  width: 100%; height: 1px; border: 0; background: var(--white); opacity: .8; margin: 20px 0;
}
.note-b { font-size: 14px; margin-bottom: .9em; }
.note { font-size: var(--fs-note); }

.contact-box {
  display: flex; flex-direction: column; justify-content: center; gap: 1.1em;
  background: var(--light-gray); border: 1px solid var(--light-gray);
  border-radius: 12px; padding: 28px;
}
.contact-box a { color: var(--accent-blue); text-underline-offset: 3px; transition: color .2s; }
.contact-box a:hover { color: var(--primary-dark); }

/* Apparition au scroll */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease var(--d, 0s), transform .7s ease var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .feature:not(.in) hr { transform: scaleX(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Tablette / mobile */
@media (max-width: 781px) {
  .band { padding: 56px 5%; }
  .cols-60-40, .cols-40-60, .grid-3 { grid-template-columns: 1fr; }
  .grid-3 { gap: 24px; }
  .two-cols { gap: 32px; }
  .cols-60-40 .photo img { aspect-ratio: 4 / 3; }
  .contact .photo { max-height: 420px; }
  h2 { margin-bottom: 36px; }

  .burger { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 16px;
    background: var(--white); padding: 20px 5%;
    box-shadow: 0 8px 12px rgba(0, 0, 0, .08);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav.open { visibility: visible; opacity: 1; transform: none; }
  .logo img { width: 128px; }
}
