/* ==========================================================================
   Fiches prestation : gabarit commun (templates/prestations/_commun.php)
   + « Nos autres prestations », présent sur toutes les fiches.
   Même famille que la Maintenance : sections bord à bord, surtitres à trait
   rouge, titres Futura/Jost, encart noir dans le hero.
   1. Hero + encart « En bref » (sommaire des étapes, équipe, projets).
   2. Objectifs et livrables. 3. Démarche en étapes numérotées.
   4. Projets réalisés (cartes de la refonte). 5. L'équipe (portraits).
   Sans JS ou mouvement réduit : tout est affiché, rien ne bouge.
   ========================================================================== */

.sumo-pr--commun {
	--prc-ink: var(--sumo-ink, #111);
	--prc-texte: #3d3d3d;                 /* 10,6:1 sur blanc */
	--prc-gris: #555;                     /* 7,5:1 sur blanc, 6,9:1 sur #f6f5f3 */
	--prc-rouge: var(--sumo-red, #ed1c24);
	--prc-rouge-texte: var(--sumo-red-text, #d9171f);
	--prc-ligne: #e3e3e3;
	--prc-fond: #f6f5f3;
	--prc-nuit: #0e0f11;
}
.pr--commun .sumo-kicker { margin-bottom: 14px; }
.sumo-refonte .pp-contenu .pr--commun .pp-titre,
.pr--commun .pp-titre { color: var(--prc-ink); text-wrap: balance; }
.pr--commun .is-gris { background: var(--prc-fond); }
.pr--commun .is-blanc { background: #fff; }
.pr--commun .is-blanc + .is-blanc { border-top: 1px solid var(--prc-ligne); }
.pr--commun .prc-h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.04; margin-bottom: 20px; }

/* --- 1. Hero ------------------------------------------------------------- */
.prc-hero { padding-top: clamp(40px, 5vw, 80px); }
.prc-hero__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.prc-hero__in.is-seul { grid-template-columns: minmax(0, 1fr); max-width: 980px; margin-left: 0; }
.prc-hero .pp-titre { font-size: clamp(2.3rem, 4.8vw, 4.25rem); hyphens: manual; overflow-wrap: break-word; }
.prc-accroche { font-size: clamp(1.125rem, 1.45vw, 1.3125rem); font-weight: 400; line-height: 1.55; color: var(--prc-texte); margin: 0; max-width: 34em; }

.prc-bref {
	background: var(--prc-nuit);
	color: #e8e8e8;
	border-radius: 14px;
	padding: clamp(22px, 2.4vw, 32px) clamp(22px, 2.6vw, 34px) clamp(20px, 2vw, 28px);
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55);
}
.sumo-refonte .pp-contenu .prc-bref__titre {
	margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .14);
	font: 700 .8125rem/1.2 var(--font-body, Lato, sans-serif); letter-spacing: .12em; text-transform: uppercase; color: #fff;
}
.prc-bref__visuel { margin: calc(-1 * clamp(22px, 2.4vw, 32px)) calc(-1 * clamp(22px, 2.6vw, 34px)) 22px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px 14px 0 0; background: #222; }
.prc-bref__visuel img { display: block; width: 100%; height: 100%; object-fit: cover; }
.prc-bref__sur { margin: 0 0 8px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #b5b5b5; }
.prc-bref__etapes { list-style: none; margin: 0 0 6px; padding: 0; }
.prc-bref__etapes li { margin: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.prc-bref__etapes li:last-child { border-bottom: 0; }
.prc-bref__etapes a {
	display: grid; grid-template-columns: 2.4em minmax(0, 1fr); align-items: baseline; gap: 8px;
	padding: 9px 0; color: #fff; text-decoration: none; font-weight: 700; line-height: 1.35;
}
.prc-bref__etapes a span { font: 600 .875rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #ff8a80; }  /* 7,8:1 sur la nuit */
.prc-bref__etapes a:hover { color: #ff8a80; }
.prc-bref__etapes a:focus-visible,
.prc-bref__projets a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.prc-bref__pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 14px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); }
.prc-bref__etapes + .prc-bref__pied { margin-top: 10px; }
.prc-bref__titre + .prc-bref__pied { margin-top: 0; padding-top: 0; border-top: 0; }
.prc-bref__avec { display: flex; align-items: center; gap: 12px; }
.prc-bref__avec p { margin: 0; font-weight: 700; color: #fff; }
.prc-bref__avec .prc-bref__sur { display: block; margin: 0 0 2px; }
.prc-bref__visages { display: flex; }
.prc-bref__visages img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: #fff; border: 2px solid var(--prc-nuit); }
.prc-bref__visages img + img { margin-left: -12px; }
.prc-bref__projets { margin: 0; }
.prc-bref__projets a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--prc-rouge); padding-bottom: 2px; }
.prc-bref__projets a:hover { color: #ff8a80; }

/* --- Colonnes : titre à gauche, contenu à droite ---------------------------- */
.prc-cols { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.prc-cols--etapes .prc-cols__tete { position: sticky; top: calc(var(--sumo-header-offset, 110px) + 24px); }
.prc-prose { font-size: clamp(1.0625rem, 1.2vw, 1.1875rem); font-weight: 400; line-height: 1.65; color: var(--prc-texte); max-width: 40em; }
.prc-prose p { margin: 0 0 1em; }
.prc-prose p:last-child { margin-bottom: 0; }
.prc-prose strong, .prc-prose b { color: var(--prc-ink); }
.prc-prose .prc-lead { font-size: clamp(1.25rem, 1.75vw, 1.5rem); line-height: 1.45; color: var(--prc-ink); }
.prc-prose--intro { font-size: 1.0625rem; color: var(--prc-gris); }
.prc-prose--suite { margin-top: 32px; }

/* --- 2. Objectifs et livrables --------------------------------------------- */
.prc-livrables { margin-top: clamp(28px, 3vw, 40px); background: #fff; padding: clamp(22px, 2.4vw, 32px) clamp(22px, 2.6vw, 36px); border-top: 4px solid var(--prc-ink); }
.is-blanc .prc-livrables { background: var(--prc-fond); }
.sumo-refonte .pp-contenu .prc-livrables__titre { font-family: var(--font-title); font-weight: 700; font-size: 1.375rem; line-height: 1.2; margin: 0 0 16px; color: var(--prc-ink); }
.prc-coches { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.prc-coches li { position: relative; margin: 0; padding-left: 32px; line-height: 1.55; color: var(--prc-texte); font-size: 1.0625rem; font-weight: 400; }
.prc-coches li::before { content: ""; position: absolute; left: 0; top: .7em; width: 18px; height: 4px; background: var(--prc-rouge); }
.prc-photo { margin: clamp(24px, 3vw, 40px) 0 0; }
.prc-photo img { display: block; width: 100%; height: auto; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .45); }

/* --- 3. Démarche ------------------------------------------------------------- */
.prc-etapes { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.prc-etape {
	position: relative; display: grid; grid-template-columns: clamp(56px, 6vw, 84px) minmax(0, 1fr); gap: 0 clamp(16px, 2vw, 28px);
	margin: 0; padding: clamp(22px, 2.4vw, 30px) 0; border-top: 1px solid var(--prc-ligne);
}
.is-gris .prc-etape { border-top-color: #dcdad5; }
.prc-etape:last-child { border-bottom: 1px solid var(--prc-ligne); }
.prc-etape::before { content: ""; position: absolute; left: 0; top: -2px; width: 40px; height: 4px; background: var(--prc-rouge); }
.prc-etape__num { font-family: var(--font-title); font-weight: 700; font-size: clamp(2rem, 3vw, 2.75rem); line-height: .95; color: var(--prc-rouge-texte); font-variant-numeric: tabular-nums; }
.sumo-refonte .pp-contenu .prc-etape h3 { font-family: var(--font-title); font-weight: 700; font-size: clamp(1.3rem, 1.7vw, 1.6rem); line-height: 1.2; margin: 4px 0 8px; color: var(--prc-ink); }
.prc-etape p { margin: 0; color: var(--prc-texte); font-size: 1.0625rem; font-weight: 400; line-height: 1.6; max-width: 36em; }
.prc-etape__corps > h3:only-child { margin-bottom: 0; }

/* --- 4. Projets ---------------------------------------------------------------- */
.prc-tete-ligne { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(28px, 3.4vw, 48px); }
.prc-tete-ligne .prc-h2 { margin-bottom: 0; }

/* --- 5. Équipe (même dessin que les estampes du dojo) -------------------------- */
.prc-portraits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(20px, 3vw, 40px); }
.prc-portraits li { margin: 0; }
.prc-portraits a { display: block; color: inherit; text-decoration: none; }
.prc-portraits__img { display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 1 / 1; overflow: hidden; }
.prc-portraits__img img { display: block; width: auto; height: auto; max-width: 88%; max-height: 100%; transform-origin: 50% 100%; transition: transform .5s var(--sumo-ease, ease); }
.prc-portraits__nom { position: relative; display: block; padding-top: 14px; border-top: 1px solid var(--prc-ligne); font-family: var(--font-title); font-size: 1.25rem; line-height: 1.15; color: var(--prc-ink); }
.prc-portraits__nom::before { content: ""; position: absolute; left: 0; top: -2px; width: 32px; height: 4px; background: var(--prc-rouge); transition: width .45s var(--sumo-ease, ease); }
.prc-portraits__role { display: block; margin-top: 4px; color: var(--prc-gris); font-size: .9375rem; font-weight: 400; }
.prc-portraits a:is(:hover, :focus-visible) .prc-portraits__nom::before { width: 100%; }
.prc-portraits a:is(:hover, :focus-visible) img { transform: scale(1.04); }
.prc-portraits a:focus-visible { outline: 3px solid var(--prc-rouge); outline-offset: 6px; }

/* --- À voir aussi : trois prestations voisines (toutes les fiches) ----------------- */
.pr-autres__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.pr-autre { margin: 0; }
.pr-autre a { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding-top: 22px; color: var(--sumo-ink, #111); text-decoration: none; }
.pr-autre a::before { content: ""; position: absolute; left: 0; top: 0; width: 32px; height: 4px; background: var(--sumo-red, #ed1c24); transition: width .45s var(--sumo-ease, ease); }
.pr-autre a:is(:hover, :focus-visible)::before { width: 100%; }
.pr-autre__titre { font-family: var(--font-title); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.pr-autre__texte { color: #3d3d3d; line-height: 1.55; text-wrap: pretty; }
.pr-autre__lien { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--sumo-red-text, #d9171f); }
.pr-autre a:focus-visible { outline: 3px solid var(--sumo-red, #ed1c24); outline-offset: 6px; }
.pr-autre__fleche { flex: none; transition: translate .25s ease; }
.pr-autre a:hover .pr-autre__fleche { translate: 5px 0; }

/* Maintenance : ses cas graves ne sont pas collés au bloc « À voir aussi » */
.sumo-pr .pp-contenu .mt-continuite { padding-bottom: clamp(64px, 9vw, 140px); }

/* --- Mouvement (sans réduction des animations) ----------------------------------- */
@media (prefers-reduced-motion: no-preference) {
	.prc-bref { animation: prc-monte .7s cubic-bezier(.2, .8, .2, 1) .15s both; }
	.prc-bref__etapes li { animation: prc-monte .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.45s + var(--i, 0) * .08s); }
	.prc-bref__etapes li:nth-child(2) { --i: 1; } .prc-bref__etapes li:nth-child(3) { --i: 2; } .prc-bref__etapes li:nth-child(4) { --i: 3; }
	.prc-bref__etapes li:nth-child(5) { --i: 4; } .prc-bref__etapes li:nth-child(6) { --i: 5; } .prc-bref__etapes li:nth-child(7) { --i: 6; }
	.prc-bref__etapes li:nth-child(n+8) { --i: 7; }
	@keyframes prc-monte { from { opacity: 0; translate: 0 14px; } }
	.pp-js .prc-etape::before { transition: width .7s cubic-bezier(.2, .8, .2, 1) .25s; }
	.pp-js .prc-etape:not(.is-vu)::before { width: 0; }
	.pp-js .prc-etape .prc-etape__num { transition: opacity .6s ease .15s, translate .7s cubic-bezier(.2, .8, .2, 1) .15s; }
	.pp-js .prc-etape:not(.is-vu) .prc-etape__num { opacity: 0; translate: 0 10px; }
	.pp-js .prc-etapes [data-pp-vu]:not(.is-vu) { translate: 0 16px; }
	.prc-cartes > li:nth-child(3n+2) { --pp-delai: .1s; }
	.prc-cartes > li:nth-child(3n) { --pp-delai: .2s; }
	.prc-portraits > li:nth-child(2) { --pp-delai: .1s; }
	.prc-portraits > li:nth-child(3) { --pp-delai: .2s; }
}

/* --- Tablette et mobile -------------------------------------------------------- */
@media (max-width: 900px) {
	.prc-hero__in { grid-template-columns: minmax(0, 1fr); }
	/* le sommaire des étapes ferait doublon avec la démarche, juste en dessous */
	.prc-bref__etapes, .prc-bref__etapes ~ .prc-bref__sur, #prc-bref-etapes { display: none; }
	.prc-bref__etapes + .prc-bref__pied { margin-top: 0; padding-top: 0; border-top: 0; }
	.prc-bref:not(:has(.prc-bref__pied, .prc-bref__visuel)) { display: none; }
	.prc-cols { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.prc-cols--etapes .prc-cols__tete { position: static; }
	.prc-cols--etapes .prc-cols__tete { margin-bottom: 20px; }
	.prc-portraits { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
	.prc-tete-ligne { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 781px) {
	.sumo-refonte .prc-cartes.sumo-cards--trois { grid-template-columns: minmax(0, 1fr); }
	.pr-autres__liste { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
	.prc-bref__etapes a { font-size: .9375rem; }
	.prc-etape { grid-template-columns: 48px minmax(0, 1fr); }
	.prc-portraits__nom { font-size: 1.0625rem; }
	.prc-portraits__role { font-size: .8125rem; }
}
