/* Styles partagés entre toutes les versions linguistiques de l'article
   « Le Réveil islamique » (Magdi Khalil, IDI Center). */
:root {
	--primary: oklch(48.5% 0.268 271);
	--base-100: oklch(100% 0 0);
	--base-200: oklch(96.5% 0.002 270);
	--base-300: oklch(88% 0.003 270);
	--ink: oklch(20% 0.005 270);
	--muted: oklch(45% 0.01 270);
}
* { box-sizing: border-box; }
html, body {
	margin: 0; padding: 0; background: white;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: var(--ink);
}
/* Portée limitée à la page de lecture : sans cela, cette règle
   l'emportait sur les classes Tailwind et repeignait en bleu les
   liens du pied de page, sur fond marine (2,67:1 mesuré). */
:where(.layout) a { color: var(--primary); }
.layout {
	max-width: 78rem; margin: 0 auto; padding: 2.5rem 1rem 4rem;
	display: grid; grid-template-columns: 1fr; gap: 2.5rem;
}
@media (min-width: 640px) { .layout { padding: 2.5rem 1.5rem 4rem; } }
@media (min-width: 1024px) {
	.layout { grid-template-columns: 18rem 1fr; padding: 2.5rem 2rem 4rem; gap: 3rem; }
}
.main { min-width: 0; max-width: 48rem; }
.bio { font-family: 'Inter', system-ui, sans-serif; }
@media (min-width: 1024px) { .bio { position: sticky; top: 2rem; align-self: start; } }
.bio-inner { padding: 1.25rem 1.25rem 1.4rem; background: var(--base-200);
	border-left: 3px solid var(--primary); border-radius: 4px; }
.bio-eyebrow { font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
	letter-spacing: 0.16em; color: var(--primary); margin-bottom: 0.5rem; }
.bio-name { font-size: 1.15rem; font-weight: 700; color: oklch(15% 0.01 270);
	line-height: 1.2; margin-bottom: 0.2rem; }
.bio-role { font-size: 0.82rem; font-style: italic; color: oklch(40% 0.01 270); line-height: 1.35; }
.bio-org { font-size: 0.8rem; font-weight: 600; color: oklch(30% 0.01 270); margin-bottom: 0.85rem; }
.bio-text { font-size: 0.85rem; line-height: 1.55; color: oklch(25% 0.01 270); margin: 0.5rem 0 0; }
.headline { font-family: 'Inter', system-ui, sans-serif; font-size: 1.6rem;
	font-weight: 800; line-height: 1.25; color: var(--primary); margin: 0 0 0.5rem; }
.subhead { font-size: 0.95rem; font-style: italic; color: var(--muted); margin: 0 0 1.5rem; }
.meta-card { background: var(--base-200); border-left: 3px solid var(--primary);
	padding: 1.25rem 1.5rem; border-radius: 4px; margin: 0 0 1.5rem; }
.meta-line { margin: 0.25rem 0; font-size: 0.95rem; }
.meta-line a { color: var(--primary); text-decoration: underline; }
.tweet { margin: 0 0 2rem; padding: 1.25rem 1.5rem 1.4rem;
	background: #0f0f0f; color: #e7e9ea; border-radius: 8px; }
.tweet-header { display: flex; align-items: center; gap: 0.5rem;
	font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
	letter-spacing: 0.14em; color: #71767b; margin-bottom: 0.8rem; }
.tweet-icon { width: 0.95rem; height: 0.95rem; color: #e7e9ea; }
.tweet-text { margin: 0 0 1rem; font-size: 1.02rem; line-height: 1.45; color: #e7e9ea; }
.tweet-link { color: #6bb6f5; text-decoration: none; word-break: break-all; }
.tweet-link:hover { text-decoration: underline; }
.tweet-tags { color: #1d9bf0; font-weight: 500; }
.tweet-btn { display: inline-flex; align-items: center; gap: 0.45rem;
	padding: 0.5rem 1rem; background: #1d9bf0; color: white;
	font-weight: 700; font-size: 0.9rem; border-radius: 9999px;
	text-decoration: none; }
.tweet-btn:hover { background: #1a8cd8; }
.tweet-btn-icon { width: 0.9rem; height: 0.9rem; }
.article { font-family: Georgia, 'Times New Roman', serif; font-size: 1.05rem;
	line-height: 1.7; color: var(--ink); }
.article h2 { font-family: 'Inter', system-ui, sans-serif; font-size: 1.5rem;
	font-weight: 700; line-height: 1.3; margin: 0 0 1.5rem; color: var(--primary); }
.article p { margin: 0 0 1.1rem; text-align: justify; }
.article ul { margin: 0 0 1.1rem 1.25rem; padding-left: 1rem; list-style: disc; }
.article li { margin-bottom: 0.4rem; }
.article em { font-style: italic; }
.article strong { font-weight: 700; }
.signature { text-align: center; margin-top: 2rem; padding-top: 1.5rem;
	border-top: 1px solid var(--base-300); font-style: italic; }
hr.rule { border: none; border-top: 1px solid var(--base-300); margin: 2rem 0; }
.diagram { margin: 2rem 0 2.5rem; padding: 1.5rem 1rem;
	background: oklch(97% 0.003 270); border: 1px solid var(--base-300);
	border-radius: 6px; font-family: 'Inter', system-ui, sans-serif; }
.diag-root { max-width: 18rem; margin: 0 auto 1.25rem; padding: 0.65rem 1rem;
	background: var(--primary); color: white; text-align: center;
	font-weight: 700; font-size: 0.95rem; border-radius: 4px; position: relative; }
.diag-root-sub { display: block; font-weight: 400; font-style: italic;
	font-size: 0.78rem; opacity: 0.85; margin-top: 0.15rem; }
.diag-root::after { content: ''; position: absolute; top: 100%; left: 50%;
	width: 2px; height: 1rem; background: oklch(70% 0.01 270); transform: translateX(-50%); }
.diag-branches { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding-top: 1rem; }
@media (min-width: 720px) { .diag-branches { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.diag-branch { padding: 1rem 0.85rem 1.1rem; border-radius: 5px;
	background: white; border: 1px solid var(--base-300); }
.diag-branch--sunni { border-top: 3px solid #1e2a44; }
.diag-branch--shia { border-top: 3px solid #6b1920; }
.diag-branch-title { text-align: center; font-weight: 700; font-size: 0.95rem;
	color: oklch(20% 0.01 270); letter-spacing: 0.02em; }
.diag-branch-subtitle { text-align: center; font-size: 0.75rem;
	color: var(--muted); font-style: italic; margin-bottom: 0.85rem; }
.diag-leaves { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
@media (min-width: 480px) {
	.diag-branch--sunni .diag-leaves { grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; }
	.diag-branch--shia .diag-leaves { grid-template-columns: 1fr 1fr; }
}
.diag-leaf { padding: 0.55rem 0.55rem 0.7rem; background: var(--base-200);
	border-radius: 3px; text-align: center; font-size: 0.78rem; line-height: 1.3; }
.diag-country { font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
	letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.2rem; }
.diag-name { font-weight: 600; color: oklch(15% 0.01 270); }
.diag-dates { font-size: 0.7rem; color: var(--muted); margin-top: 0.15rem;
	font-variant-numeric: tabular-nums; }
.diag-arrow { text-align: center; font-size: 1rem; color: oklch(60% 0.01 270);
	margin: 0.6rem 0 0.3rem; line-height: 1; }
.diag-disciples { text-align: center; padding: 0.55rem 0.6rem 0.65rem;
	background: var(--base-200); border-radius: 3px; }
.diag-disciples-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
	letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.2rem; }
.diag-disciples-names { font-weight: 600; font-size: 0.8rem; color: oklch(15% 0.01 270); }
.diag-caption { text-align: center; font-size: 0.75rem; color: var(--muted);
	font-style: italic; margin-top: 1rem; }
.phases { margin: 2rem 0 2.5rem; padding: 1.5rem 1rem;
	background: oklch(97% 0.003 270); border: 1px solid var(--base-300);
	border-radius: 6px; font-family: 'Inter', system-ui, sans-serif; }
.phases-root { max-width: 22rem; margin: 0 auto 0.5rem; padding: 0.75rem 1rem;
	background: var(--primary); color: white; text-align: center;
	border-radius: 4px; position: relative; }
.phases-root-title { font-weight: 700; font-size: 1rem; }
.phases-root-sub { font-size: 0.78rem; font-style: italic; opacity: 0.88; margin-top: 0.1rem; }
.phases-root::after { content: ''; position: absolute; top: 100%; left: 50%;
	width: 2px; height: 1rem; background: oklch(70% 0.01 270); transform: translateX(-50%); }
.phases-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.25rem; }
@media (min-width: 720px) { .phases-grid { grid-template-columns: 1fr 1fr; gap: 1.1rem; } }
.phase { padding: 1rem 1rem 1.1rem; border-radius: 5px;
	background: white; border: 1px solid var(--base-300); position: relative; }
.phase--terror { border-top: 3px solid #c48e2f; }
.phase--network { border-top: 3px solid #6b1920; }
.phase-num { display: inline-block; font-size: 0.65rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.16em;
	padding: 0.2rem 0.5rem; border-radius: 999px; color: white; margin-bottom: 0.5rem; }
.phase--terror .phase-num { background: #c48e2f; }
.phase--network .phase-num { background: #6b1920; }
.phase-title { font-weight: 700; font-size: 1.05rem; color: oklch(15% 0.01 270); margin-bottom: 0.15rem; }
.phase-period { font-size: 0.78rem; font-style: italic; color: var(--muted); margin-bottom: 0.85rem; }
.phase-peak { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem;
	padding: 0.5rem 0.75rem; background: var(--base-200); border-radius: 3px; margin-bottom: 0.85rem; }
.phase-peak-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
	letter-spacing: 0.1em; color: var(--muted); }
.phase-peak-date { font-weight: 700; font-size: 0.95rem; color: oklch(15% 0.01 270); }
.phase--terror .phase-peak-date { color: #9b6e1a; }
.phase--network .phase-peak-date { color: #6b1920; }
.phase-list { margin: 0; padding-left: 1.1rem; list-style: disc; }
.phase-list li { font-size: 0.85rem; line-height: 1.45; margin-bottom: 0.3rem; color: oklch(20% 0.005 270); }
.phases-arrow { text-align: center; font-size: 1.5rem; color: oklch(60% 0.01 270);
	margin: 1rem 0 0.4rem; line-height: 1; }
.phases-goal { max-width: 32rem; margin: 0 auto; padding: 0.85rem 1.1rem;
	background: #14080a; color: oklch(98% 0.005 30); text-align: center;
	border-radius: 4px; border: 1px solid #2a1014; }
.phases-goal-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
	letter-spacing: 0.16em; opacity: 0.85; margin-bottom: 0.2rem; }
.phases-goal-text { font-weight: 700; font-size: 0.95rem; line-height: 1.35; }

/* Variante RTL pour arabe et hébreu */
.rtl .layout { direction: rtl; }
.rtl .bio-inner { border-left: none; border-right: 3px solid var(--primary); }
.rtl .meta-card { border-left: none; border-right: 3px solid var(--primary); }
.rtl .article p { text-align: justify; }
.rtl .article ul { margin: 0 1.25rem 1.1rem 0; padding-left: 0; padding-right: 1rem; }
.rtl .phase-peak { align-items: flex-end; }

/* ── Confort de lecture (audit lisibilité, août 2026) ──────────────────
   1. Justification sans césure : le navigateur ne pouvait aligner le bord
      droit qu'en écartant les mots, d'où les lézardes. hyphens: auto rend
      la césure au français ; sous 640 px la colonne tombe à ~50 signes et
      la justification est désactivée.
   2. Sur téléphone, la colonne latérale (couverture, bio, fiche de
      l'ouvrage) précédait le titre : ~1 250 px avant le titre, ~3 650 px
      avant le premier paragraphe. On remet le texte devant.
   3. Le panneau de partage s'intercalait entre le chapô et l'article :
      il passe en fin de lecture. */

.article p,
.article li {
	hyphens: auto;
	-webkit-hyphens: auto;
}

@media (max-width: 639px) {
	.article p,
	.rtl .article p {
		text-align: start;
	}
}

.main {
	display: flex;
	flex-direction: column;
}

.main > .tweet {
	order: 1;
}

@media (max-width: 1023px) {
	.layout > .main {
		order: 1;
	}
	.layout > .bio {
		order: 2;
	}
}

/* Colonne de lecture : .main faisait 48 rem, soit ~106 signes par ligne
   en Georgia 16,8 px. On cale le texte suivi sur ~78 signes ; les blocs
   de référence et le panneau de partage gardent la largeur d'origine. */
.article p,
.article li,
.article blockquote,
.subhead {
	max-width: 36rem;
}

/* Mention de production assistee : 84 caracteres. En capitales espacees comme
   les autres intitules, elle formait un pave de cinq lignes qui criait. Casse
   normale, interlettrage rendu, mais meme couleur et meme graisse : elle reste
   lue comme un intitule, pas comme du corps de texte. */
.bio-eyebrow--ia { text-transform: none; letter-spacing: 0.01em; font-size: 0.72rem;
	line-height: 1.45; font-weight: 600; margin-bottom: 0.55rem; }
.bio-presidente-lien { font-size: 0.8rem; margin: 0.6rem 0 0; }
.bio-presidente-lien a { color: var(--primary); font-weight: 600; text-decoration: none;
	border-bottom: 1px solid color-mix(in oklab, var(--primary) 35%, transparent); }
.bio-presidente-lien a:hover { border-bottom-color: var(--primary); }

/* ── Impression : fabrique le PDF de la note depuis cette page ──────────
   Le PDF distribue etait produit par un document de mise en page separe,
   perdu depuis. Ces regles font de la page de lecture la source unique :
   une correction faite ici descend desormais dans le PDF. */
@page { size: A4; margin: 18mm 21mm 20mm; }

@media print {
	*, *::before, *::after {
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}
	/* Elements purement web : bouton de telechargement, panneau de partage,
	   lien vers la page presidente, et la ligne « Format » qui pointe vers
	   le PDF qu'on est en train de lire. */
	.pdf-dl, .tweet, .bio-presidente-lien { display: none !important; }
	.meta-line:has(a[href$=".pdf"]) { display: none !important; }

	/* Une seule colonne : le texte d'abord, le bloc auteur en fin de note. */
	.layout { display: block !important; }
	.main { display: block !important; }
	.bio { break-before: page; page-break-before: always; margin-top: 0 !important; }

	/* La colonne de lecture est calee sur 36rem a l'ecran ; sur A4 les marges
	   de page tiennent deja la justesse, la brider laisserait un blanc a droite. */
	.article p, .article li, .article blockquote, .subhead { max-width: none; }
	.article { font-size: 10.5pt; }

	.headline, .article h2, .article h3 { break-after: avoid; page-break-after: avoid; }
	.article p, .article li { orphans: 3; widows: 3; }
	.callout-quote, .bio-inner, .diagram, .phases,
	.diag-branch, .diag-leaf, .phase { break-inside: avoid; page-break-inside: avoid; }

	/* En papier, un lien souligne en couleur est du bruit : il ne se clique pas. */
	.article a, .meta-line a { color: inherit; text-decoration: none; }
}

@media print {
	/* La page de lecture est servie dans le gabarit du site : sans cela le PDF
	   embarque le bandeau de navigation, le pied de page et une page blanche. */
	.skip-link, .hp-navbar, body > footer, .back-to-top,
	#newsletter-popup, astro-dev-toolbar { display: none !important; }
	#main-content { padding: 0 !important; margin: 0 !important; }
	body { background: #fff !important; }
}
