/* ==========================================================================
   Humour d'Utilité Publique — Page Accueil (index.html)
   ========================================================================== */

.titre-2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  line-height: 48px;
  color: var(--vert-fonce);
}

.btn--orange   { background: var(--orange);        color: var(--blanc); }

.btn--blanc    { background: var(--blanc);         color: #000; }

.btn--hero {
  padding: 16.71px 32px 17.29px;
  font-family: var(--corps);
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.05));
}

.btn--hero.js-jakarta { font-family: var(--display); line-height: 25.6px; }

.hero-accueil {
  background: var(--vert-clair);
  border: 1px solid var(--bord-vert-2);
  /* Les témoignages ont exactement le même fond : cette bordure basse ne
     séparait rien, elle laissait juste un trait visible en travers de la page. */
  border-bottom: 0;
  padding: 60px 0 48px;
  /* Les deux halos ::before/::after débordent volontairement du cadre.
     position + overflow les gardent à l'intérieur : sans l'un des deux,
     la page entière devient défilable horizontalement. */
  position: relative;
  overflow: hidden;
}

.hero-accueil::before,
.hero-accueil::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 9999px;
  filter: blur(32px);
  pointer-events: none;
}

.hero-accueil::before { background: var(--vert-blur); opacity: .3; left: -80px;  top: -32px; }

.hero-accueil::after  { background: var(--rose);      opacity: .2; right: -80px; bottom: -80px; }

/* Halos décoratifs désactivés : le rose sur fond vert donnait une tache
   violacée et un fond qui ne paraissait pas uniforme. */
.hero-accueil::before,
.hero-accueil::after { display: none; }

.hero-accueil__grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero-accueil__titre {
  font-family: var(--display);
  font-weight: 800;
  font-size: 40px;
  line-height: 50px;
  letter-spacing: -1.12px;
  color: var(--vert-fonce);
  max-width: 555px;
}

.hero-accueil__titre .accent { color: var(--orange); }

.hero-accueil__chapo {
  margin-top: 32px;
  max-width: 576px;
  font-size: 25px;
  line-height: 28.8px;
  color: var(--vert-fonce);
}

.hero-accueil__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.hero-accueil__visuel { justify-self: end; align-self: start; }

.hero-accueil__visuel img { width: 482px; height: 482px; object-fit: contain; border-radius: 11px; }

.soutien { position: relative; margin-top: 72px; }

.soutien__label { font-size: 25px; line-height: 28.8px; color: var(--vert-fonce); }

.soutien__logos { display: flex; align-items: center; gap: 35px; margin-top: 24px; }

.soutien__logos img { height: 43px; width: auto; object-fit: contain; }

.soutien__logos img:last-child { height: 80px; }

.missions { background: var(--vert-page); padding: 0 0 96px; }

.missions__grille {
  display: grid;
  grid-template-columns: 452px 1fr;
  gap: 48px;
  padding-top: 24px;
}

.missions__liste {
  margin-top: 32px;
  list-style: disc;
  padding-left: 45px;
  color: var(--blanc);
  font-size: 25px;
  line-height: 28.8px;
  font-weight: 700;
}

.missions__liste li + li { margin-top: 40px; }

.missions__photos {
  display: grid;
  grid-template-columns: repeat(2, 314px);
  gap: 24px;
  justify-content: end;
  align-self: center;
}

.photo-cadre {
  position: relative;
  width: 314px;
  height: 320px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
}

.photo-cadre--decalee { margin-top: 48px; }

.photo-cadre img.fond { position: absolute; inset: 0; width: 101.91%; height: 100%; left: -0.96%; object-fit: cover; }

.photo-cadre img.dessus { position: absolute; object-fit: cover; }

.cible {
  background: var(--vert-clair);
  border-top: 1px solid var(--bord-vert);
  padding: 97px 0 96px;
}

.cible__grille {
  display: grid;
  grid-template-columns: 584px 1fr;
  gap: 48px;
  align-items: center;
}

.cible__texte { font-size: 18px; line-height: 28.8px; margin-top: 23.2px; }

.cible__carte {
  background: var(--vert-menthe);
  border: 1px solid var(--bord-vert-2);
  border-radius: 32px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  padding: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 449.62px;
  justify-self: end;
  width: 100%;
  max-width: 100%;
}

.cible__carte img {
  width: 446px; height: 298px; object-fit: cover;
  box-shadow: 0 4px 4px rgba(0,0,0,.25);
}

.valeurs { background: var(--vert-page); padding: 47px 0 47px; }

.valeurs__entete { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.valeurs__barre { width: 96px; height: 4px; border-radius: 9999px; background: var(--orange); }

.valeurs__grille {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 68px;
  align-items: start;
}

.valeur {
  background: var(--vert-clair);
  border: 1px solid var(--bord-vert);
  border-radius: 24px;
  padding: 33px;
}

.valeur h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  line-height: 36.4px;
  color: var(--vert-fonce);
  text-decoration: underline;
  padding-top: 11px;
}

.valeur p { margin-top: 12px; font-size: 16px; line-height: 24px; }

.bandeau-declic {
  background: var(--violet);
  padding: 96px 70px;
  position: relative;
  overflow: hidden;
}

.bandeau-declic::after {
  content: "";
  position: absolute;
  inset: 0 0 0 50%;
  background: var(--violet-fonce);
  opacity: .1;
  border-radius: 160px 0 0 160px;
}

.bandeau-declic__grille {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
  max-width: 1152px;
  margin: 0 auto;
}

.bandeau-declic h2 { color: var(--blanc); }

.bandeau-declic p { color: var(--vert-pale); font-size: 18px; line-height: 28.8px; margin-top: 24px; }

.bandeau-declic .btn--blanc {
  padding: 16px 32px;
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  min-width: 278px;
}

.cadre-verre {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(6px);
  border-radius: 48px;
  padding: 17px;
}

.cadre-verre__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  overflow: hidden;
}

.cadre-verre__photo img.fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.cadre-verre__photo img.dessus { position: absolute; object-fit: cover; }

@media (max-width: 1180px) {
  .temoignage { flex: 0 0 calc((100% - 32px) / 2); }
  .missions__grille { grid-template-columns: 1fr; }
  .missions__photos { justify-content: start; }
  .cible__grille { grid-template-columns: 1fr; }
  .cible__carte { justify-self: start; }
  .valeurs__grille { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .hero-accueil__grille,
  .bandeau-declic__grille,
  .valeurs__grille { grid-template-columns: 1fr; }
  .hero-accueil__visuel { justify-self: start; }
  .hero-accueil__visuel img { width: 100%; height: auto; max-width: 360px; }
  .hero-accueil__titre { font-size: 32px; line-height: 40px; }
  .hero-accueil__chapo { font-size: 19px; }
  .soutien__logos { padding-left: 0; }
  .missions__photos { grid-template-columns: 1fr; }
  .photo-cadre { width: 100%; }
  .photo-cadre--decalee { margin-top: 0; }
  .cible__carte { width: 100%; min-height: 0; }
  .cible__carte img { width: 100%; height: auto; }
  .titre-2, .bloc-innovant h2, .section-objectifs h2, .methodo-colonnes h2 { font-size: 28px; line-height: 34px; }
  .bandeau-declic { padding: 64px 24px; }
  .bandeau-declic::after { display: none; }
}

/* ==========================================================================
   Témoignages — une ligne de bulles qui défile en continu
   ========================================================================== */
.temoignages {
  background: var(--vert-clair);
  padding: 64px 0 96px;
  overflow: hidden;
}

.temoignages__titre { text-align: center; }

.temoignages__chapo {
  margin: 12px auto 56px;
  max-width: 640px;
  text-align: center;
  font-size: 18px;
  line-height: 28.8px;
  color: var(--vert-gris);
}

/* Une seule ligne d'avis, qui défile toute seule (voir js/main.js).
   La barre native est masquée : on pilote notre propre barre, dont la longueur
   du curseur correspond exactement au nombre de bulles présentes. */
.ruban {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 0;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* Edge ancien */
}

.ruban::-webkit-scrollbar { width: 0; height: 0; display: none; }

.ruban:focus-visible { outline: 2px solid var(--vert-fonce); outline-offset: 4px; }

.ruban__piste {
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: max-content;
  padding: 0 24px;
}

/* Barre de défilement maison : on peut cliquer dessus ou la faire glisser. */
.ruban-barre {
  position: relative;
  height: 10px;
  margin-top: 28px;
  border-radius: 999px;
  background: rgba(23, 79, 61, .12);
  cursor: pointer;
  touch-action: none;
}

.ruban-barre__pouce {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  min-width: 40px;
  border-radius: 999px;
  background: var(--vert-fonce);
}

.ruban-barre:focus-visible { outline: 2px solid var(--vert-fonce); outline-offset: 4px; }

.bulle {
  flex: 0 0 340px;
  margin: 0;
  padding: 24px 28px 22px;
  border-radius: 24px 24px 24px 6px;
  background: var(--vert-menthe-2);
  position: relative;
}

.bulle[data-de="partenaire"] { background: var(--vert-pale); }

.bulle[data-de="parent"]     { background: #fbc19c; }

.bulle__categorie {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vert-fonce);
}

.bulle[data-de="partenaire"] .bulle__categorie { color: var(--vert-fonce); }

.bulle[data-de="parent"]     .bulle__categorie { color: var(--vert-fonce); }

.bulle__texte {
  margin: 0;
  font-size: 15px;
  line-height: 24px;
  color: var(--texte);
}

.bulle__nom {
  margin-top: 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  color: var(--vert-fonce);
}

@media (max-width: 900px) {
  .temoignages { padding: 56px 0 64px; }
  .temoignages__chapo { margin-bottom: 36px; }
  .bulle { flex: 0 0 270px; padding: 20px 22px 18px; }
  .ruban__piste { gap: 16px; padding: 0 16px; }
  .ruban-barre { margin-top: 20px; }
}
