/* Empreinte – composants : tarifs, bandeaux d'offre, boutons flottants, invitation à la simulation. */

/* Bouton foncé et petit format (blocs Bouton, classe CSS « ep-btn-dark » / « ep-btn-sm ») */
.wp-block-button.ep-btn-dark > .wp-block-button__link { background: var(--vert-700, #2a7a43); border-color: var(--vert-700, #2a7a43); color: #fff; }
.wp-block-button.ep-btn-dark > .wp-block-button__link:hover { background: var(--foret-800, #235c3d); border-color: var(--foret-800, #235c3d); }
.wp-block-button.ep-btn-sm > .wp-block-button__link { padding: 10px 18px; font-size: 13px; }

/* Tarif (paragraphe, classe « price ») : « À partir de <strong>250 € HT</strong> » */
p.price { margin: 0; font-family: var(--font-display, inherit); font-size: 14px; color: var(--text-secondary, #5c645d); line-height: 1.3; }
p.price strong { display: block; font-size: 22px; font-weight: 700; color: var(--text-primary, #2b2f2c); }

/* Pied de carte avec tarif et bouton (groupe, classe « card-cta ») */
.card-cta { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3, 12px); margin-top: auto !important; padding-top: var(--space-4, 16px); border-top: 1px solid var(--border-default, #d9ded4); }
.card-cta > * { margin: 0 !important; }

/* Bandeau d'offre (groupe, classe « cta-band ») */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4, 16px); padding: var(--space-6, 24px); border: 1.6px solid var(--vert-500, #3fae5c); border-radius: var(--radius-md, 8px); background: var(--surface-page, #fff); margin-block: var(--space-8, 32px); color: var(--text-primary, #2b2f2c); }
.cta-band h3 { margin: 0 0 var(--space-1, 4px); }
.cta-band > * { margin-block: 0; }
.cta-band .wp-block-buttons { margin: 0; }
.cta-band p.price strong { font-size: 28px; }

/* Boutons flottants */
.fab, details.fab-menu > summary {
	display: flex; align-items: center; gap: var(--space-3, 12px);
	padding: 12px 20px; border-radius: 999px;
	background: var(--sol-400, #f6c453); color: var(--foret-900, #17402b); border: 2px solid #fff;
	font-family: var(--font-display, inherit); font-weight: 700; font-size: 15px; line-height: 1.25;
	text-decoration: none; cursor: pointer; list-style: none;
	box-shadow: 0 4px 16px rgba(23, 64, 43, 0.35);
}
.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; max-width: calc(100vw - 32px); }
.fab:hover, details.fab-menu > summary:hover { background: #ffd56b; color: var(--foret-900, #17402b); }
.fab small, details.fab-menu > summary small { display: block; font-weight: 500; font-size: 12px; }
.fab-fleche { font-size: 18px; }
details.fab-menu[open] .fab-fleche { transform: rotate(180deg); }
details.fab-menu { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; max-width: calc(100vw - 32px); }
details.fab-menu > summary::-webkit-details-marker { display: none; }
.fab-list { position: absolute; right: 0; bottom: calc(100% + 8px); width: min(360px, calc(100vw - 32px)); max-height: 60vh; overflow: auto; margin: 0; padding: var(--space-2, 8px); list-style: none; background: var(--surface-page, #fff); border: 1.6px solid var(--border-strong, #333); border-radius: var(--radius-md, 8px); }
.fab-list a { display: flex; justify-content: space-between; gap: var(--space-3, 12px); padding: var(--space-3, 12px); border-radius: var(--radius-sm, 4px); text-decoration: none; font-size: 14px; font-weight: 400; color: var(--text-primary, #2b2f2c); }
.fab-list a:hover { background: var(--surface-muted, #f1f8ea); text-decoration: none; }
.fab-list .p { color: var(--vert-700, #2a7a43); font-weight: 700; white-space: nowrap; }
/* Dans l'éditeur, le bouton flottant reste à sa place pour ne pas gêner. */
.editor-styles-wrapper .fab, .editor-styles-wrapper details.fab-menu { position: static; display: inline-flex; }

/* Invitation à la simulation */
dialog.popup { padding: 0; border: 1.6px solid var(--border-strong, #333); border-radius: var(--radius-md, 8px); background: var(--surface-page, #fff); color: var(--text-primary, #2b2f2c); width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; }
dialog.popup::backdrop { background: rgba(23, 64, 43, 0.55); }
.popup-body { position: relative; padding: var(--space-8, 32px) var(--space-6, 24px) var(--space-6, 24px); }
.popup-body .illus-blob { width: 84px; margin-bottom: var(--space-4, 16px); }
.popup-body h2 { font-size: 22px; margin: 0 0 var(--space-3, 12px); }
.popup-body p { color: var(--text-secondary, #5c645d); margin-bottom: 0; }
.popup-close { position: absolute; top: var(--space-3, 12px); right: var(--space-3, 12px); width: 36px; height: 36px; border: none; border-radius: 50%; background: var(--surface-muted, #f1f8ea); color: var(--text-primary, #2b2f2c); font-size: 22px; line-height: 1; cursor: pointer; }
.popup-actions { display: flex; flex-wrap: wrap; gap: var(--space-3, 12px); margin-top: var(--space-6, 24px); }
.ep-pbtn { display: inline-flex; align-items: center; font-family: var(--font-display, inherit); font-weight: 600; font-size: 14px; padding: 12px 20px; border-radius: 999px; text-decoration: none; cursor: pointer; border: 1.6px solid var(--vert-700, #2a7a43); }
.ep-pbtn--plein { background: var(--vert-700, #2a7a43); color: #fff; }
.ep-pbtn--plein:hover { background: var(--foret-800, #235c3d); color: #fff; }
.ep-pbtn--contour { background: transparent; color: var(--vert-700, #2a7a43); }

/* Grille des offres : 3 colonnes maximum (classe « grid-offres » sur la grille) */
.grid-3.grid-offres { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

/* ---------- Bandeau d'ouverture compact (accueil et pages de services) ---------- */
.ep-hero-compact .hero { padding-block: 48px; }
.ep-hero-compact .hero .hero-grid { grid-template-columns: 1.5fr 0.5fr; gap: var(--space-8, 32px); }
.ep-hero-compact .hero .illus-wrap { width: 100%; max-width: 260px; justify-self: end; }
.ep-hero-compact .hero .hero-figure { margin-top: var(--space-6, 24px); padding-top: var(--space-4, 16px); }
@media (max-width: 860px) {
	.ep-hero-compact .hero .hero-grid { grid-template-columns: 1fr; }
	.ep-hero-compact .hero .illus-wrap { display: none; }
	.ep-hero-compact .hero { padding-block: 32px 40px; }
}

/* Flèche « Découvrir la suite » (sous les boutons, à gauche) */
.ep-scroll {
	display: inline-flex; align-items: center; gap: var(--space-3, 12px);
	margin-top: var(--space-8, 32px);
	color: #fff; text-decoration: none;
	font-family: var(--font-display, inherit); font-size: 14px; font-weight: 600;
	letter-spacing: 0.06em; text-transform: uppercase;
}
.ep-scroll__rond {
	display: flex; align-items: center; justify-content: center; flex: none;
	width: 52px; height: 52px; border-radius: 50%;
	background: var(--sol-400, #f6c453); color: var(--foret-900, #17402b);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	animation: ep-rebond 2s ease-in-out infinite;
}
.ep-scroll__rond svg { width: 26px; height: 26px; }
.ep-scroll:hover, .ep-scroll:focus-visible { color: #fff; text-decoration: none; }
.ep-scroll:hover .ep-scroll__rond, .ep-scroll:focus-visible .ep-scroll__rond { background: #ffd56b; }
@keyframes ep-rebond { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .ep-scroll__rond { animation: none; } }

/* ---------- Page Contact : bandeau réduit, formulaire visible dès l'arrivée ---------- */
.ep-contact .hero { padding-block: 32px; }
.ep-contact .hero .hero-grid { grid-template-columns: 1fr; }
.ep-contact .hero .illus-wrap { display: none; }
.ep-contact .hero h1 { margin-bottom: var(--space-2, 8px); }
.ep-contact .hero .is-style-lede { margin-bottom: 0; }
.ep-contact .hero + .content-section { padding-top: var(--space-8, 32px); }
