/*
 Theme Name:   Kaizenco
 Description:  Thème enfant Divi du site Kaizenco (SEO, performances, sécurité).
 Template:     Divi
 Version:      1.0.0
 Text Domain:  kaizenco
*/

@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('assets/fonts/montserrat-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Source Serif 4';
	font-style: normal;
	font-weight: 600 710;
	font-display: swap;
	src: url('assets/fonts/source-serif-4-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Source Serif 4';
	font-style: italic;
	font-weight: 500 600;
	font-display: swap;
	src: url('assets/fonts/source-serif-4-italic-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
 * Styles propres au site.
 * Exemple : classe pour les surtitres passés de H3 à <p>, à caler sur le style de l'ancien H3.
 */

/* Surtitre : petit, rouge, en capitales
   (H1 de l'accueil en module Titre, surtitres en paragraphe sur les autres pages) */
.et_pb_heading.surtitre .et_pb_module_header,
.et_pb_text.surtitre h1,
.et_pb_text.surtitre h2,
h3.surtitre,
.et_pb_text.surtitre p {
	font-family: 'Montserrat', Helvetica, Arial, sans-serif;
	font-size: 15px;
	font-weight: 781;
	line-height: 1em;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: rgb(229, 31, 59);
	margin: 0;
	padding-bottom: 10px;
}
.et_pb_heading.surtitre .et_pb_module_header {
	padding-bottom: 0;
}
.surtitre.fw618 {
	font-weight: 618;
}

/* Slogan : grand, noir (accueil) */
.et_pb_text.slogan p,
.et_pb_text.slogan h2 {
	font-size: 45px;
	font-weight: 680;
	line-height: 45px;
	letter-spacing: 0;
	text-transform: none;
	color: #000;
	margin: 0;
	padding-bottom: 20px;
}

/* Titres Divi en lien : apparence inchangée */
.et_pb_heading .et_pb_module_header a {
	color: inherit;
	text-decoration: none;
}

/* Accroche et conclusion : phrases isolées en Source Serif 4 */
.et_pb_text.accroche p,
.et_pb_text.conclusion p {
	font-family: 'Source Serif 4', Georgia, serif;
	font-weight: 600;
	color: rgb(229, 31, 59);
	margin: 0;
}

/* Accroche : droite, 25 px */
.et_pb_text.accroche p {
	font-size: 25px;
	line-height: 1.25;
	padding-bottom: 10px;
}

/* Conclusion : italique, 22 px */
.et_pb_text.conclusion p {
	font-size: 22px;
	font-style: italic;
	line-height: 1.3;
}

/* Conclusion sur fond rouge (cas clients) */
.et_pb_text.conclusion.inverse p,
.et_pb_text.accroche.inverse p {
	color: #fff;
}

/* Titres en lien dans les modules Texte : apparence inchangée */
.et_pb_text :is(h1, h2, h3, h4, h5, h6) a {
	color: inherit;
	text-decoration: none;
}
/* Titres de l'encart Valeur ajoutée / Activités nécessaires / Gaspillages (Observation au Dong) */
.et_pb_text h3.titre-encart {
	font-family: 'Source Serif 4', Georgia, serif;
	font-size: 20px;   /* valeurs relevées sur l'ancien H4 */
	line-height: 1.3;
	font-weight: 600;
	padding-bottom: 10px;
}
.et_pb_text h3.titre-encart.valeur     { color: rgb(0, 102, 0); }
.et_pb_text h3.titre-encart.necessaire { color: rgb(255, 192, 0); }
.et_pb_text h3.titre-encart.gaspillage { color: rgb(255, 0, 0); }

.et_pb_text h2.titre-ilf {
	font-family : 'Source Serif 4', Georgia, serif;
	font-size: 25px;
	font-weight: 600;
	/* height: 35px; */
	line-height: 25px;
}

/* Page Ressources : titre du livre */
.et_pb_heading.book_title h2 {
	font-size: 16px;
	font-weight: 700;
	line-height: 22px;
	padding-bottom: 10px;
}

/* Page Glossaire : style des titres de définitions */
.et_pb_toggle.titre_def_glossaire h2 {
	font-family: 'Source Serif 4', Georgia, serif;
	font-size: 22px;
	font-weight: 600;
	line-height: 22px; /* 1em */
}

/* ==========================================================================
   Formulaire de contact (Contact Form 7 dans un module Divi)
   Shortcode : [contact-form-7 id="…" html_class="kz-contact"]
   Tout est préfixé par .kz-contact pour passer devant les styles
   de formulaire de Divi (input[type=text], textarea, p…).
   ========================================================================== */

.kz-contact {
	--kz-rouge: rgb(229, 31, 59);
	--kz-rouge-fonce: rgb(196, 22, 47);
	--kz-texte: #222;
	--kz-gris: #555;
	--kz-bordure: #c8c8c8;
	--kz-rayon: 8px;
	--kz-taille: 16px;

	font-family: 'Montserrat', Arial, sans-serif;
	font-size: var(--kz-taille);
	line-height: 1.5;
	color: var(--kz-texte);
}

/* Paragraphes : Divi ajoute un padding-bottom aux <p> */
.kz-contact p {
	margin: 0;
	padding: 0;
}

.kz-contact .kz-contact__champ + .kz-contact__champ {
	margin-top: 20px;
}

/* Libellés masqués visuellement (lus par les lecteurs d'écran) */
.kz-contact .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Champs */
.kz-contact .wpcf7-form-control-wrap {
	display: block;
}

.kz-contact input[type="text"],
.kz-contact input[type="email"],
.kz-contact input[type="tel"],
.kz-contact textarea {
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 16px 24px;
	border: 2px solid var(--kz-bordure);
	border-radius: var(--kz-rayon);
	background: #fff;
	box-shadow: none;
	font: inherit;
	color: var(--kz-texte);
	transition: border-color 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

.kz-contact textarea {
	min-height: 360px;
	resize: vertical;
}

.kz-contact ::placeholder {
	color: var(--kz-gris);
	opacity: 1;
}

.kz-contact input:focus,
.kz-contact textarea:focus {
	border-color: var(--kz-rouge);
	color: var(--kz-texte);
	outline: none;
}

/* Consentement */
.kz-contact .kz-contact__consentement {
	margin-top: 24px;
	color: var(--kz-gris);
}

.kz-contact .wpcf7-list-item {
	margin: 0;
}

.kz-contact .wpcf7-list-item label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

.kz-contact input[type="checkbox"] {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	margin: 2px 0 0;
	accent-color: var(--kz-rouge);
}

/* Bouton Envoyer (à droite, le rond de chargement CF7 à sa gauche) */
.kz-contact .kz-contact__envoi {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 16px;
	margin-top: 56px;
}

.kz-contact .wpcf7-submit {
	display: inline-block;
	margin: 0;
	padding: 18px 56px;
	border: 0;
	border-radius: var(--kz-rayon);
	background: var(--kz-rouge);
	font: inherit;
	font-size: 18px;
	line-height: 1.2;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s, opacity 0.2s;
	-webkit-appearance: none; appearance: none;
}

.kz-contact .wpcf7-submit:hover,
.kz-contact .wpcf7-submit:focus-visible {
	background: var(--kz-rouge-fonce);
}

/* CF7 désactive le bouton tant que la case n'est pas cochée */
.kz-contact .wpcf7-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Rond de chargement de CF7 */
.kz-contact .wpcf7-spinner {
	margin: 0;
}

/* Erreurs et messages */
.kz-contact .wpcf7-form-control.wpcf7-not-valid {
	border-color: var(--kz-rouge);
}

.kz-contact .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 15px;
	color: var(--kz-rouge);
}

.kz-contact .wpcf7-response-output {
	margin: 24px 0 0 !important; /* CF7 force ses marges */
	padding: 12px 20px !important;
	border-width: 2px !important;
	border-radius: var(--kz-rayon);
	font-size: 16px;
}

/* Mobile (point de rupture téléphone de Divi) */
@media (max-width: 767px) {
	.kz-contact {
		--kz-taille: 16px;
	}

	.kz-contact input[type="text"],
	.kz-contact input[type="email"],
	.kz-contact input[type="tel"],
	.kz-contact textarea {
		padding: 14px 18px;
	}

	.kz-contact textarea {
		min-height: 220px;
	}

	.kz-contact .kz-contact__envoi {
		flex-direction: column;
		margin-top: 32px;
	}

	.kz-contact .wpcf7-submit {
		width: 100%;
	}

}

.custom_footer .et_pb_row {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
}

/* .custom_footer .et_pb_image_0_tb_footer { */
.custom_footer .custom_footer__logo {
	margin-bottom: 0;
}

.custom_footer .et_pb_menu__menu {
	display: flex;
}

.custom_footer .et_mobile_nav_menu {
	display: none;
}

@media (max-width: 767px) {
	.custom_footer .et_pb_row {
		gap: 2rem;
	}
}