/* Styles custom du projet La belle et la Bête - chargés après le style parent Divi. */

/* ==========================================================================
   Typographie Globale - Police des Headers (Alverata Informal)
   Projet Adobe Fonts : lyn8xey (https://use.typekit.net/lyn8xey.css)
   Graisses disponibles : 
     - 300 : Light
     - 400 : Regular
     - 500 : Medium
     - 600 : Semibold
     - 700 : Bold
     - 900 : Black
   ========================================================================== */

:root {
	--font-heading: "alverata-informal", Georgia, serif;
	--et_global_heading_font: "alverata-informal", Georgia, serif;
}

/* 1. Tous les titres H1 - H6 (HTML natif, modules Divi, Theme Builder, Archives) */
h1,
h2,
h3,
h4,
h5,
h6,
.et_pb_text h1,
.et_pb_text h2,
.et_pb_text h3,
.et_pb_text h4,
.et_pb_text h5,
.et_pb_text h6,
.et_pb_title h1,
.et_pb_title h2,
.et_pb_title h3,
.et_pb_title h4,
.et_pb_title h5,
.et_pb_title h6,
.et_pb_fullwidth_header .header-content h1,
.et_pb_fullwidth_header .header-content h2,
.et_pb_slide_title,
.et_pb_blurb_container h4.et_pb_module_header,
.et_pb_blurb_container h1,
.et_pb_blurb_container h2,
.et_pb_blurb_container h3,
.et_pb_portfolio_title,
.et_pb_cta_title,
.et_pb_pricing_heading h2,
.et_pb_post_title .entry-title,
.entry-title,
.single-title {
	font-family: var(--font-heading) !important;
	font-style: normal;
}

/* 2. Hiérarchie des graisses par défaut */
h1,
.et_pb_text h1,
.et_pb_fullwidth_header .header-content h1,
.entry-title,
.single-title {
	font-weight: 700;
	letter-spacing: -0.02em;
}

h2,
.et_pb_text h2,
.et_pb_fullwidth_header .header-content h2 {
	font-weight: 700;
	letter-spacing: -0.01em;
}

h3,
.et_pb_text h3 {
	font-weight: 600;
}

h4,
.et_pb_text h4,
.et_pb_blurb_container h4.et_pb_module_header {
	font-weight: 600;
}

h5,
.et_pb_text h5 {
	font-weight: 500;
}

h6,
.et_pb_text h6 {
	font-weight: 400;
}

/* 3. Classes utilitaires pour appliquer les graisses disponibles */
.font-alverata {
	font-family: var(--font-heading) !important;
}

.font-w-300,
.font-light {
	font-weight: 300 !important;
}

.font-w-400,
.font-regular {
	font-weight: 400 !important;
}

.font-w-500,
.font-medium {
	font-weight: 500 !important;
}

.font-w-600,
.font-semibold {
	font-weight: 600 !important;
}

.font-w-700,
.font-bold {
	font-weight: 700 !important;
}

.font-w-900,
.font-black {
	font-weight: 900 !important;
}

/* ==========================================================================
   Sections personnalisées
   ========================================================================== */

/* Contrôle de la taille de l'image de fond - Section Hero */

/* ==========================================================================
   Sections modale
   ========================================================================== */

/* Arrière-plan sombre de la modale */
.modale-divi {
	display: none;
	position: fixed;
	z-index: 2147483647 !important; /* Force le passage au-dessus du menu sticky */
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	align-items: center;
	justify-content: center;
}

/* Boîte de contenu blanche */
.modale-contenu {
	background-color: #8EA1D2;
	padding: 40px;
	border-radius: 8px;
	width: 90%;
	max-width: 700px;
	position: relative;
}

/* Titre de la modale */
.modale-contenu h2 {
	color: #090c29 !important; /* Bleu très foncé demandé */
	margin-top: 0;
	margin-bottom: 20px;
	font-weight: 700;
}

/* Bouton fermer (X) */
.modale-fermer {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	color: #090c29; /* Assorti au titre */
}

/* Gestion du texte et de la barre de défilement */
.modale-texte-scroll {
	max-height: 50vh;
	overflow-y: auto;
	padding-right: 15px;
	color: #3A4252 !important; /* Texte gris foncé */
	font-size: 16px;
	line-height: 1.6;
}

/* Style personnalisé de la barre de défilement */
.modale-texte-scroll::-webkit-scrollbar {
	width: 8px;
}
.modale-texte-scroll::-webkit-scrollbar-thumb {
	background: #090c29; /* Curseur assorti au titre */
	border-radius: 4px;
}
.modale-texte-scroll::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}
