/*
Theme Name: Temporalis (enfant d'Antithème)
Template: theme-interne
Description: Thème enfant de l'Antithème : grille graphique Temporalis (couleurs, boutons, listes, étiquettes) et modèles de sections prêts à insérer.
Author: Temporalis
Version: 1.0.3
Requires at least: 6.4
Text Domain: temporalis-enfant
*/

/* ---------- Listes : le parent fixe le texte de base à 10 px ---------- */
ol.wp-block-list,
ul.wp-block-list {
	font-size: 18px;
	line-height: 1.8;
}
.wp-block-list li {
	font-size: inherit;
}

/* ---------- Étiquette de section (style de paragraphe « Étiquette ») ---------- */
p.is-style-etiquette {
	display: inline-block;
	width: auto;
	padding: 12px 20px;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 600;
	line-height: 20px;
}

/* ---------- Boutons ---------- */
.wp-block-button .wp-block-button__link {
	border-radius: 14px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: #002e5f;
	border: 2px solid #002e5f;
	padding: 14px 30px;
}
.wp-block-button.is-style-lime .wp-block-button__link {
	background: #e2ed53;
	color: #002e5f;
}

/* ---------- Bandes marine : titres, liens et boutons en clair ---------- */
.has-primary-background-color :is(h1, h2, h3, h4, a:not(.wp-block-button__link)) {
	color: inherit;
}
.has-primary-background-color .wp-block-button.is-style-outline .wp-block-button__link {
	color: #ffffff;
	border-color: #ffffff;
}

/* ---------- Cartes lime ---------- */
.has-secondary-background-color {
	color: #002e5f;
}

/* ---------- Texte réservé aux lecteurs d'écran ----------
   Le menu du parent utilise la classe .sr-only sans la définir. */
.sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- FAQ (bloc Détails) ---------- */
h2.wp-block-heading + .wp-block-details {
	margin-top: 32px;
}
.wp-block-details {
	background: #ffffff;
	border-radius: 14px;
	padding: 0;
	margin: 0 0 12px;
	font-size: 18px;
}
.wp-block-details summary {
	list-style: none;
	cursor: pointer;
	padding: 20px 64px 20px 24px;
	font-weight: 700;
	font-size: 19px;
	position: relative;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: #002e5f;
	color: #ffffff;
	display: grid;
	place-items: center;
	font-size: 22px;
	line-height: 1;
}
.wp-block-details[open] summary::after { content: "−"; }
.wp-block-details > :not(summary) {
	margin: 0;
	padding: 0 24px 20px;
}

/* ---------- Focus clavier : contour marine de 3 px, blanc sur marine ---------- */
body:not(.wp-admin) :focus-visible {
	outline: 3px solid #002e5f;
	outline-offset: 3px;
}
body:not(.wp-admin) .has-primary-background-color :focus-visible {
	outline-color: #ffffff;
}
