/*
Theme Name: APEL Notre-Dame Saint-Roch — D2
Theme URI: https://www.apelndsaintroch.com
Author: APEL Notre-Dame Saint-Roch
Description: Un socle fort et des habillages de saison (Base, Sapins, Chocolats, Fête de l'école), choisis dans APEL › Réglages.
Version: 1.0.2
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: apel-d2
*/

/* ==========================================================================
   Raccourcis
   ========================================================================== */

body {
	--ink: var(--wp--preset--color--ink);
	--soft: var(--wp--preset--color--soft);
	--bg: var(--wp--preset--color--bg);
	--surface: var(--wp--preset--color--surface);
	--card: var(--wp--preset--color--card);
	--accent: var(--wp--preset--color--accent);
	--on-accent: var(--wp--preset--color--on-accent);
	--accent-2: var(--wp--preset--color--accent-2);
	--on-accent-2: var(--wp--preset--color--on-accent-2);
	--band-ink: var(--wp--preset--color--band-ink);
	--line: var(--wp--custom--line);
	--line-strong: var(--wp--custom--line-strong);
	--shadow: var(--wp--custom--shadow);
	--shadow-soft: var(--wp--custom--shadow-soft);
	--display: var(--wp--preset--font-family--display);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
	border-radius: 6px;
}

.apel-main { padding-bottom: 0; }
.apel-main > *:first-child { margin-top: 0; }
.wp-site-blocks > * { margin-block: 0; }

.apel-wrap {
	box-sizing: border-box;
	max-width: calc(1280px + 48px);
	margin: 0 auto;
	padding: 0 24px;
}

/* ==========================================================================
   Petits éléments
   ========================================================================== */

.apel-eyebrow {
	margin: 0;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--accent);
}

.apel-pill {
	display: inline-block;
	align-self: flex-start;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	background: var(--surface);
	color: var(--accent);
	padding: 8px 14px;
	border-radius: 999px;
}

.apel-meta {
	display: block;
	font-weight: 700;
	font-size: 12.5px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--soft);
}

.apel-badge,
.apel-soon {
	display: inline-flex;
	align-items: center;
	font-size: 12.5px;
	font-weight: 700;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--accent-2);
	color: var(--on-accent-2);
	letter-spacing: 0;
	text-transform: none;
}

.apel-chip {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--surface);
	color: var(--accent);
	font-weight: 700;
	font-size: 14.5px;
}

.apel-link-strong {
	font-weight: 700;
	color: var(--accent);
	text-decoration: none;
	padding: 10px 0;
}
.apel-link-strong:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Boutons */
.apel-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce #payment #place_order {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	min-height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	font-family: inherit;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.apel-btn--primary,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce #payment #place_order {
	background: var(--accent);
	color: var(--on-accent);
	box-shadow: var(--shadow);
}
.apel-btn--primary:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce #payment #place_order:hover {
	background: var(--ink);
	color: var(--bg);
}

.woocommerce button.button:disabled,
.woocommerce button.button.disabled,
.woocommerce button.button.alt.disabled {
	background: var(--surface);
	color: var(--soft);
	box-shadow: none;
}

.apel-btn--ghost {
	background: transparent;
	color: var(--ink);
	box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.apel-btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

.apel-btn--lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.apel-btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* ==========================================================================
   Bandeau + en-tête
   ========================================================================== */

.apel-band {
	background: var(--ink);
	color: var(--band-ink);
	padding: 11px 16px;
	text-align: center;
	font-weight: 600;
	font-size: 14.5px;
	letter-spacing: .01em;
}

.apel-header {
	border-bottom: 1px solid var(--line);
	background: var(--bg);
	padding-top: 16px;
	padding-bottom: 16px;
}

.apel-header__inner { gap: 16px 32px; }

.apel-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--ink);
}
.apel-brand__mark {
	font-family: var(--display);
	font-weight: 800;
	font-size: 30px;
	letter-spacing: -0.04em;
	line-height: 1;
	background: var(--ink);
	color: var(--bg);
	padding: 7px 12px 9px;
	border-radius: 12px;
}
.apel-brand__name {
	font-size: 13px;
	line-height: 1.3;
	font-weight: 600;
	color: var(--soft);
}

.apel-nav { font-weight: 600; font-size: 15.5px; }
.apel-nav a { color: var(--ink); text-decoration: none; }
.apel-nav a:hover,
.apel-nav .current-menu-item > a { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

.apel-header__actions { gap: 10px; align-items: center; }

/* Mini-panier rond */
.apel-cart .wc-block-mini-cart__button {
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--card);
	color: var(--ink);
	justify-content: center;
}
.apel-cart .wc-block-mini-cart__amount { display: none; }
.apel-cart .wc-block-mini-cart__quantity-badge { margin: 0; }
.apel-cart .wc-block-mini-cart__badge {
	background: var(--accent-2);
	color: var(--on-accent-2);
	border: 0;
	font-weight: 700;
}

/* ==========================================================================
   Accueil
   ========================================================================== */

.apel-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 56px;
	padding: 64px 0 80px;
}
.apel-hero__text {
	flex: 1 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.apel-hero__title {
	margin: 0;
	font-family: var(--display);
	font-weight: 800;
	font-size: clamp(3rem, 6.6vw, 6.2rem);
	line-height: .94;
	letter-spacing: -0.045em;
}
.apel-hero__lead {
	margin: 0;
	font-size: 19px;
	line-height: 1.6;
	max-width: 34em;
	color: var(--soft);
}
.apel-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.apel-hero__art {
	flex: 1 1 400px;
	min-width: 0;
	max-width: 520px;
	aspect-ratio: 1 / 1;
	border-radius: 36px;
	overflow: hidden;
	box-shadow: var(--shadow);
}
.apel-hero__art svg { display: block; width: 100%; height: 100%; }
.apel-hero__photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

.apel-section { padding: 88px 0; }
.apel-section.alignfull { padding: 72px 0; }
.apel-section--surface { background: var(--surface); }
.apel-section--ink { background: var(--ink); color: var(--bg); }
.apel-section--ink h2 { color: var(--bg); }
.apel-section h2 {
	margin: 0;
	font-size: clamp(2.2rem, 4vw, 3.4rem);
	line-height: 1;
}
.apel-section__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	margin-bottom: 32px;
}
.apel-section__head > div { display: flex; flex-direction: column; gap: 10px; }
.apel-section__head p { margin: 0; font-size: 17px; color: var(--soft); max-width: 30em; }

/* L'année */
.apel-year {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
}
.apel-year__item {
	border-radius: 22px;
	padding: 22px;
	min-height: 150px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: var(--card);
	color: var(--ink);
	box-shadow: var(--shadow-soft);
}
.apel-year__item.is-active { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow); }
.apel-year__month { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.apel-year__label { font-family: var(--display); font-weight: 700; font-size: 23px; line-height: 1.12; letter-spacing: -0.02em; }
.apel-year__now {
	margin-top: auto;
	align-self: flex-start;
	font-size: 12.5px;
	font-weight: 700;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--accent-2);
	color: var(--on-accent-2);
}

/* Cartes */
.apel-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
}
.apel-card {
	height: 100%;
	display: flex;
	flex-direction: column;
	border-radius: 26px;
	overflow: hidden;
	background: var(--card);
	color: var(--ink);
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
	text-decoration: none;
	transition: transform .15s ease;
}
.apel-card:hover { transform: translateY(-2px); }
.apel-card__img {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--surface);
	display: block;
	overflow: hidden;
}
.apel-card__img .apel-badge { position: absolute; top: 14px; left: 14px; }
.apel-card__img--art svg { width: 100%; height: 100%; display: block; }
.apel-card__photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.apel-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.apel-card__title { font-family: var(--display); font-weight: 700; font-size: 23px; line-height: 1.15; letter-spacing: -0.02em; }
.apel-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; }
.apel-card__price { font-weight: 700; font-size: 19px; }

/* Agir avec nous */
.apel-agir {
	list-style: none;
	margin: 32px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
}
.apel-agir a {
	height: 100%;
	box-sizing: border-box;
	background: rgba(255, 255, 255, .07);
	border-radius: 24px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	color: inherit;
	text-decoration: none;
}
.apel-agir a:hover { background: rgba(255, 255, 255, .12); }
.apel-agir__title { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }
.apel-agir__text { font-size: 16.5px; line-height: 1.55; opacity: .82; }

/* ==========================================================================
   Pages
   ========================================================================== */

.apel-pagehead {
	background: var(--surface);
	padding-top: 56px;
	padding-bottom: 48px;
	margin-bottom: 48px;
}
.apel-pagehead--plain { background: none; padding: 48px 0 8px; margin-bottom: 16px; }
.apel-pagehead h1,
.apel-pagehead .wp-block-post-title {
	margin: 0;
	font-size: clamp(2.8rem, 5.5vw, 4.8rem);
	line-height: .95;
	letter-spacing: -0.045em;
}
.apel-pagehead__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.apel-pagehead__text { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.apel-pagehead__text p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--soft); }

.apel-content { padding-bottom: 88px; }
.apel-content h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 2.2em; }
.apel-content h3 { margin-top: 1.8em; }
.apel-content img { border-radius: 20px; }
.apel-content .wp-block-image figcaption { color: var(--soft); font-size: 14px; }

.apel-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.apel-chip-link {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 18px;
	border-radius: 999px;
	background: var(--card);
	color: var(--ink);
	border: 1px solid var(--line);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
}
.apel-chip-link:hover { border-color: var(--ink); }
.apel-chip-link.is-current { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ==========================================================================
   Agenda
   ========================================================================== */

.apel-agenda { display: flex; flex-direction: column; gap: 40px; padding-bottom: 40px; }
.apel-agenda__empty { font-size: 18px; color: var(--soft); }
.apel-agenda__month { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px 32px; align-items: start; }
.apel-agenda .apel-agenda__mname { margin: 0; padding-top: 22px; font-size: 30px; line-height: 1.1; letter-spacing: -0.03em; }
.apel-agenda__mname.is-active { color: var(--accent); }
.apel-agenda__list { min-width: 0; list-style: none; margin: 0 !important; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.apel-event {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 22px;
	padding: 20px 24px;
	box-shadow: var(--shadow-soft);
}
.apel-event.is-active { border-color: var(--accent); }
.apel-event__date {
	width: 72px;
	height: 72px;
	flex-shrink: 0;
	border-radius: 18px;
	background: var(--surface);
	color: var(--ink);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1;
}
.apel-event.is-active .apel-event__date { background: var(--accent); color: var(--on-accent); }
.apel-event__day { font-family: var(--display); font-weight: 800; font-size: 24px; }
.apel-event__date.is-month .apel-event__day { font-size: 18px; text-transform: capitalize; }
.apel-event__mon { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.apel-event__body { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.apel-event__title { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; }
.apel-event__info { font-size: 15.5px; color: var(--soft); }

/* ==========================================================================
   Boutique (WooCommerce, gabarits classiques)
   ========================================================================== */

.apel-shop .apel-pagehead { margin-bottom: 40px; }
.apel-shop__body { padding-bottom: 88px; }

.apel-closed {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 24px;
	padding: 24px 28px;
	box-shadow: var(--shadow-soft);
	margin-bottom: 28px;
}
.apel-closed > div { max-width: 640px; }
.apel-closed__title { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
.apel-closed__text { margin: 0; font-size: 16.5px; line-height: 1.55; color: var(--soft); }

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product {
	float: none;
	clear: none;
	width: auto;
	margin: 0;
	display: flex;
	flex-direction: column;
	border-radius: 24px;
	overflow: hidden;
	background: var(--card);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-soft);
	padding-bottom: 22px;
	position: relative;
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.woocommerce ul.products li.product a img {
	margin: 0 0 12px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	background: var(--surface);
	border-radius: 0;
}
.woocommerce ul.products li.product .apel-meta { padding: 6px 20px 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	padding: 0 20px;
	margin: 0;
	font-family: var(--display);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.2;
	letter-spacing: -0.015em;
}
.woocommerce ul.products li.product .price { padding: 6px 20px 0; margin: 0; color: var(--ink); font-weight: 700; font-size: 17px; }
.woocommerce ul.products li.product .apel-soon { margin: 10px 20px 0; align-self: flex-start; }
.woocommerce span.onsale {
	min-height: 0;
	min-width: 0;
	line-height: 1.2;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--accent-2);
	color: var(--on-accent-2);
	font-weight: 700;
	font-size: 12.5px;
	top: 14px;
	left: 14px;
	right: auto;
	margin: 0;
}

/* Fiche produit */
.apel-product { padding-bottom: 88px; }
.apel-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 28px; font-size: 14.5px; color: var(--soft); }
.apel-crumbs a { color: var(--soft); }
.woocommerce div.product { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.woocommerce div.product div.images,
.woocommerce-page div.product div.images {
	float: none;
	width: auto;
	flex: 1 1 460px;
	min-width: 0;
	margin: 0;
}
.woocommerce div.product div.images img { border-radius: 32px; background: var(--surface); }
.woocommerce div.product div.images .flex-control-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto; float: none; }
.woocommerce div.product div.images .flex-control-thumbs img { border-radius: 16px; }
.woocommerce div.product div.summary,
.woocommerce-page div.product div.summary {
	float: none;
	width: auto;
	flex: 1 1 420px;
	min-width: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.woocommerce div.product .summary > * { margin: 0; }
.woocommerce div.product .product_title {
	font-size: clamp(2.4rem, 4.4vw, 3.8rem);
	line-height: .98;
	letter-spacing: -0.04em;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 30px; }
.woocommerce div.product .woocommerce-product-details__short-description { font-size: 17.5px; line-height: 1.65; color: var(--soft); }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0; }
.woocommerce div.product form.cart .variations { margin: 0 0 6px; width: 100%; }
.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td { display: block; padding: 0 0 6px; text-align: left; }
.woocommerce div.product form.cart .variations label { font-weight: 700; font-size: 15px; }
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
.woocommerce div.product form.cart .single_add_to_cart_button { flex: 1 1 220px; min-height: 56px; font-size: 17px; }
.woocommerce .quantity .qty {
	width: 88px;
	min-height: 56px;
	border-radius: 999px;
	border: 1.5px solid var(--line-strong);
	text-align: center;
	font: inherit;
	font-weight: 700;
	background: var(--bg);
	color: var(--ink);
}
.woocommerce div.product .stock { color: var(--soft); font-weight: 600; }
.woocommerce div.product .stock.out-of-stock { color: var(--accent-2); }
.apel-infos { list-style: none; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 15.5px; }
.apel-soon-box { background: var(--surface); border-radius: 18px; padding: 18px 20px; }
.apel-soon-box p { margin: 10px 0 0; color: var(--soft); }
.woocommerce div.product .woocommerce-tabs { flex: 1 1 100%; max-width: 760px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: none; }
.woocommerce div.product .woocommerce-tabs .panel { margin: 0; }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { font-size: 28px; }

/* Formulaires WooCommerce */
.woocommerce form .form-row label { font-weight: 600; font-size: 14.5px; }
.woocommerce form .form-row .input-text,
.woocommerce form .form-row select,
.woocommerce-page form .form-row .input-text,
.woocommerce .select2-container .select2-selection--single,
.woocommerce div.product form.cart .variations select {
	box-sizing: border-box;
	min-height: 48px;
	padding: 10px 14px;
	border-radius: 14px;
	border: 1.5px solid var(--line-strong);
	background: var(--bg);
	color: var(--ink);
	font: inherit;
	font-size: 16px;
}
.woocommerce form .form-row textarea { min-height: 110px; }
.woocommerce form .form-row .description { color: var(--soft); font-size: 14px; }
.apel-classe-field { background: var(--surface); border-radius: 18px; padding: 16px 18px !important; margin-top: 16px !important; }

/* Panier et commande */
.woocommerce table.shop_table {
	border: 1px solid var(--line);
	border-radius: 22px;
	border-collapse: separate;
	overflow: hidden;
	background: var(--card);
}
.woocommerce table.shop_table th { font-weight: 700; }
.woocommerce table.shop_table th,
.woocommerce table.shop_table td { padding: 16px 18px; border-color: var(--line); }
.woocommerce table.shop_table img { width: 72px; border-radius: 14px; }
.woocommerce a.remove { color: var(--soft) !important; }
.woocommerce a.remove:hover { background: var(--surface); }
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review,
.woocommerce-checkout #order_review_heading + #order_review {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 26px;
	padding: 28px;
	box-shadow: var(--shadow);
	box-sizing: border-box;
}
.woocommerce .cart-collaterals .cart_totals h2,
.woocommerce-checkout h3 { font-size: 24px; letter-spacing: -0.02em; }
.woocommerce .cart-collaterals .cart_totals table.shop_table { border: 0; box-shadow: none; }
.woocommerce .wc-proceed-to-checkout a.checkout-button { width: 100%; min-height: 56px; font-size: 17px; }
.woocommerce #payment { background: var(--surface); border-radius: 20px; }
.woocommerce #payment #place_order { width: 100%; min-height: 56px; font-size: 17px; float: none; }
.woocommerce-checkout #customer_details { margin-bottom: 32px; }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
	border-radius: 16px;
	border-top: 0;
	border-left: 4px solid var(--accent);
	background: var(--surface);
	color: var(--ink);
}
.woocommerce-message::before,
.woocommerce-info::before { color: var(--accent); }
.woocommerce-error { border-left-color: var(--accent-2); }

/* ==========================================================================
   Pied de page + « Écrire à l'APEL »
   ========================================================================== */

.apel-footer {
	background: var(--surface);
	padding-top: 72px;
	padding-bottom: 32px;
}
.apel-contact { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; }
.apel-contact__intro { flex: 1 1 380px; min-width: 0; }
.apel-contact__intro > * { margin: 0; }
.apel-contact__intro > * + * { margin-top: 16px; }
.apel-contact__title { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; }
.apel-contact__lead { font-size: 17.5px; line-height: 1.6; color: var(--soft); max-width: 30em; }
.apel-contact__address { font-size: 15.5px; color: var(--soft); }
.apel-contact__address strong { color: var(--ink); }
.apel-contact__card {
	flex: 1 1 460px;
	min-width: 0;
	box-sizing: border-box;
	background: var(--card);
	border-radius: 28px;
	padding: 28px;
	box-shadow: var(--shadow);
	scroll-margin-top: 24px;
}
.apel-contact__form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.apel-field { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; font-weight: 600; }
.apel-field textarea,
.apel-field input {
	font: inherit;
	font-weight: 400;
	font-size: 16px;
	padding: 14px 16px;
	border-radius: 16px;
	border: 1.5px solid var(--line-strong);
	background: var(--bg);
	color: var(--ink);
}
.apel-field textarea { resize: vertical; min-height: 120px; }
.apel-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apel-contact__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.apel-contact__note { font-size: 13px; color: var(--soft); max-width: 22em; }
.apel-contact__error { margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border-left: 4px solid var(--accent-2); }
.apel-contact__done { min-height: 260px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; }
.apel-contact__check { width: 52px; height: 52px; border-radius: 999px; background: var(--accent-2); color: var(--on-accent-2); display: flex; align-items: center; justify-content: center; }
.apel-contact__done-title { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; }
.apel-contact__done-text { font-size: 16.5px; color: var(--soft); line-height: 1.55; }

.apel-footer__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 28px;
	border-top: 1px solid var(--line);
	padding-top: 36px;
	margin-top: 56px !important;
	font-size: 15px;
}
.apel-footer__cols nav { display: flex; flex-direction: column; gap: 8px; }
.apel-footer__cols nav a { color: var(--soft); text-decoration: none; }
.apel-footer__cols nav a:hover { color: var(--ink); text-decoration: underline; }
.apel-footer__h { margin: 0; font-weight: 700; color: var(--ink); }
.apel-footer__brand p { margin: 10px 0 0; color: var(--soft); line-height: 1.5; }
.apel-footer-logo { display: block; width: 190px; height: auto; }
.apel-footer__legal { font-size: 13.5px; color: var(--soft); margin-top: 32px !important; }

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 781px) {
	.apel-hero { padding: 40px 0 56px; gap: 36px; }
	.apel-hero__art { border-radius: 26px; }
	.apel-section { padding: 64px 0; }
	.apel-pagehead { padding-top: 40px; padding-bottom: 32px; }
	.apel-brand__name { display: none; }
	.apel-header__actions .apel-btn { display: none; }
	.apel-agenda__month { grid-template-columns: 1fr; }
	.apel-agenda .apel-agenda__mname { padding-top: 0; }
	.apel-contact__card { padding: 22px; }
	.woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 17px; padding: 0 14px; }
	.woocommerce ul.products li.product .apel-meta,
	.woocommerce ul.products li.product .price { padding-left: 14px; padding-right: 14px; }
	.woocommerce ul.products li.product .apel-soon { margin-left: 14px; margin-right: 14px; }
	.apel-year { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.apel-year__item { min-height: 120px; padding: 18px; }
	.apel-year__label { font-size: 19px; }
}

/* Messages et validation WooCommerce aux couleurs de l'habillage */
.wc-block-components-notice-banner {
	border: 1px solid var(--line) !important;
	border-left: 4px solid var(--accent) !important;
	background: var(--surface) !important;
	color: var(--ink) !important;
	border-radius: 16px !important;
}
.wc-block-components-notice-banner > svg { background: var(--accent) !important; fill: var(--on-accent) !important; }
.wc-block-components-notice-banner.is-error { border-left-color: var(--accent-2) !important; }
.wc-block-components-notice-banner.is-error > svg { background: var(--accent-2) !important; fill: var(--on-accent-2) !important; }
.wc-block-components-notice-banner a { color: var(--accent); }
.woocommerce form .form-row.woocommerce-validated .input-text,
.woocommerce form .form-row.woocommerce-validated select { border-color: var(--line-strong); }
.woocommerce form .form-row.woocommerce-invalid .input-text,
.woocommerce form .form-row.woocommerce-invalid label { border-color: var(--accent-2); color: inherit; }
.woocommerce form .form-row.woocommerce-invalid label { color: var(--accent-2); }
.woocommerce form .form-row .required { color: var(--accent-2); }

/* ==========================================================================
   Blocs de contenu des pages (L'APEL, bureau, FAQ, bénévoles, événements)
   ========================================================================== */

.apel-content > .apel-pagehead:first-child { margin-top: 0; }
.apel-content > * + * { margin-block-start: 1.25rem; }
.apel-content .apel-pagehead h1 { margin: 0; }
.apel-content .apel-pagehead__text > * { margin: 0; }
.apel-content .apel-pagehead__text > * + * { margin-top: 12px; }
.apel-content .apel-pagehead__text p:not(.apel-eyebrow) { font-size: 18px; line-height: 1.6; color: var(--soft); max-width: 40em; }

.apel-lead { font-size: 18px; line-height: 1.6; color: var(--soft); }
.apel-sectiontitle { margin-top: 72px !important; margin-bottom: 28px; }
.apel-sectiontitle > * { margin: 0; }
.apel-sectiontitle > * + * { margin-top: 10px; }
.apel-sectiontitle h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-top: 10px; }

.apel-tiles { gap: 20px !important; }
.apel-tile {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 24px;
	padding: 28px;
	box-shadow: var(--shadow-soft);
}
.apel-tile > * { margin: 0; }
.apel-tile > * + * { margin-top: 12px; }
.apel-tile h3 { font-size: 24px; line-height: 1.15; margin-top: 18px; }
.apel-tile p { color: var(--soft); line-height: 1.6; }
.apel-tile__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: var(--surface);
	color: var(--accent) !important;
	font-family: var(--display);
	font-weight: 800;
	font-size: 20px;
}
.apel-tiles .apel-tile:first-child .apel-tile__num { background: var(--accent); color: var(--on-accent) !important; }

.apel-box {
	background: var(--surface);
	border-radius: 28px;
	padding: clamp(28px, 5vw, 56px);
	margin-top: 72px !important;
	margin-bottom: 88px;
}
.apel-box > * { margin: 0; max-width: 40em; }
.apel-box > * + * { margin-top: 14px; }
.apel-box h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.apel-box p:not(.apel-eyebrow) { color: var(--soft); font-size: 17.5px; line-height: 1.6; }
.apel-box .wp-block-buttons { margin-top: 24px; }

.wp-block-button .wp-block-button__link { box-shadow: var(--shadow); }
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--ink);
	border: 0;
	box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { box-shadow: inset 0 0 0 1.5px var(--ink); background: transparent; color: var(--ink); }

.apel-president {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 28px;
	overflow: hidden;
	box-shadow: var(--shadow);
}
.apel-president .wp-block-media-text__media img { aspect-ratio: 4 / 5; object-fit: cover; height: 100%; }
.apel-president .wp-block-media-text__content { padding: clamp(24px, 4vw, 56px); }
.apel-president .wp-block-media-text__content > * { margin: 0; }
.apel-president .wp-block-media-text__content > * + * { margin-top: 12px; }
.apel-president h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }

.apel-members { gap: 20px !important; }
.apel-member { text-align: left; }
.apel-member > * { margin: 0; }
.apel-member__photo { margin: 0 0 12px !important; }
.apel-member__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 22px !important; background: var(--surface); }
.apel-member__name { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.2; letter-spacing: -0.01em; }
.apel-member__role { font-size: 14px; color: var(--soft); margin-top: 4px !important; }

.apel-faqs { display: flex; flex-direction: column; gap: 12px; }
.apel-faqs > * { margin: 0 !important; }
.apel-faq {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 0 24px;
	box-shadow: var(--shadow-soft);
}
.apel-faq summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 20px 0;
	font-family: var(--display);
	font-weight: 700;
	font-size: 19px;
	line-height: 1.3;
}
.apel-faq summary::-webkit-details-marker { display: none; }
.apel-faq summary::after {
	content: "+";
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: var(--surface);
	color: var(--accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 600;
}
.apel-faq[open] summary::after { content: "–"; background: var(--accent); color: var(--on-accent); }
.apel-faq > p { margin: 0 0 22px; color: var(--soft); line-height: 1.7; max-width: 46em; }

.apel-infocards { gap: 16px !important; margin-bottom: 40px; }
.apel-infocard { background: var(--surface); border-radius: 20px; padding: 20px 22px; }
.apel-infocard > * { margin: 0; }
.apel-infocard__value { margin-top: 6px !important; font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.25; }
.apel-note { background: var(--surface); border-left: 4px solid var(--accent-2); border-radius: 14px; padding: 16px 20px; }

/* Corrections pages de contenu */
.apel-content > .apel-pagehead.alignfull {
	width: 100vw;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: 0 !important;
	box-sizing: border-box;
	padding-left: 24px;
	padding-right: 24px;
}
.apel-content > .apel-pagehead.alignfull > .alignwide { max-width: 1280px; margin-left: auto !important; margin-right: auto !important; }
.apel-pagehead__text p.apel-eyebrow,
.apel-content .apel-pagehead__text p.apel-eyebrow { font-size: 13px; color: var(--accent); }
.apel-content .apel-box > *,
.apel-content .apel-sectiontitle > * { margin-top: 0; margin-bottom: 0; }
.apel-content .apel-box > * + *,
.apel-content .apel-sectiontitle > * + * { margin-top: 12px; }
.apel-content .apel-box .wp-block-buttons { margin-top: 24px; }

/* Agenda : passé, vacances */
.apel-event.is-past { opacity: .55; box-shadow: none; }
.apel-event.is-holiday { background: transparent; box-shadow: none; border-style: dashed; border-color: var(--line-strong); }
.apel-event.is-holiday .apel-event__date { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
