/* Concept Peinture : compléments au theme.json (ce que l'éditeur ne règle pas seul). */

:root {
	--cp-ombre: 0 18px 40px rgba(30, 27, 28, .16);
	--cp-ombre-legere: 0 6px 20px rgba(30, 27, 28, .10);
}

/* En-tête collant */
.cp-entete {
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: 0 1px 0 var(--wp--preset--color--bordure);
}
.admin-bar .cp-entete { top: 32px; }
@media (max-width: 782px) { .admin-bar .cp-entete { top: 46px; } }

/* Logo texte */
.cp-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--wp--preset--color--anthracite); font-family: var(--wp--preset--font-family--titre); font-size: 1.3rem; white-space: nowrap; }
.cp-logo:hover { color: var(--wp--preset--color--anthracite); }
.cp-logo__carres { display: inline-flex; gap: 3px; }
.cp-logo__carres span { width: 11px; height: 11px; display: block; }

/* Surtitre */
.is-style-surtitre {
	font-size: var(--wp--preset--font-size--petit) !important;
	font-weight: 900;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--magenta-fonce);
}
.has-anthracite-background-color .is-style-surtitre,
.has-anthracite-profond-background-color .is-style-surtitre,
.wp-block-cover .is-style-surtitre { color: var(--wp--preset--color--magenta-clair); }

/* Cartes */
.is-style-carte { background: var(--wp--preset--color--blanc); border-radius: 16px; box-shadow: var(--cp-ombre-legere); overflow: hidden; }
.is-style-carte-bordure { border: 2px solid var(--wp--preset--color--bordure); border-radius: 16px; }

/* Cartes photo (prestations) */
.wp-block-cover.is-style-carte-photo { border-radius: 16px; overflow: hidden; transition: transform .2s ease; }
.wp-block-cover.is-style-carte-photo:hover { transform: translateY(-4px); }
.wp-block-cover.is-style-carte-photo .wp-block-cover__inner-container { align-self: flex-end; }
.wp-block-cover.is-style-carte-photo h3 { color: #fff; }
.wp-block-cover.is-style-carte-photo h3::after { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--wp--preset--color--magenta); margin-top: .5rem; }
.wp-block-cover.is-style-carte-photo a { color: inherit; text-decoration: none !important; }
.wp-block-cover.is-style-carte-photo a::after { content: ""; position: absolute; inset: 0; }

/* Barre de confiance qui chevauche le hero */
.cp-confiance { position: relative; z-index: 2; margin-top: -70px !important; box-shadow: var(--cp-ombre); border-radius: 16px; overflow: hidden; }
.cp-confiance .cp-chiffre { font-family: var(--wp--preset--font-family--titre); font-size: 1.85rem; color: var(--wp--preset--color--magenta-fonce); line-height: 1.1; }
.cp-confiance a { color: inherit; text-decoration: none; }
@media (max-width: 781px) {
	.wp-block-columns.cp-confiance.is-not-stacked-on-mobile { margin-top: -40px !important; flex-wrap: wrap !important; gap: 0 !important; }
	.wp-block-columns.cp-confiance.is-not-stacked-on-mobile > .wp-block-column { flex-basis: 50% !important; box-sizing: border-box; }
	.cp-entete .wp-block-buttons { display: none; }
}
.cp-entete .wp-block-navigation { flex: 1 1 auto; }

/* Liste à coches */
.is-style-coches { list-style: none; padding-left: 0; display: flex; flex-direction: column; gap: .75rem; }
.is-style-coches li { position: relative; padding-left: 2.4rem; }
.is-style-coches li::before {
	content: "✓"; position: absolute; left: 0; top: 0;
	width: 1.6rem; height: 1.6rem; border-radius: 999px;
	background: var(--wp--preset--color--magenta); color: #fff;
	font-weight: 900; font-size: .85rem; display: flex; align-items: center; justify-content: center;
}

/* Boutons secondaires */
.wp-block-button.is-style-sombre .wp-block-button__link { background: var(--wp--preset--color--anthracite); color: #fff; }
.wp-block-button.is-style-sombre .wp-block-button__link:hover { background: var(--wp--preset--color--anthracite-profond); }
.wp-block-button.is-style-contour .wp-block-button__link { background: transparent; color: currentColor; box-shadow: inset 0 0 0 2px currentColor; }

/* Puces communes */
.cp-puces { display: flex; flex-wrap: wrap; gap: 10px; }
.cp-puces a { background: #4A4547; color: #fff; text-decoration: none; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .95rem; }
.cp-puces a:hover, .cp-puces a.est-actif { background: var(--wp--preset--color--magenta); color: #fff; }

/* FAQ */
.wp-block-details summary { font-weight: 900; font-size: 1.1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; color: var(--wp--preset--color--magenta); font-size: 1.5rem; line-height: 1; }
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details[open] summary { margin-bottom: .75rem; }
.wp-block-details p { color: var(--wp--preset--color--gris-texte); }

/* Avis */
.cp-etoiles { color: var(--wp--preset--color--magenta); letter-spacing: 2px; }

/* Barre d'action mobile (appeler / être rappelé) */
.cp-barre-mobile { display: none; }
@media (max-width: 781px) {
	.cp-barre-mobile {
		display: grid; grid-template-columns: 1fr 1fr;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		background: var(--wp--preset--color--anthracite);
		padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
		gap: 10px; box-shadow: 0 -6px 20px rgba(0,0,0,.18);
	}
	.cp-barre-mobile a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; font-weight: 900; text-decoration: none; }
	.cp-barre-mobile .cp-appeler { background: #fff; color: var(--wp--preset--color--anthracite); }
	.cp-barre-mobile .cp-rappel { background: var(--wp--preset--color--magenta); color: #fff; }
	body { padding-bottom: 76px; }
}

/* Formulaire Fluent Forms aux couleurs du site */
.cp-contact .ff-el-input--label label { color: #fff; font-weight: 700; }
.cp-contact .ff-el-form-control { border-radius: 10px !important; border: 0 !important; padding: 13px 14px !important; }
.cp-contact .ff-btn-submit { background: var(--wp--preset--color--magenta) !important; border-radius: 999px !important; font-weight: 900 !important; padding: 15px 26px !important; width: 100%; }

@media (prefers-reduced-motion: reduce) {
	.wp-block-cover.is-style-carte-photo { transition: none; }
	.wp-block-cover.is-style-carte-photo:hover { transform: none; }
}

/* Cartes cliquables sans soulignement */
.is-style-carte a, .is-style-carte-bordure a { text-decoration: none; }
.is-style-carte a:hover, .is-style-carte-bordure a:hover { text-decoration: underline; }

/* Tablette : menu replié derrière le bouton (WordPress ne le replie qu'en dessous de 600 px) */
@media (min-width: 600px) and (max-width: 1099px) {
	.cp-entete .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.cp-entete .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.cp-entete .wp-block-navigation { flex: 0 0 auto; }
}

/* En-tête : téléphone visible + bouton (v1.0.8) */
.cp-entete-actions { gap: 1.1rem; align-items: center; }
.cp-entete-tel { display: inline-flex; align-items: center; gap: .45rem; font-weight: 900; color: var(--wp--preset--color--anthracite); text-decoration: none; white-space: nowrap; }
.cp-entete-tel::before { content: ""; width: 16px; height: 16px; background: var(--wp--preset--color--magenta); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center/contain no-repeat; }
.cp-entete-tel:hover { color: var(--wp--preset--color--magenta-fonce); }
.cp-entete .cp-nav-tout { border-top: 1px solid var(--wp--preset--color--bordure); font-weight: 900; color: var(--wp--preset--color--magenta-fonce); }
@media (max-width: 781px) { .cp-entete-tel { display: none; } }

/* Pied de page : 5 colonnes qui passent sur deux lignes en tablette */
@media (min-width: 782px) and (max-width: 1099px) {
	.wp-block-columns.cp-pied-colonnes { flex-wrap: wrap !important; }
	.wp-block-columns.cp-pied-colonnes > .wp-block-column { flex-basis: calc(25% - 1.5rem) !important; }
	.wp-block-columns.cp-pied-colonnes > .wp-block-column:first-child { flex-basis: 100% !important; }
}
@media (min-width: 1100px) {
	.cp-entete .wp-block-navigation__submenu-container { min-width: 290px !important; }
	.cp-entete .wp-block-navigation__submenu-container .wp-block-navigation-item__content { white-space: nowrap; }
}
footer .wp-block-list a { text-decoration: none; }
footer .wp-block-list a:hover { text-decoration: underline; }
footer .wp-block-list li { margin-bottom: .2rem; }
