/* ============================================================================
   Danz Éditorial — feuille principale
   ----------------------------------------------------------------------------
   Règle unique et non négociable : aucune couleur n'est écrite en dur ici.
   Tout vient des jetons produits par inc/tokens.php, où chaque encre est
   définie AVEC son fond. Basculer d'ambiance ne peut donc pas produire de
   texte foncé sur fond foncé.

   Ordre : base · grille · boutons · rail · en-tête · menu · panneau plein
   écran · bandeau · contenu · listes · pied de page · barre mobile · compte
   & panier · divers.
   ========================================================================== */

/* ---------------------------------------------------------------- 1. Base */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--dze-paper);
	color: var(--dze-ink);
	font-family: var(--dze-font-text);
	font-size: var(--dze-base);
	line-height: var(--dze-lh);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; }
img, video { height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
	font-family: var(--dze-font-display);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -.01em;
	margin: 0 0 .5em;
	color: var(--dze-ink);
	text-wrap: balance;
}
h1 { font-size: clamp(38px, 9vw, 72px); }
h2 { font-size: clamp(28px, 6.4vw, 52px); }
h3 { font-size: clamp(21px, 4vw, 30px); line-height: 1.18; }
h4 { font-size: clamp(18px, 3vw, 22px); line-height: 1.25; }
h5, h6 {
	font-family: var(--dze-font-text);
	font-size: 12px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--dze-ink-2);
	margin: 0 0 .8em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

hr {
	border: 0;
	height: 1px;
	background: var(--dze-rule);
	margin: 2.5em 0;
}

::selection {
	background: var(--dze-ink);
	color: var(--dze-paper);
}

:focus-visible {
	outline: 2px solid var(--dze-accent-ink);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip-path: inset(50%);
	white-space: nowrap;
}

.dze-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--dze-ink);
	color: var(--dze-paper);
	padding: 12px 18px;
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: none;
}
.dze-skip:focus { left: 0; }

/* -------------------------------------------------------------- 2. Grille */

.dze-wrap {
	width: 100%;
	max-width: var(--dze-max);
	margin-inline: auto;
	padding-inline: var(--dze-pad);
}

.dze-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.dze-main { flex: 1 0 auto; }

.dze-eyebrow {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--dze-accent-ink);
	margin: 0 0 14px;
}

.dze-lede {
	font-size: clamp(16px, 3.4vw, 19px);
	line-height: 1.7;
	color: var(--dze-ink-2);
	max-width: 58ch;
}

/* ------------------------------------------------------------ 3. Boutons */

.dze-btn,
.danz-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 26px;
	font-family: var(--dze-font-text);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .13em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 0;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.dze-btn--solid,
.danz-btn--primary {
	background: var(--dze-btn-bg);
	color: var(--dze-btn-ink);
	border-color: var(--dze-btn-bg);
}
.dze-btn--solid:hover,
.danz-btn--primary:hover {
	background: transparent;
	color: var(--dze-ink);
	border-color: var(--dze-rule-strong);
}

.dze-btn--line,
.danz-btn--secondary {
	background: transparent;
	color: var(--dze-ink);
	border-color: var(--dze-rule-strong);
}
.dze-btn--line:hover,
.danz-btn--secondary:hover {
	background: var(--dze-paper-3);
	color: var(--dze-ink-on-dark);
	border-color: var(--dze-paper-3);
}

.dze-btn--sm { padding: 11px 18px; font-size: 11.5px; }

/* Sur une surface inversée, les boutons échangent leurs encres. */
.dze-invert .dze-btn--solid {
	background: var(--dze-paper);
	color: var(--dze-ink);
	border-color: var(--dze-paper);
}
.dze-invert .dze-btn--solid:hover {
	background: transparent;
	color: var(--dze-ink-on-dark);
	border-color: var(--dze-ink-on-dark);
}
.dze-invert .dze-btn--line {
	color: var(--dze-ink-on-dark);
	border-color: var(--dze-ink-on-dark);
}
.dze-invert .dze-btn--line:hover {
	background: var(--dze-paper);
	color: var(--dze-ink);
	border-color: var(--dze-paper);
}

/* ---------------------------------------------------------------- 4. Rail */

.dze-rail {
	background: var(--dze-paper-2);
	color: var(--dze-ink-2);
	border-bottom: 1px solid var(--dze-rule);
	font-size: 11.5px;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.dze-rail__in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 40px;
}
.dze-rail a { text-decoration: none; }
.dze-rail a:hover { color: var(--dze-ink); }
.dze-rail__right { display: none; gap: 22px; }

/* ------------------------------------------------------------ 5. En-tête */

/* Opaque du premier au dernier pixel : jamais de transparence sur le hero. */
.dze-head {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--dze-paper);
	border-bottom: 1px solid var(--dze-rule);
}

.dze-head__in {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 64px;
}

.dze-head__brand { margin-right: auto; }
.dze-head__nav { display: none; }

.dze-head__acts {
	display: flex;
	align-items: center;
	gap: 4px;
}

.dze-head__cta { display: none; }

.dze-brand {
	display: flex;
	flex-direction: column;
	line-height: 1;
	text-decoration: none;
	color: var(--dze-ink);
}
.dze-brand__name {
	font-family: var(--dze-font-display);
	font-size: clamp(20px, 5vw, 24px);
	letter-spacing: -.01em;
}
.dze-brand__sub {
	font-size: 9px;
	letter-spacing: .34em;
	text-transform: uppercase;
	color: var(--dze-ink-2);
	margin-top: 5px;
}
.custom-logo-link { display: block; }
.custom-logo-link img {
	max-height: var(--dze-logo-h);
	width: auto;
}

.dze-burger {
	width: 42px; height: 42px;
	display: grid;
	place-content: center;
	gap: 6px;
	background: none;
	border: 0;
	color: var(--dze-ink);
	cursor: pointer;
	padding: 0;
}
.dze-burger span {
	display: block;
	width: 22px; height: 1.5px;
	background: currentColor;
	transition: transform .2s ease;
}

/* ----------------------------------------------------------------- 6. Menu */

.dze-nav__list,
.dze-head .danz-menu__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 30px;
}

/* Sur une seule rangée, la liste ne se replie pas : c'est ce débordement qui
   sert de mesure au JS pour décider de passer l'en-tête sur deux rangées.
   (Le shortcode du plugin, lui, autorise le repli — on le neutralise ici.) */
.dze-head .dze-nav__list,
.dze-head .danz-menu__list { flex-wrap: nowrap; }

.dze-nav__list a,
.dze-head .danz-menu__link {
	display: inline-block;
	font-family: var(--dze-font-text);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .17em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--dze-ink);
	padding: 6px 0;
	border-bottom: 1px solid transparent;
	border-radius: 0;
	background: none;
	transition: border-color .18s ease, color .18s ease;
}

/* Le shortcode [danz_menu] pose ses propres règles en fin de page : on les
   reprend depuis le contexte de l'en-tête, plus spécifique, plutôt que de
   surenchérir avec !important. */
.dze-head .danz-menu__link:hover,
.dze-overlay .danz-menu__link:hover {
	background: none;
	color: var(--dze-ink);
	border-bottom-color: var(--dze-accent);
}
.dze-head .danz-menu__item.is-active .danz-menu__link,
.dze-overlay .danz-menu__item.is-active .danz-menu__link {
	background: none;
	color: var(--dze-ink);
	border-bottom-color: var(--dze-accent);
}
.dze-head .danz-menu__sep,
.dze-overlay .danz-menu__sep { display: none; }
.dze-head .danz-menu { margin: 0; }

.dze-nav__list a:hover,
.dze-nav__item.is-active > a,
.dze-nav__list .current-menu-item > a {
	border-bottom-color: var(--dze-accent);
}

.dze-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* -------------------------------------------- 7. Panneau de menu plein écran */

.dze-overlay {
	position: fixed;
	inset: 0;
	z-index: 90;
	background: var(--dze-paper);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overscroll-behavior: contain;
}
.dze-overlay[hidden] { display: none; }

.dze-overlay__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 64px;
	border-bottom: 1px solid var(--dze-rule);
}
.dze-overlay__title {
	font-size: 11px;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--dze-ink-2);
}
.dze-overlay__close {
	width: 42px; height: 42px;
	display: grid; place-items: center;
	background: none;
	border: 0;
	color: var(--dze-ink);
	cursor: pointer;
	padding: 0;
}
.dze-overlay__close svg { width: 22px; height: 22px; }

.dze-overlay__body {
	padding-block: 30px 60px;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.dze-overlay .dze-nav__list,
.dze-overlay .danz-menu__list {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}
.dze-overlay .dze-nav__list li,
.dze-overlay .danz-menu__item {
	border-bottom: 1px solid var(--dze-rule);
}
.dze-overlay .dze-nav__list a,
.dze-overlay .danz-menu__link {
	display: block;
	font-family: var(--dze-font-display);
	font-size: clamp(26px, 8vw, 40px);
	font-weight: 400;
	letter-spacing: -.01em;
	text-transform: none;
	padding: 16px 0;
	border-bottom: 0;
}
.dze-overlay .danz-menu__item.is-active .danz-menu__link,
.dze-overlay .dze-nav__item.is-active > a {
	font-style: italic;
	color: var(--dze-accent-ink);
	border-bottom: 0;
}

.dze-overlay__cta { align-self: flex-start; }

.dze-overlay__contact {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 13px;
	letter-spacing: .1em;
	color: var(--dze-ink-2);
}
.dze-overlay__contact a { text-decoration: none; }

body.dze-overlay-open { overflow: hidden; }

/* ------------------------------------------------------------- 8. Bandeau */

.dze-banner {
	padding-block: clamp(40px, 8vw, 80px) clamp(28px, 4vw, 44px);
	border-bottom: 1px solid var(--dze-rule);
}
.dze-banner__title { margin: 0; }

/* ------------------------------------------------------------- 9. Contenu */

.dze-page__figure {
	margin: 0;
	max-height: 70vh;
	overflow: hidden;
}
.dze-page__figure img {
	width: 100%;
	object-fit: cover;
}

.dze-page__body { padding-block: clamp(40px, 7vw, 84px); }

/* Les pages du builder posent leurs propres sections pleine largeur :
   le thème ne leur ajoute ni marge ni conteneur. */
.dze-page--builder .dze-page__builder { padding: 0; }

/* Dans une page composée avec le Builder, les couleurs appartiennent à la
   page : ses blocs les portent en style direct, et les titres en héritent.
   Le thème ne doit donc surtout pas imposer la sienne ici — c'est ce qui
   ferait basculer un titre pensé en blanc vers l'encre du thème. */
.dze-page__builder :is(h1, h2, h3, h4, h5, h6),
.dze-page__builder p,
.dze-page__builder li,
.dze-page__builder span { color: inherit; }

.dze-prose {
	max-width: 74ch;
	font-size: clamp(16px, 2.4vw, 17.5px);
	line-height: 1.75;
}
.dze-prose > * + * { margin-top: 1.1em; }
.dze-prose h2 { margin-top: 1.6em; }
.dze-prose h3 { margin-top: 1.4em; }
/* Uniquement les liens de texte courant : les composants du plugin (planning,
   espace élève) apportent leurs propres boutons, que le thème ne repeint pas
   au passage — c'est ainsi qu'on se retrouve avec un lien or sur une puce
   blanche. */
.dze-prose :is(p, li, blockquote, td, th, figcaption) a {
	color: var(--dze-accent-ink);
	text-underline-offset: 3px;
}
.dze-prose img { margin-block: 1.6em; }
.dze-prose blockquote {
	margin: 1.8em 0;
	padding-left: 22px;
	border-left: 1px solid var(--dze-accent);
	font-family: var(--dze-font-display);
	font-size: 1.35em;
	line-height: 1.35;
}
.dze-prose ul, .dze-prose ol { padding-left: 20px; }
.dze-prose li { margin-bottom: .5em; }
.dze-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: .95em;
}
.dze-prose th, .dze-prose td {
	text-align: left;
	padding: 12px 10px;
	border-bottom: 1px solid var(--dze-rule);
}

/* ------------------------------------------------------------- 10. Listes */

.dze-list { padding-block: clamp(36px, 6vw, 72px); }

.dze-cards {
	display: grid;
	gap: 30px;
	grid-template-columns: 1fr;
}

.dze-card__link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}
.dze-card__ph {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--dze-paper-2);
	margin-bottom: 16px;
}
.dze-card__ph img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}
.dze-card:hover .dze-card__ph img { transform: scale(1.04); }
.dze-card__k {
	font-size: 11px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--dze-accent-ink);
	margin-bottom: 8px;
}
.dze-card__t {
	font-size: clamp(20px, 3vw, 26px);
	margin: 0 0 8px;
}
.dze-card__x {
	font-size: 15px;
	color: var(--dze-ink-2);
	line-height: 1.6;
}

.dze-empty { padding-block: 60px; }

.pagination, .navigation.pagination {
	margin-top: 50px;
	padding-top: 24px;
	border-top: 1px solid var(--dze-rule);
	font-size: 12px;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.pagination .page-numbers {
	text-decoration: none;
	padding: 6px 10px;
	color: var(--dze-ink-2);
}
.pagination .page-numbers.current { color: var(--dze-ink); }

.dze-404 { padding-block: clamp(60px, 12vw, 140px); }
.dze-404__t { font-size: clamp(32px, 8vw, 64px); }

.dze-search {
	display: flex;
	gap: 10px;
	margin-top: 26px;
	max-width: 480px;
}
.dze-search input[type="search"] {
	flex: 1;
	padding: 13px 16px;
	font: inherit;
	font-size: 15px;
	color: var(--dze-ink);
	background: var(--dze-paper);
	border: 1px solid var(--dze-rule-solid);
	border-radius: 0;
}

/* -------------------------------------------------------- 11. Pied de page */

.dze-ft {
	background: var(--dze-paper);
	border-top: 1px solid var(--dze-rule);
	padding-block: clamp(44px, 7vw, 72px) 28px;
	margin-top: auto;
}

.dze-ft__cols {
	display: grid;
	gap: 32px;
	grid-template-columns: 1fr;
}
.dze-ft__h {
	font-size: 11px;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--dze-ink-2);
	margin: 0 0 14px;
}
.dze-ft .widget { margin-bottom: 24px; }
.dze-ft ul {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 15px;
}
.dze-ft a { text-decoration: none; }
.dze-ft a:hover { color: var(--dze-accent-ink); }

.dze-ft__nav-list {
	flex-direction: row !important;
	flex-wrap: wrap;
	gap: 8px 22px !important;
	font-size: 13px;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.dze-ft__mark {
	font-family: var(--dze-font-display);
	font-size: clamp(44px, 13vw, 128px);
	line-height: .92;
	letter-spacing: -.02em;
	margin: clamp(34px, 6vw, 60px) 0 20px;
	color: var(--dze-ink);
}

.dze-ft__bottom {
	padding-top: 22px;
	border-top: 1px solid var(--dze-rule);
	display: flex;
	flex-direction: column;
	gap: 16px;
	font-size: 12.5px;
	color: var(--dze-ink-2);
	line-height: 1.6;
}
.dze-ft__identity {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.dze-ft__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
}
.dze-ft__sep { opacity: .5; }

/* --------------------------------------------------------- 12. Barre mobile */

.dze-mbar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 70;
	display: flex;
	background: var(--dze-paper);
	border-top: 1px solid var(--dze-rule);
	padding-bottom: env(safe-area-inset-bottom);
}
.dze-mbar a {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 10px 0 9px;
	font-size: 9.5px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--dze-ink-2);
	text-decoration: none;
}
.dze-mbar a.is-on { color: var(--dze-ink); }
.dze-mbar svg { width: 20px; height: 20px; }

body { padding-bottom: 62px; }

/* ------------------------------------------------------ 13. Compte & panier */

.danz-icon-btn {
	position: relative;
	width: 42px; height: 42px;
	display: grid;
	place-items: center;
	background: none;
	border: 1px solid transparent;
	color: var(--dze-ink);
	cursor: pointer;
	text-decoration: none;
	padding: 0;
}
.danz-icon-btn:hover { border-color: var(--dze-rule-solid); }
.danz-icon-btn svg { width: 19px; height: 19px; }

.danz-icon-btn__dot {
	position: absolute;
	top: 9px; right: 9px;
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--dze-accent);
}

.danz-cart-count {
	position: absolute;
	top: 4px; right: 2px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	display: grid;
	place-items: center;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	border-radius: 999px;
	background: var(--danz-cart-badge-bg, var(--dze-accent));
	color: var(--danz-cart-badge-text, #fff);
}
.danz-cart-count.is-empty { display: none; }
.danz-cart-icon.is-bumping { animation: dze-bump .4s ease; }
@keyframes dze-bump {
	40% { transform: scale(1.16); }
	100% { transform: scale(1); }
}

.danz-cart-drawer {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(var(--danz-cart-drawer-w, 420px), 100%);
	z-index: 95;
	background: var(--dze-paper);
	border-left: 1px solid var(--dze-rule);
	transform: translateX(100%);
	transition: transform .28s ease;
	display: flex;
	flex-direction: column;
	visibility: hidden;
}
.danz-cart-drawer.is-open {
	transform: none;
	visibility: visible;
}
.danz-cart-drawer__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}
.danz-cart-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 20px var(--dze-pad);
	border-bottom: 1px solid var(--dze-rule);
}
.danz-cart-drawer__title {
	font-family: var(--dze-font-display);
	font-size: 22px;
	margin: 0;
}
.danz-cart-drawer__close {
	background: none;
	border: 0;
	color: var(--dze-ink);
	font-size: 20px;
	cursor: pointer;
	line-height: 1;
	padding: 6px;
}
.danz-cart-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 20px var(--dze-pad);
}
.danz-cart-drawer__overlay {
	position: fixed;
	inset: 0;
	z-index: 94;
	background: rgba(0, 0, 0, .45);
	opacity: 0;
	visibility: hidden;
	transition: opacity .28s ease;
}
.danz-cart-drawer__overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

.danz-mini-cart { font-size: 14.5px; }
.danz-mini-cart.is-loading { opacity: .5; }
.danz-mini-cart__list {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	flex-direction: column;
}
.danz-mini-cart__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--dze-rule);
}
.danz-mini-cart__name {
	font-family: var(--dze-font-display);
	font-size: 17px;
	color: var(--dze-ink);
	text-decoration: none;
}
.danz-mini-cart__info { flex: 1; }
.danz-mini-cart__price,
.danz-mini-cart__qty-num { color: var(--dze-ink-2); }
.danz-mini-cart__qty {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
}
.danz-mini-cart__qty-btn {
	width: 26px; height: 26px;
	display: grid; place-items: center;
	background: none;
	border: 1px solid var(--dze-rule-solid);
	color: var(--dze-ink);
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
	padding: 0;
}
.danz-mini-cart__remove {
	background: none;
	border: 0;
	color: var(--dze-ink-2);
	cursor: pointer;
	font-size: 16px;
	padding: 4px;
}
.danz-mini-cart__remove:hover { color: var(--dze-ink); }
.danz-mini-cart__footer {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--dze-rule-strong);
}
.danz-mini-cart__subtotal {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-family: var(--dze-font-display);
	font-size: 20px;
	margin-bottom: 16px;
}
.danz-mini-cart__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.danz-mini-cart__empty {
	text-align: center;
	color: var(--dze-ink-2);
	padding: 40px 0;
}
.danz-mini-cart__empty-icon {
	display: block;
	font-size: 30px;
	margin-bottom: 12px;
	opacity: .5;
}

/* --------------------------------------------------------------- 14. Divers */

/* Le bandeau cookies (inc/cookie-consent.php) consomme --danz-color-* :
   les jetons de l'ambiance lui sont déjà servis, rien à ajouter ici. */

.dze-meta {
	font-size: 11px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--dze-ink-2);
}

.dze-comments {
	padding-block: 50px;
	border-top: 1px solid var(--dze-rule);
}
.dze-comments__list {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}

/* ====================================================== ≥ 640px : tablette */
@media (min-width: 640px) {
	.dze-rail__right { display: flex; }
	.dze-cards { grid-template-columns: repeat(2, 1fr); }
	.dze-ft__cols { grid-template-columns: repeat(2, 1fr); }
	.dze-ft__bottom {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-end;
		gap: 30px;
	}
	.dze-ft__legal { justify-content: flex-end; }
}

/* ================================================== ≥ 1000px : grand écran */
@media (min-width: 1000px) {
	body { padding-bottom: 0; }
	.dze-mbar { display: none; }
	.dze-burger { display: none; }

	.dze-head__in { min-height: 82px; gap: 34px; }
	.dze-head__brand { margin-right: 0; }
	.dze-head__nav {
		display: block;
		margin-right: auto;
		/* Indispensables pour que le JS puisse constater que le menu ne tient
		   pas : sans eux, la barre s'élargit au-delà de la page et c'est le
		   document entier qui défile de côté. */
		min-width: 0;
		overflow: hidden;
	}
	.dze-head__cta { display: inline-flex; }

	.dze-cards { grid-template-columns: repeat(3, 1fr); }
	.dze-ft__cols { grid-template-columns: repeat(4, 1fr); }

	.dze-overlay__body { padding-block: 50px 80px; }
	.dze-overlay .dze-nav__list,
	.dze-overlay .danz-menu__list { max-width: 720px; }
}

/* =========================================== 15. Compensations mesurées ==== */

/* Le widget « hero carrousel » du page builder écrit `color:#fff` en style
   direct sur ses boutons. Sur un accent clair (l'or des écoles), le libellé
   tombe à 2,4:1. Un style direct ne se corrige que par une règle marquée :
   celle-ci est limitée à ce widget, et l'encre est calculée d'après le fond. */
.dze .danz-heroslider .danz-btn--primary,
.dze .danz-hs .danz-btn--primary {
	color: var(--dze-ink-on-accent) !important;
}

/* Le menu ne tient pas toujours sur une ligne (le registre de pages peut être
   fourni). Sur grand écran il reste TOUJOURS déplié — jamais de burger : quand
   il ne tient plus à côté du logo, le JS pose `dze-head--rows` et l'en-tête
   passe sur deux rangées, le menu occupant la seconde sur toute la largeur.
   Au-delà, la liste va simplement à la ligne : tous les liens restent visibles. */
.dze-nav__list a,
.dze-head .danz-menu__link { white-space: nowrap; }

@media (min-width: 1000px) {
	/* Le passage à la ligne n'est autorisé QUE dans le mode deux rangées :
	   sinon logo, menu et actions se répartissent chacun sur sa propre ligne
	   dès que la somme dépasse d'un pixel. */
	.dze-head--rows .dze-head__in { flex-wrap: wrap; }

	.dze-head--rows .dze-head__brand { margin-right: auto; }

	/* Rangée 1 — logo et actions, resserrée : la hauteur du menu vient en plus,
	   inutile de garder la hauteur d'une barre à une seule rangée. */
	.dze-head--rows .dze-head__in {
		min-height: 0;
		padding-top: 14px;
		padding-bottom: 0;
		row-gap: 0;
	}
	.dze-head--rows .dze-head__brand,
	.dze-head--rows .dze-head__acts { min-height: 46px; }

	/* Rangée 2 — le menu, sur toute la largeur, séparé par un filet. */
	.dze-head--rows .dze-head__nav {
		order: 3;
		flex: 0 0 100%;
		min-width: 0;
		overflow: visible;
		margin: 12px 0 0;
		border-top: 1px solid var(--dze-rule);
		padding-block: 11px 13px;
	}

	/* Les entrées occupent la ligne d'un bord à l'autre : premier item aligné
	   sur le logo, dernier aligné sur les icônes. C'est la répartition qui
	   fait tenir la rangée, pas un espacement fixe deviné. */
	.dze-head--rows .dze-nav__list,
	.dze-head--rows .danz-menu__list {
		flex-wrap: wrap;
		justify-content: space-between;
		width: 100%;
		gap: 6px clamp(16px, 2vw, 34px);
	}

	/* Sauf quand la liste passe elle-même à la ligne : répartir une dernière
	   ligne à moitié pleine donnerait des trous. On revient à un pas régulier. */
	.dze-head--wrapped .dze-nav__list,
	.dze-head--wrapped .danz-menu__list {
		justify-content: flex-start;
		gap: 10px 30px;
	}
}

/* Page composée d'un composant Danz : pleine largeur du conteneur, sans
   colonne de lecture — le composant gère sa propre grille. */
.dze-page__component { max-width: none; }
.dze-page__component > * + * { margin-top: 1.2em; }
