/* Frise historique PHF – charte primholstein.com (style-v3.css)
   Tout est préfixé .phf-frise / .phf-correction / .phf-histoire-page pour ne rien casser dans le thème. */

.phf-frise,.phf-correction{
	--phf-navy:#024382;--phf-menu:#013e7e;--phf-blue:#336191;--phf-blue2:#305a83;--phf-deep:#13406f;
	--phf-orange:#de7022;--phf-orange-f:#c55f17;--phf-orange-l:#fdf1e8;--phf-grey:#5a6776;--phf-line:#e3e6ea;--phf-tag:#eef3f9;
	--phf-haut:var(--wp-admin--admin-bar--height,0px);
	font-family:"Open Sans",Arial,Helvetica,sans-serif;font-size:16px;line-height:1.6;color:var(--phf-navy);text-align:left;
}
.phf-frise *,.phf-correction *{box-sizing:border-box}
/* Le thème impose « #content p, #content ul { color:#000; font-size:1.2em; text-align:justify } » :
   « html body #id » est plus prioritaire que « #content p », sans recourir à !important. */
html body #phf-frise p,html body #phf-correction p{margin:0 0 8px;font-size:16px;line-height:1.6;color:var(--phf-navy);text-align:left}
html body #phf-frise ul,html body #phf-frise ol{margin:4px 0 8px 20px;padding:0;font-size:16px;line-height:1.6;color:var(--phf-navy);text-align:left;list-style:disc outside}
html body #phf-frise li,html body #phf-frise li p{margin:0 0 3px;font-size:16px;line-height:1.6;color:var(--phf-navy)}
.phf-frise a{color:var(--phf-navy)}
.phf-frise h2,.phf-frise h3{clear:none}

/* ---------- Page « Histoire (pleine largeur) » ---------- */
.phf-histoire-page #main.phf-histoire-main{overflow:visible}
.phf-histoire-page #content.phf-histoire-contenu{float:none;width:auto;max-width:1240px;margin:0 auto;padding:40px 4% 56px;background:#fff}
.phf-histoire-page #content .phf-histoire-article{overflow:visible;text-align:left}
.phf-histoire-page #content h1.entry-title{font-size:34px;line-height:1.2;font-weight:700;color:var(--phf-navy,#024382);max-width:900px;margin:0 auto}
.phf-histoire-page #content h1.entry-title:after{content:"";display:block;width:64px;height:3px;background:#de7022;margin:18px auto 0}
.phf-histoire-page #content .phf-histoire-article>p,.phf-histoire-page #content .phf-intro p{max-width:820px;margin:20px auto 0;text-align:center;font-size:19px;line-height:1.6;color:#024382}

/* ---------- Chiffres clés ---------- */
.phf-frise__chiffres{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;max-width:820px;margin:28px auto 0}
.phf-frise__chiffre{background:var(--phf-tag);border-radius:4px;padding:14px 10px;text-align:center}
.phf-frise__chiffre b{display:block;font-size:28px;font-weight:700;line-height:1.1}
.phf-frise__chiffre span{font-size:13px;color:var(--phf-blue)}
#phf-frise .phf-frise__maj{text-align:center;font-size:13px;color:var(--phf-grey);margin:12px 0 0}

/* ---------- Navigation par période ---------- */
.phf-frise__nav{position:sticky;top:var(--phf-haut);z-index:12;background:#fff;border-bottom:1px solid var(--phf-line);box-shadow:0 3px 10px rgba(2,67,130,.07);margin:32px -4.3% 0}
.phf-frise__nav-in{display:flex;overflow-x:auto;scrollbar-width:thin;padding:0 4%}
.phf-frise__nav-lien{flex:0 0 auto;border-bottom:3px solid transparent;padding:14px 13px 11px;font-size:14px;font-weight:600;color:var(--phf-menu)!important;text-decoration:none;white-space:nowrap}
.phf-frise__nav-lien:hover{color:var(--phf-orange)!important}
.phf-frise__nav-lien.is-actif{border-bottom-color:var(--phf-orange);color:var(--phf-navy)!important}
.phf-frise__nav-lien.is-encours{color:#8d9bab!important}

/* ---------- Filtres ---------- */
.phf-frise__filtres{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:22px 0 0}
.phf-frise__filtres[hidden]{display:none}
.phf-frise__filtres-lbl{font-size:14px;font-weight:600;color:var(--phf-blue2);margin-right:4px}
.phf-frise__puce{border:1px solid #c9d6e4;background:#fff;color:var(--phf-blue);border-radius:3px;padding:6px 11px;font:600 13px/1.3 "Open Sans",Arial,sans-serif;cursor:pointer}
.phf-frise__puce:hover{border-color:var(--phf-navy)}
.phf-frise__puce.is-actif{background:var(--phf-navy);border-color:var(--phf-navy);color:#fff}
.phf-frise__puce i{font-style:normal;font-weight:400;opacity:.7;margin-left:4px}

/* ---------- Périodes ---------- */
.phf-frise__periode{margin-top:56px;scroll-margin-top:calc(var(--phf-haut) + 60px)}
.phf-frise__entete{display:grid;grid-template-columns:1fr auto;gap:10px 24px;align-items:end;padding-bottom:16px;border-bottom:2px solid var(--phf-line)}
.phf-frise__bornes{font-size:46px;font-weight:300;color:var(--phf-blue2);line-height:1;letter-spacing:-.5px}
.phf-frise h2.phf-frise__titre{font-size:26px;line-height:1.25;font-weight:700;color:var(--phf-navy);margin:6px 0 0;padding:0;text-align:left}
#phf-frise .phf-frise__intro{grid-column:1/-1;font-size:17px;color:var(--phf-blue2);margin:4px 0 0;max-width:860px}
.phf-frise__recit{display:inline-block;border:2px solid var(--phf-navy);color:var(--phf-navy)!important;text-decoration:none;font-weight:600;font-size:14px;padding:8px 14px;border-radius:3px;white-space:nowrap}
.phf-frise__recit:hover{background:var(--phf-navy);color:#fff!important}
.phf-frise__vide{border:2px dashed #c9d6e4;border-radius:4px;padding:22px;color:var(--phf-blue2);background:#fafcfe;margin-top:20px}

/* ---------- Ligne du temps ---------- */
.phf-frise__ligne{position:relative;margin-top:26px}
.phf-frise__ligne:before{content:"";position:absolute;left:84px;top:6px;bottom:6px;width:2px;background:#d5dfea}
.phf-frise__annee{display:grid;grid-template-columns:84px minmax(0,1fr);margin:0 0 22px}
.phf-frise__annee[hidden]{display:none}
.phf-frise__annee-lbl{position:sticky;top:calc(var(--phf-haut) + 62px);align-self:start;padding-right:20px;text-align:right}
.phf-frise__annee-lbl span{display:inline-block;background:var(--phf-navy);color:#fff;font-weight:700;font-size:16px;line-height:1.4;padding:4px 9px;border-radius:3px;position:relative}
.phf-frise__annee-lbl span:after{content:"";position:absolute;right:-27px;top:50%;width:12px;height:12px;margin-top:-6px;border-radius:50%;background:var(--phf-orange);box-shadow:0 0 0 4px #fff}
.phf-frise__evts{padding-left:30px;display:grid;gap:14px}

.phf-frise__evt{background:#fff;border:1px solid var(--phf-line);border-radius:4px;padding:18px 20px;display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:20px;scroll-margin-top:calc(var(--phf-haut) + 80px);box-shadow:0 1px 3px rgba(2,67,130,.05);transition:box-shadow .2s}
.phf-frise__evt.sans-photo{grid-template-columns:minmax(0,1fr)}
.phf-frise__evt[hidden]{display:none}
.phf-frise__evt:hover{box-shadow:0 4px 14px rgba(2,67,130,.10)}
.phf-frise__evt:target,.phf-frise__evt.is-signale{box-shadow:0 0 0 3px var(--phf-orange)}
.phf-frise__evt.is-brouillon{border-style:dashed;opacity:.8}
.phf-frise__evt-texte{min-width:0}
#phf-frise .phf-frise__evt h3{margin:0 0 8px;padding:0;font-size:20px;line-height:1.3;font-weight:600;color:var(--phf-blue);text-align:left}
.phf-frise__date{color:var(--phf-orange);font-weight:700}
#phf-frise .phf-frise__brouillon{font-size:12px;font-weight:700;color:var(--phf-grey);text-transform:uppercase;margin:0 0 4px}
.phf-frise__tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.phf-frise__tags span{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.4px;color:var(--phf-blue);background:var(--phf-tag);border-radius:3px;padding:2px 7px;line-height:1.5}

.phf-frise__photo{margin:0}
.phf-frise__photo a{display:block;background:#f0f3f7;border-radius:3px;overflow:hidden;cursor:zoom-in}
.phf-frise__photo img{display:block;width:100%;height:160px;object-fit:cover;transition:transform .3s;margin:0;border:0}
.phf-frise__photo a:hover img{transform:scale(1.04)}
.phf-frise__photo.is-document img{object-fit:contain}
.phf-frise__photo figcaption{font-size:12.5px;line-height:1.4;color:var(--phf-grey);font-style:italic;margin-top:6px}

.phf-frise__aujourdhui{margin-top:12px;background:var(--phf-orange-l);border-left:4px solid var(--phf-orange);padding:10px 14px;border-radius:0 3px 3px 0;font-size:15px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.phf-frise__aujourdhui b{color:var(--phf-orange)}
.phf-frise__aujourdhui a{background:var(--phf-orange);color:#fff!important;text-decoration:none;font-weight:600;font-size:13px;padding:6px 12px;border-radius:3px;white-space:nowrap}
.phf-frise__aujourdhui a:hover{background:var(--phf-orange-f)}
.phf-frise__verif{margin-top:12px;background:#fdecec;border-left:4px solid #c0392b;padding:9px 13px;border-radius:0 3px 3px 0;font-size:13.5px;color:#7a2318}
.phf-frise__verif b{color:#c0392b}
.phf-frise__verif a{color:#7a2318;font-weight:600}
.phf-frise__actions{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:12px;font-size:12.5px}
.phf-frise__actions a{color:var(--phf-grey)!important;text-decoration:underline;text-underline-offset:2px;white-space:nowrap}
.phf-frise__actions a:hover{color:var(--phf-navy)!important}
.phf-frise__actions .phf-frise__modifier{color:var(--phf-orange)!important;font-weight:700}

/* ---------- Appel et source ---------- */
.phf-frise__appel{background:linear-gradient(120deg,var(--phf-deep),var(--phf-navy));color:#fff;border-radius:4px;padding:34px 36px;margin-top:64px;display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center}
#phf-frise .phf-frise__appel h2{margin:0 0 6px;padding:0;font-size:26px;font-weight:700;color:#fff;text-align:left}
#phf-frise .phf-frise__appel p{margin:0;font-size:17px;color:#fff}
.phf-frise__appel a{background:var(--phf-orange);color:#fff!important;text-decoration:none;font-weight:700;padding:13px 22px;border-radius:3px;white-space:nowrap}
.phf-frise__appel a:hover{background:var(--phf-orange-f)}
#phf-frise .phf-frise__source{margin-top:28px;font-size:14px;color:var(--phf-grey);border-top:1px solid var(--phf-line);padding-top:18px}
#phf-frise .phf-frise__source a{font-weight:600}

/* ---------- Photo agrandie ---------- */
.phf-frise__zoom{position:fixed;inset:0;z-index:100000;background:rgba(1,30,60,.85);display:flex;align-items:center;justify-content:center;padding:20px}
.phf-frise__zoom[hidden]{display:none}
.phf-frise__zoom figure{margin:0;max-width:min(1100px,96vw);text-align:center}
.phf-frise__zoom img{max-height:82vh;width:auto;max-width:100%;background:#fff;border-radius:3px}
.phf-frise__zoom figcaption{color:#fff;font-size:14px;margin-top:10px}
.phf-frise__fermer,.phf-correction__fermer{position:absolute;top:12px;right:16px;background:none;border:0;color:#fff;font-size:36px;line-height:1;cursor:pointer}

/* ---------- Formulaire de correction ---------- */
.phf-correction{margin-top:36px}
.phf-correction__boite{position:relative;background:#f7f9fc;border:1px solid var(--phf-line);border-radius:4px;padding:24px 26px;max-width:640px}
#phf-correction h2{margin:0 0 6px;padding:0;font-size:22px;font-weight:700;color:var(--phf-navy);text-align:left}
#phf-correction .phf-correction__aide{color:var(--phf-blue2);font-size:14px;margin:0 0 12px}
#phf-correction label{display:block;font-size:13px;font-weight:600;margin:0 0 4px;color:var(--phf-navy)}
#phf-correction form p{margin:0 0 12px}
#phf-correction input[type=text],#phf-correction input[type=email],#phf-correction select,#phf-correction textarea{width:100%;font:15px/1.4 "Open Sans",Arial,sans-serif;padding:8px 10px;border:1px solid #c9d6e4;border-radius:3px;color:var(--phf-navy);background:#fff}
.phf-correction__deux{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#phf-correction .phf-correction__rgpd{font-size:12px;color:var(--phf-grey)}
.phf-correction__piege{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.phf-correction__envoyer{background:var(--phf-orange);color:#fff;border:0;border-radius:3px;padding:10px 18px;font:700 14px "Open Sans",Arial,sans-serif;cursor:pointer}
.phf-correction__envoyer:hover{background:var(--phf-orange-f)}
#phf-correction .phf-correction__ok{background:#eaf6ee;color:#1e6b3a;border-radius:3px;padding:10px 12px;font-size:14px}
#phf-correction .phf-correction__erreur{background:#fdecec;color:#7a2318;border-radius:3px;padding:10px 12px;font-size:14px}
/* Avec JavaScript, le formulaire s'ouvre en fenêtre par-dessus la page */
.phf-correction.is-fenetre{position:fixed;inset:0;z-index:100000;margin:0;background:rgba(1,30,60,.6);display:flex;align-items:center;justify-content:center;padding:16px}
.phf-correction.is-fenetre .phf-correction__boite{background:#fff;max-height:92vh;overflow:auto;width:100%}
.phf-correction.is-fenetre .phf-correction__fermer{color:var(--phf-navy);top:8px;right:12px}
.phf-correction.is-cache{display:none}

/* ---------- Introduction repliable (« Lire la suite ») ---------- */
.phf-intro{max-width:820px;margin:20px auto 0;text-align:center}
.phf-intro__texte{position:relative;font-size:19px;line-height:1.6}
.phf-intro__texte>p:first-child{margin-top:0}
.phf-intro.is-replie .phf-intro__texte{max-height:7.4em;overflow:hidden} /* environ 4 lignes et demie */
.phf-intro.is-replie .phf-intro__texte:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3.2em;background:linear-gradient(rgba(255,255,255,0),#fff);pointer-events:none}
.phf-intro__bouton{display:inline-flex;align-items:center;gap:6px;margin-top:6px;background:none;border:0;border-bottom:2px solid #de7022;padding:4px 2px;font:600 15px "Open Sans",Arial,sans-serif;color:#024382;cursor:pointer}
.phf-intro__bouton:hover{color:#de7022}
.phf-intro__bouton:after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .2s}
.phf-intro__bouton[aria-expanded="true"]:after{transform:rotate(-135deg) translateY(-2px)}
.phf-intro__moins,.phf-intro__bouton[aria-expanded="true"] .phf-intro__plus{display:none}
.phf-intro__bouton[aria-expanded="true"] .phf-intro__moins{display:inline}
.phf-intro+.phf-frise .phf-frise__chiffres{margin-top:20px}
.phf-histoire-page #content .phf-intro .phf-intro__texte p{margin:0 auto 12px}

/* ---------- Tablette et mobile ---------- */
@media (max-width:760px){
	.phf-histoire-page #content.phf-histoire-contenu{padding:28px 16px 40px}
	.phf-histoire-page #content h1.entry-title{font-size:26px}
	.phf-histoire-page #content .phf-histoire-article>p,.phf-histoire-page #content .phf-intro p{font-size:17px}
	.phf-frise__chiffres{grid-template-columns:repeat(2,1fr)}
	.phf-intro__texte{font-size:17px}
	.phf-intro.is-replie .phf-intro__texte{max-height:9em} /* environ 5 lignes et demie sur mobile */
	.phf-frise__nav{margin:28px -16px 0}
	.phf-frise__nav-in{padding:0 8px;scrollbar-width:none}
	.phf-frise__nav-in::-webkit-scrollbar{display:none}
	.phf-frise__entete{grid-template-columns:1fr}
	.phf-frise__bornes{font-size:36px}
	.phf-frise h2.phf-frise__titre{font-size:22px}
	.phf-frise__ligne:before{left:56px}
	.phf-frise__annee{grid-template-columns:56px minmax(0,1fr)}
	.phf-frise__annee-lbl{padding-right:12px;top:calc(var(--phf-haut) + 52px)}
	.phf-frise__annee-lbl span{font-size:13px;padding:3px 6px}
	.phf-frise__annee-lbl span:after{right:-18px;width:10px;height:10px}
	.phf-frise__evts{padding-left:16px}
	.phf-frise__evt{grid-template-columns:minmax(0,1fr);padding:15px}
	.phf-frise__photo img{height:190px}
	#phf-frise .phf-frise__evt h3{font-size:18px}
	.phf-frise__appel{grid-template-columns:1fr;padding:26px 22px}
	.phf-correction__deux{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
	.phf-frise *{transition:none!important;scroll-behavior:auto!important}
}
