/* ==========================================================================
   Made in Slovenia — Vert alpin, lac emeraude
   Palette : vert sapin / emeraude de Bled / calcaire karstique / or du tilleul
   Polices : Petrona (display) · Work Sans (corps) · Young Serif (accent)
   ========================================================================== */

:root {
  /* --- Couleurs : 6 teintes + derives opacite --- */
  --forest:  #1B3A2F;  /* vert sapin profond — titres, header, footer */
  --emerald: #1E7A6B;  /* emeraude du lac de Bled — accent principal, liens */
  --karst:   #F4F1E8;  /* calcaire karstique — fond */
  --snow:    #FFFFFF;  /* blanc — cards */
  --linden:  #C9A227;  /* or du tilleul, arbre national — accent secondaire */
  --slate:   #2B3338;  /* gris ardoise — texte courant */

  --forest-90: rgba(27, 58, 47, 0.90);
  --forest-72: rgba(27, 58, 47, 0.72);
  --forest-48: rgba(27, 58, 47, 0.48);
  --forest-20: rgba(27, 58, 47, 0.20);
  --forest-12: rgba(27, 58, 47, 0.12);
  --forest-06: rgba(27, 58, 47, 0.06);

  --emerald-16: rgba(30, 122, 107, 0.16);
  --linden-28:  rgba(201, 162, 39, 0.28);

  --snow-95: rgba(255, 255, 255, 0.95);
  --snow-75: rgba(255, 255, 255, 0.75);
  --snow-40: rgba(255, 255, 255, 0.40);

  /* --- Polices --- */
  --ff-display: 'Petrona', Georgia, 'Times New Roman', serif;
  --ff-body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-accent: 'Young Serif', Georgia, serif;

  /* --- Mesures --- */
  --measure-article: 860px;   /* regle reseau : >= 820px */
  --measure-wide: 1280px;
  --measure-hero: 1440px;
  --gutter: clamp(1rem, 4vw, 2rem);

  /* --- Transitions --- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 300ms;
  --dur: 500ms;
  --dur-slow: 700ms;

  --radius: 3px;
  --shadow-card: 0 1px 2px var(--forest-06), 0 8px 24px -12px var(--forest-20);
  --shadow-card-hover: 0 2px 4px var(--forest-06), 0 18px 40px -16px var(--forest-20);
}

/* ==========================================================================
   Reset — REGLE RESEAU anti-distorsion (height:auto obligatoire)
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

img { max-width: 100%; height: auto; display: block; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--slate);
  background: var(--karst);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  color: var(--forest);
  line-height: 1.18;
  font-weight: 600;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.9vw, 2.05rem); }
h3 { font-size: clamp(1.2rem, 2.1vw, 1.45rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.35em; }

a {
  color: var(--emerald);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--forest); }

strong { font-weight: 600; color: var(--forest); }

hr { border: 0; height: 1px; background: var(--forest-12); margin: 3rem 0; }

::selection { background: var(--linden-28); color: var(--forest); }

:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; }

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--measure-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--measure-article); }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--alt { background: var(--snow); }

.kicker {
  font-family: var(--ff-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--emerald);
  margin: 0 0 0.9rem;
  display: block;
}

.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__lede { font-size: 1.14rem; color: var(--forest-72); }

/* Filet decoratif anime sous les titres de section */
.rule-gold { position: relative; padding-bottom: 0.7rem; }
.rule-gold::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 3.4rem; height: 2px;
  background: var(--linden);
  transform-origin: left center;
  transform: scaleX(0);
  animation: ruleIn var(--dur-slow) var(--ease) forwards;
}
@keyframes ruleIn { to { transform: scaleX(1); } }

/* Separateur : courbe de niveau alpine */
.contour-break {
  height: 42px;
  background-repeat: repeat-x;
  background-position: center;
  background-size: 440px 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='440' height='42' viewBox='0 0 440 42'%3E%3Cg fill='none' stroke='%231B3A2F' stroke-opacity='0.13' stroke-width='1'%3E%3Cpath d='M0 31 Q 55 9 110 21 T 220 14 T 330 24 T 440 12'/%3E%3Cpath d='M0 38 Q 55 18 110 29 T 220 22 T 330 32 T 440 20'/%3E%3C/g%3E%3C/svg%3E");
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--snow-95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--forest-12);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
  position: relative;
}

.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__text {
  font-family: var(--ff-display);
  font-size: 1.14rem;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand__text em { font-style: normal; color: var(--emerald); }

.nav { display: flex; align-items: center; gap: 1.35rem; }
.nav a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--forest);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 1.5px solid transparent;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--linden); color: var(--emerald); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lang-switch a, .lang-switch span { padding: 0.2rem 0.45rem; border-radius: var(--radius); text-decoration: none; }
.lang-switch span[aria-current] { background: var(--emerald); color: var(--snow); }
.lang-switch a { color: var(--forest-72); border: 1px solid var(--forest-12); }
.lang-switch a:hover { border-color: var(--emerald); color: var(--emerald); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--forest-12);
  border-radius: var(--radius);
  width: 42px; height: 38px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--forest); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--forest);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--snow);
    border-bottom: 1px solid var(--forest-12);
    padding: 0.5rem var(--gutter) 1.1rem;
  }
  .nav[hidden] { display: none; }
  .nav a { padding-block: 0.8rem; border-bottom: 1px solid var(--forest-06); }
  .nav .lang-switch { padding-top: 0.8rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero-home {
  position: relative;
  min-height: clamp(460px, 76vh, 660px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-home__img { position: absolute; inset: 0; }
.hero-home__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.hero-home__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,58,47,0.22) 0%, rgba(27,58,47,0.50) 52%, rgba(27,58,47,0.88) 100%);
}
.hero-home__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 42rem;
}
.hero-home .kicker,
.hero-page .kicker {
  color: #F0D98A;
  text-shadow: 0 1px 3px rgba(12, 26, 21, 0.85), 0 0 14px rgba(12, 26, 21, 0.55);
}
.hero-home h1,
.hero-page h1 {
  color: var(--snow);
  text-shadow: 0 1px 2px rgba(12, 26, 21, 0.55), 0 2px 18px rgba(12, 26, 21, 0.40);
}
.hero-home h1 { margin-bottom: 0.8rem; }
.hero-home__lede {
  color: var(--snow-95);
  font-size: 1.16rem;
  margin-bottom: 1.6rem;
  text-shadow: 0 1px 3px rgba(12, 26, 21, 0.60);
}

.hero-home__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.btn {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.93rem;
  font-weight: 600;
  padding: 0.72rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.btn--primary { background: var(--emerald); color: var(--snow); }
.btn--primary:hover { background: var(--forest); color: var(--snow); }
.btn--ghost { border-color: var(--snow-40); color: var(--snow); }
.btn--ghost:hover { border-color: var(--snow); background: var(--snow); color: var(--forest); }
.btn--solid { background: var(--forest); color: var(--snow); }
.btn--solid:hover { background: var(--emerald); color: var(--snow); }

/* Hero de page interieure */
.hero-page {
  position: relative;
  min-height: clamp(320px, 46vh, 440px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-page__img { position: absolute; inset: 0; }
.hero-page__img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-page__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,58,47,0.18) 0%, rgba(27,58,47,0.58) 60%, rgba(27,58,47,0.86) 100%);
}
.hero-page__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(2rem, 4vw, 3rem);
  max-width: 44rem;
}
.hero-page__meta {
  color: var(--snow-95);
  text-shadow: 0 1px 3px rgba(12, 26, 21, 0.70);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

/* ==========================================================================
   Wrappers images — REGLE RESEAU 14 anti-distorsion
   aspect-ratio sur le wrapper, object-fit sur l'img, jamais l'inverse
   ========================================================================== */

.img-hero     { aspect-ratio: 16/9; overflow: hidden; }
.img-card     { aspect-ratio: 3/2;  overflow: hidden; }
.img-portrait { aspect-ratio: 1/1;  overflow: hidden; border-radius: 50%; }

.img-hero img, .img-card img, .img-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* figure.img-body : le ratio va sur l'IMG, la figure reste visible
   (sinon la figcaption est clippee — incident reseau documente) */
figure.img-body { margin: 2.2rem 0; overflow: visible; }
figure.img-body img {
  aspect-ratio: 3/2;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
}
figure.img-body figcaption,
.article-body figcaption {
  font-family: var(--ff-accent);
  font-size: 0.87rem;
  line-height: 1.5;
  color: var(--forest-72);
  text-align: center;
  margin-top: 0.7rem;
  padding-inline: 1rem;
  display: block;
  position: static;
  visibility: visible;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card-grid {
  display: grid;
  gap: clamp(1.2rem, 2.4vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
}

.card {
  background: var(--snow);
  border: 1px solid var(--forest-12);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: var(--emerald-16); }

.card__img { aspect-ratio: 3/2; overflow: hidden; }
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--dur-slow) var(--ease);
}
.card:hover .card__img img { transform: scale(1.035); }

.card__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-bottom: 0.6rem; }
.card__cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
}
.card__date { font-size: 0.78rem; color: var(--forest-48); }
.card__title { font-size: 1.12rem; margin: 0 0 0.5rem; line-height: 1.3; }
.card__title a { color: var(--forest); text-decoration: none; }
.card__title a:hover { color: var(--emerald); }
.card__excerpt { font-size: 0.93rem; color: var(--forest-72); margin: 0 0 1rem; flex: 1; }
.card__more { font-size: 0.85rem; font-weight: 600; color: var(--emerald); text-decoration: none; }
.card__more:hover { text-decoration: underline; }

/* Cards de piliers : numerotation en filigrane */
.pillar-grid {
  display: grid;
  gap: clamp(1.2rem, 2.4vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.pillar {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.pillar__img { position: absolute; inset: 0; }
.pillar__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--dur-slow) var(--ease);
}
.pillar:hover .pillar__img img { transform: scale(1.04); }
.pillar__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,58,47,0.10) 0%, rgba(27,58,47,0.62) 58%, rgba(27,58,47,0.90) 100%);
}
.pillar__body { position: relative; z-index: 2; padding: 1.4rem; }
.pillar__n {
  position: absolute;
  top: 0.4rem;
  right: 0.9rem;
  z-index: 2;
  font-family: var(--ff-accent);
  font-size: 4.2rem;
  line-height: 1;
  color: var(--snow);
  opacity: 0.17;
  pointer-events: none;
}
.pillar__title {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--snow);
  margin: 0 0 0.35rem;
  line-height: 1.26;
}
.pillar__desc { font-size: 0.9rem; color: var(--snow-75); margin: 0; }

/* ==========================================================================
   Article
   ========================================================================== */

.article-shell { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 1100px) {
  .article-shell { grid-template-columns: 236px minmax(0, 1fr); align-items: start; }
}

.article-sommaire {
  background: var(--snow);
  border: 1px solid var(--forest-12);
  border-left: 2px solid var(--linden);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  font-size: 0.89rem;
}
@media (min-width: 1100px) {
  .article-sommaire { position: sticky; top: 92px; }
}
.article-sommaire .toc-title {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--emerald);
  margin: 0 0 0.7rem;
}
.article-sommaire ol, .article-sommaire ul { margin: 0; padding-left: 1.1rem; }
.article-sommaire li { margin-bottom: 0.45rem; line-height: 1.45; }
.article-sommaire a { color: var(--forest-72); text-decoration: none; }
.article-sommaire a:hover { color: var(--emerald); text-decoration: underline; }

.article-body { max-width: var(--measure-article); }
.article-summary {
  font-family: var(--ff-accent);
  font-size: 1.13rem;
  line-height: 1.68;
  color: var(--forest);
  border-left: 2px solid var(--emerald);
  padding: 0.2rem 0 0.2rem 1.2rem;
  margin: 0 0 2.2rem;
}

/* Lettrine */
.article-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--ff-accent);
  font-size: 3.5rem;
  line-height: 0.82;
  padding: 0.12em 0.1em 0 0;
  color: var(--emerald);
}

.article-body h2 { margin-top: 2.6rem; position: relative; padding-bottom: 0.55rem; }
.article-body h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 2.6rem; height: 2px;
  background: var(--linden);
}
.article-body h3 { margin-top: 1.9rem; }

.article-body ul, .article-body ol { margin: 0 0 1.5rem; padding-left: 1.4rem; }
.article-body li { margin-bottom: 0.55rem; }
.article-body ul li::marker { color: var(--emerald); }
.article-body ol li::marker { color: var(--emerald); font-weight: 600; }

.article-body blockquote {
  margin: 2rem 0;
  padding: 0.3rem 0 0.3rem 1.3rem;
  border-left: 3px solid var(--emerald);
  font-family: var(--ff-accent);
  font-size: 1.1rem;
  color: var(--forest);
}
.article-body blockquote p:last-child { margin-bottom: 0; }

/* Tableaux — scroll horizontal mobile, jamais de debordement */
.table-wrap { overflow-x: auto; margin: 1.9rem 0; -webkit-overflow-scrolling: touch; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  background: var(--snow);
  border: 1px solid var(--forest-12);
}
.article-body th, .article-body td {
  padding: 0.68rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--forest-12);
  vertical-align: top;
}
.article-body th {
  background: var(--forest);
  color: var(--snow);
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
}
.article-body tbody tr:nth-child(even) { background: var(--forest-06); }
.article-body tbody tr:last-child td { border-bottom: 0; }

.callout-box {
  background: var(--snow);
  border: 1px solid var(--forest-12);
  border-left: 3px solid var(--linden);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin: 2rem 0;
  font-size: 0.96rem;
}
.callout-box > :last-child { margin-bottom: 0; }

/* Interview */
.interview-expert-card {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  background: var(--snow);
  border: 1px solid var(--forest-12);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin: 2rem 0;
}
.interview-expert-card .img-portrait { width: 92px; flex: none; }
.interview-expert-card p { margin: 0; font-size: 0.93rem; color: var(--forest-72); }
.interview-expert-card strong { display: block; font-family: var(--ff-display); font-size: 1.05rem; }
.journalist-question { font-weight: 600; color: var(--forest); margin-top: 1.9rem; }
.expert-answer { margin-bottom: 1.4rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { margin-top: 3rem; }
.faq__item { border-bottom: 1px solid var(--forest-12); }
.faq__q {
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.05rem 0;
  text-align: left;
  font-family: var(--ff-display);
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--forest);
}
.faq__q::after {
  content: '+';
  flex: none;
  font-family: var(--ff-body);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
  color: var(--emerald);
  transition: transform var(--dur-fast) var(--ease);
}
.faq__q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq__a { padding: 0 0 1.2rem; color: var(--forest-72); font-size: 0.97rem; }
.faq__a > :last-child { margin-bottom: 0; }
.faq__a[hidden] { display: none !important; }

/* ==========================================================================
   Filtres de categorie / pagination
   ========================================================================== */

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.2rem; }
.filters button, .filters a {
  font-family: var(--ff-body);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.44rem 0.95rem;
  border: 1px solid var(--forest-12);
  border-radius: 100px;
  background: var(--snow);
  color: var(--forest-72);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.filters button:hover, .filters a:hover { border-color: var(--emerald); color: var(--emerald); }
.filters button[aria-pressed="true"], .filters a[aria-current="page"] {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--snow);
}

.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--forest-12);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--forest-72);
  background: var(--snow);
}
.pagination a:hover { border-color: var(--emerald); color: var(--emerald); }
.pagination [aria-current="page"] { background: var(--emerald); border-color: var(--emerald); color: var(--snow); }

/* ==========================================================================
   Breadcrumb · section immersive · footer
   ========================================================================== */

.breadcrumb { font-size: 0.82rem; color: var(--forest-48); padding-block: 1.1rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb li::after { content: '/'; margin-left: 0.4rem; color: var(--forest-20); }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--forest-72); text-decoration: none; }
.breadcrumb a:hover { color: var(--emerald); text-decoration: underline; }

.immersive {
  position: relative;
  overflow: hidden;
  min-height: clamp(360px, 52vh, 480px);
  display: flex;
  align-items: center;
}
.immersive__img { position: absolute; inset: 0; }
.immersive__img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.immersive__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(27,58,47,0.90) 0%, rgba(27,58,47,0.70) 55%, rgba(27,58,47,0.42) 100%);
}
.immersive__inner { position: relative; z-index: 2; max-width: 40rem; padding-block: 3rem; }
.immersive h2 { color: var(--snow); }
.immersive p { color: var(--snow-95); }
.immersive .kicker { color: var(--linden); }

.site-footer {
  background: var(--forest);
  color: var(--snow-75);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
}
.site-footer a { color: var(--snow); text-decoration: none; }
.site-footer a:hover { color: var(--linden); text-decoration: underline; }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  margin-bottom: 2.2rem;
}
.footer-col h3 {
  font-family: var(--ff-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--linden);
  margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; font-size: 0.92rem; }
.footer-col p { font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.4rem;
  font-size: 0.84rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
}

/* ==========================================================================
   Formulaire de contact
   ========================================================================== */

.contact-form { display: grid; gap: 1.1rem; max-width: 36rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--forest); }
.field input, .field textarea, .field select {
  font-family: var(--ff-body);
  font-size: 1rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--forest-20);
  border-radius: var(--radius);
  background: var(--snow);
  color: var(--slate);
  width: 100%;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--emerald);
  outline-offset: 1px;
  border-color: var(--emerald);
}
.field textarea { min-height: 170px; resize: vertical; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.93rem; padding: 0.8rem 1rem; border-radius: var(--radius); }
.form-status--ok { background: var(--emerald-16); color: var(--forest); border: 1px solid var(--emerald); }
.form-status--err { background: rgba(176, 58, 46, 0.09); color: #8C2D22; border: 1px solid rgba(176, 58, 46, 0.35); }
.form-status[hidden] { display: none !important; }

/* ==========================================================================
   Utilitaires
   ========================================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.prose-links-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.prose-links-list a { font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
