/* Ajouts propres à WordPress (la maquette n'en avait pas besoin). Fichier du thème, jamais réécrit par l'export. */

/* Réalisations de l'accueil : un vrai visuel remplit la vignette comme les illustrations. */
.ph--media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work:hover .ph--media img, .work:focus-visible .ph--media img { transform: scale(1.035); }
/* « Trois exemples concrets » des pages métier : trois cartes égales (la grille 7/5 de l'accueil est faite pour quatre) */
.exemples .works__more { margin-top: 32px; }
@media (min-width: 900px) { .works--trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } .works--trio > :nth-child(n) { grid-column: auto; } }

/* Page Projets : une illustration provisoire est signalée comme telle, même quand elle sert d'image. */
.pj-card.is-illus .pj-tag { display: block; }

/* Formulaires : le champ « pot de miel » (inc/demandes.php) est hors écran, jamais rempli par une personne. */
.hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Pages de texte (mentions légales, confidentialité, guides publiés) : gabarit index.php. */
.idg-prose { display: grid; gap: 16px; max-width: 68ch; }
.idg-prose h2 { font: 700 clamp(1.375rem, 2.4vw, 1.75rem)/1.15 var(--f-display); letter-spacing: -.01em; margin-top: 24px; }
.idg-prose p, .idg-prose li { font-size: 1.0625rem; line-height: 1.6; }
.idg-prose ul { display: grid; gap: 6px; padding-left: 1.2em; list-style: disc; }
.idg-prose a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.idg-prose code { font: 500 .9em/1 var(--f-mono); padding: 2px 5px; background: color-mix(in srgb, var(--fg) 7%, transparent); }
.idg-prose .lead { font-size: 1.25rem; color: var(--fg-2); }
.idg-prose .small { font-size: .875rem; color: var(--fg-2); }

/* ---- Refonte performance (octobre 2026), surcharges des styles générés depuis la maquette ---- */
/* Page Projets : la barre de filtres collante n'a plus de flou d'arrière-plan (même raison que l'en-tête). */
.pj-filters { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255,255,255,.96); }
/* Bandeaux de l'ouverture : seules les rangées visibles sont rendues (2 sur téléphone, 3 et deux demi sur bureau). */
@media (max-width: 899px) { .pj-row.r2, .pj-row.r5 { display: none; } }

/* Page IA, scène du cas réel : le lien vers la fiche projet reste lisible sur le fond sombre. */
.i-doc__head .idg-link { --accent-txt: var(--vert-clair); white-space: nowrap; }
/* Page Web, scène du SERP : le gris des faux résultats passe de 3,1:1 à 4,7:1 sur blanc (texte de 12 px). */
.row-r .d, .row-r .s { color: #6B7680; }

/* Page d'un projet (/projets/<slug>/), gabarit single-projet.php */
.pj-page__crumbs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 28px; font: 500 .8125rem/1.4 var(--f-mono); color: var(--fg-2); }
.pj-page__crumbs a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.pj-page__grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .pj-page__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; } }
.pj-page__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: color-mix(in srgb, var(--fg) 6%, var(--bg)); }
.pj-page__media img, .pj-page__media > svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.pj-page__piece { display: grid; place-items: center; width: 100%; height: 100%; background: var(--cvbg); }
.pj-page__glyph { width: 34%; height: auto; }
.pj-page__text { display: grid; gap: 18px; min-width: 0; }
.pj-page__text .t1 { font-size: clamp(2rem, 5vw, 3.25rem); }
.pj-page__meta { font: 500 .875rem/1.4 var(--f-mono); color: var(--fg-2); }
.pj-page__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pj-page__chips a, .pj-page__chips span { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line, #DCE2E6); font-size: .875rem; color: inherit; text-decoration: none; }
.pj-page__chips i { width: 10px; height: 10px; background: var(--c); }
.pj-page__links { display: grid; gap: 6px; }
.pj-page__links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.pj-page__accord { font: 500 .8125rem/1.4 var(--f-mono); color: var(--fg-2); }
.pj-page__list { display: grid; gap: 20px; }
@media (min-width: 700px) { .pj-page__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pj-page__card { display: grid; gap: 8px; color: inherit; text-decoration: none; }
.pj-page__card b { font: 600 1.0625rem/1.3 var(--f-text); }
.pj-page__card small { font: 500 .8125rem/1.3 var(--f-mono); color: var(--fg-2); }
.pj-page__card:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* Accueil, ouverture : sur un écran large mais peu haut (portable, fenêtre réduite), le bloc de texte calé en bas
   remontait sous l'en-tête fixe. Le titre dépend aussi de la hauteur de l'écran et la promesse se raccourcit. */
@media (min-width: 900px) { .assemble h1 .display { font-size: clamp(3.1rem, min(13.5vw, 27svh - 90px), 9.5rem); } }
@media (min-width: 900px) and (max-height: 899px) {
  .assemble .lead-more { display: none; }
  .assemble .lead { font-size: 1.0625rem; line-height: 1.5; }
  .assemble__copy { padding-bottom: clamp(20px, 4svh, 40px); }
}

/* Carte « Qui vous accompagne » : la photo du membre (thumbnail 150 × 150, attributs width/height) remplit le carré
   de 96 px ; sans cette règle, max-width:100% la réduit en largeur seulement et le portrait est étiré. */
.person .avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Carte « Qui vous accompagne » : le lien LinkedIn du membre passe sous son rôle (les .small de la maquette sont en
   ligne ; sans cette règle, le lien se colle au dernier mot du rôle). */
.person .small + .small { display: block; margin-top: 2px; }
