/* ==========================================================================
   Association La Voix des Animaux : accueil
   Mobile d'abord ; à partir de 901 px, la scène du hero reprend la maquette
   (1672 px de large) et se met à l'échelle avec la fenêtre (--u = 1 px maquette).
   ========================================================================== */

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-opsz-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-opsz-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("fonts/mulish-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
:root {
  --marine: #0b2d52;
  --bordeaux: #8a1937;
  --creme: #f7f3ea;
  --rond: #eae2d7;
  --texte: #505a66;
  --texte-doux: #6b7178;
  --filet: #ded7ce;
  --sable: #efe6d5;
  --trait: #d9cdb9;
  --or: #b8975a;
  --rose: #f3b9c5;
  --bordeaux-profond: #6b1229;
  --douceur: cubic-bezier(.22, .72, .2, 1);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--marine);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Les animations d'entrée ne doivent jamais créer de défilement horizontal */
.page { overflow-x: clip; }

.lien-evitement {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--marine);
  color: #fff;
  transition: top .15s;
}
.lien-evitement:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--bordeaux); outline-offset: 3px; border-radius: 6px; }

.ico, .fleche { flex: none; }

/* ---------- En-tête (mobile) ---------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  padding: 8px 20px;
  background: rgba(247, 243, 234, .96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--trait);
}
.logo { display: block; margin-right: auto; }
.logo img { width: 72px; height: auto; }
.bouton--don { min-height: 42px; padding: 0 16px; gap: 8px; font-size: .95rem; }
.bouton--don .ico { width: 20px; height: 20px; }

.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--marine);
  cursor: pointer;
}
.menu-toggle__barres,
.menu-toggle__barres::before,
.menu-toggle__barres::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s, background-color .25s;
}
.menu-toggle__barres { position: relative; }
.menu-toggle__barres::before,
.menu-toggle__barres::after { content: ""; position: absolute; left: 0; }
.menu-toggle__barres::before { top: -7px; }
.menu-toggle__barres::after { top: 7px; }
.menu-ouvert .menu-toggle__barres { background: transparent; }
.menu-ouvert .menu-toggle__barres::before { transform: translateY(7px) rotate(45deg); }
.menu-ouvert .menu-toggle__barres::after { transform: translateY(-7px) rotate(-45deg); }

.menu ul { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.menu a {
  display: block;
  padding: 8px 0 4px;
  font-size: 1.05rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}
.menu a[aria-current="page"] { border-bottom-color: var(--bordeaux); }

@media (max-width: 900px) {
  .menu { order: 5; display: none; width: 100%; }
  .menu-ouvert .menu { display: block; padding: 4px 0 12px; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu li + li { border-top: 1px solid var(--trait); }
  .menu a { padding: 13px 0; border-bottom: 0; font-size: 1.1rem; }
  .menu a[aria-current="page"] { color: var(--bordeaux); }
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.bouton .ico { width: 24px; height: 24px; }
.bouton .fleche { width: 20px; height: 20px; }
.bouton--don,
.bouton--plein { background: var(--bordeaux); color: #fff; }
.bouton--don:hover,
.bouton--plein:hover { background: #721430; box-shadow: 0 6px 16px rgba(138, 25, 55, .25); }
.bouton--contour { border-color: var(--marine); color: var(--marine); }
.bouton--contour:hover { background: var(--marine); color: #fff; }
.bouton--clair { background: var(--creme); color: var(--marine); }
.bouton--clair:hover { background: #fff; }
.bouton--filet { border-color: rgba(247, 243, 234, .55); color: var(--creme); }
.bouton--filet:hover { background: var(--creme); color: var(--marine); }

/* ---------- Hero (mobile) ---------- */
.hero { padding: 18px 20px 0; }

.surtitre {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.surtitre::before,
.surtitre::after { content: ""; flex: none; width: 24px; height: 1px; background: #cdbfb0; }

.hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(1.9rem, 9.6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.01em;
}
.ligne-1 { display: block; }
.ligne-2 { display: flex; align-items: center; }
.ligne-2 em { font-size: 1.35em; font-weight: 700; color: var(--bordeaux); }

.intro { max-width: 34rem; font-size: 1.15rem; line-height: 1.55; color: var(--texte); }
.saut { display: none; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.visuel { position: relative; margin: 26px -20px 0; }
.photo { width: 100%; height: auto; }

/* ---------- Atouts (mobile) ---------- */
.atouts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 12px;
  padding: 28px 20px 40px;
}
.atout a { display: flex; flex-direction: column; align-items: center; text-align: center; }
.atout__rond {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--rond);
  color: var(--marine);
  transition: background-color .2s, transform .2s;
}
.atout a:hover .atout__rond { background: #e2d7c8; transform: translateY(-2px); }
.atout__ico { width: 34px; height: 34px; }
.atout__img { width: 46px; height: auto; }
.atout__titre { margin-top: 10px; font-size: 1.1rem; font-weight: 700; }
.atout__texte { margin-top: 4px; font-family: var(--sans); font-size: .9rem; line-height: 1.45; color: var(--texte-doux); }

.deco { display: none; }

/* ==========================================================================
   Bureau : scène à l'échelle de la maquette
   ========================================================================== */
@media (min-width: 901px) {
  .page {
    --u: calc(100cqw / 1672);
    container-type: inline-size;
    position: relative;
  }

  .scene {
    position: relative;
    width: 100%;
    aspect-ratio: 1672 / 941;
    overflow: hidden;
    background: var(--creme) url("images/fond-hero.jpg") 0 0 / 100% 100% no-repeat;
  }

  /* En-tête */
  .entete, .hero, .atouts, .deco, .visuel { display: contents; }

  .logo { position: absolute; left: calc(var(--u) * 92); top: 0; z-index: 3; }
  .logo img { width: calc(var(--u) * 216); }

  .menu { position: absolute; left: calc(var(--u) * 457); top: calc(var(--u) * 43.4); z-index: 3; width: auto; }
  .menu ul { gap: 0 calc(var(--u) * 38); flex-wrap: nowrap; }
  .menu a {
    padding: 0 calc(var(--u) * 6) calc(var(--u) * 5);
    font-size: calc(var(--u) * 18.4);
    line-height: calc(var(--u) * 30);
    border-bottom-width: max(1.5px, calc(var(--u) * 2));
  }

  .entete .bouton, .scene .bouton { min-height: 0; padding: 0; border-width: max(1px, calc(var(--u) * 1.5)); font-size: calc(var(--u) * 17.4); }
  .entete .bouton .ico, .scene .bouton .ico { width: calc(var(--u) * 25); height: calc(var(--u) * 25); }
  .entete .bouton .fleche, .scene .bouton .fleche { width: calc(var(--u) * 20); height: calc(var(--u) * 20); }

  .bouton--don {
    position: absolute;
    left: calc(var(--u) * 1320);
    top: calc(var(--u) * 26);
    z-index: 3;
    width: calc(var(--u) * 204);
    height: calc(var(--u) * 53);
    gap: calc(var(--u) * 11);
    font-size: calc(var(--u) * 18.2);
  }

  /* Hero */
  .surtitre {
    position: absolute;
    left: calc(var(--u) * 115);
    top: calc(var(--u) * 217);
    z-index: 3;
    gap: calc(var(--u) * 10);
    font-size: calc(var(--u) * 15.5);
    line-height: calc(var(--u) * 24);
    white-space: nowrap;
  }
  .surtitre::before,
  .surtitre::after { width: calc(var(--u) * 28); }

  .hero h1 {
    position: absolute;
    left: calc(var(--u) * 115);
    top: calc(var(--u) * 245);
    z-index: 3;
    margin: 0;
    white-space: nowrap;
  }
  .ligne-1 { font-size: calc(var(--u) * 76); line-height: calc(var(--u) * 80); }
  .ligne-2 { align-items: flex-end; margin-top: calc(var(--u) * -4); }
  .ligne-2 em { font-size: calc(var(--u) * 98); line-height: calc(var(--u) * 92); }

  .intro {
    position: absolute;
    left: calc(var(--u) * 115);
    top: calc(var(--u) * 503);
    z-index: 3;
    width: calc(var(--u) * 600);
    max-width: none;
    font-size: calc(var(--u) * 22.1);
    line-height: calc(var(--u) * 32);
  }
  .saut { display: inline; }

  .actions {
    position: absolute;
    left: calc(var(--u) * 115);
    top: calc(var(--u) * 602);
    z-index: 3;
    gap: calc(var(--u) * 23);
    margin: 0;
  }
  .scene .bouton--plein { width: calc(var(--u) * 307); height: calc(var(--u) * 57); gap: calc(var(--u) * 11); padding: 0 calc(var(--u) * 28) 0 calc(var(--u) * 28); justify-content: flex-start; }
  .scene .bouton--contour { width: calc(var(--u) * 221); height: calc(var(--u) * 57); gap: calc(var(--u) * 23); padding: 0 calc(var(--u) * 32) 0 calc(var(--u) * 38); justify-content: flex-start; }

  .photo {
    position: absolute;
    left: calc(var(--u) * 690);
    top: calc(var(--u) * 86);
    z-index: 1;
    width: calc(var(--u) * 982);
    height: auto;
  }

  /* Atouts */
  .atout { position: absolute; top: calc(var(--u) * 727); z-index: 3; width: calc(var(--u) * 340); }
  .atout:nth-child(1) { left: calc(var(--u) * 107); }
  .atout:nth-child(2) { left: calc(var(--u) * 463); }
  .atout:nth-child(3) { left: calc(var(--u) * 839); }
  .atout:nth-child(4) { left: calc(var(--u) * 1213); }
  .atout:not(:first-child)::before {
    content: "";
    position: absolute;
    top: calc(var(--u) * 21);
    width: 1px;
    height: calc(var(--u) * 120);
    background: var(--filet);
  }
  .atout:nth-child(2)::before { left: calc(var(--u) * -5); }
  .atout:nth-child(3)::before { left: calc(var(--u) * -18); }
  .atout:nth-child(4)::before { left: calc(var(--u) * -8); }

  .atout__rond { width: calc(var(--u) * 76); height: calc(var(--u) * 76); }
  .atout__ico { width: calc(var(--u) * 42); height: calc(var(--u) * 42); }
  .atout__img { width: calc(var(--u) * 57); height: auto; }
  .atout__titre { margin-top: calc(var(--u) * 6); font-size: calc(var(--u) * 19.9); line-height: calc(var(--u) * 30); }
  .atout__texte { margin-top: calc(var(--u) * 2); font-size: calc(var(--u) * 15.8); line-height: calc(var(--u) * 24.5); font-weight: 400; }

  /* Décor */
  .branche { position: absolute; z-index: 1; overflow: visible; }
  .branche--haut-gauche { left: 0; top: calc(var(--u) * 195); width: calc(var(--u) * 110); height: calc(var(--u) * 125); }
  .branche--bas-gauche { left: 0; top: calc(var(--u) * 700); width: calc(var(--u) * 110); height: calc(var(--u) * 185); }
  .branche--bas-droite { left: calc(var(--u) * 1590); top: calc(var(--u) * 750); width: calc(var(--u) * 82); height: calc(var(--u) * 135); }

  /* Menu en ligne ; le bouton de menu ne sert qu'en mobile */
  .menu-toggle { display: none; }
  .menu { display: block; }
  .menu ul { flex-direction: row; }

  /* Au défilement : l'en-tête devient une barre compacte qui reste en haut */
  :is(.defile, .interne) .entete {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 36px;
    height: 92px;
    margin-bottom: -92px;
    padding: 0 max(24px, calc((100% - 1240px) / 2));
    background: rgba(247, 243, 234, .94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--trait), 0 16px 32px -24px rgba(11, 45, 82, .5);
    animation: barre-entree .35s ease-out;
  }
  :is(.defile, .interne) .logo, :is(.defile, .interne) .menu, :is(.defile, .interne) .bouton--don { position: static; }
  :is(.defile, .interne) .logo img { width: 80px; }
  :is(.defile, .interne) .menu { margin-left: auto; }
  :is(.defile, .interne) .menu ul { gap: 0 30px; }
  :is(.defile, .interne) .menu a { padding: 0 2px 6px; font-size: 17px; line-height: 24px; border-bottom-width: 2px; }
  :is(.defile, .interne) .bouton--don { width: auto; height: 44px; padding: 0 22px; gap: 10px; font-size: 16.5px; }
  :is(.defile, .interne) .bouton--don .ico { width: 22px; height: 22px; }
}

@media (min-width: 901px) {
  .interne .entete { margin-bottom: 0; animation: none; }
}

@keyframes barre-entree {
  from { transform: translateY(-100%); }
  to { transform: none; }
}

/* ==========================================================================
   Sections sous le hero
   ========================================================================== */
:root {
  --vague: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2880 64' preserveAspectRatio='none'%3E%3Cpath d='M0 64V36C240 2 480 2 720 36C960 70 1200 70 1440 36C1680 2 1920 2 2160 36C2400 70 2640 70 2880 36V64Z'/%3E%3C/svg%3E");
  --ombre: 0 24px 48px -28px rgba(11, 45, 82, .5);
}

::selection { background: var(--bordeaux); color: #fff; }
html { scroll-behavior: smooth; }

.conteneur { width: min(100% - 48px, 1240px); margin-inline: auto; }

h2 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); font-weight: 650; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.chapeau { max-width: 34rem; margin-top: 18px; font-size: 1.15rem; line-height: 1.65; color: var(--texte); text-wrap: pretty; }
.lien-texte { padding-bottom: 3px; border-bottom: 1px solid var(--or); font-family: var(--sans); font-weight: 700; transition: color .2s, border-color .2s; }
.lien-texte:hover { color: var(--bordeaux); border-color: var(--bordeaux); }

.conteneur .bouton { min-height: 50px; padding: 0 26px; font-family: var(--sans); font-size: .95rem; font-weight: 700; letter-spacing: .01em; }

/* Rythme vertical et transitions ondulées, comme la vague du hero */
.presentation, .animaux, .aider, .actus { position: relative; padding-block: clamp(72px, 10vw, 148px); }
.pied { position: relative; }
.animaux { --fond: var(--bordeaux); background: var(--fond); color: var(--creme); }
.aider { --fond: var(--marine); background: var(--fond) radial-gradient(900px 440px at 88% -10%, rgba(255, 255, 255, .08), transparent 70%); color: var(--creme); }
.actus { --fond: var(--creme); }
.pied { --fond: var(--bordeaux-profond); background: var(--fond); color: var(--creme); }
.animaux::before, .aider::before, .actus::before, .pied::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1px);
  height: clamp(24px, 4.4vw, 68px);
  background: var(--fond);
  -webkit-mask: var(--vague) 0% 100% / 200% 100% repeat-x;
  mask: var(--vague) 0% 100% / 200% 100% repeat-x;
  pointer-events: none;
}
.aider::before, .pied::before { transform: scaleX(-1); }

/* Présentation : une photo cadrée d'un filet doré, trois verbes */
.presentation__grille { display: grid; gap: 56px; align-items: center; }
.presentation__photo { position: relative; margin: 0 16px 16px 0; }
.presentation__photo::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--or); border-radius: 30px; }
.presentation__photo img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 60vh; object-fit: cover; object-position: 50% 35%; border-radius: 30px; box-shadow: var(--ombre); }
.piliers { margin-top: 36px; border-top: 1px solid var(--trait); }
.pilier { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--trait); }
.pilier dt { font-size: 1.55rem; font-weight: 650; line-height: 1.2; }
.pilier dd { font-family: var(--sans); line-height: 1.6; color: var(--texte); }
.presentation__texte > p:last-child { margin-top: 36px; }

/* Tuiles photo : dégradé doux et filigrane de la marque tant que la vraie photo manque */
.fiche__photo, .actu__photo {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(155deg, #f0e4cf, #d8c6a4);
  box-shadow: inset 0 0 0 1px rgba(11, 45, 82, .06);
}
.fiche__photo::after, .actu__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/logo-lvda.png") center / min(42%, 190px) auto no-repeat;
  opacity: .17;
  mix-blend-mode: multiply;
}
.fiche__photo--2, .actu__photo--2 { background: linear-gradient(155deg, #f2ddd5, #d9b5a9); }
.fiche__photo--3, .actu__photo--3 { background: linear-gradient(155deg, #e0e7ec, #b9c8d3); }
.fiche__photo img, .actu__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.fiche__photo:has(img)::after, .actu__photo:has(img)::after { display: none; }
.fiche__lien:hover .fiche__photo img, .actu__lien:hover .actu__photo img { transform: scale(1.04); }

/* Animaux : le carrousel */
.animaux__tete { display: block; }

.carrousel-zone {
  --cols: 1;
  --ecart: 20px;
  --ratio-photo: 1;
  container-type: inline-size;
  position: relative;
  margin-top: clamp(32px, 4.5vw, 56px);
}
.carrousel { margin: -6px; padding: 6px; overflow-x: auto; scrollbar-width: none; }
.carrousel::-webkit-scrollbar { display: none; }
.carrousel--js { overflow: hidden; }
.carrousel__piste {
  display: flex;
  gap: var(--ecart);
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  transition: transform .6s cubic-bezier(.22, .72, .2, 1);
  will-change: transform;
}
.carrousel__piste.glisse { cursor: grabbing; transition: none; }
.carrousel__piste:focus-visible { outline-offset: -3px; }

/* Cartes toujours entières : le nombre de colonnes suit la largeur, aucune carte n'est coupée */
.fiche { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--ecart)) / var(--cols)); min-width: 0; }

/* Flèches de chaque côté, à mi-hauteur de la photo (rapport 5/6 : la moitié = 0,6 de la largeur d'une carte) */
.carrousel__bouton {
  position: absolute;
  top: calc((100cqw - (var(--cols) - 1) * var(--ecart)) / var(--cols) * var(--ratio-photo, 1) / 2);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 248, .96);
  color: var(--marine);
  box-shadow: 0 10px 24px -10px rgba(11, 45, 82, .55), 0 0 0 1px rgba(11, 45, 82, .07);
  transform: translateY(-50%);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.carrousel__bouton svg { width: 22px; height: 22px; }
.carrousel__bouton--precedent { left: 12px; }
.carrousel__bouton--precedent svg { transform: rotate(180deg); }
.carrousel__bouton--suivant { right: 12px; }
.carrousel__bouton:hover { background: var(--marine); color: #fff; }
.carrousel--court .carrousel__bouton { display: none; }

.fiche__lien { display: block; }
.fiche__photo { aspect-ratio: 1 / var(--ratio-photo, 1); }
.fiche__nom { margin-top: 18px; font-size: 1.6rem; font-weight: 650; line-height: 1.12; letter-spacing: -.012em; transition: color .2s; }
.fiche__infos { margin-top: 5px; font-family: var(--sans); font-size: .95rem; color: var(--texte-doux); }
.fiche__lien:hover .fiche__nom { color: var(--bordeaux); }

.animaux__pied { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 32px; }
.animaux__pied .bouton { flex: none; }

.sr-seul { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Comment nous aider : bandeau marine */
.aider .chapeau { color: rgba(247, 243, 234, .82); }
.aider__liste { display: grid; margin-top: 52px; }
.aider__item { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 32px 0; border-top: 1px solid rgba(184, 151, 90, .5); }
.aider__item h3 { font-size: 1.8rem; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.aider__item p { flex: 1; max-width: 26rem; margin-bottom: 10px; font-family: var(--sans); line-height: 1.65; color: rgba(247, 243, 234, .84); }
.bouton--clair { background: var(--creme); color: var(--marine); }
.bouton--clair:hover { background: #fff; }
.bouton--filet { border-color: rgba(247, 243, 234, .6); color: var(--creme); }
.bouton--filet:hover { background: var(--creme); color: var(--marine); }

/* Actualités : une à la une, puis quatre cartes */
.actus { --carte: #f2eadb; }
.actus__titre { text-align: center; }

.etiquette {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--bordeaux);
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 1px 0 rgba(11, 45, 82, .06);
}

.une { margin-top: clamp(40px, 5vw, 64px); }
.une__image { position: relative; z-index: 1; }
.une__image .actu__photo { aspect-ratio: 3 / 2; border-radius: 28px; }
.une__carte {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: -44px;
  padding: 72px 28px 32px;
  border-radius: 28px;
  background: var(--carte);
}
.une__titre { font-size: clamp(1.55rem, 3.4vw, 2rem); font-weight: 650; line-height: 1.18; letter-spacing: -.012em; }
.une__resume { max-width: 34rem; font-family: var(--sans); line-height: 1.65; color: var(--texte); }
.une__carte .bouton { margin-top: 8px; }

.cartes { display: grid; gap: 24px; margin-top: clamp(40px, 5vw, 64px); }
.carte { display: flex; }
.carte__lien {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-bottom: 68px;
  border-radius: 24px;
  background: var(--carte);
  transition: transform .35s cubic-bezier(.22, .72, .2, 1), box-shadow .35s;
}
.carte__lien:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(11, 45, 82, .55); }
.carte__image { position: relative; display: block; }
.carte__image .actu__photo { aspect-ratio: 16 / 10; border-radius: 24px 24px 0 0; }
.carte__image .etiquette { position: absolute; left: 16px; bottom: -14px; z-index: 1; }
.carte__titre { margin: 34px 24px 0; font-size: 1.35rem; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; transition: color .2s; }
.carte__fleche { position: absolute; right: 22px; bottom: 22px; width: 22px; height: 22px; color: var(--marine); transition: transform .3s, color .3s; }
.carte__lien:hover .carte__titre, .carte__lien:hover .carte__fleche { color: var(--bordeaux); }
.carte__lien:hover .carte__fleche { transform: translateX(4px); }

.actus__bas { margin-top: 48px; text-align: center; }

/* Pied de page */
.pied { padding-top: clamp(64px, 8vw, 104px); }
.pied__grille { display: grid; gap: 40px; }
.pied__marque img { width: 112px; height: auto; }
.pied__marque p { max-width: 18rem; margin-top: 16px; font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.pied__colonne h2 { font-size: 1.1rem; font-weight: 650; letter-spacing: 0; line-height: 1.3; }
.pied__colonne ul { display: grid; gap: 10px; margin-top: 14px; font-family: var(--sans); }
.pied__colonne a:not(.bouton) { transition: color .2s; }
.pied__colonne a:not(.bouton):hover { color: var(--bordeaux); text-decoration: underline; text-underline-offset: 3px; }
.pied__colonne p { margin-top: 10px; font-family: var(--sans); color: var(--texte); }
.pied__colonne .bouton { margin-top: 8px; }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding: 22px 0 30px; border-top: 1px solid rgba(184, 151, 90, .5); font-family: var(--sans); font-size: .9rem; color: var(--texte-doux); }
.pied__bas ul { display: flex; gap: 22px; }
.pied__bas a:hover { color: var(--bordeaux); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 700px) {
  .animaux__pied { flex-direction: row; align-items: center; gap: 32px; margin-top: 40px; }
}

@media (min-width: 900px) {
  .presentation__grille { grid-template-columns: 5fr 6fr; gap: clamp(56px, 8vw, 120px); }
  .pilier { grid-template-columns: 9.5rem 1fr; align-items: baseline; gap: 24px; }

  .aider__liste { grid-template-columns: repeat(3, 1fr); }
  .aider__item { padding: 12px 44px 0 0; border-top: 0; }
  .aider__item + .aider__item { padding-left: 44px; border-left: 1px solid rgba(184, 151, 90, .5); }


  .pied__grille { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; }
}

@media (min-width: 1100px) {
}

@media (min-width: 600px) {
  .cartes { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .une { display: grid; grid-template-columns: 7fr 6fr; align-items: center; }
  .une__carte { margin: 0 0 0 -72px; padding: 56px 56px 56px 128px; }
}

@media (min-width: 1000px) {
  .cartes { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   Pages intérieures : liste des actualités
   ========================================================================== */
[hidden] { display: none !important; }

.page-actus { padding-block: clamp(48px, 7vw, 96px) clamp(72px, 9vw, 128px); }
.page-titre { text-align: center; font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 650; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }

.onglets { display: flex; gap: 4px; width: max-content; max-width: 100%; min-inline-size: 0; margin: 36px auto 0; padding: 7px; border: 1px solid var(--trait); border-radius: 999px; background: #fffdf8; }
.onglet { position: relative; cursor: pointer; }
.onglet input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.onglet span { display: block; padding: 11px 24px; border-radius: 999px; font-family: var(--sans); font-size: .95rem; font-weight: 700; color: var(--marine); transition: background-color .2s, color .2s; }
.onglet:hover input:not(:checked) + span { background: rgba(11, 45, 82, .07); }
.onglet input:checked + span { background: var(--bordeaux); color: #fff; }
.onglet input:focus-visible + span { outline: 3px solid var(--bordeaux); outline-offset: 3px; }

.filtres { margin: 0; }
.filtres__champs { display: grid; gap: 18px; max-width: 920px; margin: 36px auto 0; }
.champ { display: grid; gap: 8px; }
.champ label { font-family: var(--sans); font-size: .95rem; font-weight: 700; }
.champ__controle { position: relative; }
.champ input, .champ select {
  width: 100%;
  height: 52px;
  padding: 0 52px 0 18px;
  border: 1px solid var(--trait);
  border-radius: 14px;
  background: #fffdf8;
  color: var(--marine);
  font: 500 1rem var(--sans);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.champ input::placeholder { color: var(--texte-doux); opacity: 1; }
.champ input:focus, .champ select:focus { border-color: var(--bordeaux); outline: 0; box-shadow: 0 0 0 3px rgba(138, 25, 55, .22); }
.champ input::-webkit-search-cancel-button { display: none; }
.champ__icone { position: absolute; top: 50%; right: 18px; width: 22px; height: 22px; color: var(--marine); transform: translateY(-50%); pointer-events: none; }
.champ__icone--bas { transform: translateY(-50%) rotate(90deg); }
.filtres .bouton { min-height: 52px; }

.resultats { margin-top: clamp(40px, 5vw, 56px); text-align: center; font-size: 1.25rem; font-weight: 650; }
.cartes--page { margin-top: 28px; }
.vide { display: grid; justify-items: center; gap: 20px; padding: 56px 0 8px; text-align: center; font-family: var(--sans); color: var(--texte); }

@media (min-width: 800px) {
  .filtres__champs { grid-template-columns: 1fr 1fr auto; align-items: end; }
}

/* Aucune actualité : les blocs vides se masquent d'eux-mêmes */
.actus:not(:has(.une, .carte)) { display: none; }
.animaux:not(:has(.fiche)) { display: none; }
.page-actus:not(:has(.carte)) :is(.filtres, .resultats, .cartes--page, #zone-plus, .vide) { display: none; }
.page-actus:has(.carte) .etat-vide { display: none; }

.etat-vide { display: grid; justify-items: center; gap: 18px; max-width: 36rem; margin: clamp(48px, 7vw, 88px) auto 0; text-align: center; }
.etat-vide__rond { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--rond); color: var(--marine); }
.etat-vide__rond svg { width: 46px; height: 46px; }
.etat-vide h2 { font-size: clamp(1.6rem, 3.8vw, 2.2rem); }
.etat-vide p { font-family: var(--sans); line-height: 1.65; color: var(--texte); }
.etat-vide__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }

@media (min-width: 600px) {
  .carrousel-zone { --cols: 2; --ecart: 22px; --ratio-photo: 1.15; }
}
@media (min-width: 900px) {
  .carrousel-zone { --cols: 3; --ecart: 24px; --ratio-photo: 1.15; }
}
@media (min-width: 1180px) {
  .carrousel-zone { --cols: 4; --ecart: 26px; --ratio-photo: 1.15; }
}

/* ==========================================================================
   Couleurs d'accent : bordeaux, marine, mots en italique coloré
   ========================================================================== */
.accent, .accent-clair { font-style: italic; }
.accent { color: var(--bordeaux); }
.accent-clair { color: var(--rose); }

/* Présentation : cadre bordeaux et pastille marine derrière la photo */
.presentation__photo { isolation: isolate; }
.presentation__photo::before { border: 1.5px solid var(--bordeaux); transform: translateY(var(--py, 0px)); }
.presentation__photo::after { content: ""; position: absolute; z-index: -1; top: -22px; left: -22px; width: 42%; aspect-ratio: 1; border-radius: 50%; background: var(--marine); }
.pilier dt { color: var(--bordeaux); }

/* Animaux : bandeau bordeaux */
.animaux .chapeau { color: rgba(247, 243, 234, .86); }
.animaux .fiche__photo { box-shadow: 0 28px 46px -30px rgba(0, 0, 0, .55); }
.animaux .fiche__infos { color: rgba(247, 243, 234, .76); }
.animaux .fiche__lien:hover .fiche__nom { color: var(--rose); }

.animaux__controles { display: flex; flex: 1; align-items: center; gap: 12px; }
.carrousel__lecture { display: grid; flex: none; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(247, 243, 234, .5); border-radius: 50%; background: transparent; color: var(--creme); cursor: pointer; transition: background-color .2s, color .2s; }
.carrousel__lecture:hover { background: var(--creme); color: var(--bordeaux); }
.carrousel__lecture svg { width: 18px; height: 18px; fill: currentColor; }
.carrousel__lecture .ic-lecture { display: none; }
.carrousel--pause .carrousel__lecture .ic-pause { display: none; }
.carrousel--pause .carrousel__lecture .ic-lecture { display: inline; }

.carrousel__points { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.carrousel__point { display: grid; place-items: center; width: 24px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; transition: width .4s var(--douceur); }
.carrousel__point::before, .carrousel__point::after { content: ""; grid-area: 1 / 1; height: 8px; border-radius: 8px; }
.carrousel__point::before { width: 8px; background: rgba(247, 243, 234, .45); transition: width .4s var(--douceur), background-color .3s; }
.carrousel__point:hover::before { background: rgba(247, 243, 234, .85); }
.carrousel__point::after { width: 32px; background: var(--creme); opacity: 0; transform: scaleX(0); transform-origin: left center; }
.carrousel__point[aria-current="true"] { width: 44px; }
.carrousel__point[aria-current="true"]::before { width: 32px; background: var(--creme); }
.en-lecture .carrousel__point[aria-current="true"]::before { background: rgba(247, 243, 234, .3); }
.carrousel--court .carrousel__points, .carrousel--court .carrousel__lecture { visibility: hidden; }

/* Aider : le bouton principal reste crème sur le bandeau marine */
.aider__item h3 { transition: color .25s; }
.aider__item:hover h3 { color: var(--rose); }

/* Pages intérieures : bandeau marine avec vague */
.bandeau { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 112px); background: var(--marine) radial-gradient(900px 440px at 12% -20%, rgba(255, 255, 255, .09), transparent 70%); color: var(--creme); text-align: center; }
.bandeau .page-titre { text-wrap: balance; }
.bandeau .chapeau { margin-inline: auto; color: rgba(247, 243, 234, .84); }
.bandeau::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 1px);
  height: clamp(24px, 4.4vw, 68px);
  background: var(--marine);
  -webkit-mask: var(--vague) 0% 100% / 200% 100% repeat-x;
  mask: var(--vague) 0% 100% / 200% 100% repeat-x;
  transform: scaleY(-1);
  pointer-events: none;
}
.page-actus { padding-top: clamp(56px, 7vw, 96px); }
.etat-vide__rond { background: var(--marine); color: var(--creme); }

/* Pied de page bordeaux */
.pied__logo { display: grid; place-items: center; width: 132px; height: 132px; border-radius: 50%; background: var(--creme); }
.pied__marque img { width: 100px; }
.pied__colonne h2 { color: var(--rose); }
.pied__colonne p { color: rgba(247, 243, 234, .84); }
.pied__colonne a:not(.bouton):hover { color: var(--rose); }
.pied__bas { border-top-color: rgba(247, 243, 234, .24); color: rgba(247, 243, 234, .72); }
.pied__bas a:hover { color: var(--rose); }

/* ==========================================================================
   Animations (désactivées si le visiteur demande moins de mouvement)
   ========================================================================== */
@view-transition { navigation: auto; }

@keyframes entree-haut { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes entree-droite { from { opacity: 0; transform: translateX(56px) scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes entree-fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes balancement { from { transform: rotate(-2.4deg); } to { transform: rotate(2.4deg); } }
@keyframes battement { 0%, 55%, 100% { transform: scale(1); } 15% { transform: scale(1.2); } 30% { transform: scale(1.02); } 42% { transform: scale(1.12); } }
@keyframes remplir { to { transform: scaleX(1); } }
@keyframes derive { to { -webkit-mask-position: 100% 100%; mask-position: 100% 100%; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.55); } 70% { transform: scale(1.1); } 100% { opacity: 1; transform: none; } }

.progres-page {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--bordeaux), var(--rose));
  transform: scaleX(var(--progres, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  /* Entrée du hero : chaque élément arrive à son tour */
  .logo, .menu, .bouton--don { animation: entree-fondu .9s .1s both ease; }
  .hero .surtitre { animation: entree-haut .8s .15s both var(--douceur); }
  .hero h1 > span:nth-child(1) { animation: entree-haut .9s .3s both var(--douceur); }
  .hero h1 > span:nth-child(2) { animation: entree-haut .9s .44s both var(--douceur); }
  .hero h1 > span:nth-child(3) { animation: entree-haut .9s .58s both var(--douceur); }
  .hero .intro { animation: entree-haut .9s .74s both var(--douceur); }
  .hero .actions { animation: entree-haut .9s .9s both var(--douceur); }
  .hero .photo { animation: entree-droite 1.3s .2s both var(--douceur); }
  .atout { animation: entree-haut .85s both var(--douceur); }
  .atout:nth-child(1) { animation-delay: 1.05s; }
  .atout:nth-child(2) { animation-delay: 1.17s; }
  .atout:nth-child(3) { animation-delay: 1.29s; }
  .atout:nth-child(4) { animation-delay: 1.41s; }

  /* Feuilles : elles apparaissent puis se balancent doucement */
  .branche { transform-origin: 14% 92%; animation: entree-fondu 1.4s 1.3s both ease, balancement 7s ease-in-out 1.3s infinite alternate; }
  .branche--bas-gauche { animation-duration: 1.4s, 8.6s; }
  .branche--bas-droite { transform-origin: 70% 92%; animation-duration: 1.4s, 6.4s; animation-delay: 1.5s, 1.5s; }

  /* Le cœur du bouton de don bat */
  .bouton--don .ico { animation: battement 2.8s ease-in-out 2s infinite; transform-origin: center; }

  /* Vagues entre sections : elles dérivent lentement */
  .animaux::before, .aider::before, .actus::before, .pied::before, .bandeau::after, .vague::before { animation: derive 38s linear infinite; }
  .parcours::before { animation-duration: 47s; animation-direction: reverse; }
  .appel::before { animation-duration: 41s; }
  .aider::before { animation-duration: 46s; animation-direction: reverse; }
  .actus::before { animation-duration: 42s; }
  .pied::before { animation-duration: 52s; animation-direction: reverse; }
  .bandeau::after { animation-duration: 44s; }

  /* Boutons et liens */
  .bouton { transition: background-color .2s, color .2s, border-color .2s, box-shadow .25s, transform .3s var(--douceur); }
  .bouton:hover { transform: translateY(-2px); }
  .bouton:active { transform: translateY(0); }
  .bouton .fleche { transition: transform .3s var(--douceur); }
  .bouton:hover .fleche { transform: translateX(4px); }
  .carte__fleche { transition: transform .3s var(--douceur), color .3s; }

  .menu a { background: linear-gradient(var(--bordeaux), var(--bordeaux)) left bottom / 0 2px no-repeat; transition: background-size .35s var(--douceur); }
  .menu a:hover { background-size: 100% 2px; }

  .atout__ico, .atout__img { transition: transform .4s var(--douceur); }
  .atout a:hover .atout__ico, .atout a:hover .atout__img { transform: scale(1.12) rotate(-5deg); }

  /* Apparition au défilement : l'état caché ne s'applique que si le script est chargé (classe js) */
  html.js :is(
    .presentation__photo, .presentation__texte > h2, .presentation__texte > .chapeau, .pilier, .presentation__texte > p:last-child,
    .animaux__tete > div, .animaux__pied,
    .aider h2, .aider .chapeau, .aider__item,
    .actus__titre, .une, .cartes:not(.cartes--page) .carte, .actus__bas,
    .pied__marque, .pied__colonne, .pied__bas,
    .bandeau .conteneur > *, .onglets, .filtres__champs, .resultats, .etat-vide,
    .presentation__texte > p, .valeurs h2, .valeurs .chapeau, .valeur, .parcours h2, .etape, .equipe h2, .membre, .appel .conteneur > *,
    .fiche-animal__contenu section, .fiche-animal__carte, .etape-adoption, .bloc, .moyen
  ) {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .9s var(--douceur), transform .9s var(--douceur);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  html.js :is(
    .presentation__photo, .presentation__texte > h2, .presentation__texte > .chapeau, .pilier, .presentation__texte > p:last-child,
    .animaux__tete > div, .animaux__pied,
    .aider h2, .aider .chapeau, .aider__item,
    .actus__titre, .une, .cartes:not(.cartes--page) .carte, .actus__bas,
    .pied__marque, .pied__colonne, .pied__bas,
    .bandeau .conteneur > *, .onglets, .filtres__champs, .resultats, .etat-vide,
    .presentation__texte > p, .valeurs h2, .valeurs .chapeau, .valeur, .parcours h2, .etape, .equipe h2, .membre, .appel .conteneur > *,
    .fiche-animal__contenu section, .fiche-animal__carte, .etape-adoption, .bloc, .moyen
  ).vu { opacity: 1; transform: none; }

  /* Carrousel : les cartes entrent l'une après l'autre */
  html.js .carrousel-zone .fiche { transition: opacity .9s var(--douceur), transform .9s var(--douceur); }
  html.js .carrousel-zone:not(.vu) .fiche { opacity: 0; transform: translateX(56px); }
  html.js .carrousel-zone .fiche:nth-child(2) { transition-delay: .1s; }
  html.js .carrousel-zone .fiche:nth-child(3) { transition-delay: .2s; }
  html.js .carrousel-zone .fiche:nth-child(n + 4) { transition-delay: .3s; }
  html.js .carrousel-zone:not(.vu) .carrousel__bouton { opacity: 0; }
  .carrousel__bouton { transition: background-color .2s, color .2s, opacity .6s .5s; }

  /* Remplissage du point actif pendant la lecture automatique */
  .en-lecture .carrousel__point[aria-current="true"]::after { opacity: 1; animation: remplir var(--duree, 4800ms) linear forwards; }

  /* Page Actualités : les cartes filtrées arrivent en cascade */
  .cartes--page .carte { animation: entree-haut .6s both var(--douceur); animation-delay: calc(var(--i, 0) * 55ms); }
  .etat-vide.vu .etat-vide__rond { animation: pop .8s .25s both var(--douceur); }
}

/* Inclinaison des cartes d'animaux au survol (souris uniquement) */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .fiche__lien { transform: perspective(900px) translateY(var(--ty, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .45s var(--douceur); will-change: transform; }
  .fiche__lien:hover { --ty: -6px; }
  .fiche__lien:hover .fiche__photo { box-shadow: 0 34px 50px -30px rgba(0, 0, 0, .6); }
  .fiche__photo { transition: box-shadow .4s; }
}

@media (max-width: 900px) {
  .menu a { background: none; }
}

/* ==========================================================================
   Page Notre histoire
   ========================================================================== */
.texte { max-width: 36rem; margin-top: 16px; font-size: 1.1rem; line-height: 1.7; color: var(--texte); text-wrap: pretty; }
.presentation--histoire .presentation__texte > p:last-child { margin-top: 32px; }

.valeurs, .parcours, .equipe, .appel { position: relative; padding-block: clamp(72px, 10vw, 148px); }
.vague::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1px);
  height: clamp(24px, 4.4vw, 68px);
  background: var(--fond);
  -webkit-mask: var(--vague) 0% 100% / 200% 100% repeat-x;
  mask: var(--vague) 0% 100% / 200% 100% repeat-x;
  pointer-events: none;
}
.valeurs { --fond: var(--sable); background: var(--fond); }
.parcours { --fond: var(--creme); }
.equipe { --fond: var(--sable); background: var(--fond); }
.appel { --fond: var(--marine); background: var(--fond) radial-gradient(900px 440px at 88% -10%, rgba(255, 255, 255, .08), transparent 70%); color: var(--creme); text-align: center; }
.appel .chapeau { margin-inline: auto; color: rgba(247, 243, 234, .84); }
.appel__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.parcours:not(:has(.etape)), .equipe:not(:has(.membre)) { display: none; }

.valeurs__liste { display: grid; gap: 16px; margin-top: 48px; }
.valeur { display: flex; flex-direction: column; gap: 12px; min-height: 220px; padding: 32px 28px 36px; border-radius: 24px; background: var(--marine); color: var(--creme); }
.valeur:nth-child(even) { background: var(--bordeaux); }
.valeur h3 { font-size: 1.7rem; font-weight: 650; line-height: 1.15; letter-spacing: -.01em; }
.valeur p { font-family: var(--sans); line-height: 1.6; color: rgba(247, 243, 234, .86); }

.parcours__liste { display: grid; gap: 40px; margin: 52px 0 0 10px; padding-left: 34px; border-left: 2px solid var(--trait); }
.etape { position: relative; }
.etape::before { content: ""; position: absolute; top: 12px; left: -45px; width: 16px; height: 16px; border-radius: 50%; background: var(--bordeaux); box-shadow: 0 0 0 6px var(--creme); }
.etape__annee { font-size: 2rem; font-weight: 650; line-height: 1.1; color: var(--bordeaux); }
.etape h3 { margin-top: 8px; font-size: 1.4rem; font-weight: 650; }
.etape p:not(.etape__annee) { max-width: 38rem; margin-top: 8px; font-family: var(--sans); line-height: 1.65; color: var(--texte); }

.equipe__liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 40px 24px; margin-top: 48px; }
.membre { text-align: center; }
.membre__photo { display: block; position: relative; width: 150px; aspect-ratio: 1; margin: 0 auto 16px; overflow: hidden; border-radius: 50%; background: linear-gradient(155deg, #f0e4cf, #d8c6a4); box-shadow: 0 0 0 5px var(--creme), 0 0 0 6px var(--or); }
.membre__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.membre h3 { font-size: 1.25rem; font-weight: 650; }
.membre p { margin-top: 4px; font-family: var(--sans); font-size: .95rem; color: var(--texte-doux); }

@media (min-width: 600px) {
  .valeurs__liste { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .presentation--histoire .presentation__grille { grid-template-columns: 6fr 5fr; }
  .presentation--histoire .presentation__photo { order: 2; }
}
@media (min-width: 1100px) {
  .valeurs__liste { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

/* ==========================================================================
   Page S'engager : une partie par action
   ========================================================================== */
.raccourcis { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.engagement { scroll-margin-top: 100px; }
.engagement .presentation__texte > p:last-child { margin-top: 32px; }
.engagement--benevolat { --fond: var(--sable); background: var(--fond); }
.engagement--adoption { --fond: var(--creme); }
.engagement--benevolat .presentation__photo::after { background: var(--bordeaux); }
.engagement--benevolat .presentation__photo::before { border-color: var(--marine); }
.engagement--adoption .presentation__photo::before { border-color: var(--marine); }
.engagement--adoption .presentation__photo::after { background: var(--bordeaux); }

@media (min-width: 900px) {
  .engagement .presentation__grille { grid-template-columns: 5fr 6fr; }
  .engagement--inverse .presentation__grille { grid-template-columns: 6fr 5fr; }
  .engagement--inverse .presentation__photo { order: 2; }
}

/* Cadrage de chaque photo : le visage reste dans l'image */
.engagement--don .presentation__photo img { object-position: 50% 50%; }
.engagement--benevolat .presentation__photo img { object-position: 50% 50%; }
.engagement--adoption .presentation__photo img { object-position: 50% 45%; }
.presentation--histoire .presentation__photo img { object-position: 50% 30%; }

@media (min-width: 900px) {
  .presentation__photo img { aspect-ratio: 5 / 4; max-height: 480px; }
}

/* ==========================================================================
   Page Nos animaux
   ========================================================================== */
.cartes--animaux .actu__photo { aspect-ratio: 4 / 3; }
.cartes--animaux .actu__photo img { object-position: 50% 28%; }
.carte__infos { margin: 8px 24px 0; font-family: var(--sans); line-height: 1.5; color: var(--texte-doux); }
.page-actus:not(:has(.carte:nth-child(4))) .filtres--animaux { display: none; }
.page-actus:has(.carte:nth-child(4)) .resultats { margin-top: clamp(40px, 5vw, 56px); }
.page-actus:not(:has(.carte:nth-child(4))) .resultats { margin-top: 0; }

/* Page Faire un don : trois usages */
@media (min-width: 900px) {
  .valeurs__liste--trois { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Fiche d'un animal
   ========================================================================== */
.fil-ariane { padding-top: 28px; font-family: var(--sans); font-size: .9rem; color: var(--texte-doux); }
.fil-ariane ol { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.fil-ariane li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
.fil-ariane a { transition: color .2s; }
.fil-ariane a:hover { color: var(--bordeaux); text-decoration: underline; text-underline-offset: 3px; }
.fil-ariane [aria-current] { font-weight: 700; color: var(--marine); }

.fiche-animal { padding-block: 24px clamp(72px, 9vw, 128px); }
.fiche-animal__grille { display: grid; gap: 36px; margin-top: 16px; }

.galerie { margin: 0; }
.galerie__principale { aspect-ratio: 4 / 3; max-height: 560px; overflow: hidden; border-radius: 28px; background: linear-gradient(155deg, #f0e4cf, #d8c6a4); box-shadow: var(--ombre); }
.galerie__principale img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.galerie__vignettes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.galerie__vignette { width: 88px; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 14px; background: var(--sable); cursor: pointer; opacity: .72; transition: opacity .2s, border-color .2s; }
.galerie__vignette img { width: 100%; height: 100%; object-fit: cover; }
.galerie__vignette:hover { opacity: 1; }
.galerie__vignette[aria-current="true"] { border-color: var(--bordeaux); opacity: 1; }

.fiche-animal__carte { position: relative; padding: 36px 28px 28px; overflow: hidden; border-radius: 28px; background: #fffdf8; box-shadow: var(--ombre), 0 0 0 1px rgba(11, 45, 82, .07); }
.fiche-animal__carte::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--marine), var(--bordeaux)); }
.fiche-animal__carte h1 { margin-top: 14px; font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 650; line-height: 1.06; letter-spacing: -.02em; }
.fiche-animal__sous-titre { margin-top: 8px; font-family: var(--sans); font-size: 1.05rem; color: var(--texte); }

.faits { margin-top: 24px; border-top: 1px solid var(--trait); }
.fait { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--trait); }
.fait dt { font-family: var(--sans); color: var(--texte-doux); }
.fait dd { font-weight: 650; text-align: right; }
.a-renseigner { font-style: italic; font-weight: 400 !important; color: var(--texte-doux); }

.fiche-animal__actions { display: grid; gap: 10px; margin-top: 26px; }
.fiche-animal__actions .bouton { width: 100%; }
.lien-copier { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; padding: 8px; border: 0; background: none; color: var(--texte); font-family: var(--sans); font-size: .92rem; font-weight: 600; cursor: pointer; transition: color .2s; }
.lien-copier svg { width: 18px; height: 18px; }
.lien-copier:hover { color: var(--bordeaux); }

.fiche-animal__contenu section + section { margin-top: 52px; }
.fiche-animal__contenu h2 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); }
.fiche-animal__contenu section > p { max-width: 42rem; margin-top: 16px; font-size: 1.1rem; line-height: 1.75; color: var(--texte); text-wrap: pretty; }

.traits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.trait { padding: 9px 18px; border-radius: 999px; background: var(--sable); color: var(--marine); font-family: var(--sans); font-size: .95rem; font-weight: 700; }
.trait--vide { border: 1.5px dashed var(--trait); background: transparent; color: var(--texte-doux); font-style: italic; font-weight: 600; }

.controles { margin-top: 20px; border-top: 1px solid var(--trait); }
.traits + .controles { margin-top: 28px; }
.controle { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--trait); font-family: var(--sans); }
.controle__etat { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: .85rem; font-weight: 800; line-height: 1; }
.controle__valeur { margin-left: auto; font-size: .95rem; color: var(--texte-doux); }
.controle--oui .controle__etat { background: var(--marine); color: #fff; }
.controle--oui .controle__etat::before { content: "\2713"; }
.controle--non .controle__etat { background: var(--bordeaux); color: #fff; }
.controle--non .controle__etat::before { content: "\2715"; }
.controle--inconnu .controle__etat { background: var(--sable); color: var(--texte-doux); }
.controle--inconnu .controle__etat::before { content: "\2013"; }

.processus { --fond: var(--marine); position: relative; padding-block: clamp(72px, 10vw, 148px); background: var(--fond) radial-gradient(900px 440px at 88% -10%, rgba(255, 255, 255, .08), transparent 70%); color: var(--creme); }
.processus .chapeau { color: rgba(247, 243, 234, .84); }
.processus__liste { display: grid; gap: 16px; margin-top: 48px; counter-reset: etape; }
.etape-adoption { position: relative; padding: 28px 28px 32px 84px; border-radius: 22px; background: rgba(255, 255, 255, .07); counter-increment: etape; }
.etape-adoption::before { content: counter(etape); position: absolute; top: 26px; left: 26px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--rose); color: var(--marine); font-weight: 700; font-size: 1.15rem; }
.etape-adoption h3 { font-size: 1.45rem; font-weight: 650; line-height: 1.2; }
.etape-adoption p { margin-top: 8px; font-family: var(--sans); line-height: 1.6; color: rgba(247, 243, 234, .85); }
.processus__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

@media (min-width: 900px) {
  .processus__liste { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .etape-adoption { padding: 84px 28px 32px; }
  .etape-adoption::before { top: 28px; }
}
@media (min-width: 1000px) {
  .fiche-animal__grille { grid-template-columns: minmax(0, 1.55fr) minmax(330px, 1fr); grid-template-areas: "galerie carte" "contenu carte"; gap: 48px 56px; align-items: start; }
  .galerie { grid-area: galerie; }
  .fiche-animal__contenu { grid-area: contenu; }
  .fiche-animal__carte { grid-area: carte; position: sticky; top: 96px; }
}


/* Notre histoire : quatre blocs avec image et texte */
.blocs { display: grid; gap: 22px; margin-top: 48px; }
.bloc { display: flex; flex-direction: column; overflow: hidden; border-radius: 26px; background: var(--marine); color: var(--creme); box-shadow: var(--ombre); }
.bloc:nth-child(even) { background: var(--bordeaux); }
.bloc__image { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.bloc__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--douceur); }
.bloc:hover .bloc__image img { transform: scale(1.05); }
.bloc__texte { display: flex; flex-direction: column; gap: 12px; padding: 28px 28px 34px; }
.bloc__texte h3 { font-size: 1.9rem; font-weight: 650; line-height: 1.1; letter-spacing: -.01em; }
.bloc__texte .bloc__resume { font-size: 1.12rem; font-weight: 600; line-height: 1.4; color: var(--rose); }
.bloc__texte p:not(.bloc__resume) { font-family: var(--sans); line-height: 1.65; color: rgba(247, 243, 234, .88); }

@media (min-width: 900px) {
  .blocs { grid-template-columns: 1fr 1fr; gap: 24px; }
  .bloc { flex-direction: row; }
  .bloc:nth-child(3) { background: var(--bordeaux); }
  .bloc:nth-child(4) { background: var(--marine); }
  .bloc__image { flex: 0 0 44%; aspect-ratio: auto; min-height: 280px; }
  .bloc__texte { justify-content: center; padding: 32px 30px; }
}

/* Cadrage des photos des quatre blocs */
.bloc:nth-child(1) .bloc__image img { object-position: 50% 45%; }
.bloc:nth-child(2) .bloc__image img { object-position: 50% 42%; }
.bloc:nth-child(3) .bloc__image img { object-position: 50% 30%; }
.bloc:nth-child(4) .bloc__image img { object-position: 45% 25%; }

/* Page Contact : moyens de nous joindre */
.contact { position: relative; padding-block: clamp(72px, 10vw, 148px); }
.moyens { display: grid; gap: 16px; margin-top: 48px; }
.moyen { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px 28px 36px; border-radius: 26px; background: var(--marine); color: var(--creme); box-shadow: var(--ombre); }
.moyen:nth-child(even) { background: var(--bordeaux); }
.moyen__rond { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 6px; border-radius: 50%; background: rgba(247, 243, 234, .14); color: var(--creme); }
.moyen__rond svg { width: 32px; height: 32px; }
.moyen h3 { font-size: 1.7rem; font-weight: 650; line-height: 1.15; letter-spacing: -.01em; }
.moyen p { font-family: var(--sans); line-height: 1.6; color: rgba(247, 243, 234, .86); }
.moyen .moyen__valeur { font-family: var(--serif); font-size: 1.2rem; font-weight: 650; color: var(--rose); overflow-wrap: anywhere; }
.moyen .bouton, .valeur .bouton { margin-top: auto; align-self: flex-start; }
.moyen p + .bouton { margin-top: 12px; }
.valeur p { margin-bottom: 8px; }
.appel__actions--gauche { justify-content: flex-start; margin-top: 8px; }
.pied__colonne a { overflow-wrap: anywhere; }

@media (min-width: 600px) and (max-width: 899px) {
  .valeurs__liste--trois .valeur:last-child { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .moyens { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* Page introuvable (404) */
.introuvable { padding-bottom: clamp(72px, 10vw, 148px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .carrousel__piste, html { scroll-behavior: auto; }
  :is(.defile, .interne) .entete { animation: none; }
  .carrousel__piste { transition: none; }
  .carte__lien, .carte__fleche { transition: none; }
  .carrousel__lecture { display: none; }
  .progres-page { display: none; }
}
