/* Page d'un projet (single-projet.php) : chargée seulement là (voir inc/blocks.php). */

/* En-tête : texte à gauche, site du client à droite */
.projet-entete {
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 56px; align-items: center;
	padding-block: 28px var(--wp--preset--spacing--xl);
}
.projet-entete__fil { grid-column: 1 / -1; font-size: 14px; font-weight: 600; color: var(--wp--preset--color--texte-doux); }
.projet-entete__fil ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.projet-entete__fil li + li::before { content: "/"; margin-right: 8px; } /* séparateur décoratif, non lu */
.projet-entete__fil [aria-current] { color: var(--wp--preset--color--encre); }
.projet-entete__fil a { color: inherit; text-decoration: none; }
.projet-entete__fil a:hover { color: var(--wp--preset--color--encre); text-decoration: underline; }
.projet-entete__texte { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.projet-entete__texte > * { margin: 0; }
.projet-entete__badge { background: var(--wp--preset--color--jaune); }
.projet-entete__titre { font-size: clamp(34px, 4vw, 58px); line-height: 1; letter-spacing: -.03em; text-wrap: balance; hyphens: manual; }
.projet-entete__extrait { font-size: var(--wp--preset--font-size--moyen); color: var(--wp--preset--color--texte-doux); max-width: 34ch; }
.projet-entete__techs { font-size: 14px; font-weight: 700; }
.projet-entete__lien .wp-element-button { display: inline-flex; gap: 8px; text-decoration: none; }

/* Le site du client dans sa fenêtre, logo collé en sticker */
.projet-entete__ecran {
	position: relative; margin: 0 0 30px;
	border: 2px solid var(--wp--preset--color--encre); border-radius: 22px;
	background: var(--wp--preset--color--blanc);
	box-shadow: 12px 12px 0 var(--wp--preset--color--vert);
	transform: rotate(1deg); transition: transform .6s cubic-bezier(.3, 1.4, .5, 1);
}
.projet-entete__ecran:hover { transform: rotate(0); }
.projet-entete__barre {
	position: relative; height: 36px; margin: 0; padding-left: 62px;
	border-bottom: 2px solid var(--wp--preset--color--encre);
	font-size: 13px; font-weight: 600; line-height: 32px;
}
.projet-entete__barre::before, .projet-entete__barre::after {
	content: ""; position: absolute; top: 11px; width: 11px; height: 11px;
	border: 2px solid var(--wp--preset--color--encre); border-radius: 50%;
}
.projet-entete__barre::before { left: 16px; }
.projet-entete__barre::after { left: 35px; }
.projet-entete__ecran > img {
	display: block; width: 100%; height: auto; aspect-ratio: 8 / 7; object-fit: cover; object-position: top center;
	border-radius: 0 0 20px 20px;
}
.projet-entete__logo {
	position: absolute; left: -22px; bottom: -34px;
	display: grid; place-items: center; width: 190px; height: 100px; padding: 12px 18px;
	background: var(--wp--preset--color--blanc);
	border: 2px solid var(--wp--preset--color--encre); border-radius: 16px;
	box-shadow: 5px 5px 0 var(--wp--preset--color--encre);
}
.projet-entete__logo img { width: auto; max-width: 100%; height: auto; max-height: 72px; object-fit: contain; }

/* Contenu saisi dans l'éditeur (anciennes fiches : colonnes, galerie, maquettes) */
.projet-contenu { padding-bottom: var(--wp--preset--spacing--l); }
.projet-contenu h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1; letter-spacing: -.02em; }
.projet-contenu .wp-block-columns { gap: 48px; align-items: center; margin-block: var(--wp--preset--spacing--l); }
/* Les anciens fonds gris clair passent en encart menthe, dans la charte. */
.projet-contenu .has-background[style*="#f9f9f9"] {
	background: var(--wp--preset--color--menthe) !important;
	border: 2px solid var(--wp--preset--color--encre); border-radius: 26px; padding: clamp(24px, 4vw, 48px);
}
.projet-contenu .wp-block-gallery { gap: 18px !important; margin-block: var(--wp--preset--spacing--l); }
.projet-contenu .wp-block-gallery .wp-block-image img {
	border: 2px solid var(--wp--preset--color--encre); border-radius: 18px;
}
.projet-contenu ul.check-projet { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.projet-contenu ul.check-projet li {
	padding: 4px 14px; border: 2px solid var(--wp--preset--color--encre); border-radius: 99px;
	font-size: 14px; font-weight: 600; background: var(--wp--preset--color--blanc);
}

/* Expertise mobilisée : liens vers les pages services, puis appel au devis */
.projet-expertises {
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 56px; align-items: center;
	margin-block: var(--wp--preset--spacing--l) var(--wp--preset--spacing--xl);
	padding: clamp(28px, 4vw, 52px);
	background: var(--wp--preset--color--encre); color: var(--wp--preset--color--blanc);
	border-radius: 28px;
}
.projet-expertises h2 { grid-row: span 2; margin: 0; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.02; letter-spacing: -.02em; color: inherit; text-wrap: balance; }
.projet-expertises h2 em { display: block; color: var(--wp--preset--color--menthe); }
.projet-expertises ul { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.projet-expertises li a {
	display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 20px;
	border: 2px solid var(--wp--preset--color--menthe); border-radius: 99px;
	color: var(--wp--preset--color--blanc); font-weight: 700; text-decoration: none;
	transition: background .2s, color .2s, transform .3s cubic-bezier(.3, 1.4, .5, 1);
}
.projet-expertises li a:hover, .projet-expertises li a:focus-visible { background: var(--wp--preset--color--menthe); color: var(--wp--preset--color--encre); transform: rotate(-2deg); }
.projet-expertises__devis { margin: 0; }
.projet-expertises__devis .wp-element-button { background: var(--wp--preset--color--vert); color: var(--wp--preset--color--encre); }

/* Textes centrés de l'éditeur : le bloc lui-même est centré, pas seulement ses lignes. */
.projet-contenu .has-text-align-center { margin-inline: auto; }

/* Bas de page : d'autres projets */
.projets-voisins { padding-block: var(--wp--preset--spacing--xl); border-top: 2px solid var(--wp--preset--color--encre); }
.projets-voisins h2 { margin: 0 0 48px; font-size: clamp(32px, 4vw, 52px); letter-spacing: -.02em; }
.projets-voisins__tous { margin: 8px 0 0; font-weight: 700; }
.projets-voisins__tous a { color: inherit; }

@media (max-width: 900px) {
	.projet-entete { grid-template-columns: 1fr; gap: 28px; }
	.projet-expertises { grid-template-columns: 1fr; }
	.projet-expertises h2 { grid-row: auto; }
	.projet-entete__ecran { transform: none; box-shadow: 8px 8px 0 var(--wp--preset--color--vert); }
	.projet-entete__logo { left: -8px; width: 150px; height: 82px; }
	.projet-entete__logo img { max-height: 56px; }
}

/* Résultats mesurés (chiffres Google Search Console) */
.projet-resultats { margin-block: var(--wp--preset--spacing--60, 64px); padding: clamp(24px, 4vw, 40px); border: 2px solid var(--wp--preset--color--encre); border-radius: 22px; background: var(--wp--preset--color--menthe); box-shadow: 6px 6px 0 var(--wp--preset--color--encre); }
.projet-resultats > * { max-width: 72ch; }
.projet-resultats h2 { margin-top: 0; }
.projet-resultats p { font-size: 19px; }
.projet-resultats .projet-resultats__source { margin-bottom: 0; font-size: 14px; opacity: .75; }
