/* ==========================================================================
   Sourire de bon cœur – feuille de style
   Couleurs reprises du logo : bleu ciel du site d'origine + sourires colorés
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gochi Hand";
  src: url("../fonts/gochi-hand.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Encre et fonds */
  --ink: #12324a;          /* bleu lac, couleur du texte */
  --ink-soft: #43607a;     /* texte secondaire (contraste 6.5:1) */
  --line: #6e889d;         /* bordures de champs (3.7:1) */
  --rule: rgba(18, 50, 74, 0.14);
  --paper: #ffffff;
  --sky: #4fade4;          /* bleu du site d'origine */
  --sky-deep: #1d6fa5;     /* liens, focus */
  --sky-pale: #e6f4fd;
  --sun-pale: #fff3c4;

  /* Les sourires du logo */
  --sun: #ffc61a;
  --mandarine: #ff8a1f;
  --tomate: #ee3a2b;
  --framboise: #f2558f;
  --feuille: #43ae52;
  --lagon: #1fa9c4;

  /* Actions */
  --coeur: #d42a1c;        /* bouton principal (5:1 avec le blanc) */
  --coeur-dark: #a91f14;
  --error: #b42318;
  --ok: #2e7d3a;

  /* Typographie */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --hand: "Gochi Hand", "Segoe Print", "Comic Sans MS", cursive;
  --step--1: 0.9375rem;
  --step-0: 1.125rem;
  --step-1: 1.4rem;
  --step-2: 1.875rem;
  --step-3: clamp(2.125rem, 1.6rem + 2.2vw, 3.25rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.4vw, 5rem);

  /* Mise en page */
  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --header-h: 4.5rem;
  --section-y: clamp(4.5rem, 9vw, 8rem);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  font-stretch: 100%;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 760;
  font-stretch: 110%;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--sky-deep);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

strong {
  font-weight: 700;
}

ul {
  margin: 0;
  padding: 0;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--sky-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

main:focus {
  outline: none;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nowrap {
  white-space: nowrap;
}

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

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: none;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Boutons (un seul système pour tout le site)
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  padding: 0.7rem 1.45rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  font-stretch: 104%;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.12s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-coeur {
  background: var(--coeur);
  color: #fff;
}

.btn-coeur:hover {
  background: var(--coeur-dark);
  color: #fff;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

.btn-ligne {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.btn-ligne:hover {
  background: var(--ink);
  color: #fff;
}

.btn-small {
  min-height: 2.65rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.98rem;
}

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.25s, box-shadow 0.25s;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 var(--rule);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-logo {
  width: 3.4rem;
  height: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  white-space: nowrap;
  font-size: 1.08rem;
  font-weight: 780;
  font-stretch: 108%;
}

.brand-sub {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-list {
  display: flex;
  gap: 1.6rem;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0.1rem 0.55rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 620;
  text-decoration: none;
}

/* Le soulignement en forme de sourire : apparaît au survol et sur la rubrique en cours */
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.1rem;
  width: 2.2rem;
  height: 0.6rem;
  background: var(--c, var(--coeur));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 12'%3E%3Cpath d='M3 3q19 13 38 0' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 12'%3E%3Cpath d='M3 3q19 13 38 0' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.nav-link:hover::after,
.nav-link[aria-current="true"]::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link:hover {
  color: var(--ink);
}

.nav-cta {
  min-height: 2.75rem;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
}

.menu-toggle {
  display: none;
}

/* --------------------------------------------------------------------------
   Accueil : le cœur de sourires
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 40rem;
  min-height: max(40rem, min(100svh, 62rem));
  padding-top: var(--header-h);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 85% 45%, #fff 0%, rgba(255, 255, 255, 0) 60%),
    var(--sky-pale);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  min-height: calc(max(40rem, min(100svh, 62rem)) - var(--header-h));
  padding-block: 2rem 4.5rem;
}

.hero-text {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
}

.hero-title {
  margin: 0 0 1.75rem;
  font-size: clamp(3.1rem, 0.6rem + 6vw, 6.9rem);
  font-weight: 860;
  font-stretch: 116%;
  line-height: 0.9;
  letter-spacing: -0.025em;
  text-wrap: initial;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

/* Le titre « sourit » : il s'étire en largeur comme un sourire qui s'élargit */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-line {
    animation: sourire 1.1s cubic-bezier(0.25, 1.4, 0.45, 1) both;
  }

  .js .hero-line:nth-child(2) {
    animation-delay: 0.12s;
  }

  .js .hero-line:nth-child(3) {
    animation-delay: 0.24s;
  }
}

@keyframes sourire {
  from {
    font-stretch: 64%;
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  to {
    font-stretch: 116%;
    opacity: 1;
  }
}

.hero-lead {
  max-width: 31ch;
  margin-bottom: 2rem;
  font-size: var(--step-1);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-visual {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  min-height: 26rem;
  margin-right: calc(-1 * var(--gutter));
}

.hero-canvas {
  position: absolute;
  /* la toile monte jusqu'en haut de la page : les sourires tombent du ciel */
  top: calc(-1 * (var(--header-h) + 2rem));
  bottom: -4.5rem;
  left: 0;
  width: 100%;
  height: calc(100% + var(--header-h) + 6.5rem);
  touch-action: pan-y;
}

.hero-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(80%, 30rem);
  transform: translate(-50%, -50%);
}

.js .hero-fallback {
  display: none;
}

.tickle {
  position: absolute;
  left: 2%;
  bottom: 8%;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  padding: 0.3rem 0.5rem;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--hand);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  transform: rotate(-6deg);
}

.tickle span {
  text-decoration: underline wavy transparent;
  text-underline-offset: 0.25em;
  transition: text-decoration-color 0.2s;
}

.tickle:hover span {
  text-decoration-color: var(--framboise);
}

.tickle-arrow {
  width: 4.2rem;
  height: auto;
  margin-bottom: 0.9rem;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.motion-toggle {
  position: absolute;
  right: var(--gutter);
  bottom: 1.25rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.95rem 0.4rem 0.75rem;
  border: 1px solid rgba(18, 50, 74, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.motion-toggle:hover {
  border-color: var(--ink);
}

.motion-toggle .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.motion-toggle .icon-play {
  display: none;
  fill: currentColor;
}

.motion-toggle[aria-pressed="true"] .icon-pause {
  display: none;
}

.motion-toggle[aria-pressed="true"] .icon-play {
  display: block;
}

/* --------------------------------------------------------------------------
   Sections : structure commune
   -------------------------------------------------------------------------- */

.section {
  padding-block: var(--section-y);
}

.section-title {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  font-size: var(--step-3);
}

/* Chaque rubrique a son sourire de couleur, repris dans le menu */
.section-title::before {
  content: "";
  flex: none;
  width: 0.78em;
  height: 0.78em;
  margin-top: 0.17em;
  border-radius: 50%;
  background: url("../img/visage.svg") center / 100% no-repeat, var(--c, var(--sun));
  box-shadow: inset 0 -0.06em 0 rgba(0, 0, 0, 0.12);
}

.lead {
  max-width: 34ch;
  margin-bottom: 3rem;
  font-size: var(--step-1);
  line-height: 1.42;
  font-weight: 450;
}

.prose {
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   Qui sommes-nous
   -------------------------------------------------------------------------- */

.qui-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.buts-title {
  margin-bottom: 0.75rem;
  font-size: var(--step-1);
}

.buts-list {
  list-style: none;
  border-top: 2px solid var(--ink);
}

.buts-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2.4rem;
  border-bottom: 1px solid var(--rule);
  font-weight: 560;
  line-height: 1.4;
}

.buts-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: url("../img/visage.svg") center / 100% no-repeat, var(--c);
}

.fiche {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}

.fiche-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 3rem;
  margin: 0;
}

.fiche-list dt {
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.fiche-list dd {
  margin: 0;
  font-weight: 650;
}

.file-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0;
  font-weight: 700;
}

.file-link .icon {
  width: 1.6rem;
  height: 1.6rem;
  padding: 0.2rem;
  border-radius: 50%;
  background: var(--sky-pale);
}

.file-meta {
  font-weight: 450;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Photos « instantanés » scotchés (les images d'origine sont petites :
   on les montre comme des tirages, à leur taille)
   -------------------------------------------------------------------------- */

.snap {
  position: relative;
  width: var(--w, 100%);
  max-width: 100%;
  padding: 0.6rem 0.6rem 0.75rem;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(18, 50, 74, 0.14),
    0 14px 28px -12px rgba(18, 50, 74, 0.35);
  transform: rotate(var(--tilt, 0deg));
}

.snap::before {
  content: "";
  position: absolute;
  top: -0.8rem;
  left: 50%;
  z-index: 1;
  width: 5.5rem;
  height: 1.6rem;
  background: var(--tape, var(--sun));
  opacity: 0.72;
  transform: translateX(-50%) rotate(-4deg);
  -webkit-mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent 0);
  mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent 0);
}

.snap img {
  width: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  background: var(--sky-pale);
}

.snap-title {
  margin: 0.55rem 0.15rem 0;
  font-family: var(--hand);
  font-size: 1.7rem;
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.05;
  letter-spacing: 0;
}

/* --------------------------------------------------------------------------
   Nos actions : l'album
   -------------------------------------------------------------------------- */

.section-actions {
  background:
    radial-gradient(circle at 1px 1px, rgba(18, 50, 74, 0.09) 1px, transparent 0) 0 0 / 22px 22px,
    var(--paper);
}

.album {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3.5rem 2rem;
  list-style: none;
  align-items: start;
}

.album-item:nth-child(even) {
  margin-top: 4rem;
}

.album-item .snap {
  margin-inline: auto;
}

.album-text {
  max-width: 24ch;
  margin: 1.25rem auto 0;
  padding-inline: 0.25rem;
  font-size: 1.03rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Nos projets
   -------------------------------------------------------------------------- */

.section-projets {
  background: var(--sky-pale);
}

.projet {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 2px solid var(--ink);
}

.projet:last-child {
  padding-bottom: 0;
}

.snap-small {
  width: 100%;
  max-width: 15rem;
}

.snap-small img {
  aspect-ratio: 1;
}

.projet-title {
  margin-bottom: 0.75rem;
  font-size: var(--step-2);
}

.projet-body > p {
  max-width: 60ch;
}

.besoins {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2.5rem;
  margin: 1.75rem 0 2rem;
}

.besoin-title {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
  font-stretch: 104%;
}

.besoin ul {
  list-style: none;
}

.besoin li {
  position: relative;
  padding: 0.3rem 0 0.3rem 2.1rem;
  line-height: 1.45;
}

.besoin li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
}

/* Ce qui manque : un sourire encore à colorier ; ce qui est acquis : un sourire plein */
.besoin-manque li::before {
  background: url("../img/visage-neutre.svg") center / 100% no-repeat, #fff;
  box-shadow: inset 0 0 0 2px var(--mandarine);
}

.besoin-acquis li::before {
  background: url("../img/visage.svg") center / 100% no-repeat, var(--feuille);
}

/* --------------------------------------------------------------------------
   Faire un don
   -------------------------------------------------------------------------- */

.section-don {
  background: var(--sun-pale);
}

.don-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.don-big {
  max-width: 13ch;
  margin: 0.5rem 0 1.5rem;
  font-size: var(--step-4);
  font-weight: 850;
  font-stretch: 114%;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.don-text {
  max-width: 48ch;
}

.don-photo {
  width: 100%;
  max-width: 21rem;
  justify-self: center;
}

.don-photo img {
  aspect-ratio: 324 / 248;
}

/* Le bloc de virement rappelle la QR-facture suisse : partie récépissé + ciseaux */
.recu {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  background: #fff;
  border-top: 2px dashed rgba(18, 50, 74, 0.45);
  box-shadow: 0 18px 40px -24px rgba(18, 50, 74, 0.45);
}

.recu-ciseaux {
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0.1rem;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  background: var(--sun-pale);
}

.recu-ciseaux-h {
  top: -0.8rem;
  left: 1.5rem;
}

.recu-ciseaux-v {
  top: 1.5rem;
  left: -0.8rem;
  background: #fff;
  transform: rotate(90deg);
}

.recu-infos,
.recu-qr {
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.recu-qr {
  position: relative;
  border-left: 2px dashed rgba(18, 50, 74, 0.45);
}

.recu-title {
  margin-bottom: 1.25rem;
  font-size: var(--step-1);
}

.recu-list {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.recu-list dt {
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.recu-list dd {
  margin: 0;
  font-weight: 600;
}

.recu-iban dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
}

.iban {
  font-size: clamp(1.2rem, 1rem + 1vw, 1.55rem);
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  word-spacing: 0.12em;
}

.btn-copy .icon-check {
  display: none;
}

.btn-copy.is-done {
  border-color: var(--ok);
  background: var(--ok);
  color: #fff;
}

.btn-copy.is-done .icon-copy {
  display: none;
}

.btn-copy.is-done .icon-check {
  display: block;
}

.qr {
  width: 10.5rem;
  margin-bottom: 1rem;
}

.recu-note {
  max-width: 34ch;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.don-autres {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem clamp(2rem, 5vw, 4.5rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.don-bloc {
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}

.don-bloc-title {
  margin-bottom: 0.75rem;
  font-size: var(--step-1);
}

.don-bloc .btn {
  margin-top: 0.75rem;
}

.don-cd {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.snap-cd {
  margin-top: 0.75rem;
  padding: 0.4rem;
}

.snap-cd img {
  aspect-ratio: 139 / 134;
}

.snap-cd::before {
  width: 3.5rem;
  height: 1.2rem;
}

.prix {
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.contact-infos .lead {
  margin-bottom: 2rem;
}

.adresse {
  margin-bottom: 0.75rem;
  font-size: var(--step-0);
  line-height: 1.6;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-block: 0.4rem;
  font-weight: 650;
}

.map-link .icon-ext {
  width: 0.95em;
  height: 0.95em;
}

.phones {
  display: grid;
  gap: 0.25rem;
  margin-top: 2rem;
  list-style: none;
}

.phone {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.4rem 0;
  color: var(--ink);
  font-size: var(--step-1);
  font-weight: 720;
  font-stretch: 104%;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

a.phone:hover {
  color: var(--sky-deep);
}

a.phone:hover .phone-num,
a.phone:hover > span {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
}

.phone .icon {
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.6rem;
  border-radius: 50%;
  background: var(--sky-pale);
  color: var(--sky-deep);
}

.phone-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  font-stretch: 100%;
  color: var(--ink-soft);
}

.phone-fax {
  font-weight: 560;
  font-size: var(--step-0);
}

.phone-fax .icon {
  color: var(--ink-soft);
}

/* Formulaire */
.form {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: 1.5rem;
  background: var(--sky-pale);
}

.form-title {
  margin-bottom: 0.35rem;
  font-size: var(--step-2);
}

.form-note {
  margin-bottom: 1.75rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.field {
  margin-bottom: 1.4rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 680;
}

.field-hint {
  margin: -0.15rem 0 0.45rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.75rem 0.95rem;
  border: 2px solid var(--line);
  border-radius: 0.8rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.4;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink-soft);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sky-deep);
  box-shadow: 0 0 0 4px rgba(29, 111, 165, 0.25);
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.field select {
  padding-right: 2.75rem;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--error);
}

.field-error {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0.45rem 0 0;
  color: var(--error);
  font-size: var(--step--1);
  font-weight: 650;
}

.field-error::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.12rem;
  border-radius: 50%;
  background: var(--error);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.field-error[hidden] {
  display: none;
}

.form-submit {
  width: 100%;
  margin-top: 0.4rem;
}

.form-help {
  margin-top: 0.85rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
  text-align: center;
}

.form-status:empty {
  display: none;
}

.form-status {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--ok);
  border-radius: 0.6rem;
  background: #fff;
  font-size: 1rem;
}

.form-status.is-error {
  border-left-color: var(--error);
}

.form-status p {
  margin-bottom: 0.5rem;
}

.form-status .btn {
  margin-top: 0.4rem;
}

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

.site-footer {
  padding-top: clamp(3.5rem, 7vw, 5rem);
  background: var(--ink);
  color: #fff;
  font-size: 1rem;
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: var(--sun);
}

.site-footer :focus-visible {
  outline-color: var(--sun);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.footer-brand img {
  width: 5.25rem;
}

.footer-brand strong {
  font-size: 1.15rem;
  font-stretch: 108%;
}

.footer-nav ul {
  display: grid;
  gap: 0.45rem;
  list-style: none;
}

.footer-nav a,
.footer-legal a {
  text-decoration: none;
}

.footer-nav a:hover,
.footer-legal a:hover {
  text-decoration: underline;
}

.footer-legal {
  color: #bfd9ec;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #bfd9ec;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Tablette
   -------------------------------------------------------------------------- */

@media (max-width: 64rem) {
  .album {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.5rem 2.5rem;
  }

  .album-item:nth-child(even) {
    margin-top: 3rem;
  }

  .album-item:nth-child(3) {
    margin-top: -1rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Menu mobile */
@media (max-width: 60rem) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 6.9rem;
    min-height: 2.75rem;
    padding: 0.45rem 1rem 0.45rem 0.8rem;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
  }

  .menu-toggle .icon-close,
  .menu-toggle[aria-expanded="true"] .icon-menu {
    display: none;
  }

  .menu-toggle[aria-expanded="true"] .icon-close {
    display: block;
  }

  .js .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 49;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2rem;
    padding: 1.5rem var(--gutter) 2.5rem;
    background: #fff;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.75rem);
    transition: opacity 0.22s, transform 0.22s, visibility 0s linear 0.22s;
  }

  .js .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.22s, transform 0.22s, visibility 0s;
  }

  .js .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .js .nav-list li {
    border-bottom: 1px solid var(--rule);
  }

  .js .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    font-size: 1.75rem;
    font-weight: 780;
    font-stretch: 110%;
  }

  .js .nav-link::before {
    content: "";
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    background: url("../img/visage.svg") center / 100% no-repeat, var(--c);
  }

  .js .nav-link::after {
    display: none;
  }

  .js .nav-link[aria-current="true"] {
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
  }

  .js .nav-cta {
    min-height: 3.4rem;
    font-size: 1.15rem;
  }

  html.menu-open {
    overflow: hidden;
  }

  html:not(.js) .site-header {
    position: absolute;
    height: auto;
  }

  html:not(.js) .header-inner {
    flex-wrap: wrap;
    padding-block: 0.75rem;
  }

  html:not(.js) .menu-toggle {
    display: none;
  }

  html:not(.js) .nav {
    flex-wrap: wrap;
  }

  html:not(.js) .nav-list {
    flex-wrap: wrap;
  }

  .site-header.menu-is-open {
    background: #fff;
    box-shadow: 0 1px 0 var(--rule);
  }

  /* Accueil : le cœur passe au-dessus du titre */
  .hero {
    min-height: 0;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-block: 0 4.5rem;
  }

  .hero-visual {
    grid-column: 1;
    grid-row: 1;
    height: min(80vw, 24rem);
    min-height: 0;
    margin-inline: calc(-1 * var(--gutter));
  }

  .hero-canvas {
    top: calc(-1 * var(--header-h));
    bottom: 0;
    height: calc(100% + var(--header-h));
  }

  .hero-text {
    grid-row: 2;
  }

  .tickle {
    left: auto;
    right: var(--gutter);
    bottom: 0;
    font-size: 1.4rem;
    transform: rotate(-5deg);
  }

  .tickle-arrow {
    order: -1;
    width: 3rem;
    transform: scaleX(-1) rotate(10deg);
  }

  .motion-toggle {
    bottom: 1rem;
  }

  .qui-grid,
  .don-head,
  .contact-grid,
  .don-autres {
    grid-template-columns: minmax(0, 1fr);
  }

  .don-photo {
    justify-self: start;
    max-width: 18rem;
  }

  .recu {
    grid-template-columns: minmax(0, 1fr);
  }

  .recu-qr {
    border-left: 0;
    border-top: 2px dashed rgba(18, 50, 74, 0.45);
  }

  .recu-ciseaux-v {
    top: -0.8rem;
    left: auto;
    right: 1.5rem;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Téléphone
   -------------------------------------------------------------------------- */

@media (max-width: 40rem) {
  :root {
    --header-h: 4rem;
    --step-0: 1.0625rem;
  }

  .header-inner {
    gap: 0.75rem;
  }

  .brand-logo {
    width: 2.8rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-sub {
    font-size: 0.78rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 13.4vw, 4rem);
    font-stretch: 108%;
  }

  @keyframes sourire {
    from {
      font-stretch: 64%;
      opacity: 0;
    }
    35% {
      opacity: 1;
    }
    to {
      font-stretch: 108%;
      opacity: 1;
    }
  }

  .hero-lead {
    font-size: 1.2rem;
  }

  .hero-actions .btn {
    flex: 1 1 12rem;
  }

  .lead {
    font-size: 1.25rem;
    margin-bottom: 2.25rem;
  }

  .album {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .album-item:nth-child(n) {
    margin-top: 0;
  }

  .album-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    gap: 1.25rem;
    align-items: center;
  }

  .album-item:nth-child(even) {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  }

  .album-item:nth-child(even) .snap {
    order: 2;
  }

  .album-item .snap {
    width: 100%;
  }

  .album-text {
    margin: 0;
    font-size: 1rem;
  }

  .snap-title {
    font-size: 1.45rem;
  }

  .projet {
    grid-template-columns: minmax(0, 1fr);
  }

  .snap-small {
    max-width: 11rem;
  }

  .besoins {
    grid-template-columns: minmax(0, 1fr);
  }

  .projet .btn,
  .don-bloc .btn {
    width: 100%;
  }

  .don-cd {
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 1.25rem;
  }

  .fiche-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem 1.5rem;
  }

  .phone {
    font-size: 1.3rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Mouvement réduit : on respecte le réglage du visiteur
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Impression : on garde l'essentiel (coordonnées, IBAN) */
@media print {
  .site-header,
  .hero-visual,
  .motion-toggle,
  .form,
  .btn {
    display: none !important;
  }

  .hero {
    min-height: 0;
    padding-top: 0;
    background: none;
  }

  .section {
    padding-block: 1.5rem;
  }

  .snap {
    box-shadow: none;
    transform: none;
  }
}
