/* ==========================================================================
   MR & Anders Ixelles — Landing « Au pied du sapin »
   Style papercraft : couches de papier, ombres douces, textures.
   ========================================================================== */

/* ---------- Polices ----------------------------------------------------- */
/* Titres de couverture : « 8 Heavy » via Adobe Fonts (projet web qen4zzi, famille CSS "eight").
   La police n'existe qu'en une graisse (déclarée 400 par Adobe) : ne pas lui demander de gras. */
@font-face { font-family: "Fieldwork Hum"; src: url("../fonts/fieldwork-light.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Fieldwork Hum"; src: url("../fonts/fieldwork-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fieldwork Hum"; src: url("../fonts/fieldwork-bold.woff") format("woff"); font-weight: 700; font-display: swap; }
/* Secours du titre tant que la police Adobe n'est pas chargée (ex. en local) : Fieldwork Bold déclaré en 400 */
@font-face { font-family: "Fieldwork Display Fallback"; src: url("../fonts/fieldwork-bold.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fixture Condensed"; src: url("../fonts/fixture-cond-bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --navy: #13296b;
  --navy-deep: #0d1f55;
  --teal: #2a8b88;
  --teal-dark: #1f6f6d;
  --sky-1: #9ad6f5;
  --sky-2: #56b2e6;
  --sky-3: #1c86c3;
  --paper: #f7f4ed;
  --paper-white: #fdfcf9;
  --red: #c8463c;
  --yellow: #efb53d;
  --green: #3f9a5c;
  --pale-blue: #d6eaf7;

  --f-display: "eight", "Fieldwork Display Fallback", system-ui, sans-serif;
  --f-cond: "Fixture Condensed", "Arial Narrow", sans-serif;
  --f-text: "Fieldwork Hum", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shadow-paper: 0 1px 1px rgba(13, 31, 85, .06), 0 6px 10px -4px rgba(13, 31, 85, .18), 0 18px 30px -18px rgba(13, 31, 85, .35);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
main { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--f-text);
  font-weight: 300;
  color: #1d2340;
  background: var(--paper-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 6px; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Texture papier réutilisable */
.paper {
  background-color: var(--paper-white);
  background-image: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.5)), url("../img/papier.jpg");
  background-size: auto, 600px auto;
  background-blend-mode: multiply;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(100svh, 980px);
  /* La photo est calée sur le bas du bloc : son pied est toujours caché par les couches de neige */
  display: flex; flex-direction: column;
  padding: 0;
  background: #0b1840;
  isolation: isolate;
}

/* Barre supérieure */
.topbar {
  position: absolute; z-index: 20; top: 0; left: 0; right: 0; /* hors du flux : le titre se centre sur toute la hauteur */
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  padding: clamp(14px, 2vw, 24px) clamp(16px, 4vw, 48px) 0;
}
.lang {
  display: inline-flex; gap: 4px; padding: 4px;
  border-radius: 999px; background: rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-paper);
  font-family: var(--f-text); font-weight: 700; font-size: .85rem; letter-spacing: .06em;
}
.lang a {
  text-decoration: none; padding: .35rem .8rem; border-radius: 999px; color: var(--navy);
}
.lang a[aria-current="page"] { background: var(--navy); color: #fff; }
.lang a:not([aria-current]):hover { background: var(--pale-blue); }

/* Guirlandes */
.garland {
  position: absolute; z-index: 3; pointer-events: none;
  transform-origin: 50% 0;
  animation: sway 7s ease-in-out infinite alternate;
  filter: drop-shadow(0 6px 6px rgba(13, 31, 85, .25));
}
.garland--top { top: -3.2vw; left: 21%; width: min(64vw, 920px); }
.garland--mid { top: 56%; right: -8%; width: min(58vw, 860px); animation-duration: 9s; animation-delay: -3s; z-index: 2; }
@keyframes sway { from { transform: rotate(-.6deg); } to { transform: rotate(.8deg); } }

/* Sapin */
.tree {
  position: absolute; z-index: 4; left: 0; bottom: clamp(20px, 3vw, 50px);
  height: calc(100% - (clamp(150px, 14vw, 230px) + clamp(20px, 3vw, 50px)) / 2); width: auto; max-width: none; /* va jusqu'à mi-chemin du haut */
  filter: drop-shadow(10px 12px 14px rgba(13, 31, 85, .3));
}
.holly {
  position: absolute; z-index: 5;
  width: clamp(90px, 10vw, 150px);
  top: 13%; left: clamp(140px, 13vw, 220px);
  transform: rotate(-12deg);
  filter: drop-shadow(4px 6px 6px rgba(13, 31, 85, .3));
}

/* Grille du hero */
.hero__inner {
  position: relative; z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, .6fr) minmax(0, 1.35fr) minmax(0, .95fr);
  align-items: end;
  flex: 1 0 auto; width: 100%;
  gap: clamp(16px, 3vw, 48px);
  max-width: 1400px; margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}
.hero__text { grid-column: 2; text-align: left; align-self: center; padding: 90px 0; } /* centré verticalement dans la cover */
/* Photo : ancrée en bas à droite du bloc, toujours derrière les couches de neige */
.hero__visual {
  position: absolute; z-index: 10; right: clamp(16px, 5vw, 90px); bottom: 0;
  width: clamp(342px, 34.2vw, 536px);
}

.logo { width: clamp(150px, 15vw, 240px); margin: 0; filter: drop-shadow(0 6px 10px rgba(13, 31, 85, .25)); }

.hero h1 {
  margin: 0; max-width: 15ch;
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.4rem, 2.6vw, 2.45rem); line-height: 1.08; letter-spacing: .01em;
  color: var(--paper-white); text-align: left;
  text-shadow: 0 3px 0 rgba(13, 31, 85, .18), 0 8px 18px rgba(13, 31, 85, .25);
  text-wrap: balance;
}

.subtitle-nl { display: none; }

/* Étiquette cadeau */
.tag {
  position: relative; display: inline-grid; place-items: center;
  width: clamp(200px, 20.8vw, 288px); aspect-ratio: 900 / 514;
  margin-top: clamp(30px, 4vw, 56px);
  background: url("../img/etiquette.webp") center / contain no-repeat;
  transform: rotate(-8deg);
  filter: drop-shadow(6px 10px 10px rgba(13, 31, 85, .3));
  animation: tagSwing 6s ease-in-out infinite alternate;
  transform-origin: 6% 50%;
}
@keyframes tagSwing { from { transform: rotate(-9deg); } to { transform: rotate(-5deg); } }
.tag p {
  margin: 0; padding: 0 8% 0 19%;
  font-family: var(--f-text); font-weight: 700; color: var(--navy);
  font-size: clamp(.95rem, 1.25vw, 1.2rem); line-height: 1.2; text-align: center;
}

/* Portrait */
.portrait { position: relative; z-index: 6; width: 100%; margin: 0; }
.portrait img { width: 100%; filter: drop-shadow(0 18px 22px rgba(13, 31, 85, .35)); }
.name-labels { position: absolute; z-index: 7; left: 0; right: 0; bottom: calc(clamp(90px, 10.5vw, 175px) * .9 + 45px); /* juste au-dessus de la neige */ display: grid; justify-items: center; gap: 8px; }
.label-strip {
  display: inline-block; padding: .35em .7em .3em;
  color: var(--navy); font-family: var(--f-display); font-weight: 400; line-height: 1;
  box-shadow: var(--shadow-paper);
}
.label-strip--name { font-size: clamp(1.1rem, 1.8vw, 1.6rem); transform: rotate(-2deg); }
.label-strip--role { font-size: clamp(.9rem, 1.3vw, 1.15rem); transform: rotate(4deg); }

/* Couches de neige en papier */
.snow-layers { position: absolute; z-index: 12; /* au premier plan, devant la photo */ left: 0; right: 0; bottom: 0; height: clamp(150px, 17vw, 280px); pointer-events: none; }
.snow-layers img { position: absolute; left: 50%; bottom: 0; width: max(100%, 1100px); max-width: none; transform: translateX(-50%); }
.snow-layers .s-back { bottom: 32%; filter: drop-shadow(0 -2px 6px rgba(13, 31, 85, .15)); }
.snow-layers .s-mid { bottom: 12%; filter: drop-shadow(0 -4px 8px rgba(13, 31, 85, .18)); }
.snow-layers .s-front { bottom: -2px; filter: drop-shadow(0 -6px 10px rgba(13, 31, 85, .18)); }

/* Ciel de la cover : 3 couches de papier bleu fixes, qui montent et descendent doucement, chacune à son rythme */
.sky { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.sky-layer {
  position: absolute; bottom: -24px; left: 0; width: 100%;
  will-change: transform;
  animation: sky-float 9s ease-in-out infinite alternate;
}
.sky-1 { height: 56%; fill: #12275e; animation-duration: 8s; --rise: -14px; }
.sky-2 { height: 42%; fill: #1a3577; animation-duration: 10s; animation-delay: -4s; --rise: -18px; }
.sky-3 { height: 29%; fill: #234490; animation-duration: 12s; animation-delay: -7s; --rise: -12px; }
/* Nuages en papier : deux feuilles décalées, dérive lente de gauche à droite */
.cloud {
  position: absolute; width: var(--w); height: auto;
  filter: drop-shadow(0 6px 8px rgba(5, 11, 36, .35));
  will-change: transform;
  animation: cloud-drift var(--cd, 28s) ease-in-out var(--cdl, 0s) infinite alternate;
}
.cloud-back  { fill: #1d3672; }
.cloud-front { fill: #2c4b92; }
@keyframes cloud-drift {
  from { transform: translate3d(-40px, 0, 0); }
  to   { transform: translate3d(40px, 0, 0); }
}

/* Flocons qui tombent : chaque colonne fait la hauteur du bloc et glisse vers le bas, le flocon ondule */
.snowfall { position: absolute; inset: 0; z-index: 9; overflow: hidden; pointer-events: none; }
.fall {
  position: absolute; top: -100%; height: 100%; width: 0;
  will-change: transform;
  animation: fall var(--d, 15s) linear var(--dl, 0s) infinite;
}
.fall i {
  position: absolute; bottom: 0; left: 0; display: block;
  width: var(--s); height: var(--s); border-radius: 50%;
  background: #fff; box-shadow: 0 0 4px rgba(255, 255, 255, .6);
  animation: flake-sway var(--sd, 6s) ease-in-out infinite;
}
/* Chute en diagonale (vent) + balancement irrégulier de gauche à droite */
@keyframes fall { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(var(--drift, 60px), 105%, 0); } }
@keyframes flake-sway {
  0%   { transform: translate3d(0, 0, 0); }
  22%  { transform: translate3d(var(--sw), 0, 0); }
  48%  { transform: translate3d(calc(var(--sw) * -.6), 0, 0); }
  74%  { transform: translate3d(calc(var(--sw) * .8), 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* Étoiles qui scintillent */
.stars { position: absolute; inset: 0; }
.star {
  position: absolute; width: var(--s); height: var(--s); border-radius: 50%;
  background: #fffbe8; box-shadow: 0 0 6px 1px rgba(255, 246, 200, .55);
  animation: twinkle var(--d, 3s) ease-in-out var(--dl, 0s) infinite alternate;
}
.star--sparkle { border-radius: 0; background: none; box-shadow: none; fill: #fff6d6; filter: drop-shadow(0 0 5px rgba(255, 240, 180, .7)); }
@keyframes twinkle {
  0%   { opacity: .25; transform: scale(.65); }
  100% { opacity: 1;   transform: scale(1); }
}
@keyframes sky-float {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, var(--rise, -14px), 0); }
}

/* Neige de la cover : 3 vagues SVG (blanc, puis très légèrement bleuté, puis un peu plus bleuté) */
.snow-waves { position: absolute; z-index: 12; left: 0; bottom: -1px; width: 100%; height: clamp(90px, 10.5vw, 175px); display: block; pointer-events: none; }
.snow-waves .w-back  { fill: #d3e6f4; }
.snow-waves .w-mid   { fill: #e8f1f9; }
.snow-waves .w-front { fill: var(--paper-white); }

/* Flocons */
.flake { position: absolute; z-index: 9; width: var(--s, 46px); color: #fff; pointer-events: none;
  filter: drop-shadow(2px 4px 4px rgba(13, 31, 85, .25));
  animation: flake var(--d, 9s) ease-in-out infinite alternate; animation-delay: var(--delay, 0s);
}
@keyframes flake { from { transform: translateY(-6px) rotate(0deg); } to { transform: translateY(10px) rotate(25deg); } }

/* ==========================================================================
   RÉALISATIONS
   ========================================================================== */
.achievements { position: relative; padding: clamp(40px, 6vw, 90px) clamp(16px, 4vw, 48px) clamp(50px, 7vw, 100px); }
.achievements__head { max-width: 1400px; margin: 0 auto clamp(30px, 4vw, 60px); }
.big-title {
  margin: 0; font-family: var(--f-display); font-weight: 400; color: var(--navy); /* même police que le titre de la cover */
  font-size: clamp(1.8rem, 4.4vw, 4.2rem); line-height: 1.05; letter-spacing: .01em; text-transform: uppercase;
  text-align: center; text-wrap: balance;
}

.cards {
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 3vw, 44px) clamp(22px, 3vw, 44px);
  align-items: stretch;
  list-style: none; padding: 0;
}
.card {
  position: relative; min-width: 0;
  margin: 0;
  --overhang: 36px;
  padding: 0 clamp(20px, 2.2vw, 30px) clamp(18px, 2vw, 26px);
  border-radius: var(--radius);
  background: none;
  isolation: isolate;
  /* espace transparent au-dessus de la feuille : le picto peut dépasser sans être coupé par les colonnes */
  padding-top: calc(var(--overhang) + clamp(22px, 2.4vw, 32px));
  transform: rotate(var(--tilt, 0deg));
}
/* Feuille de papier (avant) + feuille colorée glissée derrière */
.card::after {
  content: ""; position: absolute; inset: var(--overhang) 0 0 0; z-index: -1; border-radius: var(--radius);
  /* Fond de fiche = couleur de la feuille de derrière (--accent) à 10 % d'intensité */
  --card-bg: color-mix(in srgb, var(--accent) 10%, #fff);
  background-color: #f8fcfb; /* secours pour les vieux navigateurs */
  background-image: linear-gradient(rgba(248,252,251,.82), rgba(248,252,251,.82)), url("../img/papier.jpg");
  background-color: var(--card-bg);
  background-image: linear-gradient(color-mix(in srgb, var(--card-bg) 82%, transparent), color-mix(in srgb, var(--card-bg) 82%, transparent)), url("../img/papier.jpg");
  background-size: auto, 600px auto;
  background-blend-mode: normal, multiply;
  box-shadow: var(--shadow-paper);
}
.card::before {
  content: ""; position: absolute; inset: var(--overhang) 0 0 0; z-index: -2;
  border-radius: var(--radius);
  background: var(--accent, var(--pale-blue));
  transform: rotate(var(--under, 2.2deg)) translate(6px, 6px);
  box-shadow: 0 8px 18px -10px rgba(13, 31, 85, .35);
}
/* Survol : rien ne bouge dans la feuille blanche (texte net, pas de saccade).
   Seules la feuille de couleur derrière et l'icône s'animent, en transform GPU uniquement. */
.card::before { transition: transform .5s cubic-bezier(.22, .61, .36, 1); will-change: transform; }
@media (hover: hover) {
  .card:hover::before { transform: rotate(calc(var(--under, 2deg) * 1.9)) translate(12px, 12px); }
  .card:hover .card__picto { transform: translateY(-8px) rotate(-6deg); }
}

.card:nth-child(4n+1) { --tilt: -.5deg; --under: 2.4deg; --accent: #cfe7f6; }
.card:nth-child(4n+2) { --tilt: .4deg;  --under: -2.2deg; --accent: #cfe7f6; }
.card:nth-child(4n+3) { --tilt: -.3deg; --under: 1.8deg; --accent: #cfe7f6; }
.card:nth-child(4n+4) { --tilt: .5deg;  --under: -2.6deg; --accent: #cfe7f6; }
/* Bloc 11 : CPAS, fond sarcelle texturé, texte clair, sans numéro */
.card--cpas { --accent: #bfe0dd; color: #fff; }
.card--cpas::after { background: var(--teal) url("../img/cpas-fond.webp") center / cover; }
.card--cpas .card__head { grid-template-columns: 1fr; }
.card--cpas .card__title { color: #fff; }
.card__kicker { display: block; margin-bottom: .35em; font-family: var(--f-cond); font-size: 2.2em; line-height: .9; letter-spacing: .02em; -webkit-text-stroke: 0; color: #e7f6f4; }
.card__text { margin: 16px 0 0; font-size: 1rem; line-height: 1.5; font-weight: 400; color: #fff; }

.card__head { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding-right: clamp(96px, 8vw, 128px); min-height: 64px; }
.card__num {
  display: grid; place-items: center; width: 48px; height: 48px;
  background: url("../img/badge.webp") center / 100% 100% no-repeat;
  color: #fff; font-family: var(--f-cond); font-weight: 700; font-size: 1.6rem; line-height: 1;
  filter: drop-shadow(0 3px 4px rgba(13, 31, 85, .25));
}
.card__title {
  margin: 2px 0 0; color: var(--teal);
  font-family: var(--f-text); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.1rem, 1.35vw, 1.3rem); line-height: 1.12; letter-spacing: .02em;
  /* Extra bold : Fieldwork Black n'est pas dans l'assemblage, on épaissit le Bold d'un fin contour */
  -webkit-text-stroke: .045em currentColor;
  paint-order: stroke fill;
}
.card__picto {
  position: absolute; top: 4px; right: 10px;
  width: clamp(104px, 9vw, 138px);
  filter: drop-shadow(4px 8px 8px rgba(13, 31, 85, .25));
  transition: transform .5s cubic-bezier(.34, 1.4, .64, 1);
  will-change: transform;
}

/* Point 7 : les sacs sont plus larges que les autres icônes, on les décale et on les réduit un peu */
.card:nth-child(7) .card__picto { right: -6px; width: clamp(92px, 7.8vw, 120px); }

.checks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li {
  position: relative; padding-left: 34px;
  font-size: 1rem; line-height: 1.38; color: #232a45;
  hyphens: auto;
}
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
  box-shadow: 0 2px 3px rgba(13, 31, 85, .25);
}
.checks strong { font-weight: 700; color: var(--navy); }

@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1150px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- CPAS ---------- */
.cpas { max-width: 1000px; margin: clamp(10px, 2vw, 30px) auto 0; padding: 0 clamp(0px, 2vw, 20px); }
.cpas__label {
  margin: 0 0 -.12em; text-align: center; font-family: var(--f-cond); font-weight: 700; color: var(--teal);
  font-size: clamp(4rem, 9vw, 7.5rem); line-height: 1;
}
.cpas__box {
  position: relative; color: #fff;
  padding: clamp(28px, 4vw, 54px) clamp(24px, 5vw, 64px);
  padding-right: clamp(24px, 17vw, 220px);
  border-radius: 34px;
  background: var(--teal) url("../img/cpas-fond.webp") center / cover;
  box-shadow: 0 2px 0 rgba(13, 31, 85, .08), 0 24px 40px -22px rgba(13, 31, 85, .55);
}
.cpas__box::before { /* bord de papier clair */
  content: ""; position: absolute; inset: -10px; z-index: -1; border-radius: 42px;
  background: var(--paper-white); box-shadow: var(--shadow-paper); transform: rotate(-1deg);
}
.cpas__title { margin: 0 0 .7em; font-family: var(--f-text); font-weight: 700; text-transform: uppercase; font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.15; }
.cpas__box p { margin: 0; font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.6; font-weight: 400; }
.cpas__picto { position: absolute; right: clamp(-20px, -1vw, 0px); top: 50%; width: clamp(120px, 16vw, 210px); transform: translateY(-50%) rotate(6deg); filter: drop-shadow(6px 10px 10px rgba(0, 0, 0, .3)); }

/* ==========================================================================
   MERCI / CONTACT
   ========================================================================== */
.thanks {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(150px, 16vw, 250px) clamp(16px, 4vw, 48px) clamp(160px, 17vw, 260px);
  background: #0b1840; /* même ciel de nuit que la cover */
  text-align: center;
}
.snow-waves--top { top: -1px; bottom: auto; transform: scaleY(-1); } /* neige retournée en haut de section */
.thanks__card {
  position: relative; z-index: 10; max-width: 900px; margin: 0 auto;
  padding: 0 clamp(8px, 2vw, 20px); /* plus de bloc blanc : texte directement sur le ciel */
}
.thanks__wrap { position: relative; z-index: 10; }
.thanks h2 {
  margin: 0; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; color: #fff;
  font-size: clamp(1.4rem, 2.8vw, 2.3rem); line-height: 1.2;
  text-shadow: 0 3px 0 rgba(3, 8, 28, .35), 0 8px 18px rgba(3, 8, 28, .4);
}
.contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(22px, 3vw, 34px); }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: .7rem 1.2rem; border-radius: 999px;
  background: var(--navy); color: #fff; text-decoration: none;
  font-family: var(--f-text); font-weight: 700; font-size: 1.02rem; letter-spacing: .02em;
  box-shadow: 0 3px 0 var(--navy-deep), 0 10px 16px -8px rgba(13, 31, 85, .6);
  transition: transform .2s ease, box-shadow .2s ease;
}
/* Boutons blancs sur le ciel de nuit */
.thanks .chip { background: #fff; color: var(--navy); box-shadow: 0 3px 0 #c9d6ec, 0 10px 18px -8px rgba(3, 8, 28, .7); }
.thanks .chip:hover { box-shadow: 0 5px 0 #c9d6ec, 0 14px 20px -8px rgba(3, 8, 28, .7); }
.thanks .chip:active { box-shadow: 0 1px 0 #c9d6ec; }
.chip:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--navy-deep), 0 14px 18px -8px rgba(13, 31, 85, .6); }
.chip:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--navy-deep); }
.chip svg { width: 20px; height: 20px; flex: none; }
.chip--phone { font-family: var(--f-cond); font-size: 1.35rem; letter-spacing: .04em; padding-block: .55rem; }

.footer {
  position: relative; z-index: 12; background: #e8f1f9; /* même bleuté que la section des élus */
  padding: 18px clamp(16px, 4vw, 48px) 26px; text-align: center;
  font-size: .85rem; color: #56607f;
}
.footer img { width: 170px; margin: 0 auto 10px; }

/* ==========================================================================
   NOS ÉLUS : cartes à jouer en papier, regroupées par fonction
   ========================================================================== */
.br-mobile { display: none; }
.elus { padding: clamp(50px, 7vw, 100px) clamp(16px, 4vw, 48px) clamp(50px, 7vw, 90px); background: #e8f1f9; /* bleu de la couche de neige du milieu */ }
/* Neige en bas de la section Merci : la couche de devant prend le bleu de la section des élus, les deux autres sont un peu plus soutenues */
.snow-waves--to-blue .w-back  { fill: #bcd6ec; }
.snow-waves--to-blue .w-mid   { fill: #d2e4f4; }
.snow-waves--to-blue .w-front { fill: #e8f1f9; }
.elus .big-title { margin-bottom: clamp(30px, 4vw, 56px); }
.elus__groups {
  max-width: 1300px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
  gap: clamp(36px, 4vw, 56px) clamp(28px, 4vw, 64px);
}
.elus__group { display: flex; flex-direction: column; align-items: center; }
.elus__role { margin: 0 0 22px; text-align: center; line-height: 1; }
.elus__role .label-strip {
  display: inline-block; transform: rotate(-2deg);
  font-family: var(--f-display); font-weight: 400; color: var(--navy);
  font-size: clamp(1.05rem, 1.5vw, 1.32rem); line-height: 1.35; padding: .4em .9em .35em;
  background: #fff; /* étiquette blanche, sans texture */
}
.elus__cards { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.elu {
  width: 190px; padding: 10px 10px 14px; text-align: center;
  background: #fff; border: 4px solid var(--c); border-radius: 16px;
  box-shadow: var(--shadow-paper);
  transform: rotate(var(--t, 0deg));
}
.elu__photo {
  width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 20%;
  border: 2px solid var(--c); border-radius: 10px; background: #eef3f8;
}
.elu__name { margin: 12px 0 6px; color: var(--c); font-family: var(--f-text); font-weight: 700; font-size: 1rem; line-height: 1.15; }
.elu__name strong { display: block; text-transform: uppercase; font-size: 1.12rem; letter-spacing: .02em; }
.elu__mail {
  display: block; color: var(--c); text-decoration: none; opacity: .85;
  font-family: var(--f-text); font-weight: 400; font-size: .68rem; letter-spacing: .03em; text-transform: uppercase;
  overflow-wrap: break-word; /* coupure après l’arobase */
}
.elu__mail:hover { text-decoration: underline; opacity: 1; }
/* Gautier Calomne en premier, carte plus grande */
.elus__group--chef { flex-basis: 100%; }
.elus__group--chef .elu { width: 250px; }
.elus__group--chef .elu__name { font-size: 1.15rem; }
.elus__group--chef .elu__name strong { font-size: 1.35rem; }

@media (max-width: 820px) {
  .elus__group { width: 100%; }
  .elus__cards { gap: 14px; width: 100%; }
  .elu { width: calc(50% - 7px); max-width: 190px; }
  .elus__group--chef .elu { width: 70%; max-width: 250px; }
  .elu__mail { font-size: .62rem; }
}

/* ==========================================================================
   Accessibilité / responsive
   ========================================================================== */
a:focus-visible, .chip:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: minmax(0, .55fr) minmax(0, 1.2fr) minmax(0, .9fr); }
  .tree { height: calc(89% - clamp(10px, 1.5vw, 25px)); left: -6%; }
  .holly { left: 16vw; }
}

@media (max-width: 820px) {
  .hero { min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; padding-top: 36px; }
  .topbar { position: relative; }
  .hero__text { grid-column: 1; text-align: left; padding: 0; }
  .hero__visual { position: relative; right: auto; bottom: auto; grid-column: 1; width: 100%; max-width: 433px; margin: 10px auto 0; }
  .tree { height: 420px; left: -110px; bottom: 40px; opacity: .95; }
  .holly { display: none; }
  .snow-waves { width: 170%; left: -35%; }
  .sky-layer { width: 200%; left: -50%; } /* collines plus larges sur petit écran */ /* moins de bosses sur petit écran : des collines plus larges */
  .hero .flake:nth-of-type(-n+4) { display: none; } /* sur mobile, pas de flocons sur le titre */
  .garland--mid { top: 56%; width: 120vw; right: -30%; }
  .garland--top { width: 130vw; left: -15%; top: 54px; }
  .tag { transform: rotate(-5deg); }
  .card__head { padding-right: 96px; }
}

@media (max-width: 520px) {
  .tree { display: none; }
  .cpas__box { padding-right: 24px; padding-top: 120px; }
  .cpas__picto { top: -30px; right: 50%; transform: translateX(50%) rotate(6deg); width: 140px; }
  .checks li { font-size: .98rem; }
}

/* ==========================================================================
   MOBILE UNIQUEMENT (≤ 820 px) — la version ordinateur n'est pas concernée
   ========================================================================== */
@media (max-width: 820px) {
  /* « En deux ans, nous avons… » : sur 2 lignes, sur toute la largeur de l'écran */
  #titre-realisations { font-size: 10.5vw; line-height: 1.05; text-wrap: nowrap; }
  #titre-realisations .br-mobile { display: inline; }
  /* Nuages : un seul à gauche, un seul à droite un peu plus bas */
  .sky .cloud:nth-of-type(1) { left: -8% !important; top: 13% !important; width: 150px !important; }
  .sky .cloud:nth-of-type(2) { display: none; }
  .sky .cloud:nth-of-type(3) { left: auto !important; right: -8%; top: 30% !important; width: 165px !important; }
  .achievements__head { margin-bottom: 8px; }
  .card:first-child { padding-top: 8px; } /* moins d'espace entre le titre et la 1re icône */
  /* Cover : titre 1 + titre 2 centrés, l'étiquette devient un simple sous-titre */
  .hero__text { text-align: center; }
  .hero h1 { margin-inline: auto; text-align: center; font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero__visual { width: 75%; max-width: 325px; } /* photo 25 % plus petite sur mobile */
  .tag {
    display: block; width: auto; aspect-ratio: auto; margin: 18px auto 0; max-width: 24ch;
    background: none; filter: none; transform: none; animation: none;
  }
  .tag p {
    padding: 0; color: #fff; text-align: center;
    font-size: 1.15rem; line-height: 1.3; font-weight: 700;
    text-shadow: 0 2px 10px rgba(3, 8, 28, .45);
  }

  /* Réalisations : plus de cartes, juste le texte avec les icônes */
  .cards { gap: 0; }
  .card { transform: none; padding: 30px 4px; isolation: auto; }
  .card::before, .card::after { display: none; }
  .card, .card::before, .card::after, .card > *, .card__picto { transition: none !important; }
  .card, .card::before, .card::after { animation: none !important; }
  .card:hover > :not(.card__picto) { transform: none !important; }
  /* Icônes : flottent doucement avec une très légère rotation, chacune à son rythme */
  .card__picto { animation: picto-float 4.8s ease-in-out infinite; }
  .card:nth-child(3n+2) .card__picto { animation-duration: 5.6s; animation-delay: -1.8s; }
  .card:nth-child(3n+3) .card__picto { animation-duration: 5.2s; animation-delay: -3.1s; }
  /* Numéro écrit dans le titre (« 1. Préservé… ») au lieu de la pastille */
  .cards { counter-reset: fiche; }
  .card:not(.card--cpas) { counter-increment: fiche; }
  .card__num { display: none; }
  .card__head { display: block; }
  .card:not(.card--cpas) .card__title::before { content: counter(fiche) ". "; }
  /* Icône centrée au-dessus du titre */
  .card__picto, .card:nth-child(7) .card__picto { position: static; display: block; width: 168px; margin: 0 auto 14px; filter: drop-shadow(2px 5px 5px rgba(13, 31, 85, .2)); }
  .card__head { padding-right: 0; min-height: 0; align-items: center; }
  .checks { margin-top: 16px; }

  /* CPAS : garde son fond sarcelle pour se distinguer, sans effet de carte inclinée */
  .card--cpas { margin-top: 30px; padding: 30px 22px; border-radius: 18px;
    background: var(--teal) url("../img/cpas-fond.webp") center / cover; }
}

@keyframes picto-float {
  0%   { transform: translate3d(0, 0, 0) rotate(-2.5deg); }
  50%  { transform: translate3d(0, -7px, 0) rotate(2.5deg); }
  100% { transform: translate3d(0, 0, 0) rotate(-2.5deg); }
}

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