:root {
  --creme: #fbf6ea;
  --creme-2: #f3ead3;
  --or: #c9a14a;
  --or-clair: #e2c27a;
  --or-fonce: #a57f2c;
  --marine: #14234b;
  --marine-doux: #3a466b;
  --vert: #6f8a52;
  --he: "Frank Ruhl Libre", serif;
  --titre: "Cormorant Garamond", serif;
  --texte: "Assistant", system-ui, sans-serif;
  --affiche: var(--titre);
  --ombre: 0 18px 50px rgba(20, 35, 75, .1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--marine);
  background:
    radial-gradient(ellipse at 50% 0%, #fffaf0, transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(226, 194, 122, .2), transparent 50%),
    var(--creme);
}

body.locked { overflow: hidden; }

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

svg { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- Séparateur avec cœur (sas, hero, cartes) ---------- */
.separateur {
  display: flex;
  align-items: center;
  gap: .8rem;
  max-width: 300px;
  margin: 1.1rem auto;
  color: var(--or);
  font-size: 1.1rem;
}

.separateur::before,
.separateur::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--or));
}

.separateur::after { background: linear-gradient(90deg, var(--or), transparent); }

.separateur.petit { max-width: 160px; margin: .6rem 0 1rem; font-size: .9rem; }

/* ---------- Sas d'entrée ---------- */
.sas {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 2rem 1.25rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 30%, #fffcf3, transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(226, 194, 122, .3), transparent 55%),
    linear-gradient(180deg, #fbf5e6, #f4e9cf);
  transition: opacity .9s ease, visibility .9s;
}

.sas.parti { opacity: 0; visibility: hidden; }

.sas-inner { width: min(100%, 30rem); animation: monte 1s ease both; }

@keyframes monte {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.sas-photo {
  width: 168px;
  height: 168px;
  margin: 0 auto 1.4rem;
  background: url("assets/nehama-sarah.jpg") 6% 19% / 183% auto no-repeat;
  border-radius: 50%;
  border: 4px solid #fffaf0;
  box-shadow: 0 0 0 2px var(--or), 0 0 0 7px rgba(201, 161, 74, .12), 0 18px 40px rgba(20, 35, 75, .18);
}

.sas-kicker {
  margin: 0;
  font-family: var(--he);
  font-size: clamp(1.5rem, 6vw, 1.9rem);
  font-weight: 500;
  line-height: 1.2;
}

.sas-nom {
  margin: 0;
  font-family: var(--he);
  font-weight: 700;
  font-size: clamp(3.2rem, 14vw, 4.4rem);
  line-height: 1.05;
}

.sas-latin {
  margin: .3rem 0 0;
  font-family: var(--titre);
  font-size: clamp(1.35rem, 5vw, 1.7rem);
  font-style: italic;
  color: var(--or-fonce);
}

.sas-choix {
  margin: 0 0 1rem;
  font-family: var(--titre);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--marine);
}

.sas-langues {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 20rem;
  margin: 0 auto;
}

.btn-langue {
  position: relative;
  padding: .85rem 3rem;
  border: 1.5px solid var(--or);
  border-radius: 999px;
  background: linear-gradient(180deg, #1c2d5c, var(--marine));
  color: #fff;
  font: 600 1.45rem var(--titre);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(20, 35, 75, .22);
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn-langue[lang="he"] { font-family: var(--he); font-size: 1.3rem; }

.btn-langue svg {
  position: absolute;
  top: 50%;
  right: 1.2rem;
  font-size: 1.1rem;
  color: var(--or-clair);
  transform: translateY(-50%);
}

.btn-langue:hover, .btn-langue:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(20, 35, 75, .3);
}

.btn-langue:focus-visible { outline: 2px solid var(--or-fonce); outline-offset: 3px; }

.sas-pied {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.2rem auto 0;
  font-family: var(--titre);
  font-style: italic;
  font-size: 1.15rem;
}

.sas-pied::before, .sas-pied::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--or);
}

/* ---------- Barre du haut ---------- */
.barre-haut {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: .8rem;
  pointer-events: none;
}

.barre-haut > * { pointer-events: auto; }

.barre-langues {
  display: flex;
  gap: .3rem;
}

.barre-langues[hidden] { display: none; }

.barre-langues button,
.son {
  min-height: 40px;
  padding: .3rem .9rem;
  border: 1px solid rgba(201, 161, 74, .7);
  border-radius: 999px;
  background: rgba(255, 252, 244, .92);
  color: var(--marine);
  font: 700 .9rem var(--texte);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(20, 35, 75, .1);
}

.barre-langues button[lang="he"] { font-family: var(--he); font-size: 1rem; }
.barre-langues button[aria-pressed="true"] { background: var(--marine); border-color: var(--marine); color: #fff; }
.barre-langues button:focus-visible, .son:focus-visible { outline: 2px solid var(--marine); outline-offset: 2px; }

.son {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-inline-start: auto;
}

.son[hidden] { display: none; }
.son:hover { background: #fff; }
.son svg { font-size: 1.05rem; color: var(--or-fonce); }
.son .son-off, .son.muet .son-on { display: none; }
.son.muet .son-off { display: inline; }

/* ---------- Hero ---------- */
/* main prend toute la largeur et coupe les fleurs qui dépassent */
main { padding: 0 1.25rem; overflow-x: clip; }

.hero, .carte { max-width: 1120px; margin-inline: auto; }

.hero {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: 5rem 0 3rem;
}

/* Guirlandes suspendues : collées en haut de page, dans les coins de l'écran */
.deco {
  position: absolute;
  top: 0;
  width: clamp(140px, 12vw, 300px);
  pointer-events: none;
  z-index: -1;
}

.deco-gauche { left: calc((100% - 100vw) / 2); }
.deco-droite { right: calc((100% - 100vw) / 2); transform: scaleX(-1); }

.hero-photo {
  position: relative;
  width: min(100%, 400px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 26px;
  background: linear-gradient(145deg, var(--or-clair), var(--or-fonce));
  box-shadow: 0 28px 60px rgba(20, 35, 75, .2);
}

.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  border: 3px solid #fffaf0;
}

.hero-texte { text-align: center; }

.eyebrow {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--marine-doux);
}

html[lang="he"] .eyebrow { letter-spacing: 0; font-size: 1.15rem; }

.nom {
  margin: .2rem 0 0;
  font-family: var(--affiche);
  font-weight: 700;
  font-size: clamp(3.2rem, 11vw, 5.4rem);
  line-height: 1;
}

.filiation {
  margin: .5rem 0 0;
  font-family: var(--affiche);
  font-style: italic;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  color: var(--or-fonce);
}

html[lang="he"] .filiation { font-style: normal; }

.accroche { margin: 0 auto 1.8rem; max-width: 30rem; color: var(--marine-doux); font-size: 1.1rem; }

.don {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: 1.05rem 2rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #dcbb6a, var(--or-fonce));
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(165, 127, 44, .38);
  transition: transform .2s ease, box-shadow .2s ease;
}

.don svg { font-size: 1.15rem; }
html[dir="rtl"] .don .fleche { transform: scaleX(-1); }

.don:hover, .don:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(165, 127, 44, .48);
}

.don:focus-visible, .btn-partage:focus-visible {
  outline: 2px solid var(--marine);
  outline-offset: 3px;
}

.hero-boutons { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; }

.bouton-tehilim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.35rem;
  border: 2px solid var(--or);
  border-radius: 999px;
  background: rgba(255, 253, 248, .9);
  color: var(--marine);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease;
}
.bouton-tehilim svg { font-size: 1.1rem; color: var(--or-fonce); }
.bouton-tehilim:hover, .bouton-tehilim:focus-visible { transform: translateY(-2px); background: var(--creme-2); }
.bouton-tehilim:focus-visible { outline: 2px solid var(--marine); outline-offset: 3px; }

.securise {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin: .8rem 0 0;
  font-size: .95rem;
  color: var(--marine-doux);
}

.securise svg { color: var(--or-fonce); }

.engagements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
  max-width: 28rem;
  margin: 2rem auto 0;
  padding: 0;
  list-style: none;
  font-size: .9rem;
  line-height: 1.3;
  color: var(--marine-doux);
}

.engagements li { display: grid; justify-items: center; gap: .5rem; }

.rond {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(201, 161, 74, .6);
  background: #fffaf0;
  color: var(--or-fonce);
  font-size: 1.6rem;
}

/* ---------- Cartes ---------- */
.carte {
  margin-bottom: 2rem;
  padding: 2rem 1.5rem;
  background: rgba(255, 253, 248, .85);
  border: 1px solid rgba(201, 161, 74, .45);
  border-radius: 24px;
  box-shadow: var(--ombre);
}

.titre-carte {
  margin: 0;
  font-family: var(--affiche);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  line-height: 1.15;
}

/* ---------- Collecte ---------- */
.collecte { display: grid; gap: 1.6rem; align-items: center; }

.collecte-intro p { margin: 0; font-family: var(--titre); font-size: 1.3rem; line-height: 1.35; }
.collecte-intro .separateur.petit { margin: .5rem 0 .8rem; }

.jauge {
  height: 34px;
  padding: 4px;
  border-radius: 999px;
  background: #f1e9d8;
  box-shadow: inset 0 2px 4px rgba(20, 35, 75, .08);
}

.jauge-remplie {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 0;
  min-width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f0d58c, #c9a14a 55%, #8f6624);
  box-shadow: 0 3px 8px rgba(143, 102, 36, .3);
  transition: width 1.6s cubic-bezier(.2, .8, .2, 1);
}

html[dir="rtl"] .jauge-remplie { background: linear-gradient(270deg, #f0d58c, #c9a14a 55%, #8f6624); }

.jauge-pourcent {
  padding-inline-end: .9rem;
  font-family: var(--titre);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

.stats {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  margin-top: 1.2rem;
}

.stat {
  margin: 0;
  padding: 0 1.4rem;
  color: var(--marine);
  font-family: var(--titre);
  font-size: 1.2rem;
  line-height: 1.2;
}

.stat + .stat { border-inline-start: 1px solid rgba(201, 161, 74, .45); }
.stat:first-child { padding-inline-start: 0; }
.stat:last-child { padding-inline-end: 0; }

.stat strong { font-weight: 700; color: var(--marine); }

.stat-collecte { display: grid; }
.stat-collecte strong { font-size: 2.6rem; line-height: 1.05; }

.stat-objectif { text-align: center; }
.stat-objectif strong { margin-inline-start: .3rem; font-size: 2rem; }

.stat-donateurs { display: flex; align-items: center; gap: .7rem; }
.stat-donateurs > svg { font-size: 2.3rem; color: var(--or); }
.stat-donateurs > span { display: grid; }
.stat-donateurs strong { font-size: 2rem; line-height: 1.05; }

.collecte-pied {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 1.1rem 0 0;
  font-family: var(--titre);
  font-size: 1.2rem;
  color: var(--marine-doux);
}

.collecte-pied svg { font-size: 1.2rem; color: var(--or); }

/* En attente : seul l'objectif s'affiche, aucun montant inventé */
.collecte .collecte-attente, .collecte.attente .collecte-merci { display: none; }
.collecte.attente .collecte-attente { display: inline; }
.collecte.attente .stat-collecte, .collecte.sans-donateurs .stat-donateurs, .collecte.sans-objectif .stat-objectif { display: none; }
.collecte.attente .stats { grid-template-columns: auto; justify-content: start; }
.collecte.attente .stat { padding: 0; border: 0; text-align: start; grid-row: auto; }

/* ---------- Poème ---------- */
.poeme {
  display: grid;
  gap: 2rem;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, .97) 45%, rgba(255, 253, 248, .55)),
    url("assets/fleurs-fond.webp") right center / cover no-repeat,
    #fffdf8;
}

html[dir="rtl"] .poeme {
  background:
    linear-gradient(270deg, rgba(255, 253, 248, .97) 45%, rgba(255, 253, 248, .55)),
    url("assets/fleurs-fond.webp") left center / cover no-repeat,
    #fffdf8;
}

.histoire { text-align: center; }
.histoire p {
  max-width: 44rem;
  margin: 0 auto 1rem;
  color: var(--marine-doux);
  line-height: 1.7;
}
.histoire .histoire-accroche {
  margin-bottom: 1.5rem;
  font-family: var(--affiche);
  font-size: clamp(1.35rem, 3.5vw, 1.7rem);
  line-height: 1.35;
  color: var(--marine);
}
.histoire .histoire-urgence { font-weight: 600; color: var(--marine); }
.histoire .histoire-priere {
  margin: 1.5rem auto 0;
  font-family: var(--affiche);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--or-fonce);
}
.histoire .separateur.petit { margin: .6rem auto 1.5rem; }

.intro { margin: 0 0 1.5rem; color: var(--marine-doux); }

.strophes p { margin: 0 0 1.5rem; }

.strophes[lang="he"] { font-family: var(--he); font-size: 1.25rem; line-height: 1.9; }

.strophes.trad { font-family: var(--titre); font-size: 1.3rem; line-height: 1.6; }

.strophes strong { color: var(--or-fonce); font-weight: 700; }

.strophes .note { font-family: var(--texte); font-size: .9rem; font-style: italic; color: var(--marine-doux); }

.qualites {
  display: grid;
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
  align-self: center;
}

.qualites li {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .75rem 1rem;
  border: 1px solid rgba(201, 161, 74, .4);
  border-radius: 16px;
  background: rgba(255, 253, 248, .88);
  backdrop-filter: blur(4px);
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 0 6px 18px rgba(20, 35, 75, .06);
}

.qualites .rond { width: 46px; height: 46px; font-size: 1.35rem; flex: none; }

/* ---------- Chaîne de Tehilim ---------- */
.tehilim { text-align: center; scroll-margin-top: 4rem; }
.tehilim .separateur.petit { margin: .6rem auto 1rem; }
.tehilim .intro { max-width: 44rem; margin-inline: auto; }

.tehilim-compteur { max-width: 34rem; margin: 0 auto 1.5rem; }
.tehilim-avancee { margin: 0 0 .6rem; font-family: var(--titre); font-size: 1.3rem; }
.tehilim-avancee strong { font-size: 2rem; color: var(--or-fonce); }
.tehilim-jauge { height: 18px; padding: 3px; }
.tehilim-livres { margin: .6rem 0 0; font-weight: 600; color: var(--or-fonce); }

button.don { border: 0; font-family: inherit; cursor: pointer; }
button.don:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.tehilim-message { min-height: 1.5em; margin: .9rem auto 0; max-width: 36rem; font-weight: 600; color: var(--marine); }

.tehilim-lecture {
  margin: 1.5rem 0;
  padding: 1.5rem 1.2rem;
  background: #fffdf8;
  border: 1px solid rgba(201, 161, 74, .45);
  border-radius: 18px;
  text-align: start;
  scroll-margin-top: 4.5rem;
}
.tehilim-lecture-tete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.tehilim-lecture-tete h3 { margin: 0; font-family: var(--affiche); font-size: 1.7rem; color: var(--marine); }
.tehilim-lecture-tete h3:focus { outline: none; }
.tehilim-fermer {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(201, 161, 74, .6);
  border-radius: 50%;
  background: transparent;
  color: var(--marine);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.tehilim-fermer:focus-visible { outline: 2px solid var(--marine); outline-offset: 2px; }

.tehilim-versets { margin: 0; padding: 0; list-style: none; counter-reset: verset; }
.tehilim-versets li { counter-increment: verset; padding: .8rem 0; border-bottom: 1px solid rgba(201, 161, 74, .25); }
.tehilim-versets li:last-child { border-bottom: 0; }
.v-he { margin: 0; font-family: var(--he); font-size: 1.55rem; line-height: 1.8; text-align: right; color: var(--marine); }
.v-he::before { content: counter(verset) " "; font-family: var(--texte); font-size: .8rem; color: var(--or-fonce); }
.v-ph { margin: .3rem 0 0; font-style: italic; line-height: 1.5; text-align: left; color: var(--marine-doux); }
.sans-phonetique .v-ph { display: none; }
.tehilim-source { margin: 1rem 0; font-size: .85rem; text-align: center; color: var(--marine-doux); }
.tehilim-lecture .tehilim-lu { display: flex; width: fit-content; margin: 0 auto; }
.tehilim-changer {
  display: block;
  margin: .9rem auto 0;
  padding: .3rem .6rem;
  border: 0;
  background: none;
  font: inherit;
  color: var(--marine-doux);
  text-decoration: underline;
  cursor: pointer;
}
.tehilim-changer:hover { color: var(--marine); }
.tehilim-changer:focus-visible { outline: 2px solid var(--marine); outline-offset: 2px; }

.tehilim-legende { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.2rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: .9rem; }
.tehilim-legende li { display: inline-flex; align-items: center; gap: .4rem; }
.pastille { display: inline-block; width: 1rem; height: 1rem; border-radius: 4px; border: 1px solid rgba(201, 161, 74, .6); }

.tehilim-grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(2.6rem, 1fr));
  gap: .4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tehilim-grille button {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(201, 161, 74, .6);
  border-radius: 8px;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease;
}
.tehilim-grille button:not(:disabled):hover { transform: translateY(-2px); }
.tehilim-grille button:focus-visible { outline: 2px solid var(--marine); outline-offset: 2px; }
.tehilim-grille button:disabled { cursor: default; }

.c-libre { background: #fffdf8; color: var(--marine); }
.c-pris { background: var(--creme-2); color: var(--marine-doux); border-style: dashed !important; }
.c-lu { background: linear-gradient(180deg, #dcbb6a, var(--or-fonce)); color: #fff; border-color: var(--or-fonce) !important; }
.c-moi { background: var(--marine); color: #fff; border-color: var(--marine) !important; }
.tehilim.hors-ligne .tehilim-grille { opacity: .5; }

/* ---------- Appel au don ---------- */
.appel { display: grid; gap: 2rem; align-items: center; }

.appel-sur {
  margin: 0;
  font-family: var(--affiche);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--or-fonce);
}

.appel-texte p:last-child { margin: 0; color: var(--marine-doux); }

.appel-actions { text-align: center; }

.appel-actions .don { width: 100%; }

.partage-titre {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 1.6rem 0 .8rem;
  font-weight: 700;
  color: var(--marine-doux);
}

.partage-titre::before, .partage-titre::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(201, 161, 74, .6);
}

.partage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
}

.btn-partage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .7rem .8rem;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font: 700 .95rem var(--texte);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}

.btn-partage svg { font-size: 1.3rem; }
.btn-partage:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-partage.whatsapp { background: #1f9d55; }
.btn-partage.sms { background: #2f6fd6; }
.btn-partage.email { background: var(--marine); }
.btn-partage.copier { background: #fff; color: var(--marine); border: 1px solid var(--marine); }

.partage-ok { min-height: 1.4em; margin: .6rem 0 0; font-size: .95rem; color: var(--vert); }

/* ---------- Pied de page ---------- */
.pied {
  padding: 1.5rem 1rem 3rem;
  text-align: center;
  color: var(--marine-doux);
}

.pied p { margin: 0; }
.pied-nom { font-family: var(--affiche); font-size: 1.25rem; color: var(--marine); }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.vu { opacity: 1; transform: none; }

/* ---------- Grands écrans ---------- */
@media (min-width: 640px) {
  .carte { padding: 2.5rem; }
  .partage { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .collecte-chiffres { padding-inline-start: 2.5rem; border-inline-start: 1px solid rgba(201, 161, 74, .45); }
  .hero { grid-template-columns: 1fr 1.1fr; gap: 4rem; min-height: 92svh; padding-top: 4.5rem; }
  .collecte { grid-template-columns: 1fr 2fr; gap: 2.5rem; }
  .poeme { grid-template-columns: 1.25fr 1fr; gap: 3rem; }
  .appel { grid-template-columns: 1fr 1.1fr; gap: 3rem; }
}

@media (max-width: 899px) {
  .deco { display: none; }
  .poeme, html[dir="rtl"] .poeme {
    background:
      linear-gradient(180deg, rgba(255, 253, 248, .97) 60%, rgba(255, 253, 248, .7)),
      url("assets/fleurs-fond.webp") right bottom / 200% auto no-repeat,
      #fffdf8;
  }
  .poeme-texte, .collecte-intro, .appel-texte { text-align: center; }
  .separateur.petit { margin-inline: auto; }
}

@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr 1fr; row-gap: 1rem; }
  .stat-objectif { grid-column: 1 / -1; grid-row: 2; border: 0 !important; padding: 0; }
  .stat-collecte strong { font-size: 2.1rem; }
  .collecte-pied { justify-content: center; text-align: start; }
}

@media (max-width: 420px) {
  .barre-langues button, .son { padding: .3rem .7rem; }
  .don { padding: 1rem 1.3rem; font-size: 1.05rem; gap: .5rem; }
}

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

/* Version hébreu : police hébraïque pour le nom et les titres */
html[lang="he"] { --affiche: var(--he); }

/* Petits séparateurs : trait plein côté texte, comme sur la maquette */
.separateur.petit::before { height: 1.5px; background: var(--or); }
.separateur.petit::after { height: 1.5px; background: linear-gradient(90deg, var(--or), transparent); }
html[dir="rtl"] .separateur.petit::after { background: linear-gradient(270deg, var(--or), transparent); }
@media (max-width: 899px) {
  .separateur.petit::before { background: linear-gradient(90deg, transparent, var(--or)); }
}
