/* SUPimage — proposition « visuel humain » (9 novembre 2026).
   Se charge après site.css, clair.css (et blocs.css dans WordPress). Ne concerne que la nouvelle page d'accueil,
   sauf les petites retouches communes en fin de fichier. */

/* ------------------------------------------------ Ouverture : mur de portraits plein écran */
main > section.hh { position: relative; isolation: isolate; overflow: hidden; color: var(--white);
  min-height: min(calc(100vh - 92px), 900px); display: flex; align-items: flex-end; padding: 0; margin: 0; background: var(--ink); }
.hh-faces { position: absolute; inset: 0; z-index: -2; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0; }
.hh-faces .photo, .hh-faces .hh-face { margin: 0 !important; border-radius: 0; aspect-ratio: auto; height: 100%; width: 100%; overflow: hidden; background: var(--paper-2); }
.hh-faces img { width: 100%; height: 100% !important; object-fit: cover; object-position: center 12%; display: block;
  animation: hh-zoom 1.6s var(--ease) both; }
.hh-faces > :nth-child(2) img { animation-delay: .08s; } .hh-faces > :nth-child(3) img { animation-delay: .16s; }
.hh-faces > :nth-child(4) img { animation-delay: .24s; } .hh-faces > :nth-child(5) img { animation-delay: .32s; }
@keyframes hh-zoom { from { transform: scale(1.08); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hh-faces img { animation: none; } }
/* Voile sombre en bas pour la lisibilité du texte */
main > section.hh::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(13,14,11,0) 34%, rgba(13,14,11,.7) 60%, rgba(13,14,11,.92) 100%); }
main > section.hh::before { display: none; }
.hh-content { width: 100%; padding: 0 0 clamp(40px, 6vw, 80px); margin: 0; }
.hh .eyebrow { color: var(--white); background: rgba(13,14,11,.35); padding: 8px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
.hh h1 { color: var(--white); max-width: 22ch; margin: 0 0 20px; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hh h1 .hl { display: block; background: none; color: var(--acid); }
.hh .lead { color: rgba(255,255,255,.9); max-width: 60ch; margin: 0 0 28px; }
.hh .btn-row, .hh .wp-block-buttons { margin: 0; }
.hh .btn--ghost, .hh .is-style-ghost .wp-block-button__link { color: var(--white); border-color: rgba(255,255,255,.7); }
.hh .btn--ghost:hover span { color: var(--ink); }
.hh .is-style-ghost .wp-block-button__link:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.hh .next-webconf { color: rgba(255,255,255,.75); }
.hh .next-webconf strong { color: var(--white); }
/* Pastille « Photo à venir » si un portrait manque */
.hh-faces .photo-todo { border: 0; }

/* Téléphone : les portraits en mosaïque au-dessus, le texte en dessous sur fond blanc */
@media (max-width: 760px) {
  main > section.hh { display: block; min-height: 0; color: var(--ink); background: var(--white); }
  main > section.hh::after { display: none; }
  .hh-faces { position: relative; inset: auto; z-index: auto; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 30vw; gap: 4px; }
  .hh-faces > * { grid-column: span 2; }
  .hh-faces > :nth-child(n+4) { grid-column: span 3; }
  .hh-faces > :nth-child(-n+3) { grid-row: span 2; }
  .hh-faces > :nth-child(n+4) img { object-position: center 30%; }
  .hh-content { padding: 28px 0 44px; }
  .hh .eyebrow { color: var(--ink); background: var(--paper-2); letter-spacing: .08em; font-size: .7rem; line-height: 1.3; }
  .hh h1 { color: var(--ink); text-shadow: none; font-size: clamp(2.3rem, 10.5vw, 3rem); }
  .hh h1 .hl { display: inline; color: inherit; background: linear-gradient(transparent 70%, var(--acid) 70%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  .hh .lead { color: var(--muted-light); }
  .hh .btn--ghost, .hh .is-style-ghost .wp-block-button__link { color: var(--ink); border-color: var(--ink); }
  .hh .btn--ghost:hover span { color: var(--white); }
  .hh .next-webconf { color: var(--muted-light); }
  .hh .next-webconf strong { color: var(--ink); }
}

/* ------------------------------------------------ Chiffres clés */
main > section.hh-nums-section { padding: clamp(40px, 5vw, 64px) 0; border-bottom: 1px solid var(--line-light); }
main > section.hh-nums-section::before { display: none; }
.hh-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.hh-num b { display: block; font: 750 clamp(2rem, 3.6vw, 3rem)/1 var(--f-display); letter-spacing: -.03em; color: var(--ink); margin: 0 0 10px; }
.hh-num b::after { content: ""; display: block; width: 32px; height: 5px; border-radius: 3px; background: var(--acid); margin-top: 12px; }
.hh-num span { display: block; color: var(--muted-light); font-size: .98rem; line-height: 1.45; }
@media (max-width: 900px) { .hh-nums { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------ Témoignages */
.temoins { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.temoin { display: flex; flex-direction: column; gap: 18px; background: var(--white); border: 1px solid var(--line-light); border-radius: calc(var(--radius) + 6px); padding: 14px 14px 24px; }
.temoin .photo { aspect-ratio: 4/5; }
.temoin blockquote, .temoin .wp-block-quote { margin: 0 10px; font: 500 1.12rem/1.45 var(--f-display); letter-spacing: -.01em; border: 0; padding: 0; }
.temoin blockquote::before, .temoin .wp-block-quote::before { content: "“"; display: block; font: 750 3.2rem/0.6 var(--f-display); color: var(--acid); margin: 10px 0 6px; }
.temoin blockquote p { margin: 0; }
.temoin-who { margin: auto 10px 0; color: var(--muted-light); font-size: .95rem; }
.temoin-who b { color: var(--ink); }
@media (max-width: 900px) {
  .temoins { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .temoins::-webkit-scrollbar { display: none; }
  .temoin { flex: 0 0 78%; scroll-snap-align: start; }
}

/* ------------------------------------------------ Retouches communes : photos un peu plus présentes */
.director .photo { box-shadow: 18px 18px 0 var(--acid); }
@media (max-width: 760px) { .director .photo { box-shadow: 10px 10px 0 var(--acid); } }

/* ------------------------------------------------ Photo de la directrice plus petite (9 nov.) */
.director { grid-template-columns: minmax(0, 300px) 1fr; align-items: center; }
.director .photo { max-width: 300px; box-shadow: 12px 12px 0 var(--acid); }
@media (max-width: 1020px) { .director { grid-template-columns: 1fr; } .director .photo { max-width: 220px; box-shadow: 8px 8px 0 var(--acid); } }

/* ------------------------------------------------ Blocs natifs de l'accueil (modifiables dans l'éditeur) */
.qualiopi figure.q-logo { margin: 0; }
.qualiopi .wp-block-buttons { margin-top: 20px; }
.qualiopi .q-dl .wp-block-button__link::after { transform: rotate(90deg); }
.steps-b { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step-b { counter-increment: s; padding: 28px 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line-light); }
.step-b::before { content: counter(s, decimal-leading-zero); display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--acid); color: var(--ink); font: 700 1.2rem/1 var(--f-display); margin-bottom: 26px; }
.step-b h3 { font-size: 1.15rem; margin: 0 0 8px; }
.step-b p { margin: 0; color: var(--muted-light); font-size: .95rem; }
@media (max-width: 1020px) { .steps-b { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps-b { grid-template-columns: 1fr; } }
.campus .addr { color: var(--muted-light); margin: 0; }
.campus article p { margin: 0; }
.campus .map { margin-top: 14px; }
.campus .map a { font-weight: 600; text-decoration-color: var(--acid); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cta-band .lead { margin-top: 18px; }

.steps-b ~ .wp-block-buttons, .steps-b ~ .btn-row { margin-top: 36px; }

/* Boutons à texte long (« S’inscrire à une réunion d’information ») : passent à la ligne au lieu de déborder (18 nov.) */
.btn { white-space: normal; text-align: center; line-height: 1.2; padding-top: 12px; padding-bottom: 12px; }
.btn .arrow, .btn svg { flex: none; }
.facts .facts-cta .btn { width: 100%; }
.wp-block-button__link { white-space: normal; text-align: center; line-height: 1.2; }
