/* SUPimage — variante « claire » : fond blanc, peu de noir, place aux photos.
   Se charge après site.css et ne fait que surcharger. */

:root {
  --paper: #FFFFFF;
  --paper-2: #F4F3EE;          /* blanc cassé chaud pour alterner les sections */
  --ink-2: #FFFFFF;
  --ink-3: #ECEBE4;
  --muted-dark: #5B5F53;
  --line-dark: rgba(13,14,11,.10);
}
body { background: var(--white); }

/* Les anciennes sections noires deviennent claires */
.dark { background: var(--white); color: var(--ink); }
.dark.f-hero, .dark.hero { background: var(--paper-2); }
.dark .hl { background: linear-gradient(transparent 62%, var(--acid) 62%); color: inherit; }
.dark .btn--ghost:hover span { color: var(--white); }
.proof b { color: var(--ink); }
.proof b::after { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--acid); margin-top: 10px; }
.pillar .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--acid); color: var(--ink); letter-spacing: 0; }
.steps li::before { color: var(--ink); display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--acid); font-size: 1.2rem; }
.steps li { background: var(--white); border-color: var(--line-light); box-shadow: 0 1px 0 rgba(13,14,11,.02); }
.next-webconf strong { color: var(--ink); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--acid); }
.f-hero .tag { background: var(--white); color: var(--ink); border: 1px solid var(--line-light); }
.f-hero .tag--acid { background: var(--acid); border-color: var(--acid); }

/* En-tête blanc */
.site-header { background: rgba(255,255,255,.94); color: var(--ink); border-bottom-color: var(--line-light); }
.brand span { color: var(--muted-light); }
@media (max-width: 1020px) { .nav { background: var(--white); border-bottom-color: var(--line-light); } .nav a { border-bottom-color: var(--line-light); } }

/* Encadrés « l'essentiel » : vert doux au lieu du noir */
.facts .facts-cta { background: var(--paper-2); }
.facts .facts-cta .btn--ghost { color: var(--ink); }
.facts .facts-cta .btn--ghost:hover span { color: var(--white); }
.card--wide { background: var(--white); color: var(--ink); border-color: var(--line-light); border-left: 6px solid var(--acid); }
.card--wide p, .card--wide .meta { color: var(--muted-light); }
.card--wide .tag { background: var(--paper-2); color: var(--ink); }
.card--wide .go { background: var(--paper-2); color: var(--ink); }

/* Motif de carrés en version claire */
.art { background: var(--paper-2); }
.squares i { background: var(--ink-3); }
.squares i.w { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-light); }
.squares i.o { box-shadow: inset 0 0 0 1.5px var(--ink-3); }

/* Pied de page clair */
.site-footer { background: var(--paper-2); color: var(--ink); }
.foot-grid h4, .foot-grid address, .foot-brand p, .foot-bottom { color: var(--muted-light); }
.foot-grid address b { color: var(--ink) !important; }
.foot-grid a:hover, .foot-bottom a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--acid); text-decoration-thickness: 2px; }
.socials a { border-color: var(--line-light); }

/* Photos */
.photo { position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; background: var(--paper-2); aspect-ratio: 4/3; margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 4/5; }
.photo--wide { aspect-ratio: 16/9; }
.photo figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.92); padding: 7px 12px; border-radius: 999px; font-size: .82rem; font-weight: 500; }
.photo-todo { display: grid; place-items: center; text-align: center; padding: 24px; border: 2px dashed rgba(13,14,11,.14); background:
  radial-gradient(circle at 30% 25%, rgba(152,169,6,.35), transparent 45%), var(--paper-2); color: var(--muted-light); font-size: .9rem; }
.photo-todo b { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 6px; }
.photo-todo svg { width: 34px; height: 34px; margin: 0 auto 12px; color: var(--ink); opacity: .5; }

/* Hero avec photo */
.hero-photo { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-photo .photo { aspect-ratio: 4/5; }
.photo .badge { position: absolute; right: 16px; top: 16px; background: var(--acid); color: var(--ink); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: .85rem; }

/* Mot de la directrice */
.director { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.director .photo { aspect-ratio: 4/5; }
.director blockquote { margin: 0 0 24px; font: 600 clamp(1.4rem, 2.6vw, 2.1rem)/1.25 var(--f-display); letter-spacing: -.02em; }
.director blockquote::before { content: ""; display: block; width: 44px; height: 8px; border-radius: 4px; background: var(--acid); margin-bottom: 22px; }
.director .who { display: flex; flex-direction: column; gap: 2px; margin-bottom: 20px; }
.director .who b { font-family: var(--f-display); font-size: 1.15rem; }
.director .who span { color: var(--muted-light); font-size: .95rem; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery .photo:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

@media (max-width: 1020px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .hero-photo, .director { grid-template-columns: 1fr; }
  .hero-photo .photo { aspect-ratio: 4/3; order: -1; }
  .director .photo { max-width: 320px; }
  .gallery .photo:nth-child(1) { grid-column: span 2; grid-row: auto; aspect-ratio: 4/3; }
}
.section.dark:not(.hero):not(.f-hero) { background: var(--paper-2); }
.photo .badge { z-index: 2; }
.dark .hl, .hl { background: linear-gradient(transparent 72%, var(--acid) 72%); }

/* Filigrane : les deux carrés du logo, en très grand et très pâle,
   posés en bord de page sur les sections blanches et les en-têtes.
   Un seul filigrane par section, jamais derrière le texte courant. */
main > section { position: relative; isolation: isolate; overflow: hidden; }
main > section.section:not(.alt):not(.dark):not(.acid)::before,
main > section.f-hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: 56px; right: -70px; width: 300px; height: 136px;
  background:
    linear-gradient(rgba(13,14,11,.035), rgba(13,14,11,.035)) left / 136px 136px no-repeat,
    linear-gradient(rgba(152,169,6,.24), rgba(152,169,6,.24)) right / 136px 136px no-repeat;
  border-radius: 14px;
}
main > section.section:not(.alt):not(.dark):not(.acid):nth-of-type(even)::before { right: auto; left: -70px; top: auto; bottom: 56px; }
main > section.f-hero::before { top: 48px; right: -60px; width: 380px; height: 172px; background-size: 172px 172px, 172px 172px; }
@media (max-width: 1020px) {
  main > section::before { transform: scale(.6); transform-origin: right top; opacity: .8; }
}
/* Filigrane des sections blanches : uniquement dans la marge, jamais sous le texte */
main > section.section:not(.alt):not(.dark):not(.acid)::before { width: 214px; height: 100px; right: -110px; background-size: 100px 100px, 100px 100px; }
main > section.section:not(.alt):not(.dark):not(.acid):nth-of-type(even)::before { left: -110px; right: auto; }
@media (max-width: 1399px) { main > section.section:not(.alt):not(.dark):not(.acid)::before { display: none; } }

/* Photo derrière le titre (version claire) : voile blanc à gauche, photo visible à droite */
.f-hero.f-hero--img.dark { background-size: cover; background-position: center 30%; background-image: linear-gradient(90deg, rgba(244,243,238,.97) 0%, rgba(244,243,238,.9) 42%, rgba(244,243,238,.25) 100%), var(--hero-img, none); }
.f-hero.f-hero--todo.dark { background-color: var(--paper-2); background-image: radial-gradient(circle at 80% 35%, rgba(152,169,6,.45), transparent 42%), repeating-linear-gradient(135deg, rgba(13,14,11,.025) 0 12px, transparent 12px 24px); }
.hero-todo { border-color: rgba(13,14,11,.2); color: var(--muted-light); background: rgba(255,255,255,.7); }
main > section.f-hero--img::before { display: none; }
@media (max-width: 760px) { .f-hero.f-hero--img.dark:not(.f-hero--todo) { background-image: linear-gradient(rgba(244,243,238,.9), rgba(244,243,238,.9)), var(--hero-img, none); } }

/* ===== Version 7 novembre 2026 : logo d'origine, vert olive #98A906 ===== */
.brand img { height: 58px; width: 58px; margin-top: 0; border-radius: 6px; }
@media (max-width: 760px) { .brand img { height: 50px; width: 50px; } }
.foot-brand img { width: 88px; height: 88px; border-radius: 8px; }

/* Qualiopi : bien visible, juste sous le haut des pages clés */
.qualiopi { background: var(--white); border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.q-grid { grid-template-columns: minmax(260px, 460px) 1fr; }
.q-logo img { max-width: 460px; }
.q-dl { margin-top: 20px; }
.q-dl svg { flex-shrink: 0; }
@media (max-width: 760px) { .q-logo { max-width: 100%; } .q-logo img { max-width: 100%; } }

/* Mentions obligatoires RNCP */
.rncp-mention { border-left: 6px solid var(--acid); padding: 22px 24px; background: var(--paper-2); border-color: transparent; border-left-color: var(--acid); }
.rncp-mention dl { margin: 0; display: grid; gap: 8px; }
.rncp-mention dl > div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; font-size: .93rem; line-height: 1.5; }
.rncp-mention dt { font-weight: 600; }
.rncp-mention dd { margin: 0; }
.rncp-note { margin: 14px 0 0 !important; font-size: .9rem; color: var(--muted-light); }
@media (max-width: 560px) { .rncp-mention dl > div { grid-template-columns: 1fr; gap: 0; } }

/* Le vert olive n'est jamais utilisé en texte sur fond blanc : on prend sa version foncée */
.eyebrow { color: var(--ink); }
.dark .hl, .hl { background: linear-gradient(transparent 62%, rgba(152,169,6,.55) 62%); color: inherit; }
.eyebrow::before { background: var(--acid); }
/* Fond blanc partout ; gris très léger seulement pour alterner certaines sections */
:root { --paper-2: #F6F7F2; }
.dark.hero, .dark.f-hero { background: var(--white); }
.hero { border-bottom: 1px solid var(--line-light); }
/* Logo Qualiopi réduit (7 nov., demande de Stéphanie) */
.q-grid { grid-template-columns: 300px 1fr; }
.q-logo img { max-width: 300px; }
@media (max-width: 760px) { .q-logo { max-width: 240px; } .q-logo img { max-width: 240px; } }
@media (max-width: 760px) { .q-grid { grid-template-columns: 1fr; } .q-dl { white-space: normal; max-width: 100%; } }
/* Galerie à 6 photos (7 nov.) : 3 colonnes égales */
.gallery { grid-template-columns: repeat(3, 1fr); }
.gallery .photo, .gallery .photo:nth-child(1) { grid-column: auto; grid-row: auto; aspect-ratio: 4/3; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Mosaïque de visages (accueil, 7 nov.) */
.faces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.faces .photo { aspect-ratio: 4/5; }
.faces .photo:nth-child(even) { transform: translateY(28px); }
.faces-section { padding-bottom: calc(clamp(64px, 9vw, 120px) + 28px); }

/* « Ici, on vient comme on est » : les 5 photos défilent au doigt sur tablette et téléphone */
@media (max-width: 1020px) {
  .faces { display: flex !important; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
           margin: 0; padding: 0 0 10px; scrollbar-width: none; }
  .faces::-webkit-scrollbar { display: none; }
  .faces > * { display: block !important; flex: 0 0 40%; margin: 0 !important; scroll-snap-align: start;
               transform: none !important; opacity: 1 !important; }
  .faces img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; display: block; }
  .faces-section { padding-bottom: clamp(56px, 9vw, 120px); }
}
@media (max-width: 560px) { .faces > * { flex-basis: 64%; } }
