/* ==========================================================================
   base.css — remise à zéro et typographie de base (reprend les défauts de Divi 5).
   Valeurs relevées sur le rendu Divi : docs/conversion/mesures-reference.md.
   ========================================================================== */

:root {
	--rose: var(--wp--preset--color--rose, #CC7D7C);
	--marine: var(--wp--preset--color--marine, #1D3E7B);
	--lavande: var(--wp--preset--color--lavande, #D3CBEF);
	--blanc-casse: var(--wp--preset--color--blanc-casse, #F7F7F7);
	--rayon: 10px;
	/* Divi : rangée à 90 % (cartes, colonnes) ou 80 % (titres, texte) de la largeur, 1400 px au plus. */
	--rangee: 90%;
	--rangee-etroite: 80%;
	--rangee-max: 1400px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--wp--preset--font-family--pompiere);
	font-size: 14px;
	font-weight: 500;
	/* En em (et non sans unité) : comme chez Divi, la hauteur de ligne calculée (23,8 px) est héritée
	   telle quelle par les textes plus grands. */
	line-height: 1.7em;
	color: #000;
	background: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	padding-bottom: 10px;
	font-weight: 500;
	line-height: 1em;
	color: inherit;
}

p {
	margin: 0;
}

figure {
	margin: 0;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: bottom;
}

a {
	color: inherit;
	text-decoration: none;
}

strong,
b {
	font-weight: 700;
}

/* Le texte « pour lecteurs d'écran » des blocs du cœur. */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Lien d'évitement (affiché au focus). */
.skip-link.screen-reader-text:focus {
	clip: auto;
	width: auto;
	height: auto;
	margin: 0;
	padding: 10px 16px;
	z-index: 100000;
	background: #fff;
	color: var(--marine);
	top: 10px;
	left: 10px;
}

/* ---- Mise en page ---------------------------------------------------- */

.rangee,
.rangee-etroite {
	width: var(--rangee);
	max-width: var(--rangee-max);
	margin-inline: auto;
}

.rangee-etroite {
	width: var(--rangee-etroite);
}

/* Section Divi : 4 % de rembourrage vertical en bureau, 50 px en tablette et mobile. */
.section {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 4% 0;
}

@media (max-width: 980px) {
	.section {
		padding: 50px 0;
	}
}

/* Paragraphes des blocs de texte Divi : 1 em d'espace sous chaque paragraphe sauf le dernier. */
.texte-divi p {
	padding-bottom: 1em;
}

.texte-divi p:last-child {
	padding-bottom: 0;
}
