/* Agrodevia - feuille de style du site public */

:root {
  --forest: #123B2E;
  --forest-2: #1B4B3B;
  --forest-3: #0D2C22;
  --ink: #17241E;
  --field: #F7F8F4;
  --paper: #FFFFFF;
  --sage-50: #EEF1EA;
  --sage-100: #E2E8DC;
  --line: #D5DCCF;
  --muted: #56665D;
  --millet: #D49A2A;
  --millet-soft: #F4E3BD;
  --river: #2B6A8E;
  --river-soft: #DCEAF0;
  --danger: #A23A26;
  --danger-soft: #F7E1DB;
  --ok: #2B7148;
  --ok-soft: #DDEEDF;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;

  --fs-xs: .8125rem;
  --fs-s: .9375rem;
  --fs-m: 1.0625rem;
  --fs-l: 1.3125rem;
  --fs-xl: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  --fs-2xl: clamp(2.25rem, 1.4rem + 3vw, 3.75rem);
  --fs-hero: clamp(2.6rem, 1.2rem + 4.4vw, 5.1rem);

  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --r-s: 4px;
  --r-m: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font: 400 var(--fs-m)/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--forest); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--forest-2); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -.01em; color: var(--forest); font-optical-sizing: auto; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--millet); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--forest); color: #fff; padding: .6rem 1rem; border-radius: var(--r-s); }
.skip:focus { top: 1rem; color: #fff; }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 46rem; }
.wrap--text { max-width: 44rem; }

/* ---------- Boutons ---------- */
.btn {
  white-space: nowrap;
  --bg: transparent; --fg: var(--forest); --bd: var(--forest);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.15rem; border: 1.5px solid var(--bd); border-radius: var(--r-s);
  background: var(--bg); color: var(--fg);
  font: 500 var(--fs-s)/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s;
}
.btn:hover { color: var(--fg); }
.btn--primary { --bg: var(--forest); --fg: #fff; --bd: var(--forest); }
.btn--primary:hover { --bg: var(--forest-2); --bd: var(--forest-2); }
.btn--line:hover { --bg: var(--forest); --fg: #fff; }
.btn--gold { --bg: var(--millet); --fg: var(--forest-3); --bd: var(--millet); }
.btn--gold:hover { --bg: #E2AD45; --bd: #E2AD45; }
.btn--glass { --bg: rgba(255,255,255,.1); --fg: #fff; --bd: rgba(255,255,255,.75); backdrop-filter: blur(4px); }
.btn--glass:hover { --bg: #fff; --fg: var(--forest); --bd: #fff; }
.btn--lg { padding: .95rem 1.45rem; font-size: var(--fs-m); }
.btn--block { width: 100%; }
.link { font-weight: 500; text-decoration: underline; text-decoration-color: var(--millet); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.link:hover { text-decoration-color: var(--forest); }

/* ---------- Ruban defilant ---------- */
.ticker {
  position: relative; display: flex; align-items: stretch;
  background: var(--forest-3); color: #E6ECE3; font-size: var(--fs-xs);
  height: 2.5rem; overflow: hidden;
}
.ticker__viewport { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker__track {
  display: flex; width: max-content; margin: 0; padding: 0; list-style: none; height: 100%;
  animation: tick var(--speed, 45s) linear infinite;
}
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track, .ticker.is-paused .ticker__track { animation-play-state: paused; }
.ticker li { display: flex; align-items: center; white-space: nowrap; }
.ticker a { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; padding: 0 .3rem; height: 100%; }
.ticker a:hover span:last-child { text-decoration: underline; text-underline-offset: .25em; }
.ticker__tag { color: var(--forest-3); background: var(--millet); padding: .1rem .5rem; border-radius: 3px; font-weight: 600; font-size: .75rem; }
.ticker__sep { width: 1.1rem; color: var(--millet); margin: 0 1.4rem; opacity: .85; }
.ticker__toggle { flex: none; width: 2.5rem; border: 0; border-left: 1px solid rgba(255,255,255,.12); background: var(--forest-3); color: #E6ECE3; cursor: pointer; display: grid; place-items: center; }
.ticker__toggle svg { width: .75rem; fill: currentColor; }
.ticker__toggle .i-play { display: none; }
.ticker.is-paused .i-pause { display: none; }
.ticker.is-paused .i-play { display: block; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- En-tete ---------- */
.masthead { position: sticky; top: 0; z-index: 40; background: rgba(247, 248, 244, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.masthead.is-stuck { border-bottom-color: var(--line); }
.masthead__inner { display: flex; align-items: center; gap: 2rem; max-width: 94rem; margin: 0 auto; padding: .85rem var(--gutter); }
.brand img { width: clamp(168px, 18vw, 206px); height: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav ul a { white-space: nowrap; color: var(--ink); text-decoration: none; font-size: var(--fs-s); font-weight: 500; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav ul a:hover { border-bottom-color: var(--line); }
.nav ul a[aria-current="page"] { border-bottom-color: var(--millet); color: var(--forest); }
.nav ul a.nav__home { background: var(--millet); color: var(--forest-3); padding: .45rem .95rem; border-radius: 4px; border-bottom: 0; font-weight: 600; }
.nav ul a.nav__home:hover { background: #E2AD45; }
.nav ul a.nav__home[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--forest-3); }
.badge { display: flex; align-items: center; gap: .65rem; padding-left: 1.4rem; border-left: 1px solid var(--line); flex: none; }
.badge img { height: 3.2rem; width: auto; }
.badge__text { display: flex; flex-direction: column; line-height: 1.2; }
.badge__text strong { font-family: var(--serif); font-weight: 500; font-size: 1rem; color: var(--forest); white-space: nowrap; }
.badge__text span { font-size: .75rem; color: var(--muted); font-style: italic; white-space: nowrap; }
.nav-toggle { display: none; margin-left: auto; width: 2.75rem; height: 2.75rem; border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--paper); cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 1.15rem; height: 2px; background: var(--forest); margin: 0 auto; position: relative; transition: transform .2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Messages ---------- */
.flashes { max-width: var(--wrap); margin: 1rem auto 0; padding: 0 var(--gutter); }
.flash { margin: 0 0 .5rem; padding: .85rem 1rem; border-radius: var(--r-s); background: var(--ok-soft); color: var(--ok); border-left: 4px solid var(--ok); font-weight: 500; }
.flash--error { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.flash--info { background: var(--river-soft); color: var(--river); border-color: var(--river); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  min-height: min(calc(100vh - 7rem), 52rem);
  max-width: 100rem; margin: 0 auto;
}
.hero__text {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 4vw, 4rem) clamp(3rem, 6vw, 5rem) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.hero__kicker { color: var(--muted); font-size: var(--fs-s); margin-bottom: 1.4rem; padding-left: 1.6rem; position: relative; }
.hero__kicker::before { content: ""; position: absolute; left: 0; top: .72em; width: 1.05rem; height: 2px; background: var(--millet); }
.hero__title { font-size: var(--fs-hero); line-height: 1.02; letter-spacing: -.022em; font-weight: 500; max-width: 13ch; text-wrap: balance; }
.hero__lead { font-size: clamp(1.05rem, .95rem + .35vw, 1.22rem); color: #33443B; max-width: 34rem; margin: 1.6rem 0 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__en { margin: 2.6rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line); font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--muted); max-width: 32rem; }

.hero__map {
  position: relative; margin: 0; overflow: hidden; background: #E9E3D3;
  clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
}
.hero__map > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__map--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,44,34,0) 55%, rgba(13,44,34,.35)); }
.hero__caption { position: absolute; right: 1rem; bottom: .75rem; z-index: 3; font-size: .75rem; color: rgba(255,255,255,.9); background: rgba(13,44,34,.55); padding: .15rem .5rem; border-radius: 3px; }

.pin { position: absolute; left: var(--x); top: var(--y); z-index: 2; display: flex; align-items: center; animation: pin .5s var(--ease) both; animation-delay: calc(1.25s + var(--i) * .18s); }
.pin__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 4px rgba(18,59,46,.25); flex: none; position: relative; }
.pin__dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--forest); }
.pin__label {
  position: relative; margin-left: 1.9rem; background: var(--paper); color: var(--ink);
  font-size: .8125rem; font-weight: 500; line-height: 1.3; padding: .45rem .7rem; border-radius: 3px;
  box-shadow: 0 6px 18px -8px rgba(13,44,34,.5); white-space: nowrap;
}
.pin__label::before { content: ""; position: absolute; right: 100%; top: 50%; width: 1.9rem; height: 1px; background: var(--paper); }
.pin--l { flex-direction: row-reverse; transform: translateX(-100%); }
.pin--l .pin__label { margin: 0 1.9rem 0 0; }
.pin--l .pin__label::before { right: auto; left: 100%; }
@keyframes pin { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--field { background: var(--sage-50); }
.section__head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head h2 { font-size: var(--fs-xl); }
.section__head p { color: var(--muted); margin: .8rem 0 0; font-size: 1.0625rem; }
.section__head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.section__head--split > div { max-width: 44rem; }
.empty { padding: 2.5rem; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--r-m); color: var(--muted); text-align: center; }
.empty .btn { margin-top: .5rem; }

/* ---------- Services : lignes ---------- */
.srv-rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.srv-row { border-top: 1px solid var(--line); }
.srv-row a {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) auto; gap: 2rem; align-items: baseline;
  padding: 2rem .25rem; color: inherit; text-decoration: none; transition: background-color .2s, padding .25s var(--ease);
}
.srv-row a:hover { background: var(--paper); padding-inline: 1.25rem; }
.srv-row__title { display: flex; flex-direction: column; gap: .2rem; }
.srv-row__fr { font-family: var(--serif); font-size: clamp(1.45rem, 1.1rem + 1vw, 2rem); color: var(--forest); line-height: 1.15; }
.srv-row__en { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1rem; }
.srv-row__text { color: #3A4A41; }
.srv-row__more { font-size: var(--fs-s); font-weight: 500; color: var(--forest); text-decoration: underline; text-decoration-color: var(--millet); text-decoration-thickness: 2px; text-underline-offset: .3em; white-space: nowrap; }
.srv-rows--compact .srv-row a { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto; padding-block: 1.4rem; }
.srv-rows--compact .srv-row__fr { font-size: 1.45rem; }

/* ---------- Agenda des sessions ---------- */
.agenda__list { list-style: none; margin: 0; padding: 0; background: var(--paper); border-radius: var(--r-m); border: 1px solid var(--line); }
.agenda__item { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding: 1.6rem 1.75rem; }
.agenda__item + .agenda__item { border-top: 1px solid var(--sage-100); }
.agenda__item.is-full { opacity: .7; }
.dblock { display: flex; flex-direction: column; line-height: 1; border-left: 3px solid var(--millet); padding-left: .9rem; }
.dblock__d { font-family: var(--serif); font-size: 2.9rem; color: var(--forest); font-weight: 500; letter-spacing: -.02em; }
.dblock__m { font-size: var(--fs-xs); color: var(--muted); margin-top: .35rem; }
.agenda__cat { margin: 0 0 .25rem; font-size: var(--fs-xs); color: var(--muted); }
.agenda__main h3 { font-size: 1.4rem; line-height: 1.2; }
.agenda__main h3 a { text-decoration: none; color: var(--forest); }
.agenda__main h3 a:hover { text-decoration: underline; }
.agenda__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.1rem; margin: .7rem 0 0; font-size: var(--fs-s); color: var(--muted); }
.agenda__seats.is-low { color: #9A5B10; font-weight: 500; }
.agenda__side { display: flex; flex-direction: column; align-items: flex-end; gap: .65rem; }
.agenda__price { margin: 0; font-family: var(--serif); font-size: 1.35rem; color: var(--ink); white-space: nowrap; }

.chip { display: inline-block; font-size: .78rem; font-weight: 500; padding: .18rem .6rem; border-radius: 999px; background: var(--sage-100); color: var(--forest); line-height: 1.4; }
.chip--en_ligne { background: var(--river-soft); color: #1F5470; }
.chip--hybride { background: var(--millet-soft); color: #7A5410; }

/* ---------- Methode ---------- */
.method__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: s; }
.method__step { position: relative; padding-top: 2.6rem; }
.method__step::before { content: ""; position: absolute; top: 1.05rem; left: 2.6rem; right: -2rem; height: 1px; background: var(--line); }
.method__step:last-child::before { display: none; }
.method__n { position: absolute; top: 0; left: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1.5px solid var(--millet); display: grid; place-items: center; font-family: var(--serif); font-size: 1.1rem; color: var(--forest); background: var(--field); }
.method__step h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.method__step p { color: var(--muted); font-size: var(--fs-s); margin: 0; }

/* ---------- Temoignages ---------- */
.quotes { background: var(--paper); border-block: 1px solid var(--line); }
.quotes__track { display: grid; }
.quote { grid-area: 1 / 1; margin: 0; max-width: 52rem; opacity: 0; visibility: hidden; transition: opacity .5s; }
.quote.is-active { opacity: 1; visibility: visible; }
.quote blockquote { margin: 0; }
.quote p { font-family: var(--serif); font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.2rem); line-height: 1.3; color: var(--forest); }
.quote figcaption { display: flex; flex-direction: column; margin-top: 1.25rem; font-size: var(--fs-s); }
.quote figcaption span { color: var(--muted); }
.quotes__nav { display: flex; gap: .5rem; margin-top: 2rem; }
.quotes__nav button { width: 2rem; height: .3rem; border: 0; border-radius: 2px; background: var(--line); cursor: pointer; padding: 0; }
.quotes__nav button[aria-current="true"] { background: var(--forest); }

/* ---------- Actualites ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.post-card a { display: block; color: inherit; text-decoration: none; }
.post-card__img { aspect-ratio: 16 / 10; border-radius: var(--r-m); overflow: hidden; background: var(--sage-100); }
.post-card__img img, .post-card__img svg { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card a:hover .post-card__img img, .post-card a:hover .post-card__img svg { transform: scale(1.03); }
.post-card__meta { display: flex; gap: .9rem; font-size: var(--fs-xs); color: var(--muted); margin: 1rem 0 .4rem; }
.post-card__meta span { color: var(--forest); font-weight: 500; }
.post-card h2, .post-card h3 { font-size: 1.35rem; line-height: 1.22; }
.post-card a:hover h2, .post-card a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.post-card__excerpt { color: var(--muted); font-size: var(--fs-s); margin: .6rem 0 0; }
.news-teaser .post-card--lead { grid-column: span 2; grid-row: span 2; }
.news-teaser .post-card--lead h3 { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); }
.news-teaser .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news-grid--all .post-card--lead { grid-column: 1 / -1; }
.news-grid--all .post-card--lead a { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; }
.news-grid--all .post-card--lead h2 { font-size: var(--fs-xl); }

/* ---------- Bandeau d'appel ---------- */
.cta-band {
  background-color: var(--forest);
  background-image: repeating-linear-gradient(104deg, rgba(255,255,255,.035) 0 14px, transparent 14px 34px);
  color: #DCE5DE; padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: var(--fs-xl); max-width: 22ch; }
.cta-band p { margin: .8rem 0 0; max-width: 36rem; }

/* ---------- Pied de page ---------- */
.footer { background: var(--forest-3); color: #B8C6BC; font-size: var(--fs-s); }
.footer a { color: #E6ECE3; text-decoration: none; }
.footer a:hover { text-decoration: underline; color: #fff; }
.footer__top { max-width: var(--wrap); margin: 0 auto; padding: 4.5rem var(--gutter) 3rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 2.5rem; }
.footer__brand img { width: 220px; height: auto; margin-bottom: 1.25rem; }
.footer__en { font-family: var(--serif); font-style: italic; color: #93A79A; }
.footer h2 { font-family: var(--sans); font-size: var(--fs-s); font-weight: 600; color: #fff; margin-bottom: 1rem; letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer address { font-style: normal; display: grid; gap: .35rem; margin-bottom: 1.5rem; }
.newsletter label { display: block; color: #fff; font-weight: 500; margin-bottom: .5rem; }
.newsletter__row { display: flex; gap: .4rem; }
.newsletter input[type="email"] { flex: 1; min-width: 0; padding: .7rem .8rem; border-radius: var(--r-s); border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; font: inherit; }
.newsletter input::placeholder { color: #8DA295; }
.footer__bottom { max-width: var(--wrap); margin: 0 auto; padding: 1.5rem var(--gutter) 2rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: var(--fs-xs); }
.footer__bottom p { margin: 0; }
.footer__credit { margin-left: .6rem; padding-left: .7rem; border-left: 1px solid rgba(255,255,255,.2); color: #DCE5DE; }
.footer__credit a { color: var(--millet); }
.footer__social { display: flex; gap: 1.25rem; }

/* ---------- En-tete de page ---------- */
.page-head {
  position: relative; overflow: hidden; background: var(--forest); color: #D4DFD7;
  padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(3rem, 6vw, 4.5rem);
}
/* En-tete avec photo */
.page-head--photo { background: var(--forest-3); padding-block: clamp(6rem, 13vw, 10rem) clamp(3rem, 6vw, 4.5rem); }
.page-head__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(9,32,24,.86) 0%, rgba(9,32,24,.6) 45%, rgba(9,32,24,.2) 100%), linear-gradient(0deg, rgba(9,32,24,.55), rgba(9,32,24,0) 50%); }
.page-head--photo .page-head__inner { z-index: 2; }
.page-head--photo .page-head__lead { color: #E3EBE5; }
.page-head__inner { position: relative; z-index: 2; }
.page-head h1 { color: #fff; font-size: var(--fs-2xl); max-width: 18ch; text-wrap: balance; }
.page-head__lead { font-size: 1.15rem; max-width: 40rem; margin: 1.1rem 0 0; }
.page-head__en { font-family: var(--serif); font-style: italic; color: #A9BDB0; margin: .6rem 0 0; font-size: 1.1rem; }
.page-head--slim { padding-block: 2.5rem; }
.page-head--slim h1 { font-size: var(--fs-xl); }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: var(--fs-xs); margin-bottom: 1.1rem; }
.crumbs a { color: #C3D2C8; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs a + a::before { content: "/"; margin-right: .4rem; color: #7E968A; }

/* ---------- Catalogue ---------- */
.catalog { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 3rem; align-items: start; }
.filters { margin-bottom: 1.5rem; }
.filters__cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.pill { display: inline-block; padding: .45rem .95rem; border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: var(--fs-s); background: var(--paper); }
.pill:hover { border-color: var(--forest); color: var(--forest); }
.pill.is-on { background: var(--forest); border-color: var(--forest); color: #fff; }
.filters__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.filters__row input[type="search"] { flex: 1 1 16rem; }
.catalog__count { font-size: var(--fs-s); color: var(--muted); margin: 0 0 1rem; }
.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.course-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.course { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.course:hover { border-color: #AEBBA7; box-shadow: 0 14px 30px -22px rgba(13,44,34,.55); }
.course__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.course__img { position: relative; aspect-ratio: 16 / 8; background: var(--sage-100); overflow: hidden; }
.course__img > img, .course__img > svg { width: 100%; height: 100%; object-fit: cover; }
.course__img .chip { position: absolute; left: .9rem; top: .9rem; background: var(--paper); }
.course__body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.course__cat { font-size: var(--fs-xs); color: var(--muted); margin: 0 0 .35rem; }
.course__title { font-size: 1.4rem; line-height: 1.2; }
.course__sub { color: var(--muted); font-size: var(--fs-s); margin: .5rem 0 1.1rem; }
.course__facts { display: grid; grid-template-columns: repeat(3, auto); gap: .75rem; margin: auto 0 0; padding-top: 1rem; border-top: 1px solid var(--sage-100); }
.course__facts dt { font-size: .75rem; color: var(--muted); }
.course__facts dd { margin: .1rem 0 0; font-size: var(--fs-s); font-weight: 500; }
.field-art { width: 100%; height: 100%; }

.catalog__aside { position: sticky; top: 6rem; display: grid; gap: 1.25rem; }
.calendar { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.35rem; }
.calendar h2, .aside-note h2 { font-size: 1.3rem; margin-bottom: .75rem; }
.calendar ol { list-style: none; margin: 0; padding: 0; }
.calendar__month { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); margin: 1rem 0 .35rem; }
.calendar__month:first-child { margin-top: 0; }
.calendar__item a { display: grid; grid-template-columns: 2.2rem 1fr; gap: 0 .6rem; padding: .55rem 0; border-top: 1px solid var(--sage-100); text-decoration: none; color: inherit; }
.calendar__day { grid-row: span 2; font-family: var(--serif); font-size: 1.45rem; line-height: 1; color: var(--forest); }
.calendar__title { font-size: var(--fs-s); line-height: 1.3; font-weight: 500; }
.calendar__item a:hover .calendar__title { text-decoration: underline; }
.calendar__fmt { font-size: .75rem; color: var(--muted); }
.aside-note { padding: 1.35rem; border-radius: var(--r-m); background: var(--millet-soft); }
.aside-note p { font-size: var(--fs-s); color: #5A4A28; }

/* ---------- Fiche formation ---------- */
.course-head { position: relative; overflow: hidden; background: var(--forest); color: #D4DFD7; padding-block: clamp(3rem, 6vw, 5rem) 0; }
.course-head__art { position: absolute; inset: 0 0 0 52%; opacity: .5; mask-image: linear-gradient(90deg, transparent, #000 50%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%); }
.course-head__art img, .course-head__art svg { width: 100%; height: 100%; object-fit: cover; }
.course-head__inner { position: relative; z-index: 2; }
.course-head--photo { padding-top: clamp(6rem, 12vw, 9rem); background: var(--forest-3); }
.course-head--photo .course-head__art { inset: 0; opacity: 1; mask-image: none; -webkit-mask-image: none; }
.course-head--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(9,32,24,.9) 0%, rgba(9,32,24,.62) 50%, rgba(9,32,24,.25) 100%), linear-gradient(0deg, rgba(9,32,24,.7), rgba(9,32,24,0) 45%); }
.course-head h1 { color: #fff; font-size: var(--fs-2xl); max-width: 20ch; text-wrap: balance; }
.course-head__sub { font-family: var(--serif); font-style: italic; font-size: 1.3rem; margin: 1rem 0 0; color: #C7D6CC; max-width: 40rem; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); justify-content: start; gap: 0; margin: 2.5rem 0 0; border-top: 1px solid rgba(255,255,255,.15); }
.facts div { padding: 1.1rem 2.5rem 1.4rem 0; }
.facts div + div { padding-left: 2.5rem; border-left: 1px solid rgba(255,255,255,.15); }
.facts dt { font-size: var(--fs-xs); color: #9DB3A5; }
.facts dd { margin: .2rem 0 0; color: #fff; font-weight: 500; }

.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.prose { font-size: 1.0625rem; max-width: 44rem; }
.prose .lead { font-size: 1.25rem; line-height: 1.55; color: #2A3A31; font-family: var(--serif); }
.prose h2 { font-size: 1.85rem; margin: 2.8rem 0 1rem; }
.prose h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; color: var(--ink); margin: 1.8rem 0 .5rem; letter-spacing: 0; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1.2em; }
.prose li { margin: .35rem 0; }
.prose li::marker { color: var(--millet); }
.prose blockquote { margin: 1.5rem 0; padding: .3rem 0 .3rem 1.4rem; border-left: 3px solid var(--millet); font-family: var(--serif); font-size: 1.25rem; color: var(--forest); }
.prose img { border-radius: var(--r-m); margin: 1.5rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: var(--fs-s); }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .55rem .4rem; text-align: left; }
.prose__fig { margin: 0 0 2rem; }
.ticks ul { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 2rem; margin: .7rem 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--millet-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.7 2.6L12 5.4' fill='none' stroke='%23123B2E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }
.program { border-left: 2px solid var(--sage-100); padding-left: 1.6rem; margin-left: .4rem; }
.program h3 { position: relative; font-family: var(--serif); font-weight: 500; font-size: 1.25rem; color: var(--forest); margin-top: 1.6rem; }
.program h3:first-child { margin-top: 0; }
.program h3::before { content: ""; position: absolute; left: calc(-1.6rem - 7px); top: .4em; width: 12px; height: 12px; border-radius: 50%; background: var(--field); border: 2px solid var(--millet); }
.program p { color: var(--muted); margin: .3rem 0 0; }
.course-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; margin-top: 1.5rem; }
.course-columns section { border-top: 1px solid var(--line); }
.course-columns h2 { font-size: 1.3rem; margin: 1.3rem 0 .5rem; }
.course-columns p { color: #3A4A41; font-size: var(--fs-s); }

.book { position: sticky; top: 6rem; display: grid; gap: 1rem; }
.book__card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.6rem; box-shadow: 0 24px 50px -40px rgba(13,44,34,.6); }
.book__card--plain { box-shadow: none; }
.book__card h2 { font-size: 1.25rem; margin: 1.4rem 0 .7rem; }
.book__card--plain h2 { margin-top: 0; }
.book__price { font-family: var(--serif); font-size: 2.2rem; color: var(--forest); margin: 0; line-height: 1.1; }
.book__price-note { font-size: var(--fs-xs); color: var(--muted); margin: .3rem 0 0; }
.book__sessions { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .5rem; }
.book__sessions a, .book__sessions span { display: flex; flex-direction: column; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: var(--r-s); text-decoration: none; color: inherit; }
.book__sessions a:hover { border-color: var(--forest); }
.book__sessions small { color: var(--muted); font-size: var(--fs-xs); }
.book__sessions .is-full span { opacity: .55; }
.book__none { font-size: var(--fs-s); color: var(--muted); }
.book__pay { font-size: var(--fs-xs); color: var(--muted); margin: 1rem 0 0; }
.book__intra { display: block; padding: 1.2rem 1.4rem; border-radius: var(--r-m); background: var(--millet-soft); color: #4D3E1E; text-decoration: none; }
.book__intra strong { display: block; color: var(--forest); text-decoration: underline; text-decoration-color: var(--millet); text-underline-offset: .25em; }
.book__intra span { font-size: var(--fs-s); }
.deliv { list-style: none; margin: 1rem 0 1.25rem; padding: 0; display: grid; gap: .45rem; }
.deliv li { position: relative; padding-left: 1.4rem; font-size: var(--fs-s); }
.deliv li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7rem; height: 2px; background: var(--millet); }
.deliv--stack { margin-top: 0; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.mini-list a { font-weight: 500; text-decoration: none; display: block; line-height: 1.3; }
.mini-list a:hover { text-decoration: underline; }
.mini-list small { color: var(--muted); font-size: var(--fs-xs); }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-s); font-weight: 500; }
.field label small { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input:not([type]), select, textarea {
  width: 100%; padding: .75rem .85rem; border: 1.5px solid var(--line); border-radius: var(--r-s);
  background: var(--paper); color: var(--ink); font: 400 var(--fs-m)/1.4 var(--sans);
  transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; padding-right: 2.4rem; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23123B2E' stroke-width='1.6'/%3E%3C/svg%3E") right .9rem center / .7rem no-repeat; }
.filters__row select { width: auto; }
textarea { resize: vertical; min-height: 6rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(18,59,46,.14); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field__error { color: var(--danger); font-size: var(--fs-xs); font-weight: 500; margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.alert { padding: 1rem 1.1rem; border-radius: var(--r-s); margin-bottom: 1.5rem; }
.alert p { margin: 0; }
.alert--error { background: var(--danger-soft); color: var(--danger); border-left: 4px solid var(--danger); font-weight: 500; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--fs-s); color: #3A4A41; cursor: pointer; }
.check input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--forest); flex: none; }

.enroll { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.enroll__form { max-width: 46rem; }
.step { border: 0; padding: 0; margin: 0 0 2.5rem; min-width: 0; }
.step legend { display: flex; align-items: center; gap: .8rem; font-family: var(--serif); font-size: 1.6rem; color: var(--forest); padding: 0; margin-bottom: 1.2rem; }
.step__n { width: 2rem; height: 2rem; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; font: 600 .95rem/1 var(--sans); }
.choices { display: grid; gap: .6rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice__box { display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.1rem 1rem 3rem; border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--paper); position: relative; transition: border-color .15s, background-color .15s; }
.choice__box::before { content: ""; position: absolute; left: 1.05rem; top: 1.15rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 1.5px solid #9AA89F; background: #fff; }
.choice input:checked + .choice__box { border-color: var(--forest); background: #F6F9F4; }
.choice input:checked + .choice__box::before { border: 5px solid var(--forest); }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--millet); outline-offset: 2px; }
.choice__box small { color: var(--muted); font-size: var(--fs-s); }
.choice.is-disabled { cursor: not-allowed; opacity: .55; }
.paylogos { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.paylogos span { font-size: .72rem; font-weight: 500; padding: .15rem .5rem; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); background: var(--field); }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: var(--r-s); padding: 3px; background: var(--paper); margin-bottom: 1.3rem; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: .5rem 1rem; border-radius: 3px; font-size: var(--fs-s); font-weight: 500; color: var(--muted); }
.seg input:checked + span { background: var(--forest); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--millet); }
.consent { margin: 0 0 1.5rem; padding: 1.1rem; background: var(--sage-50); border-radius: var(--r-s); }

.summary { position: sticky; top: 6rem; }
.summary__card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.summary__art { aspect-ratio: 16 / 7; }
.summary__art img, .summary__art svg { width: 100%; height: 100%; object-fit: cover; }
.summary__card h2 { font-size: 1.3rem; padding: 1.2rem 1.35rem 0; }
.summary__card dl { margin: 1rem 1.35rem 0; }
.summary__card dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-top: 1px solid var(--sage-100); font-size: var(--fs-s); }
.summary__card dt { color: var(--muted); }
.summary__card dd { margin: 0; text-align: right; font-weight: 500; }
.summary__total { font-size: 1.05rem !important; }
.summary__total dd { font-family: var(--serif); font-size: 1.4rem; color: var(--forest); }
.summary__note { font-size: var(--fs-xs); color: var(--muted); padding: 0 1.35rem 1.35rem; margin: .8rem 0 0; }

/* ---------- Recu / confirmation ---------- */
.receipt { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: clamp(1.5rem, 4vw, 2.75rem); border-top: 5px solid var(--millet); }
.receipt--ok { border-top-color: var(--ok); }
.receipt--off { border-top-color: var(--danger); }
.receipt__head { display: flex; gap: 1.25rem; align-items: flex-start; }
.receipt__icon { flex: none; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--millet-soft); color: #8A5E12; }
.receipt--ok .receipt__icon { background: var(--ok-soft); color: var(--ok); }
.receipt__icon svg { width: 1.6rem; }
.receipt h1 { font-size: var(--fs-xl); margin-bottom: .6rem; }
.receipt__head p { color: #3A4A41; }
.receipt__lines { margin: 1.75rem 0; border-top: 1px solid var(--line); }
.receipt__lines div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--sage-100); }
.receipt__lines dt { color: var(--muted); }
.receipt__lines dd { margin: 0; text-align: right; font-weight: 500; }
.ref { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .02em; }
.status { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; background: var(--millet-soft); color: #7A5410; }
.status--paid { background: var(--ok-soft); color: var(--ok); }
.status--cancelled, .status--failed { background: var(--danger-soft); color: var(--danger); }
.receipt__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.receipt__help { margin: 1.5rem 0 0; font-size: var(--fs-s); color: var(--muted); }

/* ---------- Services (page) ---------- */
.srv-blocks { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.srv-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.srv-block:nth-child(even) .srv-block__art { order: 2; }
.srv-block__art { aspect-ratio: 4 / 3; border-radius: var(--r-m); overflow: hidden; }
.srv-block__art img, .srv-block__art svg { width: 100%; height: 100%; object-fit: cover; }
.srv-block h2 { font-size: var(--fs-xl); }
.srv-block h2 a { text-decoration: none; }
.srv-block h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.srv-block__en { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1.1rem; margin: .4rem 0 1rem; }
.srv-block__body > p { color: #3A4A41; }

/* ---------- Article ---------- */
.article { padding-block: clamp(3rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); }
.article .crumbs a { color: var(--muted); }
.article .crumbs a:hover { color: var(--forest); }
.article .crumbs a + a::before { color: var(--line); }
.article__head h1 { font-size: var(--fs-2xl); text-wrap: balance; }
.article__lead { font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; color: #33443B; margin: 1.2rem 0 0; }
.article__date { font-size: var(--fs-s); color: var(--muted); margin: 1.3rem 0 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.article__cover { margin-block: 0 2.5rem; max-width: 60rem; }
.article__cover img { border-radius: var(--r-m); width: 100%; }
.more-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.more-list a { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.more-list__date { color: var(--muted); font-size: var(--fs-s); }
.more-list__title { font-family: var(--serif); font-size: 1.3rem; color: var(--forest); }
.more-list a:hover .more-list__title { text-decoration: underline; text-decoration-thickness: 1px; }
.pager { display: flex; gap: .4rem; justify-content: center; margin-top: 3rem; }
.pager a { min-width: 2.5rem; padding: .5rem .8rem; border: 1.5px solid var(--line); border-radius: var(--r-s); text-align: center; text-decoration: none; }
.pager a[aria-current="page"] { background: var(--forest); color: #fff; border-color: var(--forest); }

/* ---------- A propos ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about__art { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--r-m); overflow: hidden; clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%); }
.about__art img { width: 100%; height: 100%; object-fit: cover; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.value { border-top: 2px solid var(--forest); padding-top: 1.2rem; }
.value h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.value p { color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact__form .grid-2 { margin-bottom: 1.5rem; }
.contact__list { margin: 0; }
.contact__list div { padding: 1rem 0; border-top: 1px solid var(--line); }
.contact__list dt { font-size: var(--fs-xs); color: var(--muted); }
.contact__list dd { margin: .2rem 0 0; font-family: var(--serif); font-size: 1.25rem; color: var(--forest); }
.contact__list a { text-decoration: none; }
.contact__map { aspect-ratio: 4 / 3; border-radius: var(--r-m); overflow: hidden; margin-top: 1rem; }

/* ---------- 404 ---------- */
.notfound { text-align: center; }
.notfound__code { font-family: var(--serif); font-size: 6rem; line-height: 1; color: var(--millet); margin: 0 0 1rem; }
.notfound h1 { font-size: var(--fs-xl); margin-bottom: 1rem; }
.notfound__links { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }

/* ---------- Accueil : diaporama ---------- */
.slider { position: relative; height: clamp(34rem, calc(100vh - 7.5rem), 52rem); background: var(--forest-3); color: #fff; overflow: hidden; }
.slider__track, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 1.1s; }
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide__media { position: absolute; inset: 0; background: linear-gradient(135deg, var(--forest-2), var(--forest-3)); }
.slide__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 9s ease-out; }
.slide.is-active .slide__media img { transform: scale(1); }
.slide__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,28,21,.82) 0%, rgba(8,28,21,.5) 42%, rgba(8,28,21,.05) 75%), linear-gradient(0deg, rgba(8,28,21,.7) 0%, rgba(8,28,21,0) 38%); }
.slide__content { position: absolute; inset: 0; display: flex; align-items: center; padding-bottom: 5rem; }
.slide__content .wrap { width: 100%; }
.slide__label { display: inline-block; margin: 0 0 1.1rem; padding: .3rem .75rem; border-radius: 3px; background: var(--millet); color: var(--forest-3); font-size: var(--fs-s); font-weight: 600; }
.slide__title { color: #fff; font-size: clamp(2.5rem, 1.2rem + 4.6vw, 5.2rem); line-height: 1.02; letter-spacing: -.02em; max-width: 15ch; text-wrap: balance; }
.slide__sub { font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); color: #E4ECE6; max-width: 36rem; margin: 1.3rem 0 0; }
.slide__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.1rem; }
.slide.is-active .slide__label, .slide.is-active .slide__title, .slide.is-active .slide__sub, .slide.is-active .slide__actions { animation: rise .9s var(--ease) both; }
.slide.is-active .slide__title { animation-delay: .12s; }
.slide.is-active .slide__sub { animation-delay: .24s; }
.slide.is-active .slide__actions { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.slider__ui { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding-bottom: 1.6rem; }
.slider__ui-inner { display: flex; align-items: flex-end; gap: 2rem; }
.slider__dots { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.slider__dots button { width: 100%; background: none; border: 0; padding: .4rem 0; color: rgba(255,255,255,.7); text-align: left; cursor: pointer; font: 500 var(--fs-xs)/1.3 var(--sans); }
.slider__dots button[aria-current="true"], .slider__dots button:hover { color: #fff; }
.slider__name { display: block; margin-bottom: .55rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slider__bar { display: block; height: 3px; background: rgba(255,255,255,.28); border-radius: 2px; overflow: hidden; }
.slider__bar i { display: block; height: 100%; width: 0; background: var(--millet); }
.slider__dots button[aria-current="true"] .slider__bar i { animation: fill var(--interval, 7s) linear forwards; }
.slider.is-paused .slider__dots button[aria-current="true"] .slider__bar i { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.slider__arrows { display: flex; gap: .4rem; }
.slider__arrows button, .scroll-arrows button { width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6); background: rgba(8,28,21,.25); color: #fff; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(4px); transition: background-color .15s, border-color .15s; }
.slider__arrows button:hover { background: #fff; color: var(--forest); border-color: #fff; }
.slider__arrows svg, .scroll-arrows svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slider__arrows .i-play { display: none; fill: currentColor; stroke: none; }
.slider.is-paused .slider__arrows .i-play { display: block; }
.slider.is-paused .slider__arrows .i-pause { display: none; }

/* ---------- Accueil : sections ---------- */
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.row-head h2 { font-size: var(--fs-xl); }
.row-head__side { display: flex; align-items: center; gap: 1.5rem; }
.scroll-arrows { display: flex; gap: .4rem; }
.scroll-arrows button { border-color: var(--line); background: var(--paper); color: var(--forest); backdrop-filter: none; width: 2.6rem; height: 2.6rem; }
.scroll-arrows button:hover { background: var(--forest); color: #fff; border-color: var(--forest); }
.ccards { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(16.5rem, 24vw, 21rem); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); padding: .25rem max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 1.5rem; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.ccard { scroll-snap-align: start; background: var(--paper); border-radius: var(--r-m); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 18px 40px -32px rgba(13,44,34,.6); transition: transform .3s var(--ease), box-shadow .3s; }
.ccard:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--line), 0 26px 50px -30px rgba(13,44,34,.65); }
.ccard a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.ccard__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sage-100); }
.ccard__img > img, .ccard__img > svg { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ccard:hover .ccard__img > img { transform: scale(1.05); }
.ccard__date { position: absolute; left: .9rem; top: .9rem; display: flex; flex-direction: column; align-items: center; min-width: 3.6rem; padding: .45rem .5rem .4rem; background: var(--paper); border-radius: 6px; font-size: .75rem; color: var(--muted); line-height: 1.1; box-shadow: 0 6px 18px -8px rgba(0,0,0,.4); }
.ccard__date b { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; color: var(--forest); }
.ccard__img .chip { position: absolute; right: .9rem; top: .9rem; background: var(--paper); }
.ccard__body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.ccard__body h3 { font-size: 1.28rem; line-height: 1.22; }
.ccard__meta { display: flex; justify-content: space-between; gap: 1rem; margin: auto 0 0; padding-top: 1rem; font-size: var(--fs-s); color: var(--muted); }
.ccard__meta span:last-child { color: var(--forest); font-weight: 600; }

.section--dark { background: var(--forest-3); color: #CFDBD3; }
.section--dark h2 { color: #fff; }
.link--light { color: #fff; text-decoration-color: var(--millet); }
.link--light:hover { color: #fff; }
.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles--1 { grid-template-columns: 1fr; }
.tile { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r-m); overflow: hidden; color: #fff; text-decoration: none; background: var(--forest-2); isolation: isolate; }
.tile > img, .tile > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); z-index: -2; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,28,21,.92) 0%, rgba(8,28,21,.45) 45%, rgba(8,28,21,.05) 75%); transition: background-color .3s; }
.tile:hover > img { transform: scale(1.06); }
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; }
.tile__title { font-family: var(--serif); font-size: clamp(1.35rem, 1rem + .9vw, 1.75rem); line-height: 1.12; }
.tile__text { font-size: var(--fs-s); color: #DCE6DF; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s var(--ease), opacity .3s; }
.tile:hover .tile__text, .tile:focus-visible .tile__text { max-height: 8rem; opacity: 1; }
.tile__more { font-size: var(--fs-s); font-weight: 600; color: var(--millet); }

.band { position: relative; overflow: hidden; color: #fff; padding-block: clamp(6rem, 14vw, 10rem); background: var(--forest-2); text-align: center; isolation: isolate; }
.band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8,28,21,.62); }
.band--plain::before { background: repeating-linear-gradient(104deg, rgba(255,255,255,.035) 0 14px, transparent 14px 34px); }
.band__inner { display: flex; flex-direction: column; align-items: center; }
.band h2 { color: #fff; font-size: clamp(2.2rem, 1.3rem + 3vw, 3.8rem); max-width: 18ch; text-wrap: balance; }
.band p { font-size: 1.15rem; color: #E4ECE6; max-width: 36rem; margin: 1.1rem 0 2rem; }

.ncards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.ncard a { display: block; color: inherit; text-decoration: none; }
.ncard__img { aspect-ratio: 3 / 2; border-radius: var(--r-m); overflow: hidden; background: var(--sage-100); }
.ncard__img img, .ncard__img svg { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ncard a:hover .ncard__img img { transform: scale(1.05); }
.ncard__meta { display: flex; gap: .9rem; font-size: var(--fs-xs); color: var(--muted); margin: 1rem 0 .4rem; }
.ncard__meta span { color: var(--forest); font-weight: 600; }
.ncard h3 { font-size: 1.35rem; line-height: 1.22; }
.ncard a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

.partners { padding-block: 3.5rem; border-top: 1px solid var(--line); background: var(--paper); }
.partners h2 { font-family: var(--sans); font-size: var(--fs-s); font-weight: 600; color: var(--muted); text-align: center; margin-bottom: 1.75rem; letter-spacing: 0; }
.partners__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2.5rem 3.5rem; }
.partners__list img { max-height: 3.4rem; max-width: 10rem; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.partners__list a:hover img, .partners__list li:hover img { filter: none; opacity: 1; }
.partners__list span { font-family: var(--serif); font-size: 1.3rem; color: var(--muted); }

.about__art img, .contact__map img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Responsive ---------- */
@media (max-width: 1500px) {
  .badge__text { display: none; }
  .badge { padding-left: 1.1rem; }
}
@media (max-width: 1360px) {
  .masthead__inner { gap: 1.5rem; }
  .nav { gap: 1.25rem; }
  .nav ul { gap: 1.2rem; }
}

@media (max-width: 1080px) {
  .nav { gap: 1.1rem; }
  .nav ul { gap: 1.1rem; }
  .nav__cta { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .method__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .method__step:nth-child(2)::before { display: none; }
  .catalog { grid-template-columns: 1fr; }
  .catalog__aside { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; margin-left: .75rem; }
  .badge { margin-left: auto; padding-left: 0; border-left: 0; }
  .badge img { height: 2.6rem; }
  .nav {
    position: fixed; inset: var(--nav-top, 4.6rem) 0 0 0; z-index: 39; background: var(--field);
    flex-direction: column; align-items: stretch; padding: 1.5rem var(--gutter) 2rem; gap: 1.5rem;
    transform: translateY(-.5rem); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
  .nav ul a.nav__home { margin: .5rem 0; padding: .7rem 1rem; text-align: left; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { aspect-ratio: 4 / 5; }
  .tile__text { max-height: 8rem; opacity: 1; }
  .ncards { grid-template-columns: 1fr 1fr; }
  .slider__name { display: none; }
  .slider__dots { gap: .5rem; }
  .nav__cta { display: inline-flex; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__map { min-height: 26rem; clip-path: none; order: 2; }
  .hero__text { padding: 3rem var(--gutter) 2.5rem; }
  .srv-row a, .srv-rows--compact .srv-row a { grid-template-columns: 1fr; gap: .6rem; }
  .agenda__item { grid-template-columns: auto 1fr; gap: 1rem 1.25rem; padding: 1.3rem; }
  .agenda__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .news-grid, .news-teaser .news-grid { grid-template-columns: 1fr 1fr; }
  .news-teaser .post-card--lead { grid-column: 1 / -1; grid-row: auto; }
  .news-grid--all .post-card--lead a { grid-template-columns: 1fr; gap: 0; }
  .course-layout, .enroll, .about, .contact { grid-template-columns: 1fr; }
  .book, .summary { position: static; }
  .summary { order: -1; }
  .srv-block { grid-template-columns: 1fr; gap: 1.5rem; }
  .srv-block:nth-child(even) .srv-block__art { order: 0; }
  .values { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div, .facts div + div { padding: 1rem 1rem 1rem 0; border-left: 0; }
  .page-head::after { width: 70%; opacity: .2; }
  .course-head__art { inset: 0; opacity: .25; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .ticker__tag { display: none; }
  .hero__caption { display: none; }
  .pin__label { font-size: .72rem; padding: .3rem .5rem; white-space: normal; max-width: 9.5rem; }
  .pin__label::before, .pin--l .pin__label::before { width: 1rem; }
  .pin__label { margin-left: 1rem; }
  .pin--l .pin__label { margin-right: 1rem; }
  .course-grid, .course-grid--3, .news-grid, .news-teaser .news-grid, .grid-2 { grid-template-columns: 1fr; }
  .course-columns { grid-template-columns: 1fr; }
  .method__steps { grid-template-columns: 1fr; }
  .method__step::before { display: none; }
  .catalog__aside { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; padding-top: 3rem; }
  .more-list a { grid-template-columns: 1fr; gap: .2rem; }
  .course__facts { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .slider { height: clamp(32rem, 88vh, 42rem); }
  .slide__content { align-items: flex-end; padding-bottom: 6.5rem; }
  .slide__actions .btn { flex: 1 1 100%; }
  .slider__arrows [data-pause] { display: none; }
  .slider__arrows button { width: 2.5rem; height: 2.5rem; }
  .tiles, .tiles--3, .tiles--2, .ncards { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 16 / 11; }
  .scroll-arrows { display: none; }
  .ccards { grid-auto-columns: 82%; }
  .seg { display: flex; }
  .seg label { flex: 1; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker__track { animation: none; }
  .ticker__viewport { overflow-x: auto; }
  .slide__media img { transition: none; transform: none; }
  .slide { transition: none; }
}
