/* RELU: OK 2026-11-18 - Sonnet (passe finale lot L1, 2 passes : correctifs de la 1re relecture re-relus, verdict final sans reserve). */
/* Cafémétrie — feuille propre à la page d'accueil (ID 2, post_name « page-d-exemple »), chargée après habillage.css sur cette seule page.
   Passe finale de conformité à la maquette validée (board Main). PRÉSENTATION SEULEMENT : aucun texte, titre ou lien masqué ou modifié.
   Chaque règle porte en commentaire la valeur de la maquette qu'elle rétablit. */

/* images : le thème ajoute 10 px de marge au-dessus et au-dessous de toute image de médiathèque (img[class*="wp-image-"]) ;
   la maquette n'en a aucune (cartes, tuiles et photos décalées de 10 px, liseré sombre en haut de la carte certification) */
body.cm-habillage.page-id-2 .elementor-2 img[class*="wp-image-"] { margin-top: 0 !important; margin-bottom: 0 !important; }

/* ---------- héros ---------- */
/* fil d'Ariane : en texte courant, séparateur « › » en Inter 14 px entre deux espaces (maquette : « Accueil › Formation… ») */
body.cm-habillage.page-id-2 .cm-banniere-deplacee .breadcrumb { display: block !important; line-height: 1.6 !important; }
body.cm-habillage.page-id-2 .cm-banniere-deplacee .breadcrumb li { display: inline !important; margin: 0 !important; padding: 0 !important; }
body.cm-habillage.page-id-2 .cm-banniere-deplacee .breadcrumb i.fa-chevron-right { font-family: var(--cm-corps) !important; font-size: 14px !important; font-weight: 400 !important; font-style: normal; line-height: 1.6; display: inline; margin: 0 .28em 0 0 !important; }
body.cm-habillage.page-id-2 .cm-banniere-deplacee .breadcrumb i.fa-chevron-right::before { content: "\203A" !important; }
/* chapô : 16 px / 1,6, largeur 540 px, 32 px avant les boutons (au lieu de 17 px / 1,65 et 33 px) */
body.cm-habillage.page-id-2 .cm-chapo { max-width: 540px !important; margin-bottom: 32px !important; }
body.cm-habillage.page-id-2 .cm-chapo, body.cm-habillage.page-id-2 .cm-chapo .elementor-widget-container, body.cm-habillage.page-id-2 .cm-chapo p { font-size: 16px !important; line-height: 1.6 !important; }
body.cm-habillage.page-id-2 .cm-chapo p { margin: 0 !important; }
/* boutons : interligne 1,6 (24 px) ; bouton à contour haut de 48 px HORS bordure, comme la maquette */
body.cm-habillage.page-id-2 .cm-boutons .elementor-button, body.cm-habillage.page-id-2 .elementor-element-5123b92 .elementor-button { line-height: 1.6 !important; }
body.cm-habillage.page-id-2 .cm-btn-ghost .elementor-button { box-sizing: content-box !important; min-height: 48px !important; height: auto !important; width: auto !important; flex: 0 1 auto; min-width: 0; white-space: normal !important; text-align: left; }
body.cm-habillage.page-id-2 .cm-btn-ghost .elementor-button-wrapper { display: flex; }
body.cm-habillage.page-id-2 .e-con.e-child.cm-boutons > .elementor-widget { max-width: 100%; min-width: 0; }
/* boutons primaires : sans bordure (elle ajoutait 2 px à la largeur) */
body.cm-habillage.page-id-2 .elementor-element-2c5293c .elementor-button, body.cm-habillage.page-id-2 .elementor-element-5123b92 .elementor-button { border: 0 !important; }
/* flèche des boutons primaires « Découvrir les formations barista » et « Découvrir la certification barista » (maquette : flèche 16 px, trait 2, à 10 px du texte) */
body.cm-habillage.page-id-2 .elementor-element-2c5293c .elementor-button, body.cm-habillage.page-id-2 .elementor-element-5123b92 .elementor-button { display: inline-flex !important; align-items: center; gap: 10px; }
body.cm-habillage.page-id-2 .elementor-element-2c5293c .elementor-button::after, body.cm-habillage.page-id-2 .elementor-element-5123b92 .elementor-button::after {
	content: ""; flex: 0 0 16px; width: 16px; height: 16px; background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px 16px no-repeat; }
/* pastille « Satisfaction générale » : 55 px de haut (au lieu de 50), sans approche de lettres */
body.cm-habillage.page-id-2 .cm-pastille .elementor-heading-title { line-height: 27px !important; letter-spacing: 0 !important; }

/* ---------- vidéo ---------- */
/* marge basse de la section : clamp(48px, 6vw, 80px) (au lieu de 56–96 px) */
body.cm-habillage.page-id-2 .elementor[data-elementor-type="wp-page"] > .e-con.e-parent.cm-sec.elementor-element-366b186 { padding-bottom: clamp(48px, 6vw, 80px) !important; }
/* triangle de lecture : celui de la maquette (SVG de 30 px, triangle de 13,75 × 16,25 px), au lieu d'un triangle de 24 × 28 px décalé de 6 px */
body.cm-habillage.page-id-2 .cm-video-cadre .elementor-custom-embed-play::before {
	content: ""; width: 30px; height: 30px; margin: 0; border: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z' fill='%2385604A'/%3E%3C/svg%3E") center / 30px 30px no-repeat; }

/* ---------- « Nos formations permettent » ---------- */
/* section : clamp(48px, 6vw, 80px) en haut et en bas (au lieu de 56–96 px) */
body.cm-habillage.page-id-2 .elementor[data-elementor-type="wp-page"] > .e-con.e-parent.cm-sec.elementor-element-c0a89b8 { padding-top: clamp(48px, 6vw, 80px) !important; padding-bottom: clamp(48px, 6vw, 80px) !important; }
/* titre : Plus Jakarta Sans gras fort, interligne 1,6 (il sortait en Inter 700, interligne 1,65) */
body.cm-habillage.page-id-2 .cm-liste-cartes p { line-height: 1.6 !important; }
body.cm-habillage.page-id-2 .elementor-2 .cm-liste-cartes.elementor-widget p, body.cm-habillage.page-id-2 .elementor-2 .cm-liste-cartes.elementor-widget p b { font-family: var(--cm-titre) !important; }
body.cm-habillage.page-id-2 .elementor-2 .cm-liste-cartes.elementor-widget p b { font-weight: 800 !important; }
/* cartes : lignes de 25,6 px et numéro sur 24 px (cartes de 167 px au lieu de 158) */
body.cm-habillage.page-id-2 .cm-liste-cartes li { line-height: 25.6px !important; }
body.cm-habillage.page-id-2 .cm-liste-cartes li::before { line-height: 24px; }

/* ---------- parcours ---------- */
/* 44 px entre le titre et la grille (l'écart de 24 px du conteneur s'y ajoutait) */
body.cm-habillage.page-id-2 .elementor-element-97ade0a > .e-con-inner { gap: 0 !important; }
body.cm-habillage.page-id-2 .cm-titre-centre .elementor-heading-title { letter-spacing: -0.02em !important; }
/* surtitres : interligne 1,6 (20,8 px au lieu de 16,9) */
body.cm-habillage.page-id-2 .cm-surtitre .elementor-heading-title { line-height: 1.6 !important; }

/* ---------- bande de tuiles ---------- */
/* tuiles étroites : légende verticale calée à 18 px du bord gauche, interligne 27,2 px (elle était centrée, interligne 20,4 px) */
body.cm-habillage.page-id-2 .cm-tuile-legende .elementor-heading-title { letter-spacing: 0 !important; }
body.cm-habillage.page-id-2 .cm-tuile-etroite .cm-tuile-legende { justify-content: flex-start !important; left: 0 !important; right: 0 !important; padding: 0 18px !important; }
body.cm-habillage.page-id-2 .cm-tuile-etroite .cm-tuile-legende .elementor-heading-title { line-height: 27.2px !important; }

/* ---------- certification ---------- */
/* titre : 14 px dessous, interligne 1,15, approche -0,02em (le widget contient un h2 vide suivi du h2 : marges de 32 px retirées) */
body.cm-habillage.page-id-2 .elementor-element-523e1f4 h2 { margin: 0 !important; line-height: 1.15 !important; letter-spacing: -0.02em !important; }
body.cm-habillage.page-id-2 .elementor-element-523e1f4 h2:last-child { margin-bottom: 14px !important; }
/* texte : 16 px / 1,6, 14 px entre paragraphes, 30 px avant le bouton */
body.cm-habillage.page-id-2 .elementor-element-d6db202, body.cm-habillage.page-id-2 .elementor-element-d6db202 p { line-height: 1.6 !important; }
body.cm-habillage.page-id-2 .elementor-element-d6db202 p { margin: 0 0 14px !important; }
body.cm-habillage.page-id-2 .elementor-element-d6db202 p:last-child { margin-bottom: 30px !important; }
/* premier paragraphe (intitulé de la certification) : Plus Jakarta Sans 18 px gras fort, brun #5E4232, 18 px dessous */
body.cm-habillage.page-id-2 .elementor-element-d6db202 p:first-child { margin-bottom: 18px !important; }
body.cm-habillage.page-id-2 .elementor-element-d6db202 p:first-child, body.cm-habillage.page-id-2 .elementor-element-d6db202 p:first-child strong {
	font-family: var(--cm-titre) !important; font-size: 18px !important; font-weight: 800 !important; color: #5E4232 !important; }

/* ---------- contact + certificat ---------- */
/* carte sombre : hauteur de la maquette (220 px + marges intérieures : 316 px en grand écran, 284 px en 390), icône en haut, titre en bas */
body.cm-habillage.page-id-2 .e-con.e-child.cm-carte-contact { min-height: calc(220px + 2 * clamp(32px, 4vw, 48px)) !important; justify-content: flex-start !important; }
body.cm-habillage.page-id-2 .cm-carte-contact > .elementor-widget-icon-box { flex: 1 1 auto; display: flex; flex-direction: column; width: 100%; margin: 0 !important; }
body.cm-habillage.page-id-2 .cm-carte-contact > .elementor-widget-icon-box > .elementor-widget-container { flex: 1 1 auto; display: flex; flex-direction: column; }
body.cm-habillage.page-id-2 .cm-carte-contact .elementor-icon-box-wrapper { flex: 1 1 auto; display: flex !important; flex-direction: column !important; justify-content: space-between; gap: 32px; }
body.cm-habillage.page-id-2 .cm-carte-contact .elementor-icon-box-icon { margin: 0 !important; line-height: 0; }
body.cm-habillage.page-id-2 .cm-carte-contact .elementor-icon-box-icon .elementor-icon { display: block; width: 36px; height: 36px; line-height: 0; }
/* icône : l'enveloppe au trait de la maquette (36 px, trait 1,6, #D9B99F) à la place du pictogramme de la police d'icônes */
body.cm-habillage.page-id-2 .cm-carte-contact .elementor-icon-box-icon .elementor-icon i { display: block; width: 36px; height: 36px; font-size: 0 !important;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D9B99F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E") center / 36px 36px no-repeat; }
body.cm-habillage.page-id-2 .cm-carte-contact .elementor-icon-box-icon .elementor-icon i::before { content: none !important; }
body.cm-habillage.page-id-2 .cm-carte-contact .elementor-icon-box-content { flex: 0 0 auto !important; width: 100%; }
body.cm-habillage.page-id-2 .cm-carte-contact .elementor-icon-box-title { margin: 0 !important; }
body.cm-habillage.page-id-2 .cm-carte-contact .elementor-icon-box-title a { line-height: 1.6 !important; letter-spacing: -0.015em !important; }
/* flèche du titre : celle de la maquette (28 px, trait 2) à la place du caractère « → » */
body.cm-habillage.page-id-2 .cm-carte-contact .elementor-icon-box-title a::after {
	content: "" !important; flex: 0 0 28px; width: 28px; height: 28px; margin: 0 !important; background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 28px 28px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 28px 28px no-repeat; }
/* carte du certificat : même hauteur minimale (220 px + marges + bordure), logos sans interligne parasite, titre sur 32 px */
body.cm-habillage.page-id-2 .e-con.e-child.cm-carte-certif { min-height: calc(222px + 2 * clamp(28px, 4vw, 44px)) !important; }
body.cm-habillage.page-id-2 .cm-carte-certif .elementor-image-box-img a, body.cm-habillage.page-id-2 .cm-carte-certif img { display: block !important; }
body.cm-habillage.page-id-2 .cm-carte-certif .elementor-image-box-img { border-radius: 0 !important; }
body.cm-habillage.page-id-2 .cm-carte-certif .elementor-image-box-title, body.cm-habillage.page-id-2 .cm-carte-certif .elementor-image-box-title a { line-height: 1.6 !important; letter-spacing: 0 !important; }

/* ---------- petits écrans ---------- */
@media (max-width: 860px) {
	/* pastille : même position qu'en grand écran (-12 px, 28 px du bas) */
	body.cm-habillage.page-id-2 .cm-pastille { left: -12px !important; bottom: 28px !important; }
}
@media (max-width: 767px) {
	/* marges latérales de 24 px (au lieu de 16) */
	body.cm-habillage.page-id-2 .elementor[data-elementor-type="wp-page"] > .e-con.e-parent.cm-sec { padding-left: 24px !important; padding-right: 24px !important; }
	/* bouton « Découvrir la certification barista » : largeur de son contenu (il prenait toute la ligne) */
	body.cm-habillage.page-id-2 .elementor-element-5123b92 .elementor-button { width: auto !important; }
}
/* carte du certificat : quand les deux logos ne tiennent plus côte à côte (195 + 24 + 72 px), le second passe dessous, comme dans la maquette */
@media (max-width: 396px) {
	body.cm-habillage.page-id-2 .e-con.e-child.cm-carte-certif { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: auto auto 1fr !important; }
	body.cm-habillage.page-id-2 .cm-carte-certif .elementor-image-box-img { grid-column: 1 !important; grid-row: 1 !important; }
	body.cm-habillage.page-id-2 .cm-carte-certif .cm-logo-cpf { grid-column: 1 !important; grid-row: 2 !important; }
	body.cm-habillage.page-id-2 .cm-carte-certif .elementor-image-box-content { grid-column: 1 !important; grid-row: 3 !important; }
}
