/*
 * BASE — reset, typo, conteneur, boutons, cartouches, ostraca, en-tête, pied.
 * Préfixe de classes du thème : .efa-*
 */
*,*::before,*::after{ box-sizing: border-box; }
[hidden]{ display: none !important; }
html{ scroll-behavior: smooth; overflow-x: clip; }
body{
	margin: 0; background: var(--efa-fond); color: var(--efa-encre);
	font-family: var(--efa-texte); font-size: 18px; line-height: 1.7;
	-webkit-font-smoothing: antialiased; overflow-x: clip;
}
img{ max-width: 100%; display: block; }
a{ color: var(--efa-accent); }
h1,h2,h3,h4{ font-family: var(--efa-titre); font-weight: 800; line-height: 1.1; margin: 0; color: var(--efa-encre); }
.efa-skip{ position: absolute; left: -9999px; top: 0; background: var(--efa-nuit); color: #fff; padding: 10px 16px; z-index: 200; }
.efa-skip:focus{ left: 8px; top: 8px; }

.efa-conteneur{ max-width: var(--efa-conteneur); margin-inline: auto; padding-inline: var(--efa-gouttiere); }
@media (max-width: 480px){ .efa-conteneur{ padding-inline: 16px; } }

.efa-visually-hidden{ position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- Boutons ---------- */
.efa-btn{
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 28px; border-radius: var(--efa-rayon-pilule); font-family: var(--efa-texte);
	font-weight: 700; font-size: 1rem; white-space: nowrap; border: 0; cursor: pointer;
	text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
}
.efa-btn--action{ background: var(--efa-action); color: #fff; }
.efa-btn--action:hover{ transform: translateY(-2px); box-shadow: var(--efa-ombre); }
.efa-btn--fantome{ background: transparent; border: 1.5px solid currentColor; color: inherit; }
.efa-btn--grand{ padding: 16px 32px; font-size: 1.0625rem; width: 100%; }
.efa-btn[disabled]{ opacity: .5; cursor: not-allowed; }

/* ---------- Le cartouche (procédé signature §6.1) ---------- */
.efa-cartouche{
	display: inline-flex; align-items: center; gap: 8px;
	border: 2px solid var(--efa-accent); border-radius: var(--efa-rayon-pilule);
	padding: 6px 16px 6px 16px; position: relative; font-family: var(--efa-texte);
	font-weight: 700; font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em;
	color: var(--efa-accent); background: var(--efa-blanc);
}
.efa-cartouche::before{
	content: ""; position: absolute; inset: 3px; border: 1px solid var(--efa-accent);
	border-radius: inherit; pointer-events: none;
}
.efa-cartouche::after{
	content: ""; position: absolute; right: -4px; top: -3px; bottom: -3px; width: 4px;
	background: var(--efa-accent); border-radius: 2px;
}
.efa-cartouche--clair{ background: rgba(12,46,47,.55); border-color: var(--efa-turquoise); color: var(--efa-turquoise); }
.efa-cartouche--rubrique{ color: var(--efa-blanc); background: var(--efa-accent); border-color: var(--efa-blanc); }
.efa-cartouche--rubrique::before{ border-color: rgba(255,255,255,.6); }
.efa-cartouche--rubrique::after{ background: var(--efa-blanc); }
.efa-cartouche--bouton{ cursor: pointer; background: var(--efa-carte); color: var(--efa-encre); }

/* ---------- L'ostracon (tesson incliné à cheval, procédé signature §6.2) ---------- */
.efa-ostracon{
	position: relative; background: var(--efa-ostracon); color: var(--efa-granit);
	padding: 16px 22px; box-shadow: var(--efa-ombre-forte); transform: rotate(-3deg);
	font-family: var(--efa-texte); font-weight: 600; font-size: .9375rem; line-height: 1.4;
	clip-path: polygon(0% 0%, 88% 0%, 100% 14%, 100% 100%, 0% 100%);
	transition: transform .25s ease;
}
.efa-ostracon:hover{ transform: rotate(1deg); }

/* ---------- Le fil du Nil (ligne d'étapes / filet, procédé signature §6.3) ---------- */
.efa-fil-nil{ width: 100%; height: auto; display: block; }
.efa-fil-nil path{ fill: none; stroke: var(--efa-turquoise); stroke-width: 3; stroke-linecap: round; }
.efa-fil-nil.efa-se-trace path{ stroke-dasharray: 600; stroke-dashoffset: 600; animation: efa-tracer 1.6s ease forwards; }
@keyframes efa-tracer{ to{ stroke-dashoffset: 0; } }

/* ---------- Apparition au défilement ---------- */
.efa-apparait{ opacity: 0; transform: translateY(16px); transition: opacity .4s ease, transform .4s ease; }
.efa-apparait.efa-visible{ opacity: 1; transform: translateY(0); }

/* ================= EN-TÊTE ================= */
.efa-entete{
	position: sticky; top: 0; z-index: 100; background: var(--efa-blanc);
	border-bottom: 1px solid var(--efa-filet); height: 64px; transition: height .2s ease;
}
.efa-entete.efa-reduit{ height: 56px; }
.efa-entete-barre{ max-width: var(--efa-conteneur); margin-inline: auto; height: 100%; display: flex; align-items: stretch; padding-inline: var(--efa-gouttiere); }
.efa-cellule{ display: flex; align-items: center; border-right: 1px solid var(--efa-filet); padding-inline: 18px; }
.efa-cellule:first-child{ padding-left: 0; }
.efa-entete-logo{ display: flex; align-items: center; }
.efa-entete-logo svg{ height: 38px; width: auto; display: block; }
.efa-entete-logo .efa-logo-svg{ display: block; }
.efa-nav{ display: flex; flex: 1; }
.efa-nav ul{ list-style: none; margin: 0; padding: 0; display: flex; height: 100%; }
.efa-nav li{ position: relative; display: flex; align-items: center; border-right: 1px solid var(--efa-filet); }
.efa-nav a{ display: flex; align-items: center; height: 100%; padding-inline: 16px; white-space: nowrap; font-family: var(--efa-texte); font-weight: 600; font-size: .9375rem; color: var(--efa-encre); text-decoration: none; }
.efa-nav a:hover{ color: var(--efa-accent); }
.efa-cellule--loupe{ margin-left: auto; }
.efa-cellule--loupe button{ background: none; border: 0; cursor: pointer; color: var(--efa-encre); display: flex; }
.efa-cellule--cta{ border-right: 0; padding-left: 18px; display: flex; align-items: center; }
.efa-menu-burger, .efa-menu-mobile{ display: none; }

/* Méga-menu Sites antiques */
.efa-megamenu{ display: none; position: absolute; top: 100%; left: 0; background: var(--efa-blanc); border: 1px solid var(--efa-filet); border-radius: var(--efa-rayon); box-shadow: var(--efa-ombre-forte); padding: 18px; gap: 14px; grid-template-columns: repeat(4,160px); z-index: 50; }
.efa-nav li:hover .efa-megamenu, .efa-nav li:focus-within .efa-megamenu{ display: grid; }
.efa-megamenu a{ height: auto; flex-direction: column; align-items: flex-start; gap: 6px; padding: 0; }
.efa-megamenu img{ border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; }
.efa-megamenu span{ font-size: .8125rem; font-weight: 600; }

@media (max-width: 1180px){ .efa-nav a{ padding-inline: 11px; font-size: .875rem; } .efa-cellule{ padding-inline: 12px; } }
@media (max-width: 1040px){
	.efa-nav, .efa-cellule--loupe{ display: none; }
	.efa-entete{ height: 56px; }
	.efa-menu-burger{ display: flex; align-items: center; justify-content: center; margin-left: auto; background: none; border: 0; border-left: 1px solid var(--efa-filet); cursor: pointer; padding: 0 0 0 16px; color: var(--efa-encre); }
	.efa-entete-barre{ padding-inline: 16px; }
	.efa-cellule--logo{ border-right: 0; }
	.efa-cellule--cta{ margin-left: auto; padding-inline: 12px; }
	.efa-cellule--cta .efa-btn{ padding: 10px 18px; font-size: .9375rem; }
	.efa-cellule--cta + .efa-menu-burger{ margin-left: 0; }
	.efa-menu-mobile{
		position: fixed; inset: 0; z-index: 150; background: var(--efa-nuit); color: #fff;
		display: none; flex-direction: column; padding: 20px 24px 32px; overflow-y: auto;
	}
	.efa-menu-mobile.efa-ouvert{ display: flex; }
	.efa-menu-mobile-haut{ display: flex; justify-content: flex-end; }
	.efa-menu-mobile-fermer{ background: none; border: 0; color: #fff; cursor: pointer; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
	.efa-menu-mobile ul{ list-style: none; margin: 24px 0 32px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
	.efa-menu-mobile a{ color: #fff; text-decoration: none; font-family: var(--efa-titre); font-weight: 900; text-transform: uppercase; font-size: 2.5rem; line-height: 1.15; }
	.efa-menu-mobile .efa-menu-mobile-cta{ font-family: var(--efa-texte); text-transform: none; font-size: 1.0625rem; font-weight: 700; margin-top: auto; }
}
@media (max-width: 560px){
	.efa-cta-long{ display: none; }
	.efa-cellule--cta{ padding-inline: 10px; }
	.efa-cellule--cta .efa-btn{ padding: 9px 16px; min-height: 40px; }
	.efa-entete-logo svg{ height: 32px; }
}
.efa-menu-mobile-cta{ display: none; }
.efa-menu-mobile .efa-menu-mobile-cta{ display: flex; }

/* ================= PAGE / CONTENU GÉNÉRIQUE ================= */
.efa-page-entete{ max-width: var(--efa-conteneur); margin: 40px auto 0; padding-inline: var(--efa-gouttiere); }
.efa-page-entete h1{ font-size: clamp(2rem, 1.6rem + 1.5vw, 3rem); }
.efa-page-corps{ max-width: 760px; margin: 24px auto 80px; padding-inline: var(--efa-gouttiere); font-size: 1.0625rem; line-height: 1.75; }
.efa-page-corps h2{ margin-top: 1.6em; font-family: var(--efa-titre); }

/* Tableaux du corps éditorial — lisibles, défilables au doigt sur mobile (R-STD) */
.efa-page-corps table, .sbt-article-corps table{ width: 100%; border-collapse: collapse; margin-block: 1.6em; font-size: .95rem; }
.efa-page-corps .efa-table-scroll, .sbt-article-corps .efa-table-scroll{ overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--efa-rayon); border: 1px solid var(--efa-filet); }
.efa-page-corps th, .efa-page-corps td, .sbt-article-corps th, .sbt-article-corps td{ padding: 10px 14px; border-bottom: 1px solid var(--efa-filet); text-align: left; white-space: nowrap; }
.efa-page-corps thead th, .sbt-article-corps thead th{ background: var(--efa-eau); color: var(--efa-encre); white-space: normal; }

/* Fiche auteur */
.efa-auteur-entete{ display: flex; gap: 24px; align-items: center; text-align: left; }
.efa-auteur-photo img, .efa-auteur-photo .avatar{ width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.efa-auteur-bio{ max-width: 60ch; color: var(--efa-doux); }
@media (max-width: 600px){ .efa-auteur-entete{ flex-direction: column; text-align: center; } }

/* Crédit photo en pastille (DA) */
.efa-credit{
	position: absolute; font-family: var(--efa-texte); font-size: .75rem; color: #fff;
	background: rgba(12,46,47,.7); padding: 5px 10px; border-radius: var(--efa-rayon-petit); max-width: calc(100% - 32px); line-height: 1.35;
}

/* Logo de l'en-tête : marque (fichier partagé avec le favicon) + nom en texte */
.efa-logo-duo{ display: flex; align-items: center; gap: 8px; }
.efa-logo-marque{ height: 38px; width: auto; display: block; }
.efa-logo-mot{ font-family: var(--efa-titre); font-weight: 800; font-size: 27px; line-height: 1; letter-spacing: .02em; color: #086B67; white-space: nowrap; }
.efa-logo-mot-1{ color: #1A1714; }
@media (max-width: 760px){ .efa-logo-marque{ height: 32px; } .efa-logo-mot{ font-size: 22px; } }
.efa-entete-logo .efa-logo-svg.efa-logo-duo{ display: flex; flex-direction: row; align-items: center; gap: 8px; }
.efa-entete-logo, .efa-entete-logo:hover{ text-decoration: none; }
