/* Épices & Noisettes — styles complémentaires à theme.json */

:root {
	--epn-radius: 16px;
	--epn-shadow: 0 12px 30px -18px rgba(58, 35, 22, .35);
}

/* ---------- Typographie ---------- */
h1, h2, h3, .wp-block-post-title { text-wrap: balance; }
.is-style-surtitre { font-size: .78rem !important; text-transform: uppercase; letter-spacing: .16em; color: var(--wp--preset--color--bordeaux); font-weight: 700; }
.is-style-etiquette { display: inline-block; font-size: .7rem !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--wp--preset--color--creme); color: var(--wp--preset--color--bordeaux); border: 1px solid var(--wp--preset--color--ligne); margin: 0 !important; }
.epn-intro { font-size: var(--wp--preset--font-size--intro); color: var(--wp--preset--color--texte-doux); max-width: 62ch; }
.epn-prose { max-width: 66ch; }
.epn-trust p { font-size: .88rem; color: var(--wp--preset--color--texte-doux); margin: 0; }
.epn-trust strong { color: var(--wp--preset--color--texte); }

/* ---------- Filet avec point ---------- */
.wp-block-separator.is-style-point { border: 0; height: 8px; width: 140px !important; margin-left: 0; background: none; position: relative; opacity: 1; }
.wp-block-separator.is-style-point::before, .wp-block-separator.is-style-point::after { content: ""; position: absolute; top: 4px; height: 1px; width: 64px; background: var(--wp--preset--color--ligne); }
.wp-block-separator.is-style-point::before { left: 0; }
.wp-block-separator.is-style-point::after { right: 0; }
.wp-block-separator.is-style-point { background: radial-gradient(circle, var(--wp--preset--color--bordeaux) 4px, transparent 4.5px) center / 8px 8px no-repeat; }
.has-text-align-center .wp-block-separator.is-style-point, .wp-block-separator.is-style-point.aligncenter { margin-left: auto; margin-right: auto; }

/* ---------- Boutons ---------- */
.wp-block-button.is-style-contour .wp-block-button__link { background: transparent; color: var(--wp--preset--color--bordeaux); border: 1.5px solid var(--wp--preset--color--bordeaux); }
.wp-block-button.is-style-contour .wp-block-button__link:hover { background: var(--wp--preset--color--bordeaux); color: #fff; }
.wp-block-button.is-style-dore .wp-block-button__link { background: transparent; color: var(--wp--preset--color--dore); border: 1.5px solid var(--wp--preset--color--dore); }
.wp-block-button.is-style-dore .wp-block-button__link:hover { background: var(--wp--preset--color--dore); color: #fff; }
.wp-block-button__link:focus-visible { outline: 2px solid var(--wp--preset--color--dore); outline-offset: 2px; }

/* ---------- Photos ---------- */
.wp-block-image.is-style-photo img, .epn-photo img { border-radius: calc(var(--epn-radius) + 4px); box-shadow: var(--epn-shadow); object-fit: cover; width: 100%; }
.epn-photo-hero img { aspect-ratio: 4 / 3.3; }
.epn-photo-carre img { aspect-ratio: 4 / 4.6; }

/* ---------- Cartes ---------- */
.wp-block-group.is-style-carte, .wp-block-group.is-style-carte-mise-en-avant, .wp-block-group.is-style-encadre-tarif, .wp-block-group.is-style-etape {
	background: var(--wp--preset--color--blanc); border: 1px solid var(--wp--preset--color--ligne); border-radius: var(--epn-radius); padding: 22px 20px;
}
.wp-block-group.is-style-carte-mise-en-avant { border-color: var(--wp--preset--color--bordeaux); }
.wp-block-group.is-style-carte, .wp-block-group.is-style-carte-mise-en-avant { transition: transform .15s, box-shadow .15s; height: 100%; }
.wp-block-group.is-style-carte:hover, .wp-block-group.is-style-carte-mise-en-avant:hover { transform: translateY(-3px); box-shadow: var(--epn-shadow); }
.wp-block-group.is-style-carte p, .wp-block-group.is-style-carte-mise-en-avant p { font-size: .9rem; color: var(--wp--preset--color--texte-doux); }
.wp-block-group.is-style-carte h3, .wp-block-group.is-style-carte-mise-en-avant h3 { font-size: 1.25rem; }
.wp-block-group.is-style-carte a:not(.wp-block-button__link), .wp-block-group.is-style-carte-mise-en-avant a:not(.wp-block-button__link) { font-size: .85rem; font-weight: 700; text-decoration: none; }
.wp-block-image.epn-carte-icone { margin: 4px 0 0; }
.wp-block-image.epn-carte-icone img { width: 38px; height: 38px; }

/* Encadré tarif */
.wp-block-group.is-style-encadre-tarif { padding: 26px; }
.wp-block-group.is-style-encadre-tarif .epn-montant { font-family: var(--wp--preset--font-family--titres); font-size: 2.4rem; line-height: 1; color: var(--wp--preset--color--brun); margin: 0; }
.wp-block-group.is-style-encadre-tarif p:not(.epn-montant) { font-size: .88rem; color: var(--wp--preset--color--texte-doux); }

/* Étapes numérotées (automatique : 1, 2, 3…) */
.epn-etapes { counter-reset: etape; }
.wp-block-group.is-style-etape { height: 100%; }
.wp-block-group.is-style-etape::before { counter-increment: etape; content: counter(etape); font-family: var(--wp--preset--font-family--titres); font-size: 2.2rem; color: var(--wp--preset--color--dore); line-height: 1; display: block; margin-bottom: 8px; }
.wp-block-group.is-style-etape p { font-size: .9rem; color: var(--wp--preset--color--texte-doux); }
.wp-block-group.is-style-etape strong { display: block; margin-bottom: 4px; color: var(--wp--preset--color--texte); }

/* Chiffres clés */
.epn-chiffre { border-left: 2px solid var(--wp--preset--color--dore); padding-left: 14px; }
.epn-chiffre .epn-chiffre-nombre { font-family: var(--wp--preset--font-family--titres); font-size: 2rem; line-height: 1; color: var(--wp--preset--color--brun); margin: 0; font-variant-numeric: tabular-nums; }
.epn-chiffre p:not(.epn-chiffre-nombre) { font-size: .85rem; color: var(--wp--preset--color--texte-doux); margin: 0; }

/* Puces dorées */
ul.is-style-puces-dorees { list-style: none; padding-left: 0; display: grid; gap: 10px; }
ul.is-style-puces-dorees li { padding-left: 28px; position: relative; }
ul.is-style-puces-dorees li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: var(--wp--preset--color--dore); }

/* Témoignage sur fond sombre */
.epn-temoignage .wp-block-quote { max-width: 32ch; padding: 0; margin: 0; }
.epn-temoignage .wp-block-quote cite { display: block; margin-top: 14px; font-family: var(--wp--preset--font-family--corps); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; font-style: normal; }

/* Équipe */
.epn-personne { background: var(--wp--preset--color--blanc); border: 1px solid var(--wp--preset--color--ligne); border-radius: var(--epn-radius); padding: 22px; height: 100%; }
.epn-personne .wp-block-image img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; }
.epn-personne h3 { font-size: 1.4rem; margin: 0; }
.epn-personne .epn-role { color: var(--wp--preset--color--bordeaux); font-weight: 700; font-size: .85rem; margin: 2px 0 8px; }
.epn-personne p { font-size: .92rem; color: var(--wp--preset--color--texte-doux); }

/* Catalogue (liste automatique des formations) */
.epn-catalogue .wp-block-post { background: var(--wp--preset--color--blanc); border: 1px solid var(--wp--preset--color--ligne); border-radius: 14px; padding: 22px 24px; position: relative; }
.epn-catalogue .wp-block-post:hover { box-shadow: var(--epn-shadow); }
.epn-catalogue .wp-block-post-title { font-family: var(--wp--preset--font-family--titres); font-size: 1.3rem; margin: 0 28px 6px 0; }
.epn-catalogue .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--texte); }
.epn-catalogue .wp-block-post-title a::after { content: "→"; position: absolute; right: 22px; top: 20px; color: var(--wp--preset--color--bordeaux); font-size: 1.4rem; }
.epn-catalogue .wp-block-post-title a::before { content: ""; position: absolute; inset: 0; }
.epn-catalogue .wp-block-post-excerpt { font-size: .9rem; color: var(--wp--preset--color--texte-doux); margin: 0; }
.epn-catalogue .wp-block-post-excerpt__more-text { display: none; }

/* Fiche formation */
.epn-fiche h4 + * { margin-top: 10px; }
.epn-fiche ul { padding-left: 1.2em; }
.epn-fiche li + li { margin-top: .35em; }
.epn-infos { position: sticky; top: 96px; background: var(--wp--preset--color--blanc); border: 1px solid var(--wp--preset--color--ligne); border-radius: var(--epn-radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.epn-kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: .92rem; margin: 0; }
.epn-kv dt { color: var(--wp--preset--color--texte-doux); font-weight: 600; }
.epn-kv dd { margin: 0; }
.epn-qualiopi { display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid var(--wp--preset--color--dore); border-radius: 8px; padding: 8px 12px; font-size: .78rem; line-height: 1.25; font-weight: 700; color: var(--wp--preset--color--dore); }
.epn-qualiopi i { font-style: normal; font-family: var(--wp--preset--font-family--capitales); font-size: 1rem; }
@media (max-width: 900px) { .epn-infos { position: static; } }

/* Questions fréquentes */
.wp-block-details { border-top: 1px solid var(--wp--preset--color--ligne); padding: 14px 0; }
.wp-block-details:last-of-type { border-bottom: 1px solid var(--wp--preset--color--ligne); }
.wp-block-details summary { font-weight: 700; }
.wp-block-details p { color: var(--wp--preset--color--texte-doux); font-size: .95rem; }

/* ---------- En-tête ---------- */
.epn-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--wp--preset--color--creme) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--wp--preset--color--ligne); }
.epn-header .wp-block-site-logo img { height: 46px; width: auto; }
.epn-header .wp-block-site-title, .epn-header .wp-block-site-tagline { margin: 0; line-height: 1.15; }
.epn-header .wp-block-site-title a { text-decoration: none; }
.epn-header .wp-block-navigation a:hover, .epn-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--bordeaux); }
.epn-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--creme-clair); padding: 24px; }
.epn-header .wp-block-buttons .wp-block-button__link { padding: 8px 16px; font-size: .85rem; white-space: nowrap; }
/* Sur mobile : le bouton « Nous contacter » passe dans le menu ☰ */
.wp-block-navigation .epn-nav-contact { display: none; }
@media (max-width: 600px) { .epn-header .wp-block-site-tagline { display: none; } .epn-header .wp-block-site-logo img { height: 38px; } .epn-header .wp-block-buttons { display: none; } .wp-block-navigation .is-menu-open .epn-nav-contact { display: flex; margin-top: 12px; } .is-menu-open .epn-nav-contact a { display: inline-block; background: var(--wp--preset--color--bordeaux); color: #fff !important; border-radius: 999px; padding: 10px 20px; } }

/* ---------- Pied de page ---------- */
.epn-footer { font-size: .9rem; }
.epn-footer a { color: var(--wp--preset--color--creme); text-decoration: none; opacity: .85; }
.epn-footer a:hover { opacity: 1; text-decoration: underline; }
.epn-footer h4 { color: var(--wp--preset--color--dore); margin-bottom: 12px; }
.epn-footer .wp-block-navigation { flex-direction: column; gap: 8px; align-items: flex-start; }
.epn-footer .epn-legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: .78rem; opacity: .7; }
.epn-footer .epn-emblem img { height: 64px; width: auto; filter: brightness(1.6) saturate(.7); }
.epn-footer .epn-nom { font-family: var(--wp--preset--font-family--capitales); font-size: 1.05rem; letter-spacing: .06em; color: var(--wp--preset--color--dore); }
.epn-footer .epn-qualiopi { margin-top: 14px; }

/* ---------- Divers ---------- */
.epn-page-simple { max-width: 760px; }
.epn-page-simple h2 { margin-top: 32px; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 8px; background: #fff; padding: 8px; z-index: 99; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Ajustements mobile ---------- */
@media (max-width: 781px) {
	.epn-hero .wp-block-columns { gap: 24px; }
	.wp-block-columns.epn-cartes-5 > .wp-block-column, .wp-block-columns.epn-cartes-3 > .wp-block-column { flex-basis: 100% !important; }
}
