/* =========================================================
   T.A.C.O — feuille de style « Le carnet »
   Le site comme le carnet des bénévoles : papier, fiches bristol,
   scotch, post-it, tampons, notes au stylo plume et au crayon rouge.
   Le filtre SVG #rough (bords faits main) et le motif #hachures (zones
   de la carte) sont définis dans le <svg class="sprite"> de chaque page.
   ========================================================= */

/* ---------- Polices (hébergées sur le site, licence SIL OFL, sous-ensemble latin) ---------- */
@font-face {
  font-family: "Alegreya";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/alegreya-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Alegreya";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/alegreya-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/courier-prime-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/courier-prime-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/caveat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* papiers */
  --paper: #FBF8F1;
  --paper-2: #F2EBDD;
  --card: #FFFEFB;
  --postit: #FFE98A;
  --kraft: #D5BC92;
  --tape: rgb(214 190 140 / .62);
  --line: #E4DCCB;

  /* encres */
  --ink: #20242E;
  --ink-2: #545962;
  --pen: #23408E;
  --pen-soft: #E6EBF5;
  --red: #CC402C;
  --red-dark: #A8321F;
  --red-soft: #F9E3DB;
  --green: #3D6B35;
  --green-soft: #E4EEDC;
  --marker: rgb(255 224 102 / .9);

  /* fonds des portraits dessinés (pages intérieures) */
  --sea-soft: #E2EAF0;
  --granite-soft: #F6DDD3;
  --sun-soft: #FCEFD3;

  --font-body: "Alegreya", Georgia, "Times New Roman", serif;
  --font-type: "Courier Prime", "Courier New", monospace;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  /* ombres de papier : neutres, courtes */
  --lift: 0 1px 1px rgb(40 30 20 / .12), 0 10px 18px -12px rgb(40 30 20 / .38);
  --lift-lg: 0 2px 3px rgb(40 30 20 / .1), 0 22px 34px -20px rgb(40 30 20 / .45);

  /* grain du papier */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .35 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* encre de tampon (masque avec de petits manques) */
  --stamp-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 1.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  /* double trait de crayon rouge sous un mot */
  --scribble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 30' preserveAspectRatio='none'%3E%3Cpath d='M4 13c52-8 130-11 210-8 34 1 60 4 82 8' fill='none' stroke='%23CC402C' stroke-width='4' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M26 24c58-6 140-7 234-2' fill='none' stroke='%23CC402C' stroke-width='2.6' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  /* flèches au stylo */
  --arrow-pen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 30'%3E%3Cpath d='M3 19c12-9 25-11 39-5m0 0-8-8m8 8-10 5' fill='none' stroke='%2323408E' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --arrow-up-pen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 50'%3E%3Cpath d='M40 44C22 40 10 28 8 6m0 0-6 10m6-10 8 8' fill='none' stroke='%2323408E' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --arrow-up-red: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 50'%3E%3Cpath d='M40 44C22 40 10 28 8 6m0 0-6 10m6-10 8 8' fill='none' stroke='%23CC402C' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  /* bord déchiré du carton (haut du pied de page) */
  --torn-kraft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 14' preserveAspectRatio='none'%3E%3Cpath d='M0 14V7l9 3 8-5 11 4 8-3 10 5 9-6 11 4 10-3 8 5 11-4 9 3 10-5 9 4 11-2 8 5 10-5 9 3 11-4 10 5 9-3 8 4 9-6 11 5 9-3 12-1V14Z' fill='%23D5BC92'/%3E%3C/svg%3E");

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 80px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--grain), var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.1875rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, figure, blockquote { margin: 0; }
p { text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--marker); color: var(--ink); }

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h3 { font-weight: 700; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 10px 16px;
  background: var(--ink); color: var(--paper);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2.5px dashed var(--pen);
  outline-offset: 4px;
}

.ico { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Petits éléments de papeterie ---------- */
/* Morceau de scotch en haut des fiches, tirages, cartes… */
.tile::before, .program::before, .polaroid::before, .partner::before, .avatar::before,
.drop-card::before, .notepad::before, .info-card::before, .don-widget::before,
.report::before, .program-facts-stack::before, .steps li::before, .patient-fiche::before {
  content: "";
  position: absolute; z-index: 2;
  left: 50%; top: -14px;
  width: var(--tape-w, 100px); height: 28px;
  background: var(--tape);
  clip-path: polygon(2% 8%, 98% 0, 100% 52%, 97% 100%, 3% 94%, 0 48%);
  transform: translateX(-50%) rotate(var(--tape-r, -3deg));
}

/* Mot souligné deux fois au crayon rouge */
.scribble, .brand-accent {
  padding-bottom: .1em;
  background: var(--scribble) left 100% / 100% .3em no-repeat;
  color: var(--pen);
  white-space: nowrap;
}

/* Surligneur jaune */
.hl, .marker {
  padding: 0 .25em;
  border-radius: .3em .7em .4em .8em;
  background: linear-gradient(100deg, transparent .15em, var(--marker) .3em, rgb(255 224 102 / .75) calc(100% - .3em), transparent calc(100% - .15em));
  color: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Lien écrit à la main, avec sa flèche */
.hand-link {
  display: inline-flex; align-items: center; gap: .3em;
  font-family: var(--font-hand);
  font-size: 1.85rem; font-weight: 600; line-height: 1.1;
  color: var(--pen);
  text-decoration: none;
}
.hand-link::after {
  content: "";
  width: 1.5em; height: .95em;
  background: var(--arrow-pen) center / contain no-repeat;
  transition: transform .2s;
}
.hand-link:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.hand-link:hover::after { transform: translateX(4px); }

/* ---------- Boutons : étiquettes découpées à la main ---------- */
.btn {
  --btn-bg: transparent;
  --btn-line: transparent;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .72em 1.4em;
  border: 0; background: none;
  font: inherit; font-size: 1.06rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s;
}
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border: 2px solid var(--btn-line);
  background: var(--btn-bg);
  filter: url(#rough);
  transition: background-color .2s;
}
.btn:hover { transform: rotate(-1deg) translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.2em; height: 1.2em; }
.btn-sm { padding: .55em 1.05em; font-size: .98rem; }
.btn-lg { padding: .8em 1.6em; font-size: 1.15rem; }

.btn-primary { --btn-bg: var(--red); color: #fff; }
.btn-primary:hover { --btn-bg: var(--red-dark); }
.btn-outline { --btn-line: var(--ink); color: var(--ink); }
.btn-outline::before, .btn-ghost-light::before { filter: url(#rough-fin); }
.btn-outline:hover { --btn-bg: var(--card); }
.btn-cream { --btn-bg: var(--card); color: var(--red-dark); }
.btn-ghost-light { --btn-line: rgb(255 255 255 / .8); color: #fff; }
.btn-ghost-light:hover { --btn-bg: rgb(255 255 255 / .12); }
button.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--grain), var(--paper);
  border-bottom: 1.5px dashed rgb(35 64 142 / .3);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 10px 18px -16px rgb(40 30 20 / .45); }

.header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  margin-right: auto;
  text-decoration: none;
}
/* Logo de l'association : dessin à l'encre sur fond blanc, fondu dans le papier */
.brand-logo {
  flex: none;
  width: auto; height: 62px;
  mix-blend-mode: multiply;
  transition: transform .3s;
}
.brand:hover .brand-logo { transform: rotate(-4deg); }
.brand-tag {
  font-family: var(--font-hand);
  font-size: 1.3rem; font-weight: 600; line-height: 1;
  color: var(--red);
  transform: rotate(-3deg);
}

.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; gap: 2px; }
.nav-list a {
  display: block;
  padding: .4em .55em;
  background: linear-gradient(transparent 52%, var(--marker) 52%, var(--marker) 86%, transparent 86%) left center / 0 100% no-repeat;
  font-family: var(--font-type);
  font-size: .84rem; color: var(--ink-2);
  text-decoration: none; white-space: nowrap;
  transition: color .2s, background-size .3s;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { background-size: 100% 100%; color: var(--ink); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn[aria-current="page"] { --btn-bg: var(--ink); }

.nav-toggle {
  display: none;
  position: relative;
  width: 46px; height: 46px;
  border: 0;
  background: var(--card);
  box-shadow: var(--lift);
  transform: rotate(2deg);
  cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 12px;
  width: 22px; height: 2.5px; border-radius: 2px;
  background: var(--ink);
  transition: transform .25s, opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 15px; transform: rotate(-2deg); }
.nav-toggle span:nth-child(2) { top: 22px; width: 18px; }
.nav-toggle span:nth-child(3) { top: 29px; transform: rotate(2deg); }
.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Accueil : en-tête de page ---------- */
.hero {
  position: relative;
  padding-block: clamp(32px, 5vw, 64px) clamp(64px, 8vw, 104px);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.label-strip {
  position: relative;
  display: inline-block;
  max-width: calc(100% - 14px);
  margin-left: 14px; padding: 7px 14px 6px;
  background: var(--card);
  box-shadow: var(--lift);
  font-family: var(--font-type);
  font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  transform: rotate(-1.5deg);
}
.label-strip b { color: var(--red-dark); }
.label-strip::before {
  content: "";
  position: absolute; left: -24px; top: 3px;
  width: 46px; height: 22px;
  background: var(--tape);
  transform: rotate(-35deg);
}

.hero h1 {
  margin-top: 28px;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: .98; letter-spacing: -.015em;
}

.lead {
  max-width: 30ch; margin-top: 26px;
  font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.45;
}

.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: 34px; }

.postit {
  position: relative;
  width: min(100%, 270px);
  margin: 40px 0 0 6px; padding: 18px 20px 20px;
  background: var(--postit);
  box-shadow: var(--lift);
  transform: rotate(-2deg);
  font-family: var(--font-hand);
  font-size: 1.65rem; font-weight: 500; line-height: 1.1;
}
.postit a {
  display: block; margin-top: 6px;
  font-size: 2.1rem; font-weight: 700; line-height: 1.05;
  color: var(--red-dark);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.postit a:hover { color: var(--red); }

.hero-art { position: relative; justify-self: center; width: min(100%, 580px); }
.print {
  position: relative;
  padding: 14px 14px 16px;
  background: #fff;
  box-shadow: var(--lift-lg);
  transform: rotate(2deg);
}
.print > img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.print-tape {
  position: absolute; z-index: 2;
  width: 120px; height: 34px;
  background: var(--tape);
  clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 45%);
}
.print-tape-l { left: -36px; top: 10px; transform: rotate(-40deg); }
.print-tape-r { right: -32px; top: -4px; transform: rotate(32deg); }
.print-cats { position: absolute; left: 8%; bottom: 16px; width: 38%; height: auto; }

.hand-note {
  position: relative;
  display: inline-block;
  margin: 30px 0 0 64px;
  font-family: var(--font-hand);
  font-size: 1.9rem; font-weight: 600; line-height: 1;
  color: var(--pen);
  transform: rotate(-3deg);
}
.hand-note::before {
  content: "";
  position: absolute; left: -48px; top: -40px;
  width: 44px; height: 50px;
  background: var(--arrow-up-pen) center / contain no-repeat;
}
.photo-credit { margin: 12px 0 0 64px; font-family: var(--font-type); font-size: .72rem; color: var(--ink-2); }
.photo-credit a { color: inherit; text-underline-offset: 2px; }

/* Tampon « Protéger · Soigner · Stériliser · Aimer » : le texte tourne autour du cœur */
.spin-badge {
  position: absolute; right: -44px; bottom: -34px; z-index: 3;
  width: 150px; height: 150px;
  color: var(--red);
  mix-blend-mode: multiply;
  transform: rotate(-14deg);
  -webkit-mask: var(--stamp-mask);
  mask: var(--stamp-mask);
}
.spin-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.spin-text { animation: spin 26s linear infinite; }
.spin-text text {
  fill: currentColor;
  font-family: var(--font-type);
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
}
.spin-badge .spin-heart { inset: auto; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.hero + .section { padding-top: clamp(8px, 2vw, 24px); }
#mission { padding-top: clamp(24px, 4vw, 56px); }
.section-tight { padding-block: clamp(24px, 4vw, 48px); }
.section-sand { background: var(--grain), var(--paper-2); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }

/* Petite note au stylo au-dessus des titres */
.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-hand);
  font-size: 1.75rem; font-weight: 600; line-height: 1.1;
  color: var(--pen);
  transform: rotate(-2deg);
  transform-origin: left bottom;
}
.center .eyebrow { transform-origin: center bottom; }

.section-lead {
  max-width: 58ch; margin-top: 16px;
  font-size: 1.22rem; color: var(--ink-2);
  text-wrap: balance;
}
.center .section-lead { margin-inline: auto; }

/* ---------- Fiches d'action ---------- */
.path + .path { margin-top: clamp(56px, 6vw, 80px); }
.path-title {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 34px;
  font-family: var(--font-hand);
  font-size: 2rem; font-weight: 600; line-height: 1; letter-spacing: 0;
  color: var(--pen);
}
.path-title::after { content: ""; flex: 1; border-top: 1.5px dashed rgb(35 64 142 / .3); }

.tiles { display: grid; gap: clamp(24px, 3vw, 38px); }
.tiles-need { grid-template-columns: repeat(3, 1fr); }
.tiles-give { grid-template-columns: 1fr 1fr 2fr; align-items: start; }

.tile {
  --r: -1deg;
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 26px 24px;
  background-color: var(--card);
  background-image: linear-gradient(transparent 52px, rgb(210 67 47 / .6) 52px, rgb(210 67 47 / .6) 54px, transparent 54px);
  box-shadow: var(--lift);
  color: var(--ink);
  text-decoration: none;
  transform: rotate(var(--r));
  transition: transform .25s, box-shadow .25s;
}
.tile:hover { transform: rotate(0deg) translateY(-3px); box-shadow: var(--lift-lg); }
.tiles > :nth-child(2) { --r: .8deg; --tape-r: 2deg; }
.tiles > :nth-child(3) { --r: -.5deg; --tape-r: -1deg; }

.tile-kicker {
  min-height: 24px;
  font-family: var(--font-type);
  font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--red-dark);
}
.tile-title { margin-top: 18px; font-size: 1.8rem; font-weight: 800; line-height: 1.05; }
.tile-text { font-size: 1.08rem; line-height: 1.5; color: var(--ink-2); }
.tile-go {
  display: inline-flex; align-items: center; gap: .3em;
  margin-top: auto; padding-top: 12px;
  font-family: var(--font-hand);
  font-size: 1.6rem; font-weight: 600; line-height: 1;
  color: var(--pen);
}
.tile-go::before {
  content: "";
  flex: none;
  width: 1.3em; height: .8em;
  background: var(--arrow-pen) center / contain no-repeat;
  transition: transform .2s;
}
.tile:hover .tile-go::before { transform: translateX(3px); }

/* Faire un don : un post-it */
.tile-don { --r: 1.6deg; background-color: var(--postit); background-image: none; }
.tile-don::before { display: none; }
.tile-don .tile-kicker { color: var(--ink-2); }
.tile-don .tile-title { margin-top: 10px; }

/* Devenir bénévole : un carton kraft */
.tile-benevole { background: var(--grain), #DCC5A0; }
.tile-benevole .tile-kicker { color: var(--ink-2); }
.tile-benevole .tile-title { margin-top: 10px; }
.tile-benevole .tile-text { color: var(--ink); }

/* Offrir un foyer : une petite annonce à languettes, punaisée */
.tile-foyer {
  --r: -.6deg;
  gap: 0; padding: 0;
  background: none; box-shadow: none;
}
.tile-foyer:hover { box-shadow: none; }
.tile-foyer::before {
  left: 50%; top: -10px;
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #F29A86, var(--red) 52%, var(--red-dark));
  box-shadow: 0 3px 4px rgb(40 30 20 / .35);
  clip-path: none;
  transform: translateX(-50%);
}
.tile-foyer-sheet {
  flex: 1;
  display: flex; align-items: flex-end; gap: 12px;
  padding: 26px 22px 0 30px;
  background: var(--card);
  box-shadow: var(--lift);
  transition: box-shadow .25s;
}
.tile-foyer:hover .tile-foyer-sheet { box-shadow: var(--lift-lg); }
.tile-foyer-copy {
  flex: 1; align-self: stretch;
  display: flex; flex-direction: column; gap: 6px;
  padding-bottom: 22px;
}
.tile-foyer .tile-title {
  display: flex; align-items: center; gap: .3em;
  margin-top: 6px;
  font-size: clamp(2rem, 3vw, 2.5rem);
}
.tile-heart { flex: none; width: .75em; height: .75em; color: var(--red); transform: rotate(-12deg); }
.tile-foyer-cat { flex: none; width: clamp(140px, 14vw, 190px); height: auto; }
.tabs { display: flex; }
.tabs span {
  flex: 1; min-width: 0;
  overflow: hidden;
  height: 118px; padding: 6px 0;
  display: grid; place-items: center;
  background: var(--card);
  border-top: 1.5px dashed rgb(32 36 46 / .3);
  border-left: 1.5px dashed rgb(32 36 46 / .25);
  box-shadow: 0 6px 8px -7px rgb(40 30 20 / .4);
  font-family: var(--font-type);
  font-size: .62rem; line-height: 1.25; white-space: nowrap; color: var(--ink-2);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.tabs span:last-child { border-left: 0; }
.tabs span:nth-child(3) { visibility: hidden; } /* une languette déjà arrachée */

/* ---------- Pourquoi T.A.C.O ? / stérilisation ---------- */
.mission {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.mission-text { max-width: 54ch; margin-top: 18px; font-size: 1.2rem; color: var(--ink-2); }
.mission-text strong { color: var(--ink); }
.mission-quote { position: relative; margin: 34px 0 0; padding: 4px 0 4px 26px; }
.mission-quote::before {
  content: "";
  position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 4px;
  background: var(--red);
  filter: url(#rough);
}
.mission-quote p {
  font-family: var(--font-hand);
  font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 600; line-height: 1.1;
  color: var(--pen);
  text-wrap: balance;
  transform: rotate(-1deg);
}
.mission-more { margin-top: 32px; }

.program {
  position: relative;
  padding: clamp(26px, 3.5vw, 40px);
  background: var(--card);
  box-shadow: var(--lift-lg);
  transform: rotate(.6deg);
}
.program-head { display: flex; align-items: center; gap: 18px; }
.program-icon {
  display: grid; place-items: center; flex: none;
  width: 62px; height: 62px;
  border: 2.5px solid var(--red); border-radius: 50%;
  color: var(--red);
  transform: rotate(-10deg);
  -webkit-mask: var(--stamp-mask);
  mask: var(--stamp-mask);
}
.program-icon svg { width: 32px; height: 32px; }
.program-kicker {
  font-family: var(--font-type);
  font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--red-dark);
}
.program-title { margin-top: 2px; font-size: 1.75rem; }

.program-facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 26px;
  border-top: 2px solid rgb(210 67 47 / .55);
}
.program-facts li { display: flex; flex-direction: column; gap: 6px; padding: 16px 14px 4px; }
.program-facts li:first-child { padding-left: 0; }
.program-facts li + li { border-left: 1.5px dashed var(--line); }
.fact-num {
  font-family: var(--font-hand);
  font-size: clamp(2.4rem, 3.6vw, 3rem); font-weight: 700; line-height: .9;
  color: var(--red);
  white-space: nowrap;
}
.fact-label { font-size: 1rem; line-height: 1.4; color: var(--ink-2); }
.fact-label strong { color: var(--ink); }
.fact-label a { color: var(--pen); text-underline-offset: 3px; }

.program-cta { margin-top: 24px; padding-top: 22px; border-top: 1.5px dashed var(--line); }
.program-question { font-weight: 700; }
.program-cta .btn { margin-top: 16px; }
.program-mail { margin-top: 12px; font-size: 1rem; color: var(--ink-2); }
.program-mail a { color: var(--pen); font-weight: 700; text-underline-offset: 3px; }

/* ---------- Anciens patients (polaroïds) ---------- */
.polaroids {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 3vw, 40px) clamp(20px, 2.6vw, 34px);
  padding-top: 14px;
}
.polaroid {
  position: relative;
  padding: 12px 12px 18px;
  background: #fff;
  box-shadow: var(--lift-lg);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1.2), box-shadow .35s;
}
.polaroid:hover { transform: rotate(0deg) translateY(-6px) scale(1.03); z-index: 2; }
.polaroid::before { --tape-w: 92px; --tape-r: var(--tape, -3deg); top: -13px; }
.polaroid-empty {
  background: transparent;
  box-shadow: none;
  outline: 2px dashed rgb(32 36 46 / .22); outline-offset: -2px;
}
.polaroid-empty::before { display: none; }
.polaroid-empty:hover { transform: rotate(var(--tilt, 0deg)); }
.polaroid-empty .polaroid-photo { place-items: center; background: rgb(255 255 255 / .4); }
.polaroid-empty .polaroid-photo svg { width: 34%; height: auto; margin: 0; color: rgb(32 36 46 / .16); }
.polaroid-empty .polaroid-name { margin-top: 14px; text-align: center; color: var(--ink-2); }
.polaroid-photo {
  display: grid; place-items: end center;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg, var(--paper-2));
}
.polaroid-photo svg { width: 88%; height: auto; margin-bottom: -1px; }
.polaroid-photo img { width: 100%; height: 100%; object-fit: cover; }

.polaroid-caption {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 12px;
}
.polaroid-name {
  font-family: var(--font-hand);
  font-size: 2rem; font-weight: 700; line-height: 1;
}
.polaroid-story { margin-top: 6px; font-size: 1rem; line-height: 1.45; color: var(--ink-2); }

.tag {
  flex: none;
  padding: .25em .6em;
  font-family: var(--font-type);
  font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap;
}
.tag-steril { background: var(--pen-soft); color: var(--pen); }
.tag-care { background: var(--red-soft); color: var(--red-dark); }

/* Patient à la une : deux tirages (pendant les soins / aujourd'hui) et sa fiche */
.patient {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.patient-photos { display: grid; grid-template-columns: repeat(12, 1fr); align-items: start; padding-top: 10px; }
.patient-photos .polaroid { grid-row: 1; margin: 0; }
.patient-photos .polaroid-soins { grid-column: 1 / 8; z-index: 1; }
.patient-photos .polaroid-soins .polaroid-name { text-align: left; padding-left: 6px; }
.patient-photos .polaroid:not(.polaroid-soins) { grid-column: 6 / 13; margin-top: 96px; z-index: 2; }
.patient-photos .polaroid-name { display: block; margin-top: 12px; text-align: center; }

.patient-fiche {
  position: relative;
  padding: clamp(26px, 3.5vw, 38px);
  background: var(--card);
  box-shadow: var(--lift-lg);
  transform: rotate(.8deg);
}
.patient-fiche .tile-kicker { display: block; padding-bottom: 10px; border-bottom: 2px solid rgb(210 67 47 / .55); }
.patient-fiche h3 { margin-top: 16px; font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 800; }
.patient-infos { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 14px 0 0; }
.patient-infos dt {
  font-family: var(--font-type);
  font-size: .78rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-2);
}
.patient-infos dd {
  margin: 2px 0 0;
  font-family: var(--font-hand);
  font-size: 1.75rem; font-weight: 700; line-height: 1.05;
  color: var(--pen);
}
.patient-fiche > p:not(.tile-kicker):not(.patient-foyer) { margin-top: 18px; color: var(--ink-2); }
.patient-foyer {
  margin-top: 20px;
  font-family: var(--font-hand);
  font-size: 2.2rem; font-weight: 700; line-height: 1;
  color: var(--red);
  transform: rotate(-2deg);
  transform-origin: left center;
}
.patient-fiche .btn { margin-top: 16px; }

.polaroids-vides {
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin: clamp(56px, 7vw, 88px) auto 0;
}

/* Album d'un patient : une rangée de tirages sous sa fiche (carrousel sur mobile, comme .polaroids) */
.album { margin-top: clamp(56px, 7vw, 88px); }
.album-titre {
  font-family: var(--font-hand);
  font-size: clamp(2.1rem, 3.4vw, 2.6rem); font-weight: 700; line-height: 1;
  color: var(--pen);
  transform: rotate(-1.5deg);
  transform-origin: left center;
}
.album .polaroid-name { display: block; margin-top: 12px; font-size: 1.6rem; text-align: center; }

/* Photos qui s'agrandissent au clic (data-agrandir) + visionneuse créée par main.js */
a.polaroid-photo { cursor: zoom-in; }
.visionneuse {
  width: fit-content; max-width: min(94vw, 780px); max-height: 94vh;
  padding: 12px 12px 14px;
  border: 0;
  background: #fff;
  box-shadow: var(--lift-lg);
  overflow: auto;
}
.visionneuse::backdrop { background: rgb(32 36 46 / .78); }
.visionneuse img {
  display: block;
  max-width: 100%; max-height: calc(94vh - 118px);
  width: auto; height: auto;
  margin: 0 auto;
}
.visionneuse-legende {
  margin-top: 10px;
  font-family: var(--font-hand);
  font-size: 1.7rem; font-weight: 700; line-height: 1;
  text-align: center;
}
.visionneuse-barre { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* ---------- Partenaires : cartes de visite ---------- */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 38px); }
.partners > li { display: flex; }
.partners > li:nth-child(1) .partner { --r: -1.2deg; }
.partners > li:nth-child(2) .partner { --r: .9deg; --tape-r: 36deg; }
.partners > li:nth-child(2) .partner::before { left: calc(100% - 10px); }
.partners > li:nth-child(3) .partner { --r: -.4deg; }
.partner {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 100%;
  padding: 30px 20px 26px;
  background: var(--card);
  box-shadow: var(--lift);
  color: var(--ink);
  text-align: center; text-decoration: none;
  transform: rotate(var(--r, 0deg));
  transition: transform .25s, box-shadow .25s;
  --tape-r: -38deg;
}
a.partner:hover { transform: rotate(0deg) translateY(-3px); box-shadow: var(--lift-lg); }
.partner::before { --tape-w: 76px; left: 10px; top: 4px; }
.partner-logo {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 190px; height: 120px; margin-bottom: 14px;
}
.partner-logo img {
  width: auto; height: auto; max-width: 100%; max-height: 100%;
  mix-blend-mode: multiply;
}
.partner-name { font-size: 1.4rem; font-weight: 800; line-height: 1.2; }
.partner-info { display: flex; flex-direction: column; gap: 4px; }
.partner-meta { font-family: var(--font-type); font-size: .8rem; color: var(--ink-2); }

.sticker-cta {
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(36px, 4vw, 52px);
  padding: clamp(26px, 4vw, 42px) clamp(24px, 5vw, 56px);
  background: var(--grain), var(--kraft);
  box-shadow: var(--lift);
}
.sticker {
  width: clamp(150px, 15vw, 184px);
  transform: rotate(-10deg);
  filter: drop-shadow(0 2px 2px rgb(40 30 20 / .25)) drop-shadow(0 8px 10px rgb(40 30 20 / .18));
  transition: transform .4s cubic-bezier(.2, .8, .2, 1.3);
}
.sticker-cta:hover .sticker { transform: rotate(-3deg) scale(1.04); }
.sticker-text {
  fill: #FBF8F1;
  font-family: var(--font-type);
  font-size: 14px; font-weight: 700; letter-spacing: .06em;
}
.sticker-name {
  fill: #FBF8F1;
  font-family: var(--font-body);
  font-size: 19px; font-weight: 900; letter-spacing: .04em;
}
.sticker-copy h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.sticker-copy p { max-width: 56ch; margin-top: 10px; }
.sticker-copy .btn { margin-top: 20px; }

/* ---------- Bénévoles : tirages photo ---------- */
.team {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 48px 28px;
  max-width: 980px; margin-inline: auto;
}
.member { display: flex; flex-direction: column; align-items: center; text-align: center; }
.member > a {
  display: flex; flex-direction: column; align-items: center;
  color: inherit; text-decoration: none;
}
.avatar {
  --r: -2deg;
  position: relative;
  width: min(100%, 176px);
  margin-bottom: 14px;
  padding: 9px 9px 26px;
  background: #fff;
  box-shadow: var(--lift);
  transform: rotate(var(--r));
}
.team > li:nth-child(2) .avatar { --r: 1.8deg; --tape-r: 3deg; }
.team > li:nth-child(3) .avatar { --r: -1deg; --tape-r: -5deg; }
.avatar::before { --tape-w: 70px; top: -12px; }
.avatar > span { display: block; aspect-ratio: 1; overflow: hidden; background: var(--paper-2); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.member-name { font-family: var(--font-hand); font-size: 2rem; font-weight: 700; line-height: 1; }
.member-role {
  margin-top: 6px;
  font-family: var(--font-type);
  font-size: .78rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-2);
}

.member-you .avatar {
  --r: 2.4deg;
  background: transparent;
  box-shadow: none;
  outline: 2px dashed rgb(32 36 46 / .25); outline-offset: -2px;
  transition: outline-color .2s;
}
.member-you .avatar::before { display: none; }
.member-you .avatar > span { display: grid; place-items: center; background: transparent; color: var(--red); }
.member-you .avatar > span svg { width: 40px; height: 40px; }
.member-you a:hover .avatar { outline-color: var(--red); }
.member-you .member-name { color: var(--red); }

/* ---------- Liste de courses ---------- */
.courses {
  display: grid; grid-template-columns: .95fr 1.05fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.courses-intro s { text-decoration-thickness: 2px; text-decoration-color: var(--red); }

.drop-card {
  position: relative;
  margin-top: 40px; padding: 30px 28px 28px;
  background: var(--card);
  box-shadow: var(--lift);
  transform: rotate(-.6deg);
}
.drop-card h3 { font-size: 1.5rem; }
.drop-list { display: grid; gap: 14px; margin: 18px 0 24px; }
.drop-list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; color: var(--ink-2); }
.drop-list strong { color: var(--ink); }
.drop-list a { font-weight: 700; color: var(--pen); text-underline-offset: 3px; }
.drop-ico { display: grid; place-items: center; flex: none; width: 28px; height: 28px; margin-top: 1px; color: var(--pen); }
.drop-ico svg { width: 24px; height: 24px; }

.notepad {
  --ln: 38px;
  --margin: 64px;
  position: relative;
  padding: var(--ln) 28px var(--ln) calc(var(--margin) + 20px);
  background-color: #FFFEFA;
  background-image:
    linear-gradient(90deg, transparent calc(var(--margin) - 1px), rgb(210 67 47 / .5) calc(var(--margin) - 1px), rgb(210 67 47 / .5) calc(var(--margin) + 1px), transparent calc(var(--margin) + 1px)),
    repeating-linear-gradient(180deg, transparent 0 calc(var(--ln) - 1.5px), rgb(35 64 142 / .18) calc(var(--ln) - 1.5px) var(--ln));
  background-position: 0 0, 0 6px;
  box-shadow: var(--lift-lg);
  rotate: .8deg;
  font-family: var(--font-hand);
  color: var(--pen);
}
.notepad::before { --tape-w: 130px; --tape-r: -2deg; }

.notepad-title {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 12px;
  font-size: 2.3rem; font-weight: 700; line-height: var(--ln);
  color: var(--red);
}
.notepad-date { font-size: 1.3rem; font-weight: 500; color: var(--ink-2); }

.notepad-group h3 {
  margin-top: var(--ln);
  font-family: var(--font-hand);
  font-size: 1.8rem; font-weight: 700; line-height: var(--ln);
  letter-spacing: 0;
  color: var(--red-dark);
  text-decoration: underline wavy rgb(210 67 47 / .45) 1.5px;
  text-underline-offset: 6px;
}

.checklist li {
  position: relative;
  padding-left: 32px;
  font-size: 1.65rem; font-weight: 500; line-height: var(--ln);
}
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: calc((var(--ln) - 17px) / 2);
  width: 17px; height: 17px;
  border: 2px solid currentColor;
  border-radius: 3px 5px 4px 6px;
  transform: rotate(-4deg);
  opacity: .8;
}
.checklist .is-urgent > span:first-child {
  padding: 0 .25em;
  border-radius: .3em .7em .4em .8em;
  background: linear-gradient(100deg, transparent 1%, rgb(255 224 102 / .85) 3%, rgb(255 224 102 / .7) 95%, transparent 99%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.checklist .is-done > span:first-child {
  opacity: .55;
  text-decoration: line-through 2px var(--red);
}
.checklist .is-done::before {
  background: no-repeat center / 120% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 13l5 5L21 4' fill='none' stroke='%23CC402C' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  opacity: 1;
}
.notepad-link {
  display: inline-flex; align-items: center; gap: .2em;
  margin-left: 8px;
  font-size: 1.35rem; font-weight: 600;
  color: var(--red-dark);
  text-underline-offset: 3px;
  white-space: nowrap;
}
.notepad-link::after {
  content: "";
  width: 1.2em; height: .75em;
  background: var(--arrow-pen) center / contain no-repeat;
}
.notepad-link:hover { color: var(--red); }
.notepad-note {
  position: relative;
  margin-top: var(--ln); padding-left: 1.5em;
  font-size: 1.6rem; font-weight: 700; line-height: var(--ln);
  color: var(--red);
  transform: rotate(-1.5deg);
  transform-origin: left center;
}
.notepad-note::before {
  content: "";
  position: absolute; left: -2px; top: -14px;
  width: 30px; height: 36px;
  background: var(--arrow-up-red) center / contain no-repeat;
}

/* ---------- Pied de page : le carton du carnet ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: clamp(48px, 7vw, 80px);
  background: var(--grain), var(--kraft);
  color: var(--ink);
}
.site-footer::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 100%;
  height: 14px;
  background: var(--torn-kraft) left bottom / 240px 14px repeat-x;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.2fr;
  gap: 40px;
}
.footer-brand p { max-width: 34ch; margin-top: 18px; color: rgb(32 36 46 / .85); }
.footer-brand .brand-logo { height: 100px; }
.footer-brand strong { color: var(--ink); }
.footer-small { font-family: var(--font-type); font-size: .82rem; }

.footer-title {
  margin-bottom: 16px;
  font-family: var(--font-type);
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink);
}
.footer-links { display: grid; gap: 8px; }
.footer-links a, .footer-contact a { color: var(--ink); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

.footer-contact { display: grid; gap: 10px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact svg { width: 20px; height: 20px; flex: none; color: var(--red-dark); }

/* Icônes réseaux sociaux : à remettre dans le pied de page quand les comptes existeront */
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--ink);
  color: var(--ink);
  transition: background-color .2s;
}
.socials a:hover { background: rgb(255 255 255 / .35); }
.socials svg { width: 20px; height: 20px; }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: clamp(36px, 5vw, 56px); padding-block: 22px;
  border-top: 1.5px dashed rgb(32 36 46 / .3);
  font-family: var(--font-type);
  font-size: .82rem; color: rgb(32 36 46 / .85);
}
.footer-bottom a { color: inherit; }
.footer-heart { display: inline-block; width: 1em; height: 1em; vertical-align: -.15em; color: var(--red-dark); }

/* =========================================================
   Pages intérieures
   ========================================================= */
.page-hero {
  position: relative;
  padding-block: clamp(28px, 4vw, 52px) clamp(28px, 4vw, 44px);
}
.page-hero-grid {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 32px;
}
.page-hero h1 { font-size: clamp(2.7rem, 5.6vw, 4.6rem); line-height: 1; letter-spacing: -.015em; }
.page-hero .lead { max-width: 46ch; margin-top: 20px; font-size: clamp(1.15rem, 1.7vw, 1.35rem); color: var(--ink-2); }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 20px;
  font-family: var(--font-type);
  font-size: .82rem; color: var(--ink-2);
}
.breadcrumb a { color: var(--ink-2); text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--pen); }
.breadcrumb [aria-current] { color: var(--ink); }

/* Portrait dessiné : un autocollant rond */
.page-hero-art { position: relative; margin-right: clamp(0px, 3vw, 40px); }
.portrait {
  display: grid; place-items: end center;
  width: clamp(170px, 19vw, 230px); aspect-ratio: 1;
  overflow: hidden;
  border: 7px solid #fff; border-radius: 50%;
  background: var(--portrait-bg, var(--sun-soft));
  box-shadow: var(--lift-lg);
  transform: rotate(-4deg);
}
.portrait svg { width: 86%; height: auto; }
.portrait-badge {
  position: absolute; left: -14px; bottom: 6px;
  display: grid; place-items: center;
  width: 68px; height: 68px;
  border: 3px solid var(--red); border-radius: 50%;
  background: rgb(255 254 251 / .92);
  color: var(--red);
  transform: rotate(-12deg);
  -webkit-mask: var(--stamp-mask);
  mask: var(--stamp-mask);
}
.portrait-badge svg { width: 30px; height: 30px; }

.floating-hearts { position: absolute; display: flex; gap: 8px; color: var(--red); }
.floating-hearts svg { width: 18px; height: 18px; transform: rotate(-8deg); }
.floating-hearts svg:nth-child(2) { width: 26px; height: 26px; margin-top: -14px; transform: rotate(8deg); }
.floating-hearts svg:nth-child(3) { width: 14px; height: 14px; margin-top: 10px; }
.page-hero-art .floating-hearts { left: -26px; top: 0; }

/* ---------- Page don ---------- */
.don-section { padding-top: clamp(8px, 2vw, 24px); }
.don-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.don-widget {
  position: relative;
  padding: clamp(8px, 1vw, 12px);
  background: #fff;
  box-shadow: var(--lift-lg);
}
.don-widget::before { --tape-w: 140px; }
.don-widget iframe { display: block; width: 100%; height: 750px; border: 0; }
.don-secure {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 16px; padding-inline: 8px;
  font-size: .98rem; line-height: 1.45; color: var(--ink-2);
}
.don-secure svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--green); }

.don-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.don-aside h2 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); }
.don-uses { display: grid; gap: 16px; margin: 22px 0 32px; }
.don-uses li { display: flex; align-items: flex-start; gap: 14px; line-height: 1.5; color: var(--ink-2); }
.don-uses strong { display: block; font-size: 1.1rem; color: var(--ink); }
.don-use-ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; color: var(--red); }
.don-use-ico svg { width: 30px; height: 30px; }
.don-uses li:nth-child(2) .don-use-ico { color: var(--pen); }
.don-uses li:nth-child(3) .don-use-ico { color: var(--green); }

.don-note {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px;
  background: var(--card);
  box-shadow: var(--lift);
  transform: rotate(-.5deg);
}
.don-note + .don-note { margin-top: 18px; transform: rotate(.6deg); }
.don-note-sun { background: var(--postit); }
.don-note h3 { font-size: 1.25rem; }
.don-note p { margin-top: 4px; font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.don-note a { font-weight: 700; color: var(--pen); text-underline-offset: 3px; }
.mini-sticker {
  display: grid; place-items: center; flex: none;
  width: 50px; height: 50px;
  border: 3px solid #fff; border-radius: 50%;
  background: var(--red); color: #FBF8F1;
  --cat-eyes: var(--red);
  box-shadow: 0 2px 3px rgb(40 30 20 / .3);
  transform: rotate(-10deg);
}
.mini-sticker svg { width: 26px; height: 26px; }
.mini-sticker-sea { background: var(--pen); }

/* Réduction d'impôt : un ticket de caisse */
.tax-box {
  position: relative;
  margin-bottom: 40px; padding: 22px 24px 18px;
  background: var(--card);
  font-family: var(--font-type);
  filter: drop-shadow(0 1px 1px rgb(40 30 20 / .14)) drop-shadow(0 8px 10px rgb(40 30 20 / .14));
  transform: rotate(-.8deg);
}
.tax-box::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 100%;
  height: 8px;
  background:
    linear-gradient(135deg, var(--card) 4px, transparent 0) 0 0 / 8px 8px repeat-x,
    linear-gradient(-135deg, var(--card) 4px, transparent 0) 0 0 / 8px 8px repeat-x;
}
.tax-kicker {
  padding-bottom: 10px;
  border-bottom: 1.5px dashed rgb(32 36 46 / .35);
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  text-align: center;
}
.tax-main { margin-top: 12px; font-size: .95rem; line-height: 1.4; text-align: center; }
.tax-main strong { display: block; font-size: 2.3rem; font-weight: 700; line-height: 1; color: var(--red-dark); }
.tax-caption { margin-top: 14px; font-size: .85rem; color: var(--ink-2); }
.tax-examples { display: grid; gap: 6px; margin-top: 8px; }
.tax-examples li { display: flex; align-items: baseline; gap: 6px; font-size: .92rem; }
.tax-leader { flex: 1; min-width: 12px; border-bottom: 2px dotted rgb(32 36 46 / .4); transform: translateY(-4px); }
.tax-examples strong { font-size: 1rem; }
.tax-note {
  margin-top: 14px; padding-top: 10px;
  border-top: 1.5px dashed rgb(32 36 46 / .35);
  font-size: .76rem; line-height: 1.5; color: var(--ink-2);
}

/* ---------- Pages Soins & Stérilisation ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.steps li {
  --r: -.8deg;
  position: relative;
  padding: 26px 24px 24px;
  background: var(--card);
  box-shadow: var(--lift);
  transform: rotate(var(--r));
}
.steps li:nth-child(2) { --r: .7deg; --tape-r: 3deg; }
.steps li:nth-child(3) { --r: -.4deg; --tape-r: -1deg; }
.steps li:nth-child(4) { --r: .9deg; --tape-r: 2deg; }
.steps li::before { --tape-w: 76px; }
.steps li:not(:last-child)::after {
  content: "";
  position: absolute; top: 42px; right: calc(-1 * clamp(24px, 3vw, 40px) + 2px); z-index: 3;
  width: clamp(24px, 3vw, 40px); height: 24px;
  background: var(--arrow-pen) center / contain no-repeat;
}
.step-num {
  position: relative;
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 14px;
  font-family: var(--font-hand);
  font-size: 2rem; font-weight: 700; line-height: 1;
  color: var(--red);
}
.step-num::before {
  content: "";
  position: absolute; inset: 0;
  border: 2.5px solid var(--red); border-radius: 50%;
  filter: url(#rough-fin);
  transform: rotate(-8deg);
}
.steps h3 { font-size: 1.4rem; }
.steps p { margin-top: 8px; font-size: 1.05rem; line-height: 1.5; color: var(--ink-2); }
.steps a { color: var(--pen); font-weight: 700; text-underline-offset: 3px; }
.steps-note { margin-top: 28px; color: var(--ink-2); }
.steps-note a { font-weight: 700; color: var(--pen); text-underline-offset: 3px; }

.clinic {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 26px; }
.chips li {
  padding: .35em .8em;
  background: var(--card);
  box-shadow: 0 1px 1px rgb(40 30 20 / .14), 0 4px 8px -6px rgb(40 30 20 / .3);
  font-family: var(--font-type);
  font-size: .85rem;
  transform: rotate(-1.2deg);
}
.chips li:nth-child(even) { transform: rotate(1deg); }
.chips li:nth-child(3n) { transform: rotate(-.3deg); }
.info-card {
  position: relative;
  padding: clamp(26px, 3.5vw, 36px);
  background: var(--card);
  box-shadow: var(--lift-lg);
  transform: rotate(.7deg);
}
.info-list { display: grid; gap: 18px; }
.info-list li { display: flex; align-items: flex-start; gap: 14px; line-height: 1.5; color: var(--ink-2); }
.info-list svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--red); }
.info-list strong { display: block; font-family: var(--font-type); font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.info-list a { font-weight: 700; color: var(--pen); text-underline-offset: 3px; }
.info-note { margin-top: 22px; padding-top: 18px; border-top: 1.5px dashed var(--line); font-size: 1rem; color: var(--ink-2); }
.info-note strong { color: var(--ink); }

.program-facts-stack {
  position: relative;
  grid-template-columns: 1fr;
  margin-top: 0; padding: 10px 26px;
  border-top: 0;
  background: var(--card);
  box-shadow: var(--lift-lg);
  transform: rotate(-.6deg);
}
.program-facts-stack li { flex-direction: row; align-items: center; gap: 20px; padding: 18px 0; }
.program-facts-stack li + li { border-left: 0; border-top: 1.5px dashed var(--line); }
.program-facts-stack .fact-num { min-width: 116px; }

.faq {
  display: grid;
  max-width: 840px; margin-inline: auto;
  border-top: 1.5px dashed rgb(32 36 46 / .3);
}
.faq details { border-bottom: 1.5px dashed rgb(32 36 46 / .3); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px;
  list-style: none; cursor: pointer;
  font-size: 1.3rem; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-hand);
  font-size: 2.4rem; font-weight: 700; line-height: .6;
  color: var(--red);
  transition: transform .25s;
}
.faq summary:hover { color: var(--pen); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 22px; color: var(--ink-2); }
.faq details a { font-weight: 700; color: var(--pen); text-underline-offset: 3px; }

/* Bandeau d'appel : une feuille rouge découpée */
.cta-band {
  position: relative; isolation: isolate;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px 32px;
  padding: clamp(28px, 4vw, 48px) clamp(24px, 5vw, 56px);
  color: #fff;
  transform: rotate(-.5deg);
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--red);
  filter: url(#rough);
}
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta-band p { margin-top: 6px; font-size: 1.15rem; color: #FFEDE7; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Pages légales ---------- */
.legal-section { padding-top: clamp(8px, 2vw, 24px); }
.legal > * { max-width: 760px; }
.legal h2 { margin-top: 44px; font-size: clamp(1.5rem, 2.4vw, 1.85rem); }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { margin-top: 12px; line-height: 1.65; color: var(--ink-2); }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal strong { color: var(--ink); }
.legal a { font-weight: 700; color: var(--pen); text-underline-offset: 3px; }
.legal-date { margin-top: 40px; font-family: var(--font-type); font-size: .85rem; }

/* ---------- Page « Signaler un chat » ---------- */
.report-section { padding-top: clamp(8px, 2vw, 24px); }
.report-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
/* La carte : un plan imprimé, scotché (pas de rotation : Leaflet ne la gère pas) */
.map-card { position: sticky; top: calc(var(--header-h) + 28px); }
.map-card::before, .map-card::after {
  content: "";
  position: absolute; top: -12px; z-index: 5;
  width: 110px; height: 30px;
  background: var(--tape);
  clip-path: polygon(2% 8%, 98% 0, 100% 52%, 97% 100%, 3% 94%, 0 48%);
}
.map-card::before { left: -30px; transform: rotate(-32deg); }
.map-card::after { right: -30px; transform: rotate(30deg); }
.map {
  position: relative; z-index: 0; isolation: isolate;
  height: min(70vh, 620px);
  overflow: hidden;
  border: 10px solid #fff;
  background: #E8E2D6;
  box-shadow: var(--lift-lg);
  font: inherit;
}
/* évite les fines lignes entre les tuiles : tuiles qui se chevauchent d'un demi-pixel, sans le mélange « plus-lighter » de Leaflet 1.9 (qui éclaircirait le chevauchement) */
.map .leaflet-tile { width: 256.5px !important; height: 256.5px !important; mix-blend-mode: normal !important; }
.map .leaflet-popup-content-wrapper { border-radius: 2px; box-shadow: var(--lift); }
.map .leaflet-popup-content { margin: 14px 18px; font-size: 1rem; line-height: 1.45; }
.map .leaflet-popup-content strong { font-size: 1.08rem; }
.map .leaflet-control-zoom a { border-radius: 0 !important; font-family: var(--font-body); }
.map .zone-connue { fill: url(#hachures); fill-opacity: 1; }

.map-legend {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 16px;
  font-family: var(--font-type);
  font-size: .8rem; color: var(--ink-2);
}
.map-legend li { display: flex; align-items: center; gap: 8px; }
.legend-zone {
  flex: none;
  width: 18px; height: 18px;
  border: 2px solid var(--red); border-radius: 50%;
  background: repeating-linear-gradient(45deg, rgb(210 67 47 / .55) 0 2px, transparent 2px 5px);
}
.legend-commune { flex: none; width: 24px; border-top: 2px dashed var(--pen); }
.legend-pin {
  flex: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #F29A86, var(--red) 52%, var(--red-dark));
  box-shadow: 0 2px 2px rgb(40 30 20 / .3);
}

/* Point du signalement : une punaise */
.map-pin svg { width: 40px; height: 52px; overflow: visible; filter: drop-shadow(0 3px 2px rgb(40 30 20 / .35)); }

.report {
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  background: var(--card);
  box-shadow: var(--lift-lg);
}
.report::before { --tape-w: 120px; }
.report fieldset { min-width: 0; margin: 0 0 28px; padding: 0; border: 0; }
.report legend { margin-bottom: 12px; padding: 0; font-size: 1.4rem; font-weight: 800; }
.choice {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 10px; padding: 14px 16px;
  border: 1.5px dashed rgb(32 36 46 / .3);
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.choice:hover { border-color: var(--pen); }
.choice:has(input:checked) { border-style: solid; border-color: var(--pen); background: var(--pen-soft); }
.choice input { flex: none; width: 19px; height: 19px; margin-top: 4px; accent-color: var(--pen); }
.choice strong { display: block; font-size: 1.1rem; }
.choice small { display: block; font-size: .98rem; color: var(--ink-2); }
.report-urgent { padding: 10px 14px; background: var(--postit); font-size: 1.05rem; font-weight: 700; transform: rotate(-.6deg); }
.report-urgent a { color: var(--red-dark); }
.report-where {
  margin-bottom: 12px; padding: 10px 14px;
  background: var(--pen-soft);
  font-size: 1rem; color: var(--pen);
}
.report-where.is-ok { background: var(--green-soft); font-weight: 700; color: var(--green); }
.field-label { display: block; margin: 18px 0 6px; font-family: var(--font-type); font-size: .85rem; }
.field {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgb(32 36 46 / .28); border-radius: 2px;
  background: #fff;
  font: inherit; font-size: 1.05rem; color: var(--ink);
}
.field:focus { border-color: var(--pen); }
textarea.field { min-height: 110px; resize: vertical; }
.report-error {
  margin-bottom: 14px; padding: 10px 14px;
  background: var(--red-soft);
  font-weight: 700; color: var(--red-dark);
}
.report-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.report-actions .btn { flex: 1 1 180px; }
.report-hint { margin-top: 14px; font-size: 1rem; color: var(--ink-2); }
.report-fallback { margin-top: 10px; font-size: 1rem; color: var(--ink-2); }
.report-fallback summary { cursor: pointer; font-weight: 700; color: var(--pen); }
.report-fallback p { margin: 8px 0 12px; }
.report-fallback a, .report-privacy a { color: var(--pen); text-underline-offset: 3px; }
.report-privacy { margin-top: 18px; padding-top: 14px; border-top: 1.5px dashed var(--line); font-size: .92rem; color: var(--ink-2); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1220px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column; align-items: stretch;
    padding: 8px var(--gutter) 22px;
    background: var(--grain), var(--paper);
    border-bottom: 1.5px dashed rgb(35 64 142 / .3);
    box-shadow: 0 20px 30px -22px rgb(40 30 20 / .45);
  }
  .is-open .main-nav { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a {
    padding: 14px 4px;
    border-bottom: 1.5px dashed var(--line);
    background-position: 0 center;
    font-size: 1rem; color: var(--ink);
  }
  .nav-list a:hover, .nav-list a[aria-current="page"] { background-size: 60% 100%; }
}

@media (max-width: 1024px) {
  .tiles-need { grid-template-columns: 1fr; max-width: 640px; }
  .tiles-give { grid-template-columns: 1fr 1fr; }
  .tile-foyer { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .polaroids {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(230px, 40%);
    margin-inline: calc(-1 * var(--gutter));
    padding: 22px var(--gutter) 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .polaroids::-webkit-scrollbar { display: none; }
  .polaroid { scroll-snap-align: start; }
  .polaroid-empty ~ .polaroid-empty { display: none; }
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { width: min(100%, 520px); margin-top: 12px; }
  .courses, .mission, .don-grid, .clinic, .report-grid, .patient { grid-template-columns: 1fr; }
  .patient-photos { width: min(100%, 520px); margin-inline: auto; }
  .map-card { position: relative; top: auto; }
  .map { height: 60vh; min-height: 320px; }
  .steps, .steps-4 { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  .don-aside { position: static; }
  .notepad { rotate: 0deg; }
  .partners { grid-template-columns: 1fr; gap: 22px; }
  .partner { flex-direction: row; gap: 18px; padding: 16px 20px; text-align: left; }
  .partner-logo { width: 96px; height: 76px; margin: 0; flex: none; }
  .team { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
}

@media (max-width: 600px) {
  :root { --header-h: 70px; }
  body { font-size: 1.125rem; }
  .brand-logo { height: 50px; }
  .brand-tag { font-size: 1.15rem; }
  .header-cta .btn { padding: .6em .95em; font-size: .98rem; }

  .label-strip { font-size: .72rem; letter-spacing: .04em; }
  .hero h1 { margin-top: 22px; }
  .hero-ctas { gap: 12px 22px; }
  .postit { margin-top: 32px; }
  .print { padding: 10px 10px 12px; transform: rotate(1.4deg); }
  .print-tape { width: 90px; height: 28px; }
  .print-tape-l { left: -22px; }
  .print-tape-r { right: -18px; }
  .print-cats { bottom: 12px; }
  .spin-badge { right: -6px; bottom: -44px; width: 112px; height: 112px; }
  .spin-badge .spin-heart { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
  .hand-note { margin-left: 56px; font-size: 1.7rem; }
  .photo-credit { margin-left: 0; }

  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-art { display: none; }
  .steps, .steps-4 { grid-template-columns: 1fr; }
  .program-facts-stack .fact-num { min-width: 92px; }
  .faq summary { font-size: 1.15rem; }

  .tiles-need, .tiles-give { grid-template-columns: 1fr; }
  .tile { --r: -.6deg; padding: 18px 20px 20px; }
  .tiles > :nth-child(2) { --r: .5deg; }
  .tiles > :nth-child(3) { --r: -.3deg; }
  .tile-title { font-size: 1.6rem; }
  .tile-foyer { padding: 0; }
  .tile-foyer-sheet { flex-direction: column; align-items: stretch; padding: 24px 20px 0; }
  .tile-foyer-cat { align-self: center; width: 150px; }
  .tabs span { height: 108px; font-size: .56rem; }
  .tabs span:nth-child(n+7) { display: none; }

  .polaroids { grid-auto-columns: 72%; }
  .patient-photos { grid-template-columns: 1fr 1fr; gap: 14px; }
  .patient-photos .polaroid { padding: 8px 8px 12px; }
  .patient-photos .polaroid-soins { grid-column: 1; }
  .patient-photos .polaroid:not(.polaroid-soins) { grid-column: 2; margin-top: 44px; }
  .patient-photos .polaroid-name { font-size: 1.4rem; }
  .patient-photos .polaroid-soins .polaroid-name { text-align: center; padding-left: 0; }
  .patient-infos { gap: 8px 24px; }

  .partner-name { font-size: 1.2rem; }
  .partners > li:nth-child(2) .partner::before { left: calc(100% - 30px); }
  .map-card::before { left: -8px; width: 80px; }
  .map-card::after { right: -8px; width: 80px; }
  .sticker-cta { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .sticker-copy p { margin-inline: auto; }

  .program-facts { grid-template-columns: 1fr; }
  .program-facts li { flex-direction: row; align-items: center; gap: 16px; padding: 12px 0; }
  .program-facts li + li { border-left: 0; border-top: 1.5px dashed var(--line); }
  .fact-num { min-width: 92px; font-size: 2.3rem; }
  .program-title { font-size: 1.5rem; }

  .avatar { width: min(100%, 150px); }
  .member-name { font-size: 1.8rem; }

  .notepad { --margin: 40px; padding-right: 18px; }
  .checklist li { font-size: 1.5rem; padding-left: 28px; }
  .notepad-title { font-size: 2.05rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
