/* Crédit Immo Prism : jetons et socle (surcharge da.css) */
:root {
	--c-primaire: #1d4ed8; --c-primaire-texte: #1d4ed8; --c-accent: #2563eb;
	--c-voile: #0f172a; --c-sur-voile: #ffffff; --c-texte: #0f172a; --c-texte-doux: #475569;
	--c-fond: #ffffff; --c-fond-2: #f5f5f4; --c-surface: #ffffff; --c-bord: #d6d3d1; --c-bleu-pale: #dbeafe;
	--btn-fond: #1d4ed8; --btn-texte: #ffffff; --btn-fond-survol: #1e3a8a; --lien-couleur: #1d4ed8;
	--f-titre: 'Clash-Display', system-ui, sans-serif; --f-texte: 'Clash-Grotesk', system-ui, sans-serif;
	--r-carte: 0; --r-bouton: 0; --r-image: 0;
	--pr-largeur: 1100px; --pr-entete-h: 132px;
}
html { scroll-padding-top: calc(var(--pr-entete-h) + 12px); }
body { background: var(--c-fond); color: var(--c-texte); font-family: var(--f-texte); }
[id] { scroll-margin-top: calc(var(--pr-entete-h) + 12px); }
.pr-conteneur { width: min(var(--pr-largeur), 100% - 2.5rem); margin-inline: auto; }
.pr-kicker { display: inline-block; font-family: var(--f-texte); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-primaire); }
.pr-bouton { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .7rem 1.25rem; background: var(--btn-fond); color: var(--btn-texte); font-weight: 600; text-decoration: none; border: 2px solid var(--btn-fond); border-radius: 0; white-space: nowrap; transition: background .2s, border-color .2s; }
.pr-bouton:hover { background: var(--btn-fond-survol); border-color: var(--btn-fond-survol); }
.pr-bouton-clair { background: transparent; color: #fff; border-color: #fff; }
.pr-bouton-clair:hover { background: #fff; color: var(--c-voile); border-color: #fff; }
.pr-icone { width: 1.4rem; height: 1.4rem; flex: none; }

/* En-tête */
.pr-entete { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--c-bord); max-height: 200px; }
.pr-bandeau { position: sticky; top: 0; display: flex; align-items: center; gap: 1rem; height: 36px; padding-inline: 1.25rem; background: var(--c-voile); color: var(--c-sur-voile); font-size: .85rem; }
.pr-bandeau-titre { flex: none; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: #93c5fd; }
.pr-bandeau-defile { flex: 1; min-width: 0; }
.pr-bandeau .kv-piste a { color: #fff; text-decoration: none; white-space: nowrap; }
.pr-bandeau .kv-piste a:hover { text-decoration: underline; }
.pr-bandeau-fermer { flex: none; width: 28px; height: 28px; background: none; border: 0; color: #fff; font-size: 1.25rem; line-height: 1; cursor: pointer; }
.pr-barre { display: flex; align-items: center; gap: 2.5rem; width: min(1280px, 100% - 2.5rem); margin-inline: auto; min-height: 88px; }
.pr-logo { display: inline-flex; flex: none; }
.pr-logo img { height: 56px; width: auto; display: block; }
.pr-nav { flex: 1; }
.pr-nav ul { display: flex; gap: 2.25rem; list-style: none; margin: 0; padding: 0; justify-content: flex-end; }
.pr-nav a { white-space: nowrap; color: var(--c-texte); text-decoration: none; font-weight: 600; font-size: 1rem; padding-block: .5rem; border-bottom: 2px solid transparent; }
.pr-nav a:hover, .pr-nav a[aria-current="page"] { color: var(--c-primaire); border-bottom-color: var(--c-primaire); }
@media (max-width: 899px) {
	:root { --pr-entete-h: 150px; }
	.pr-barre { flex-wrap: wrap; gap: .5rem 2rem; min-height: 0; padding-block: .6rem; }
	.pr-logo img { height: 40px; }
	.pr-barre-bouton { display: none; }
	.pr-nav { flex-basis: 100%; overflow-x: auto; }
	.pr-nav ul { justify-content: flex-start; gap: 2rem; }
}
/* portier home:socle — chaque cible tactile du header fait au moins 44 px de haut */
.pr-bandeau .pr-bandeau-fermer { width: 44px; min-height: 44px; margin-block: -6px; display: inline-flex; align-items: center; justify-content: center; }
.pr-barre .pr-logo { min-height: 44px; align-items: center; }
.pr-nav ul li a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
.pr-entete .pr-bandeau .kv-piste a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -6px; }

/* Cartes liste : vignette à gauche */
.pr-cl-lien { display: grid; grid-template-columns: minmax(96px, 34%) 1fr; gap: 1rem; color: inherit; text-decoration: none; align-items: start; }
.pr-cl-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 0; max-height: 220px; }
.pr-cl-corps { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.pr-cl-titre { font-family: var(--f-titre); font-size: 1.15rem; line-height: 1.25; margin: 0; font-weight: 600; color: var(--c-texte); }
.pr-cl-lien:hover .pr-cl-titre { color: var(--c-primaire); }
.pr-cl-chapo { color: var(--c-texte-doux); font-size: .95rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pr-cl time, .pr-date { font-size: .82rem; color: var(--c-texte-doux); }

/* Pied de page */
.pr-pied { background: var(--c-voile); color: #e2e8f0; margin-top: 0; }
.pr-pied a { color: #fff; text-decoration: none; }
.pr-pied a:hover { text-decoration: underline; }
.pr-pied-grille { width: min(var(--pr-largeur), 100% - 2.5rem); margin-inline: auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.pr-pied-col p { line-height: 1.6; font-size: .95rem; max-width: 36ch; }
.pr-pied-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.pr-pied-titre { font-family: var(--f-titre); font-weight: 600; color: #93c5fd; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem !important; margin: 0 0 1rem; }
.pr-pied-logo img { height: 48px; width: auto; display: block; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.pr-pied-legal { border-top: 1px dashed rgba(255,255,255,.25); }
.pr-pied-legal p { width: min(var(--pr-largeur), 100% - 2.5rem); margin: 0 auto; padding-block: 1.25rem; font-size: .85rem; color: #cbd5e1; }
@media (max-width: 899px) { .pr-pied-grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) { .pr-pied-grille { grid-template-columns: 1fr; } }

/* Pages internes */
[data-usine-page="interne"] { width: min(var(--pr-largeur), 100% - 2.5rem); margin-inline: auto; padding-block: 3rem 4.5rem; }
[data-usine-page="interne"] h1 { font-family: var(--f-titre); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin: .5rem 0 1rem; }
[data-usine-page="interne"] h2 { font-family: var(--f-titre); font-size: 1.5rem; margin: 2.5rem 0 1rem; }
[data-usine-page="interne"] .pr-prose, [data-usine-page="interne"] .pr-intro { max-width: 72ch; line-height: 1.7; }
[data-usine-page="interne"] .pr-prose p, [data-usine-page="interne"] .pr-prose li { max-width: min(54ch, 31em); }
[data-usine-page="interne"] .pr-prose a { color: var(--lien-couleur); }
.pr-fil { font-size: .85rem; color: var(--c-texte-doux); display: flex; gap: .5rem; flex-wrap: wrap; }
.pr-fil a { color: var(--c-texte-doux); }
.pr-grille-cartes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2.5rem; margin-top: 2rem; }
.pr-grille-cartes > * { border-top: 1px dashed var(--c-bord); padding-top: 1.5rem; }
@media (max-width: 819px) { .pr-grille-cartes { grid-template-columns: 1fr; } }
.pr-filtres { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; list-style: none; padding: 0; }
.pr-filtres a { display: inline-block; padding: .45rem .9rem; border: 1px solid var(--c-bord); color: var(--c-texte); text-decoration: none; white-space: nowrap; }
.pr-filtres a:hover, .pr-filtres a[aria-current="page"] { border-color: var(--c-primaire); color: var(--c-primaire); }
.pr-form { display: grid; gap: 1.1rem; max-width: 640px; margin-top: 2rem; }
.pr-form label { display: grid; gap: .4rem; font-weight: 600; }
.pr-form input, .pr-form textarea, .pr-form select { font: inherit; padding: .75rem .9rem; border: 1px solid #a8a29e; border-radius: 0; background: #fff; color: var(--c-texte); min-height: 48px; }
.pr-form input:focus, .pr-form textarea:focus { outline: 2px solid var(--c-primaire); outline-offset: 1px; }
.pr-pot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.pr-auteurs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 2rem; }
@media (max-width: 699px) { .pr-auteurs { grid-template-columns: 1fr; } }
.pr-auteur { display: grid; grid-template-columns: 120px 1fr; gap: 1.25rem; align-items: start; }
.pr-auteur img { width: 120px; height: 120px; object-fit: cover; }
.pr-auteur h2, .pr-auteur h3 { margin: 0 0 .25rem; font-family: var(--f-titre); font-size: 1.25rem; }
.pr-auteur a { color: inherit; }
.ka-com .ka-com-consentement input { width: auto; flex: none; }
.ka-com .ka-com-consentement label { flex: 1 1 auto; min-width: 0; }
@media (max-width: 559px) {
	.pr-auteur { grid-template-columns: 1fr; }
	.pr-cl-lien, .bh-prsm-une-liste .pr-cl-lien { grid-template-columns: 1fr; gap: .75rem; }
	.pr-cl-img { max-height: 200px; }
	.ka-corps .ka-auteur { padding: 1rem .75rem; }
}

/* Article : tête de KitArticle */
.pr-art-tete h1 { font-family: var(--f-titre); font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.1; margin: .6rem 0 1rem; }
.pr-art-tete .pr-chapo { font-size: 1.15rem; line-height: 1.6; color: var(--c-texte-doux); max-width: 70ch; }
.pr-art-tete .pr-art-meta { font-size: .9rem; color: var(--c-texte-doux); margin: .75rem 0 1.25rem; }
.pr-art-tete img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 0; }
.pr-art-tete .pr-kicker a { color: inherit; text-decoration: none; }
.pr-article { width: min(1180px, 100% - 2.5rem); margin-inline: auto; padding-block: 2rem 4rem; }
.pr-envoi { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.25rem; padding: .85rem 1rem; border-radius: 0; font-weight: 500; }
.pr-envoi[hidden] { display: none; }
.pr-envoi svg { flex: none; }
.pr-envoi-ok { background: #dbeafe; color: #1e3a8a; }
.pr-envoi-erreur { border-left: 3px solid #b91c1c; color: #b91c1c; background: #fff; }
.pr-bouton-carre, .pr-form .button.pr-bouton-carre { border-radius: 0 !important; background: var(--c-voile); color: #fff; min-height: 44px; padding: .7rem 1.25rem; }

/* ===== builder-3 : pages rubrique, auteur, contact ===== */
@media (min-width: 1200px) {
	.pr-grille-cartes { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.pr-grille-cartes > * { grid-column: span 2; }
	.pr-grille-cartes > :first-child:nth-last-child(3n+1) { grid-column: 1 / -1; }
	.pr-grille-cartes > :nth-child(3n+1):nth-last-child(2), .pr-grille-cartes > :nth-child(3n+1):nth-last-child(2) + * { grid-column: span 3; }
	.pr-grille-cartes > :not(:first-child:nth-last-child(3n+1)) .pr-cl-lien { grid-template-columns: minmax(0, 1fr); }
}
.pr-auteur img, .pr-auteurs img { filter: grayscale(.7); border-radius: 0; }
.pr-form input, .pr-form textarea, .pr-form select, .pr-form input:invalid, .pr-form textarea:invalid { border-color: #a8a29e; box-shadow: none; }
.pr-form input:user-invalid, .pr-form textarea:user-invalid { border-color: #b91c1c; box-shadow: 0 0 0 1px #b91c1c; }
/* builder-3 : page à propos */
.pr-apropos-visuel { margin: 0 0 1.5rem; }
.pr-apropos-visuel img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 0; }
.pr-apropos-plumes { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: 1rem; }
.pr-apropos-plumes li { list-style: none; margin: 0; }
.pr-apropos-plumes li::marker { content: none; }
.pr-apropos-plumes a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; align-items: center; text-decoration: none; color: inherit; }
.pr-apropos-plumes img { width: 96px; height: 96px; object-fit: cover; border-radius: 0; filter: grayscale(.7); }
.pr-apropos-plumes strong { display: block; }
/* builder-3 : pages internes, paragraphes resserrés (mentions légales) */
.pr-interne .pr-prose p { margin-block: 0 .75em; }
.pr-interne .pr-prose h2 { margin-block: 1.5em .5em; }
/* pré-contrôle a_propos : 75 car./ligne au plus dans la colonne interne (même plafond que les <p> du socle) */
.pr-interne .pr-prose :is(ul, ol, dl, blockquote, h2, h3, figcaption, li) { max-width: min(54ch, 31em); }
.pr-interne .pr-prose .pr-apropos-plumes { max-width: min(54ch, 31em); }
