/*
 * CINDYNIQ : compléments à theme.json (ce que theme.json ne sait pas exprimer).
 * Référence : maquette/Styles-epure.dc.html, Header, Footer, Zone.
 */

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; }
a { text-underline-offset: 3px; transition: color var(--wp--custom--transition); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--nuit);
	outline-offset: 3px;
}
img { max-width: 100%; height: auto; }
.has-chiffre-font-size { font-family: var(--wp--preset--font-family--sora); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.has-titre-accueil-font-size { line-height: 1.16; letter-spacing: -0.015em; }

/* Les blocs de premier niveau ne se collent pas */
.wp-site-blocks > * + * { margin-block-start: 0; }

/* ---------- Boutons ---------- */
.wp-element-button,
.wp-block-button__link,
.cq-bouton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 0 22px;
	border-radius: var(--wp--custom--rayon--pilule);
	box-sizing: border-box;
	text-decoration: none;
	transition: background-color var(--wp--custom--transition), color var(--wp--custom--transition), box-shadow var(--wp--custom--transition);
}
.cq-bouton {
	background: var(--wp--preset--color--cerise);
	color: var(--wp--preset--color--blanc);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	box-shadow: var(--wp--preset--shadow--bouton);
}
.cq-bouton:hover { background: var(--wp--preset--color--cerise-survol); color: var(--wp--preset--color--blanc); box-shadow: var(--wp--custom--ombre--bouton-survol); }
.cq-bouton--plein { display: flex; width: 100%; }

.is-style-secondaire .wp-block-button__link,
.cq-bouton--secondaire {
	background: var(--wp--preset--color--brume);
	color: var(--wp--preset--color--nuit);
	box-shadow: none;
}
.is-style-secondaire .wp-block-button__link:hover,
.cq-bouton--secondaire:hover {
	background: var(--wp--preset--color--nuit);
	color: var(--wp--preset--color--blanc);
	box-shadow: none;
}
.is-style-blanc .wp-block-button__link { background: var(--wp--preset--color--blanc); color: var(--wp--preset--color--nuit); box-shadow: none; }
.is-style-blanc .wp-block-button__link:hover { background: var(--wp--preset--color--nuit); color: var(--wp--preset--color--blanc); box-shadow: none; }

/* Lien d'action : texte Nuit 600 + flèche cerise */
.is-style-lien-action a { font-weight: 600; text-decoration: none; color: var(--wp--preset--color--nuit); }
.is-style-lien-action a::after { content: " →"; color: var(--wp--preset--color--cerise); }
.is-style-lien-action a:hover { color: var(--wp--preset--color--cerise); }

/* ---------- Étiquettes ---------- */
p.is-style-etiquette-rose,
p.is-style-etiquette-brume {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	width: fit-content;
	min-height: 30px;
	margin: 0;
	padding: 0 13px;
	border-radius: var(--wp--custom--rayon--pilule);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
}
p.is-style-etiquette-rose { background: var(--wp--preset--color--rose-pale); color: var(--wp--preset--color--cerise); }
p.is-style-etiquette-brume { background: var(--wp--preset--color--brume); color: var(--wp--preset--color--nuit); }

/* ---------- Cartes ---------- */
.is-style-carte,
.is-style-carte-blanche,
.is-style-mise-en-avant {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	border-radius: var(--wp--custom--rayon--carte);
	box-sizing: border-box;
}
.is-style-carte { background: var(--wp--preset--color--blanc); border: 1px solid var(--wp--preset--color--bordure); }
.is-style-carte-blanche { background: var(--wp--preset--color--blanc); }
.is-style-mise-en-avant { background: var(--wp--preset--color--rose-pale); }
:is(.is-style-carte, .is-style-carte-blanche, .is-style-mise-en-avant) > * { margin: 0; }
:is(.is-style-carte, .is-style-carte-blanche) :is(h3, h4) { font-size: var(--wp--preset--font-size--titre-carte); }
a.is-style-carte, .is-style-carte:has(> a:only-child) { transition: box-shadow .25s ease, transform .25s ease; }
a.is-style-carte:hover { box-shadow: var(--wp--preset--shadow--carte); transform: translateY(-3px); }

/* ---------- Grilles (3 ou 4 colonnes, 2 sous 1000 px, 1 sous 760 px) ---------- */
.cq-grille-3, .cq-grille-4 { display: grid; gap: 16px; }
.cq-grille-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cq-grille-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cq-grille-3 > *, .cq-grille-4 > * { margin: 0 !important; }
@media (max-width: 1000px) { .cq-grille-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .cq-grille-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .cq-grille-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Logo ---------- */
.cq-logo { display: block; width: 280px; height: 48px; transition: width .25s ease, height .25s ease, font-size .25s ease; }
img.cq-logo { object-fit: contain; object-position: left center; }
.cq-logo--provisoire {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px dashed #767676;
	border-radius: 4px;
	box-sizing: border-box;
	color: #555555;
	font-size: 14px;
	line-height: 1.2;
	text-align: center;
}
.cq-logo--petit { width: 200px; height: 34px; font-size: 12px; }
.cq-logo-lien { display: inline-block; text-decoration: none; }

/* ---------- En-tête ---------- */
.cq-site-en-tete {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
}
/* Sous 600 px, la barre d'administration défile avec la page : l'en-tête colle tout en haut. */
@media (max-width: 600px) {
	.cq-site-en-tete { top: 0; }
	.cq-menu-mobile { max-height: calc(100vh - 66px); }
}
.cq-en-tete {
	background: var(--wp--preset--color--blanc);
	border-bottom: 1px solid var(--wp--preset--color--bordure);
	color: var(--wp--preset--color--ardoise);
}
.cq-en-tete a { text-decoration: none; }
.cq-en-tete__haut {
	max-width: 1200px;
	margin: 0 auto;
	padding: 18px 24px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	transition: padding .25s ease;
}
.cq-en-tete__accueil { display: block; }
.cq-en-tete__actions { display: flex; align-items: center; gap: 20px; }
.cq-en-tete__tel {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
	font-weight: 600;
	color: var(--wp--preset--color--nuit);
}
.cq-en-tete__tel:hover { color: var(--wp--preset--color--cerise); }
.cq-en-tete__contact { min-height: 48px; font-size: 17px; white-space: nowrap; }
.cq-en-tete__mobile { display: none; align-items: center; gap: 6px; }
.cq-rond {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--wp--preset--color--bordure);
	border-radius: var(--wp--custom--rayon--pilule);
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--nuit);
	box-sizing: border-box;
	cursor: pointer;
}
.cq-en-tete__devis {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 14px;
	border-radius: var(--wp--custom--rayon--pilule);
	background: var(--wp--preset--color--cerise);
	color: var(--wp--preset--color--blanc) !important;
	font-size: 16px;
	font-weight: 600;
	box-sizing: border-box;
}
.cq-en-tete__devis:hover { background: var(--wp--preset--color--cerise-survol); }
.cq-burger__fermer { display: none; }
.cq-en-tete__burger[aria-expanded="true"] { background: var(--wp--preset--color--nuit); color: var(--wp--preset--color--blanc); border-color: var(--wp--preset--color--nuit); }
.cq-en-tete__burger[aria-expanded="true"] .cq-burger__ouvrir { display: none; }
.cq-en-tete__burger[aria-expanded="true"] .cq-burger__fermer { display: block; }

/* Menu principal (ordinateur) */
.cq-en-tete__nav { border-top: 1px solid var(--wp--preset--color--bordure); }
.cq-nav {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 30px;
}
.cq-nav__item { position: relative; display: flex; margin: 0; }
.cq-nav__lien {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 0;
	border: 0;
	border-bottom: 3px solid transparent;
	background: none;
	color: var(--wp--preset--color--nuit);
	font-family: inherit;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	box-sizing: border-box;
	cursor: pointer;
	transition: min-height .25s ease, color var(--wp--custom--transition);
}
.cq-nav__lien:hover { color: var(--wp--preset--color--cerise); }
.cq-nav__lien[aria-current="page"],
.cq-nav__lien.is-courant { border-bottom-color: var(--wp--preset--color--cerise); }
.cq-nav__chevron { margin-left: 4px; transition: transform .2s ease; }
.cq-nav__lien[aria-expanded="true"] .cq-nav__chevron { transform: rotate(180deg); }

.cq-sous-menu {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: -20px;
	z-index: 20;
	width: 340px;
	padding: 10px;
	box-sizing: border-box;
	background: var(--wp--preset--color--blanc);
	border: 1px solid var(--wp--preset--color--bordure);
	border-radius: var(--wp--custom--rayon--carte);
	box-shadow: var(--wp--custom--ombre--menu);
}
/* Pont invisible pour ne pas perdre le survol entre le lien et le panneau */
.cq-sous-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.cq-nav__item--parent.is-ouvert .cq-sous-menu,
.cq-en-tete:not(.is-js) .cq-nav__item--parent:is(:hover, :focus-within) .cq-sous-menu { display: block; }
.cq-sous-menu ul { list-style: none; margin: 0; padding: 0; }
.cq-sous-menu li { margin: 0; }
.cq-sous-menu a {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 14px;
	border-radius: 12px;
}
/* Survol des liens de sous-menu : comme le menu principal, texte rouge et trait rouge qui se dessine (pas de fond). */
.cq-sous-menu__titre {
	align-self: flex-start;
	font-size: 16px; font-weight: 600; color: var(--wp--preset--color--nuit); line-height: 1.35;
	padding-bottom: 3px;
	background: linear-gradient(var(--wp--preset--color--cerise), var(--wp--preset--color--cerise)) no-repeat left bottom / 0 2px;
	transition: color var(--wp--custom--transition), background-size .3s cubic-bezier(.2, .7, .2, 1);
}
.cq-sous-menu a:hover .cq-sous-menu__titre, .cq-sous-menu a:focus-visible .cq-sous-menu__titre { color: var(--wp--preset--color--cerise); background-size: 100% 2px; }
.cq-sous-menu a[aria-current="page"] .cq-sous-menu__titre { color: var(--wp--preset--color--cerise); background-size: 100% 2px; }
.cq-sous-menu__desc { font-size: 14px; color: var(--wp--preset--color--texte-secondaire); line-height: 1.4; }

/* En-tête compact au défilement */
.cq-en-tete.is-compact .cq-en-tete__haut { padding-top: 8px; padding-bottom: 8px; }
.cq-en-tete.is-compact .cq-logo { width: 210px; height: 36px; font-size: 12px; }
.cq-en-tete.is-compact .cq-nav__lien { min-height: 42px; }

/* Panneau mobile */
.cq-menu-mobile {
	border-top: 1px solid var(--wp--preset--color--bordure);
	background: var(--wp--preset--color--blanc);
	padding: 8px 16px 24px;
	box-sizing: border-box;
	box-shadow: 0 18px 30px rgba(14,27,61,.10);
	max-height: calc(100vh - 66px - var(--wp-admin--admin-bar--height, 0px));
	overflow-y: auto;
	overscroll-behavior: contain;
}
.cq-menu-mobile[hidden] { display: none; }
.cq-menu-mobile ul { list-style: none; margin: 0; padding: 0; }
.cq-menu-mobile li { margin: 0; border-bottom: 1px solid var(--wp--preset--color--bordure); }
.cq-menu-mobile li a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 56px;
	padding: 0 4px;
	border-left: 3px solid transparent;
	font-size: 18px;
	font-weight: 600;
	color: var(--wp--preset--color--nuit);
	box-sizing: border-box;
}
.cq-menu-mobile li a svg { color: var(--wp--preset--color--cerise); flex-shrink: 0; }
.cq-menu-mobile li a[aria-current="page"] { padding-left: 12px; border-left-color: var(--wp--preset--color--cerise); }
.cq-menu-mobile li.cq-menu-mobile__groupe { border-bottom: 0; }
.cq-menu-mobile__groupe span {
	display: block;
	padding: 18px 4px 6px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--wp--preset--color--texte-secondaire);
}
.cq-menu-mobile li.cq-menu-mobile__enfant a { min-height: 52px; padding-left: 20px; font-size: 17px; }
.cq-menu-mobile__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.cq-menu-mobile__actions .cq-bouton { font-size: 17px; }

@media (min-width: 761px) {
	.cq-menu-mobile { display: none !important; }
}
@media (max-width: 760px) {
	.cq-en-tete__nav, .cq-en-tete__tel, .cq-en-tete__contact { display: none; }
	.cq-en-tete__mobile { display: inline-flex; }
	.cq-en-tete__haut { padding: 10px 16px; }
	.cq-en-tete .cq-logo, .cq-en-tete.is-compact .cq-logo { width: 170px; height: 29px; font-size: 11px; }
	/* Sans JavaScript, le menu reste accessible sous l'en-tête */
	.cq-en-tete:not(.is-js) .cq-menu-mobile[hidden] { display: block; }
	.cq-en-tete:not(.is-js) .cq-en-tete__burger { display: none; }
	.cq-site-en-tete:has(.cq-en-tete:not(.is-js)) { position: static; }
}

/* ---------- Contenu principal ---------- */
.cq-principal { padding-top: var(--wp--preset--spacing--70); padding-bottom: var(--wp--preset--spacing--80); }

/* ---------- Zone d'intervention ---------- */
.cq-zone { padding-bottom: var(--wp--preset--spacing--80); }
.cq-zone > * + * { margin-block-start: 28px; }
.cq-zone__intro { max-width: 760px; margin-left: 0 !important; display: flex; flex-direction: column; gap: 10px; }
.cq-zone__intro > * { margin: 0; }
.cq-zone__intro p { line-height: 1.55; }
.cq-zone .is-style-carte p:not([class*="is-style-etiquette"]) { line-height: 1.6; }
.cq-zone > p { margin-left: 0 !important; }
/* Variantes d'emplacement (classe posée sur le bloc partie de modèle) */
.is-fond-brume .cq-zone,
.cq-zone.is-fond-brume { background: var(--wp--preset--color--brume); padding-top: var(--wp--preset--spacing--80); }
.is-fond-aucun .cq-zone { padding: 0; }
.is-fond-aucun .cq-zone__titre { font-size: 28px; }

/* ---------- Pied de page ---------- */
.cq-pied {
	background: var(--wp--preset--color--blanc);
	border-top: 1px solid var(--wp--preset--color--bordure);
	color: var(--wp--preset--color--ardoise);
	padding-top: 56px;
	padding-bottom: 32px;
}
.cq-pied > * + * { margin-block-start: 40px; }
.cq-pied a { color: var(--wp--preset--color--nuit); }
.cq-pied a:hover { color: var(--wp--preset--color--cerise); }
.cq-pied__colonnes { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.cq-pied__colonnes > * { margin: 0 !important; }
.cq-pied__identite { display: flex; flex-direction: column; gap: 12px; }
.cq-pied__identite > *, .cq-pied__colonne > * { margin: 0; }
.cq-pied__identite p { font-size: 16px; line-height: 1.5; }
.cq-pied__colonne { display: flex; flex-direction: column; gap: 10px; }
.cq-pied h2.cq-pied__titre { font-size: 17px; line-height: 1.3; letter-spacing: 0; }
.cq-pied__liens { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.25; }
.cq-pied__liens li { margin: 0; }
.cq-pied__bas {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	border-top: 1px solid var(--wp--preset--color--bordure);
	padding-top: 24px;
}
.cq-pied__bas > * { margin: 0; }
.cq-pied__nda { max-width: 760px; font-size: 15px; line-height: 1.5; }
.cq-pied__copyright { font-size: 14px; color: var(--wp--preset--color--texte-secondaire); }
.cq-qualiopi { flex-shrink: 0; width: 220px; }
.cq-qualiopi--provisoire {
	min-height: 84px;
	border: 2px dashed #767676;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	box-sizing: border-box;
	text-align: center;
	font-size: 13px;
	line-height: 1.35;
	color: #555555;
}
@media (max-width: 1000px) {
	.cq-pied__colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cq-pied__identite { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
	.cq-pied__colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
	.cq-pied__colonnes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
	.cq-pied__bas { flex-direction: column; align-items: flex-start; }
}

/* ---------- Animations ---------- */
/* Apparition au défilement (assets/js/apparition.js) :
   .rv = les enfants apparaissent en cascade, .rv1 = l'élément seul.
   Sens : .rv-u (monte), .rv-r (vient de droite), .rv-l (vient de gauche). Délais : .d1 à .d3.
   Sans JavaScript, la classe .rv-on n'est jamais posée : tout reste visible. */
.rv-on .rv > *, .rv-on .rv1 { opacity: 0; }
.rv-on .rv:not(.rv-fini) > *, .rv-on .rv1:not(.rv-fini) { transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.rv-on .rv.rv-u > *, .rv-on .rv1.rv-u { transform: translateY(20px); }
.rv-on .rv.rv-r > *, .rv-on .rv1.rv-r { transform: translateX(20px); }
.rv-on .rv.rv-l > *, .rv-on .rv1.rv-l { transform: translateX(-20px); }
.rv-on .rv.in > *, .rv-on .rv1.in { opacity: 1; transform: none; }
.rv:not(.rv-fini) > *:nth-child(2) { transition-delay: .1s; }
.rv:not(.rv-fini) > *:nth-child(3) { transition-delay: .2s; }
.rv:not(.rv-fini) > *:nth-child(4) { transition-delay: .3s; }
.rv:not(.rv-fini) > *:nth-child(5) { transition-delay: .4s; }
.rv:not(.rv-fini) > *:nth-child(n+6) { transition-delay: .5s; }
.rv1.d1:not(.rv-fini) { transition-delay: .15s; }
.rv1.d2:not(.rv-fini) { transition-delay: .25s; }
.rv1.d3:not(.rv-fini) { transition-delay: .35s; }

/* Étapes numérotées (ol.pg-g4, ex. « Déroulé de la mission ») : un trait se trace sur chaque étape, l'une après l'autre. */
.rv-on ol.pg-g4.rv > li { position: relative; }
.rv-on ol.pg-g4.rv > li::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--wp--preset--color--nuit); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2, .7, .2, 1) .3s; }
.rv-on ol.pg-g4.rv.in > li::before { transform: scaleX(1); }
.rv-on ol.pg-g4.rv > li:nth-child(2)::before { transition-delay: .7s; }
.rv-on ol.pg-g4.rv > li:nth-child(3)::before { transition-delay: 1.1s; }
.rv-on ol.pg-g4.rv > li:nth-child(4)::before { transition-delay: 1.5s; }

/* Cartes (sessions, articles du blog) : légère élévation au survol, sur tout le site. */
.a-card, .pg-card { transition: transform .25s ease, box-shadow .25s ease; }
.a-card:hover, .pg-card:hover { box-shadow: 0 16px 34px rgba(14, 27, 61, .12) !important; }
@media (prefers-reduced-motion: no-preference) { .a-card:hover, .pg-card:hover { transform: translateY(-3px); } }

/* Résultats de filtres (catalogue, glossaire) : ce qui réapparaît arrive en fondu. */
@keyframes cq-reapparition { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cq-reapparait { animation: cq-reapparition .28s ease-out; }

/* Barre de lecture des articles (assets/js/lecture.js) */
.cq-lecture { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 3px; background: var(--wp--preset--color--cerise); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* ---------- Survols (classes posées par assets/js/survols.js) ---------- */
/* Boutons : légère montée, pression au clic ; reflet qui traverse les boutons cerise. */
/* Même rythme que les cartes (0,25 s, ease) pour tous les survols. */
.cq-btn, .cq-bouton, .wp-block-button__link, .cq-en-tete__devis { position: relative; overflow: hidden; isolation: isolate; transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease; }
.cq-btn--primaire::before, .cq-bouton:not(.cq-bouton--secondaire)::before, .cq-en-tete__devis::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .32) 45%, rgba(255, 255, 255, .08) 55%, transparent 70%);
	transform: translateX(-110%);
}
.cq-btn--primaire:hover, .cq-bouton:not(.cq-bouton--secondaire):hover, .cq-en-tete__devis:hover { box-shadow: 0 12px 26px rgba(196, 35, 47, .32) !important; }
@media (prefers-reduced-motion: no-preference) {
	.cq-btn:hover, .cq-bouton:hover, .wp-block-button__link:hover, .cq-en-tete__devis:hover { transform: translateY(-2px); }
	.cq-btn:active, .cq-bouton:active, .wp-block-button__link:active, .cq-en-tete__devis:active { transform: translateY(0) scale(.98); transition-duration: .15s; }
	.cq-btn--primaire:hover::before, .cq-bouton:not(.cq-bouton--secondaire):hover::before, .cq-en-tete__devis:hover::before { transform: translateX(110%); transition: transform 1.4s ease; }
}

/* Cartes cliquables : montée, ombre, bordure Nuit ; l'image zoome un peu, l'icône s'incline. */
.cq-carte-lien { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.cq-carte-lien:hover { box-shadow: 0 16px 34px rgba(14, 27, 61, .12) !important; border-color: var(--wp--preset--color--nuit) !important; }
.cq-carte-lien img, .a-card img, .pg-card img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.cq-carte-lien svg, .a-card svg { transition: transform .3s ease; }
@media (prefers-reduced-motion: no-preference) {
	.cq-carte-lien:hover { transform: translateY(-3px); }
	.cq-carte-lien:hover img, .a-card:hover img, .pg-card:hover img { transform: scale(1.04); }
	.cq-carte-lien:hover svg:first-child, .a-card:hover svg:first-child { transform: rotate(-6deg) scale(1.08); }
}

/* Carte contenant un seul lien : toute la carte est cliquable et réagit. */
.cq-carte-zone { position: relative; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.cq-carte-zone__lien::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.cq-carte-zone:hover { box-shadow: 0 16px 34px rgba(14, 27, 61, .12) !important; border-color: var(--wp--preset--color--nuit) !important; }
.cq-carte-zone:hover .cq-carte-zone__lien { color: var(--wp--preset--color--cerise) !important; }
.cq-carte-zone:has(.cq-carte-zone__lien:focus-visible) { outline: 3px solid var(--wp--preset--color--nuit); outline-offset: 3px; }
.cq-carte-zone__lien:focus-visible { outline: none; }
@media (prefers-reduced-motion: no-preference) { .cq-carte-zone:hover { transform: translateY(-3px); } .cq-carte-zone:hover .cq-fleche { transform: translateX(4px); } }

/* Flèches « → » qui avancent au survol du lien. */
.cq-fleche { display: inline-block; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
@media (prefers-reduced-motion: no-preference) {
	a:hover > .cq-fleche, a:hover .cq-fleche { transform: translateX(4px); }
	.is-style-lien-action a::after { display: inline-block; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
	.is-style-lien-action a:hover::after { transform: translateX(4px); }
}

/* Menu : un trait cerise se dessine sous l'entrée survolée. */
.cq-nav__lien { background: linear-gradient(var(--wp--preset--color--cerise), var(--wp--preset--color--cerise)) no-repeat left bottom / 0 3px; transition: min-height .25s ease, color var(--wp--custom--transition), background-size .3s cubic-bezier(.2, .7, .2, 1); }
.cq-nav__lien:hover:not([aria-current="page"]):not(.is-courant) { background-size: 100% 3px; }

/* Téléphone de l'en-tête : le combiné sonne au survol. */
@keyframes cq-sonne { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(5deg); } }
@media (prefers-reduced-motion: no-preference) { .cq-en-tete__tel:hover svg { animation: cq-sonne .6s ease; } }

/* Liens dans le texte : le soulignement s'épaissit et passe en cerise. */
:where(.pg-body, .pg-root main, .entry-content) :where(p, li) > a:not(.cq-btn) { text-decoration-thickness: 1px; text-decoration-color: currentColor; transition: color .2s ease, text-decoration-color .2s ease, text-decoration-thickness .2s ease; }
:where(.pg-body, .pg-root main, .entry-content) :where(p, li) > a:not(.cq-btn):hover { color: var(--wp--preset--color--cerise); text-decoration-thickness: 2px; }

/* Pied de page : les liens glissent d'un cran. */
.cq-pied li a { display: inline-block; transition: color var(--wp--custom--transition), transform .2s ease; }
@media (prefers-reduced-motion: no-preference) { .cq-pied li a:hover { transform: translateX(3px); } }

/* Captures du logiciel : reflet qui passe une fois à l'apparition, ombre au survol. */
.lg-capture, .lg-cadre { position: relative; transition: box-shadow .3s ease, transform .3s ease; }
.lg-capture:hover, .lg-cadre:hover { box-shadow: 0 20px 44px rgba(14, 27, 61, .14); }
@keyframes cq-reflet { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@media (prefers-reduced-motion: no-preference) {
	.lg-cadre::after, .rv-on .in .lg-capture::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 48%, transparent 66%); transform: translateX(-120%); animation: cq-reflet 1.3s cubic-bezier(.4, 0, .2, 1) .6s 1 both; }
}

/* Transitions entre pages (navigateurs récents ; sinon chargement normal) : fondu enchaîné.
   L'en-tête, identique d'une page à l'autre, paraît immobile. (Ne pas nommer l'en-tête collant :
   la transition est alors abandonnée.) */
@media (prefers-reduced-motion: no-preference) {
	@view-transition { navigation: auto; }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }

/* Photo du haut de page : léger zoom arrière qui suit le défilement (600 premiers pixels). */
@keyframes cq-photo-recul { from { transform: scale(1.08); } to { transform: scale(1); } }
@supports (animation-timeline: scroll()) {
	@media (prefers-reduced-motion: no-preference) {
		.a-photo > img, .pg-photo > img, .lg-hero .lg-cadre > img { animation: cq-photo-recul linear both; animation-timeline: scroll(root); animation-range: 0px 600px; transform-origin: 50% 40%; }
	}
}

/* Sous-menus : courte apparition en fondu */
@keyframes cq-apparition-menu { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.cq-nav__item--parent.is-ouvert .cq-sous-menu,
.cq-en-tete:not(.is-js) .cq-nav__item--parent:is(:hover, :focus-within) .cq-sous-menu { animation: cq-apparition-menu .16s ease-out; }

@media (prefers-reduced-motion: reduce) {
	.rv-on .rv > *, .rv-on .rv1 { opacity: 1 !important; transform: none !important; transition: none !important; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Petits composants ---------- */
.cq-numero { font-family: var(--wp--preset--font-family--sora); font-size: 30px; font-weight: 700; line-height: 1.1; color: var(--wp--preset--color--cerise); }
.cq-cadre-brume { background: var(--wp--preset--color--brume); border-radius: var(--wp--custom--rayon--carte); padding: 14px; }
.cq-cadre-brume > .is-style-carte-blanche { height: 100%; margin: 0; }

/* Un élément masqué reste masqué, même si un style en ligne lui donne un display. */
[hidden]:not(.cq-menu-mobile) { display: none !important; }

/* Pied de page : liens obligatoires (CGV, Qualiopi…) sur une ligne discrète */
.cq-pied__legal { margin: 0; font-size: 13px; line-height: 1.8; color: #555555; }
.cq-pied__legal a { color: inherit; }

/* Sources officielles (inc/sources.php) : lien discret, comme les liens du texte */
.cq-source { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* FAQ en accordéon (details/summary), partagée par toutes les pages */
.cq-faq{border-bottom:1px solid #E6E6E6}
.cq-faq summary{cursor:pointer;list-style:none;padding:16px 32px 16px 0;position:relative;font-size:18px;font-weight:600;line-height:1.4;color:#0E1B3D}
.cq-faq summary::-webkit-details-marker{display:none}
.cq-faq summary::after{content:'+';position:absolute;right:4px;top:14px;font-size:22px;color:#C4232F}
.cq-faq[open] summary::after{content:'−'}
.cq-faq summary:focus-visible{outline:3px solid #0E1B3D;outline-offset:2px}
.cq-faq>div{padding:0 0 16px;font-size:17px;line-height:1.6}
.cq-faq>div p{margin:0}
.cq-faq>div p+p{margin-top:10px}

/* Lien de source dans une carte cliquable : reste cliquable au-dessus du lien étendu */
.cq-carte-zone .cq-source{position:relative;z-index:2}

/* Tableaux des articles sur téléphone : pas de défilement sur le côté.
   2 colonnes : tableau resserré. 3 colonnes et plus : une fiche par ligne (tableaux.js). */
@media (max-width:600px){
.wp-block-table table{font-size:15px;line-height:1.45}
.wp-block-table th,.wp-block-table td{padding:8px 6px;overflow-wrap:anywhere;-webkit-hyphens:auto;hyphens:auto}
.wp-block-table.cq-tab-cartes{overflow:visible}
.cq-tab-cartes table,.cq-tab-cartes tbody,.cq-tab-cartes tr,.cq-tab-cartes td{display:block;width:auto;border:0}
.cq-tab-cartes thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.cq-tab-cartes tr{padding:14px 16px;border:1px solid #E6E6E6;border-radius:14px;background:#FFFFFF}
.cq-tab-cartes tr+tr{margin-top:10px}
.cq-tab-cartes td{padding:3px 0;font-size:16px;line-height:1.5;overflow-wrap:break-word;-webkit-hyphens:manual;hyphens:manual}
.cq-tab-cartes td:first-child{padding-bottom:6px;font-size:17px;font-weight:700;color:#0E1B3D}
.cq-tab-cartes td[data-l]:not(:first-child)::before{content:attr(data-l) " : ";font-weight:600;color:#5B6478}
.cq-tab-cartes td:empty{display:none}
}

/* Pied de page sur téléphone : liens plus faciles à toucher */
@media (max-width:760px){
.cq-pied__liens{gap:0}
.cq-pied li a{padding:10px 0}
.cq-pied__identite p a{display:inline-block;padding:6px 0}
.cq-pied__legal{font-size:14px;line-height:1.5}
.cq-pied__legal a{display:inline-block;padding:9px 0}
}
