:root {
  --lime: #F6F4EF;      /* mur chaulé */
  --white: #FFFFFF;
  --ink: #10284A;       /* texte */
  --blue: #1E4F9C;      /* volets bleus */
  --blue-deep: #163B77;
  --turq: #27B0BE;
  --sun: #F5C46A;
  --sun-deep: #EE7A5F;
  --sand: #EFE3CE;
  --muted: #4E5F79;
  --line: rgba(16, 40, 74, 0.14);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --wrap: 1200px;
  --r: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--lime);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: .75rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: 0 1.5rem;
  background: var(--blue); color: #fff; border: 2px solid var(--blue);
  border-radius: 999px; font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); color: #fff; backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-small { min-height: 42px; padding: 0 1.1rem; font-size: .9rem; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: .9rem clamp(1.25rem, 3vw, 2.5rem);
  color: #fff; transition: background .3s, color .3s, box-shadow .3s;
}
.nav.solid { background: rgba(246,244,239,.94); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font: 600 1.15rem/1 var(--serif); }
.mark { width: 38px; height: 38px; }
.nav nav { margin-left: auto; }
.nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav nav a { text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .9; }
.nav nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* Hero */
.hero { position: relative; min-height: max(640px, 100svh); display: grid; align-items: center; color: #fff; overflow: hidden; background: var(--blue-deep); }
.hero-img, .hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img img { object-fit: cover; object-position: 60% 50%; animation: drift 30s ease-in-out infinite alternate; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12,31,64,.82) 0%, rgba(12,31,64,.55) 38%, rgba(12,31,64,0) 70%),
    linear-gradient(180deg, rgba(12,31,64,.35) 0%, rgba(12,31,64,0) 25%);
}
.hero-copy { position: relative; z-index: 1; width: min(var(--wrap), 100% - 2.5rem); margin: 0 auto; padding: 7rem 0 11rem; }
.hero-kicker { font-weight: 600; font-size: 1rem; color: var(--sun); margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(3.2rem, 1.8rem + 6vw, 7.25rem); line-height: .98; letter-spacing: -0.012em; font-weight: 700; max-width: 9ch; }
.hero h1 .l { display: block; }
.hero h1 .l + .l { font-style: italic; font-weight: 400; color: var(--sun); }
.lede { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); max-width: 34ch; margin-top: 1.5rem; color: rgba(255,255,255,.92); }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.hero .btn:not(.btn-ghost) { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.hero .btn:not(.btn-ghost):hover { background: #fff; border-color: #fff; }

.promises {
  position: absolute; z-index: 2; left: 50%; bottom: 0; transform: translate(-50%, 50%);
  width: min(var(--wrap), 100% - 2.5rem);
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 0; padding: 0; list-style: none;
  background: var(--white); color: var(--ink); border-radius: var(--r);
  box-shadow: 0 24px 60px -24px rgba(16,40,74,.35);
}
.hero { overflow: visible; margin-bottom: 4.5rem; }
.hero-img { overflow: hidden; }
.promises li { padding: 1.5rem 1.75rem; display: grid; gap: .25rem; }
.promises li + li { border-left: 1px solid var(--line); }
.promises strong { font: 700 1.9rem/1 var(--serif); color: var(--blue); letter-spacing: -0.02em; }
.promises span { color: var(--muted); font-size: .95rem; line-height: 1.45; }

@keyframes drift { from { transform: scale(1.03) translateX(0); } to { transform: scale(1.09) translateX(-1.5%); } }
@keyframes rise { from { opacity: 0; transform: translateY(.6em); } to { opacity: 1; transform: none; } }
.hero-kicker, .hero h1 .l, .lede, .cta { animation: rise .9s cubic-bezier(.22,1,.36,1) both; }
.hero h1 .l:nth-child(1) { animation-delay: .1s; }
.hero h1 .l:nth-child(2) { animation-delay: .25s; }
.lede { animation-delay: .4s; }
.cta { animation-delay: .55s; }

/* Pourquoi */
.why { padding: 8rem 0 6rem; display: grid; grid-template-columns: 1.15fr 1fr; gap: 4rem; align-items: start; }
.why h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem); font-weight: 400; }
.why-text p { margin-top: 1.5rem; color: var(--muted); max-width: 58ch; }
.facts { margin: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.25rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 700 2rem/1 var(--serif); color: var(--blue); letter-spacing: -0.02em; }
.facts dd { margin: 0; font-size: .98rem; }
.facts small { display: block; margin-top: .35rem; color: var(--muted); font-size: .8rem; }

/* Vidéos */
.videos { background: var(--white); padding: 6rem 0; border-block: 1px solid var(--line); }
.videos-head { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; margin-bottom: 2.5rem; }
.videos-head p { color: var(--muted); max-width: 48ch; }
.cinema { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 1.25rem; align-items: stretch; }
.screen { border-radius: var(--r); overflow: hidden; background: var(--ink); aspect-ratio: 16 / 9; align-self: start; }
.screen video { width: 100%; height: 100%; object-fit: cover; }

/* Le tableau d'activités du village */
.board {
  position: relative;
  background: linear-gradient(180deg, #2457A8, var(--blue));
  color: #fff; border-radius: 10px; padding: 1.25rem 1rem 1rem;
  box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 8px rgba(16,40,74,.18), 0 18px 40px -22px rgba(16,40,74,.6);
}
.board-title { font: italic 400 1.45rem/1.1 var(--serif); text-align: center; padding: .25rem 0 .9rem; color: var(--sun); }
.board ol { list-style: none; margin: 0; padding: 0; }
.board li + li { border-top: 1px dashed rgba(255,255,255,.22); }
.board li:has(> [aria-current="true"]), .board li:has(> [aria-current="true"]) + li { border-top-color: transparent; }
.board button {
  width: 100%; display: grid; grid-template-columns: 5.6rem 1fr; gap: .75rem; align-items: baseline;
  text-align: left; padding: .7rem .75rem; border: 0; border-radius: 8px;
  background: transparent; color: inherit; cursor: pointer; font: inherit;
  transition: background .2s;
}
.board button:hover { background: rgba(255,255,255,.1); }
.board button[aria-current="true"] { background: #fff; color: var(--ink); }
.board .when { font: 700 1.05rem/1.15 var(--serif); color: var(--sun); }
.board button[aria-current="true"] .when { color: var(--sun-deep); }
.board .what { font-weight: 600; font-size: 1rem; line-height: 1.3; display: block; }
.board .desc { display: block; font-size: .85rem; line-height: 1.4; opacity: .78; margin-top: .15rem; }
.note { margin-top: 1.25rem; font-size: .85rem; color: var(--muted); }

/* Ce qui change */
.change { padding: 7rem 0 6rem; }
.sub { color: var(--muted); margin-top: .75rem; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: .25rem; margin: 2.25rem 0 2rem; padding: .3rem; background: var(--white); border: 1px solid var(--line); border-radius: 999px; }
.tabs button { border: 0; background: transparent; color: var(--ink); font: 600 .95rem/1 var(--sans); padding: .85rem 1.25rem; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 3rem; }
.items li { padding: 1.5rem 0 1.75rem; border-top: 2px solid var(--blue); }
.items-grey li { border-top-color: var(--muted); }
.items p { color: var(--muted); margin-top: .5rem; font-size: .98rem; }
.panel:not([hidden]) .items li { animation: rise .5s cubic-bezier(.22,1,.36,1) both; }
.panel .items li:nth-child(2) { animation-delay: .04s; } .panel .items li:nth-child(3) { animation-delay: .08s; }
.panel .items li:nth-child(4) { animation-delay: .12s; } .panel .items li:nth-child(5) { animation-delay: .16s; } .panel .items li:nth-child(6) { animation-delay: .2s; }

/* Parcours */
.journey { background: var(--sand); padding: 6.5rem 0; }
.journey h2 { max-width: 20ch; }
.phases { list-style: none; margin: 3.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.phases figure { margin: 0 0 1.5rem; aspect-ratio: 4 / 4.4; overflow: hidden; border-radius: 999px 999px 10px 10px; background: var(--lime); }
.phases figure img { width: 100%; height: 100%; object-fit: cover; }
.phases li:nth-child(1) img { object-position: 45% 50%; }
.phases li:nth-child(2) img { object-position: 62% 50%; }
.phases li:nth-child(3) img { object-position: 70% 50%; }
.phases h3 { display: flex; align-items: center; gap: .75rem; font-size: 1.6rem; }
.phases h3 span { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--blue); color: #fff; font: 600 1rem/1 var(--sans); flex: none; }
.phases dl { margin: 1.25rem 0 0; display: grid; gap: .9rem; }
.phases dt { font-weight: 700; font-size: .95rem; color: var(--blue); }
.phases dd { margin: .15rem 0 0; font-size: .98rem; }

/* Paliers */
.tiers-sec { padding: 7rem 0 6rem; }
.tiers-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: end; }
.picker label { display: block; font-weight: 600; margin-bottom: .75rem; }
.picker-row { display: flex; align-items: center; gap: 1.25rem; }
.picker input { flex: 1; accent-color: var(--blue); height: 2rem; }
.picker output { min-width: 7.5rem; font: 700 1.3rem/1 var(--serif); color: var(--blue); }
.tiers { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: end; }
.tier {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px 14px 4px 4px;
  padding: 1.75rem; display: flex; flex-direction: column;
  transition: background .35s, color .35s, transform .35s, box-shadow .35s, opacity .35s;
}
.tier[data-tier="1"] { min-height: 22rem; }
.tier[data-tier="2"] { min-height: 25.5rem; }
.tier[data-tier="3"] { min-height: 29rem; }
.tier-n { font-weight: 700; font-size: .9rem; color: var(--blue); }
.tier h3 { font-size: 1.9rem; margin-top: .25rem; }
.tier-when { color: var(--muted); font-size: .92rem; margin-top: .35rem; }
.tier ul { margin: 1.25rem 0 1.5rem; padding-left: 1.1rem; display: grid; gap: .45rem; font-size: .98rem; }
.tier-prime { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.tier-prime strong { font: 700 2.2rem/1 var(--serif); color: var(--ink); margin-right: .25rem; }
.tier.is-past { opacity: .72; }
.tier.is-on { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-10px); box-shadow: 0 26px 50px -26px rgba(30,79,156,.8); opacity: 1; }
.tier.is-on .tier-n, .tier.is-on .tier-prime strong { color: var(--sun); }
.tier.is-on .tier-when, .tier.is-on .tier-prime { color: rgba(255,255,255,.82); border-color: rgba(255,255,255,.25); }
.fine { margin-top: 1.5rem; font-size: .85rem; color: var(--muted); max-width: 90ch; }

/* FAQ */
.faq { padding: 1rem 0 7rem; display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; }
.faq-list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; position: relative; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 1.4rem; color: var(--muted); max-width: 66ch; }

/* Intention */
.intent { position: relative; min-height: 760px; display: grid; align-items: center; padding: 5rem 0; overflow: hidden; }
.intent-art { position: absolute; inset: 0; }
.intent-art img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.intent-card {
  position: relative; width: min(560px, 100% - 2.5rem); margin-left: auto; margin-right: max(1.25rem, calc((100% - var(--wrap)) / 2));
  background: var(--white); border-radius: var(--r); padding: clamp(1.75rem, 3vw, 2.75rem);
  box-shadow: 0 30px 70px -30px rgba(16,40,74,.5);
}
.intent-card > p { color: var(--muted); margin-top: .75rem; }
form { margin-top: 1.75rem; display: grid; gap: 1.25rem; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; margin-bottom: .7rem; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 1.15rem; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; transition: background .2s, border-color .2s, color .2s; }
.chips label:hover span { border-color: var(--blue); }
.chips input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--sun-deep); outline-offset: 2px; }
.field { display: grid; gap: .5rem; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
select, textarea { font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--lime); border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem .9rem; width: 100%; }
select:focus, textarea:focus { outline: 3px solid var(--sun-deep); outline-offset: 1px; border-color: transparent; }
.err { color: #B23A22; font-weight: 600; font-size: .95rem; }
.ok { background: #E3F4F5; color: #0F5A62; border-radius: 12px; padding: 1rem 1.1rem; font-weight: 500; }

/* Footer */
.foot { background: var(--ink); color: rgba(255,255,255,.78); padding: 4rem 0 3rem; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; }
.foot-brand { font: 600 1.6rem/1 var(--serif); color: #fff; margin-bottom: 1rem; }
.foot-grid p { max-width: 60ch; }
.foot-h { font-weight: 700; color: #fff; margin-bottom: .75rem; }
.refs { margin: 0; padding: 0; list-style: none; display: grid; gap: .35rem; }

/* Responsive */
@media (max-width: 1020px) {
  .nav nav { display: none; }
  .nav .btn-small { margin-left: auto; }
  .why, .videos-head, .tiers-head, .faq, .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cinema { grid-template-columns: 1fr; }
  .items { grid-template-columns: repeat(2, 1fr); }
  .phases { grid-template-columns: 1fr; max-width: 560px; }
  .phases figure { aspect-ratio: 16 / 10; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .hero { min-height: 640px; margin-bottom: 0; }
  .hero::after { background: linear-gradient(180deg, rgba(12,31,64,.55) 0%, rgba(12,31,64,.85) 100%); }
  .hero-copy { padding: 7rem 0 3rem; }
  .promises { position: static; transform: none; grid-template-columns: 1fr; width: auto; margin: 0 1.25rem; transform: translateY(-1.5rem); }
  .promises li + li { border-left: 0; border-top: 1px solid var(--line); }
  .why { padding: 3.5rem 0 4rem; }
  .facts div { grid-template-columns: 1fr; gap: .4rem; }
  .items { grid-template-columns: 1fr; }
  .tabs { border-radius: 16px; }
  .tiers { grid-template-columns: 1fr; }
  .tier[data-tier] { min-height: 0; }
  .tier.is-on { transform: none; }
  .intent { padding: 0; min-height: 0; display: block; }
  .intent-art { position: relative; height: 260px; }
  .intent-card { width: auto; margin: -3rem 1.25rem 3rem; }
  .brand span { font-size: 1rem; white-space: nowrap; }
  .nav { gap: .75rem; }
  .nav .btn-small { padding: 0 .9rem; font-size: .82rem; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
