.hero { position: relative; min-height: max(34rem, 100svh); display: grid; place-items: center; color: var(--c-white); overflow: hidden; background: var(--c-blue-ink); }
.hero__slides { position: absolute; inset: 0; margin: 0; padding: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease-in-out; margin: 0; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img, .hero__slide video { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40,77,99,.28), rgba(0,0,0,0) 30%, rgba(0,0,0,.08)); pointer-events: none; }
.hero__content { position: relative; z-index: 2; text-align: center; padding: 2rem 1.25rem 6rem; }
.hero__dots { display: flex; gap: .4rem; }
.hero__dot { width: 2.75rem; height: 2.75rem; background: none; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; }
.hero__dot::before { content: ""; width: .9rem; height: .9rem; border-radius: 50%; border: 2px solid var(--c-white); background: transparent; }
.hero__dot[aria-current="true"]::before { background: var(--c-white); }

.hero__controls { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(var(--space-3) + 2.4rem); /* Suite 433 : remonté au-dessus du bord déchiré */ }
.hero__controls-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-2); }
.hero__dots { grid-column: 2; }
.hero__cta { grid-column: 3; justify-self: end; }
/* Suite 467 : sous 1100 px (mobile et tablette), le bouton Soutenir passe au-dessus des points et les points reviennent à la ligne : plus rien ne dépasse de l'écran (17 points × 44 px = 748 px de large faisaient déborder la colonne et rognaient le bouton) */
@media (max-width: 1100px) {
  .hero__controls-inner { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--space-1); }
  .hero__dots { grid-column: 1; grid-row: 2; justify-self: center; gap: 0; flex-wrap: wrap; justify-content: center; max-width: 100%; }
  .hero__cta { grid-column: 1; grid-row: 1; justify-self: center; padding: .75rem 1.1rem; }
  body.proto .hero__cta[data-todo-link]::after { display: none; }
}

/* Logo PAGAWY sans fond (PNG transparent) posé sur la 1re photo, avec un halo blanc pour la lisibilité. */
.hero__logo { margin: 0; width: min(86vw, 780px); padding: clamp(.75rem, 2vw, 1.5rem); background: #fff; border-radius: var(--radius-sm, .5rem); /* logo sur fond blanc */ box-sizing: border-box; }
.hero__logo img { display: block; width: 100%; height: auto; /* logo entièrement transparent : aucun fond, aucun halo */  }

/* Le logo s'efface avec le changement de la 1re image (classe ajoutée par hero.js) et ne revient pas. */
.hero__logo { opacity: var(--hero-logo-opacity, .66); /* .66 = .46 + 20 points (Suite 444) ; 1 = opaque */ transition: opacity 1s ease-in-out; /* fondu de sortie 1 s, déclenché 1,5 s après l'arrivée (hero.js, LOGO_DELAY) */ }
.hero__logo.is-faded { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .hero__logo { transition: none; } }

/* Sans photo : bandeau aux couleurs de PAGAWY */
.hero--empty { background: linear-gradient(135deg, var(--c-blue-ink) 0%, #1f6a78 60%, #167C8C 100%); }
.hero--empty::after { background: none; }

/* Suite 213 : diapositive « contain » (logo PAGAWY animé, carré, fond clair) : image entière, jamais recadrée ; points foncés sur fond clair */
.hero__slide--contain video, .hero__slide--contain img { object-fit: contain; }
.hero.is-light .hero__dot::before { border-color: var(--c-blue-ink); }
.hero.is-light .hero__dot[aria-current="true"]::before { background: var(--c-blue-ink); }
.hero.is-light::after { background: none; }
.site-header.hero-light { background: var(--c-blue-ink); box-shadow: var(--shadow); }

/* Suite 386 : intro vidéo (logo animé) posée au centre de la 1re image comme un tampon, 1,5 s puis fondu */
.hero__intro { position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; opacity: 1; transition: opacity .8s ease; pointer-events: none; }
.hero__intro.is-out { opacity: 0; }
.hero__intro-card { opacity: var(--hero-intro-opacity, 1); position: relative; width: min(86vw, 640px); aspect-ratio: 1.6 / 1; border-radius: 18px; overflow: hidden; background: #F5FAF9; box-shadow: 0 18px 50px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.2); animation: hero-stamp .32s cubic-bezier(.2,.9,.3,1.2) both; }
.hero__intro-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
@keyframes hero-stamp { from { opacity: 0; transform: scale(1.22); } to { opacity: var(--hero-intro-opacity, 1); transform: scale(1); } } /* Suites 441/443/444/445 : tampon à 100 % d'opacité */
@media (prefers-reduced-motion: reduce) { .hero__intro { display: none; } }

/* Suite 399 — diapositive « photo entière » : copie floutée en fond ; sur écran vertical (téléphone), recadrage habituel */
.hero__slide--blurfit .hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(26px) brightness(.8); transform: scale(1.12); }
.hero__slide--blurfit img:not(.hero__bg) { position: relative; z-index: 1; }
@media (max-aspect-ratio: 1 / 1) { .hero__slide--blurfit img:not(.hero__bg) { object-fit: cover; } .hero__slide--blurfit .hero__bg { display: none; } }

/* Suite 455 : bord déchiré aléatoire sur chaque photo (dessiné par hero.js) */
.hero__tear { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; display: block; }

/* Suite 468 : mobile — points de navigation compacts (une seule ligne) */
@media (max-width: 1100px) {
  .hero__dots { flex-wrap: nowrap; }
  .hero__dot { width: 1.5rem; height: 2rem; flex: 0 1 1.5rem; min-width: 0; }
  .hero__dot::before { width: .5rem; height: .5rem; border-width: 1.5px; }
}

/* Suite 482 : MOBILE — la photo du diaporama occupe toute la section (format paysage 3:2), sans flou ni points ;
   le bouton Soutenir (réduit de 30 %) est posé sur la photo, en bas. */
.hero__bg--mob { display: none; }
@media (max-width: 700px) {
  .hero { --stage-h: 66.667vw; display: block; min-height: 0; height: var(--stage-h); padding-top: 0; }
  .hero__slides { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
  .hero__slide img:not(.hero__bg), .hero__slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
  .hero__slide .hero__bg, .hero__bg--mob { display: none !important; }
  .hero::after { height: 100%; bottom: auto; }
  .hero__content { position: absolute; inset: 0; height: auto; padding: 0; display: grid; place-items: center; }
  .hero__logo { width: min(48vw, 468px); }
  .hero__intro-card { width: 51.6vw; } /* logo d'introduction réduit de 40 % */
  .hero__controls { position: absolute; z-index: 3; left: 0; right: 0; bottom: .9rem; padding: 0; }
  .hero__dots { display: none !important; }
  .hero__cta { transform: scale(.7); transform-origin: center bottom; }
}
