/*
 * Typographie APOSE — classes à poser sur les titres, textes, liens et boutons
 * (templates du thème enfant et pages Brizy). Valeurs relevées sur la maquette.
 */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-var.woff2?v=2") format("woff2"); /* v=2 : vraie police variable (la v1 était la graisse 100 seule) */
}

:root {
	--apose-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--apose-ink: #111;
	--apose-muted: #696969;
	--apose-line: #d9d9d9;
	--apose-product: #f5f5f5;
	--apose-band: #e9e9e9;
	--apose-white: #fff;
	--apose-gutter: 30px; /* marges gauche-droite des pages et des sections Brizy : 30 / 25 / 20 px */
	--apose-pad-y: 50px; /* marges haut-bas des pages et des sections Brizy : 50 / 40 / 30 px */
	--apose-gap: clamp(12px, 1vw, 20px);
	--apose-space: clamp(32px, 3.3vw, 64px);
	--apose-fs-h1: 36px;
	--apose-fs-h2: 28px;
	--apose-fs-h3: 24px;
	--apose-fs-h4: 19px;
	--apose-fs-h5: 17px;
	--apose-fs-h6: 16px;
	--apose-fs-p: 14px;
	--apose-fs-small: 13px;
	--apose-fs-label: 12px;
	--apose-pad-box: 40px; /* padding intérieur des blocs à fond (section 3…) : 40 / 30 / 20 px à gauche et à droite */
	--apose-pad-box-y: 60px; /* … et 60 / 45 / 30 px en haut et en bas */
}

@media (max-width: 991px) {
	:root { --apose-gutter: 25px; --apose-pad-y: 40px; --apose-pad-box: 30px; --apose-pad-box-y: 45px; }
}

@media (max-width: 767px) {
	:root {
		--apose-gutter: 20px;
		--apose-pad-y: 30px;
		--apose-fs-h1: 28px;
		--apose-fs-h2: 24px;
		--apose-fs-h3: 19px;
		--apose-fs-h4: 17px;
		--apose-fs-h5: 16px;
		--apose-fs-h6: 15px;
		--apose-fs-small: 12px;
		--apose-pad-box: 20px;
		--apose-pad-box-y: 30px;
	}
}

.h1, .h2, .h3, .h4, .h5, .h6, .surtitre, .p, .p-light, .p-small, .link, .link-light, .link-classic, .btn, .btn-cta, .btn-cta-dark {
	font-family: var(--apose-font);
	letter-spacing: 0;
}

.h1, .h2, .h3, .h4, .h5, .h6 { margin: 0; font-weight: 400; color: var(--apose-ink); }
.h1 { font-size: var(--apose-fs-h1); line-height: 1.1; text-transform: uppercase; }
.h2 { font-size: var(--apose-fs-h2); line-height: 1.1; text-transform: uppercase; }
.h3 { font-size: var(--apose-fs-h3); line-height: 1.1; }
.h4 { font-size: var(--apose-fs-h4); line-height: 1.1; }
.h5 { font-size: var(--apose-fs-h5); line-height: 1.1; }
.h6 { font-size: var(--apose-fs-h6); line-height: 1.1; }

.surtitre { display: block; margin: 0; font-size: var(--apose-fs-label); font-weight: 400; line-height: 1.3; text-transform: uppercase; color: var(--apose-muted); }

/* .p-light et .p-small se combinent : couleur atténuée + petit corps. */
.p, .p-light { margin: 0; font-size: var(--apose-fs-p); font-weight: 400; line-height: 1.3; }
.p { color: var(--apose-ink); }
/* color: inherit — posé sur un h2/h3, la couleur de titre de Blocksy ne s'applique pas. */
.p-small { margin: 0; font-size: var(--apose-fs-small); font-weight: 400; line-height: 1.3; color: inherit; }
.p-light { color: var(--apose-muted); }

/*
 * Liens et boutons — 4 styles :
 *   .link-light              texte simple ; survol : noir + souligné
 *   .link-classic (= .link)  noir souligné ; survol : s'éclaircit
 *   .btn-cta (= .btn)        contour noir, fond transparent ; survol : fond noir, texte blanc
 *   .btn-cta-dark            contour et fond noirs ; survol : fond transparent, texte noir
 */
.link-light { color: inherit; text-decoration: none; transition: color .2s; }
.link-light:hover, .link-light:focus-visible { color: var(--apose-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.link, .link-classic { color: var(--apose-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s; }
.link:hover, .link:focus-visible, .link-classic:hover, .link-classic:focus-visible { color: var(--apose-muted); }

/* « Bouton souligné » Brizy : bouton avec la classe CSS link-classic (Avancé → Classe CSS), posée sur le bouton ou son
   conteneur selon Brizy. Double .brz-btn : passe devant les styles générés par Brizy (.brz .brz-css-xxx.brz-btn). */
.brz :is(.link-classic.brz-btn, .link-classic .brz-btn, .link.brz-btn, .link .brz-btn).brz-btn {
	min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
	color: var(--apose-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s;
}
.brz :is(.link-classic.brz-btn, .link-classic .brz-btn, .link.brz-btn, .link .brz-btn).brz-btn:is(:hover, :focus-visible) { background: transparent; color: var(--apose-muted); }

/* :is(a, button, input) : passe devant les styles de bouton de Blocksy ([type="submit"], button…) */
:is(a, button, input).btn, :is(a, button, input).btn-cta, :is(a, button, input).btn-cta-dark {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 24px;
	border: 1px solid var(--apose-ink); border-radius: 0; box-shadow: none;
	font-family: var(--apose-font); font-size: 13px; font-weight: 400; line-height: 1; letter-spacing: 0; text-align: center; text-decoration: none; text-transform: none;
	cursor: pointer; transition: background .2s, color .2s;
}
:is(a, button, input).btn, :is(a, button, input).btn-cta { background: transparent; color: var(--apose-ink); }
:is(a, button, input).btn:hover, :is(a, button, input).btn:focus-visible,
:is(a, button, input).btn-cta:hover, :is(a, button, input).btn-cta:focus-visible { background: var(--apose-ink); border-color: var(--apose-ink); color: var(--apose-white); }
:is(a, button, input).btn-cta-dark { background: var(--apose-ink); color: var(--apose-white); }
:is(a, button, input).btn-cta-dark:hover, :is(a, button, input).btn-cta-dark:focus-visible { background: transparent; border-color: var(--apose-ink); color: var(--apose-ink); }
.btn--full { width: 100%; }
@media (max-width: 767px) {
	:is(a, button, input).btn, :is(a, button, input).btn-cta, :is(a, button, input).btn-cta-dark { min-height: 42px; }
}

/* FAQ (template-parts/faq-list.php : accueil, archives) — réponse en accordéon <details name> ou lien */
.apose-faq { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--apose-line); }
.apose-faq__item { border-bottom: 1px solid var(--apose-line); }
.apose-faq__q { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; list-style: none; }
summary.apose-faq__q { cursor: pointer; }
summary.apose-faq__q::-webkit-details-marker { display: none; }
summary.apose-faq__q::after { content: "+"; flex: none; }
.apose-faq__details[open] > summary.apose-faq__q::after { content: "−"; }
a.apose-faq__q:hover { opacity: .6; }
.apose-faq__a { padding: 0 0 14px; }
.apose-faq__a > :last-child { margin-bottom: 0; }

/* Focus (accueil, archives, pied de page) : pas de contour bleu Blocksy. Champs : aucun contour (le clic les
   « focus » aussi) ; liens, boutons, menus au clavier : contour noir fin. */
:is(.apose-home, .apose-archive, .apose-footer) :is(select, input, textarea):focus,
:is(.apose-home, .apose-archive, .apose-footer) :is(select, input, textarea):focus-visible { outline: none; box-shadow: none; }
:is(.apose-home, .apose-archive, .apose-footer) :is(a, button, summary, label):focus { outline: none; }
:is(.apose-home, .apose-archive, .apose-footer) :is(a, button, summary):focus-visible { outline: 1px solid var(--apose-ink); outline-offset: 3px; }
:is(.apose-home, .apose-archive, .apose-footer) { -webkit-tap-highlight-color: transparent; }
