/*
Theme Name: SAFMLE
Theme URI: https://safmle.org
Author: SAFMLE – Comité fondateur
Description: Thème de la Société africaine francophone de médecine légale et d’expertise (SAFMLE) : couleurs, polices, logo et page d’accueil prête à l’emploi.
Version: 1.0.1
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: safmle
*/

html { scroll-behavior: smooth; }
h2.wp-block-heading[id] { scroll-margin-top: 110px; }

/* En-tête collant avec filet doré */
.safmle-entete {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 3px solid var(--wp--preset--color--or);
}
body.admin-bar .safmle-entete { top: 32px; }

/* Petit intitulé au-dessus des titres de section */
.safmle-surtitre {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 600;
}

/* Filet doré sous les titres de section */
.safmle-titre::after {
	content: "";
	display: block;
	width: 64px;
	height: 3px;
	margin-top: 0.6em;
	background: var(--wp--preset--color--or);
}
.has-text-align-center.safmle-titre::after { margin-left: auto; margin-right: auto; }

/* Cartes des missions */
.safmle-carte {
	border-top: 3px solid var(--wp--preset--color--or);
	box-shadow: 0 1px 3px rgba(27, 42, 74, 0.08);
	height: 100%;
}

/* Grand lien courriel */
.safmle-courriel a { text-decoration: none; border-bottom: 2px solid var(--wp--preset--color--or); }

/* Accessibilité : contour de focus visible */
a:focus-visible, .wp-element-button:focus-visible {
	outline: 3px solid var(--wp--preset--color--or);
	outline-offset: 3px;
}

/* Pas d'espace entre les grandes zones de la page */
.wp-site-blocks > main,
.wp-site-blocks > footer { margin-block-start: 0; }

/* Textes justifiés (paragraphes et listes du contenu), avec césure française */
main p:not([class*="has-text-align"]):not(.safmle-surtitre),
main li,
.editor-styles-wrapper p:not([class*="has-text-align"]):not(.safmle-surtitre),
.editor-styles-wrapper li {
	text-align: justify;
	-webkit-hyphens: auto;
	hyphens: auto;
}
