/* Landings Google Ads (lots C et E de la recette), fidélité aux maquettes Claude Design (build/src/landing-*).
   Chargée après core-blocks.css par includes/pages-landings.php. Chaque règle est bornée à body.cnd-landing,
   aux parties .cnd-landing-header / .cnd-landing-footer ou à un style de groupe propre aux landings : rien ne
   change ailleurs. */

/* ---------- En-tête minimal (maquette, section « entete ») ----------
   Collant, fond blanc, filet bas ; contenu sur 1140 px, marge 8 × 20. Logo 72 px (52 px sous 900 px), intitulé
   Outfit 15 px et mention 13 px (masqués sous 900 px). Bouton plein de l'univers, 15 px, 11 × 20. */
.cnd.cnd-landing-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: #FFFFFF;
	border-bottom: 1px solid var(--line);
}
body.admin-bar .cnd.cnd-landing-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}
.cnd-landing-header__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 8px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}
.cnd-landing-header__brand {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}
.cnd-landing-header__logo {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: contain;
}
.cnd-landing-header__label {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 15px;
	line-height: 1.3;
	color: var(--ink);
}
.cnd-landing-header__label span {
	display: block;
	font-size: 13px;
	color: var(--ink-3);
}
.cnd-landing-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
}
.cnd-landing-header__wa {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 41px;
	height: 41px;
	border: 1px solid var(--brand);
	border-radius: var(--r-pill);
	color: var(--brand-strong);
	background: #FFFFFF;
}
.cnd-landing-header__wa:hover {
	background: var(--surface-2);
}
.cnd.cnd-landing-header .cnd-landing-header__cta {
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 400;
	padding: 11px 20px;
	white-space: nowrap;
}
@media (max-width: 899px) {
	.cnd-landing-header__logo {
		width: 52px;
		height: 52px;
	}
	.cnd-landing-header__label {
		display: none;
	}
}

/* ---------- Pied minimal (maquette, fin de la section « cta ») ----------
   Logo 128 px centré, puis « © année Canidélite · Mentions légales · Confidentialité » en 12 px gris. */
.cnd.cnd-landing-footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 0 24px 64px;
	text-align: center;
}
.cnd-landing-footer__logo {
	display: block;
	width: 128px;
	height: 128px;
	object-fit: contain;
}
.cnd-landing-footer__legal {
	margin: 0;
	font-size: 12px;
	color: var(--ink-3);
}
.cnd.cnd-landing-footer .cnd-landing-footer__legal a {
	color: inherit;
}
.cnd.cnd-landing-footer .cnd-landing-footer__legal a:is(:hover, :focus-visible) {
	color: var(--ink);
}
/* « Gérer mes cookies » (v0.39.0) : bouton à l'allure d'un lien ; marge et affichage du `button` de la CSS
   additionnelle du site remis en !important ciblé. */
.cnd.cnd-landing-footer button.cnd-landing-footer__cookies {
	display: inline !important;
	margin: 0 !important;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font: inherit;
	text-transform: none;
	letter-spacing: normal;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
}
.cnd.cnd-landing-footer button.cnd-landing-footer__cookies:is(:hover, :focus-visible) {
	background: transparent;
	color: var(--ink);
}

/* ---------- Hero (maquette, section « hero ») ----------
   Sur la photo assombrie (style cnd-photo-sombre, core-blocks.css) : pastilles translucides 12 px au-dessus du
   titre, texte coupé à 3 lignes sous 900 px avec « Lire plus » (assets/js/landing.js), logos sur carte blanche. */
:is(body.cnd-site .cnd-site-main, .editor-styles-wrapper) .wp-block-list.is-style-cnd-landing-pastilles {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}
:is(body.cnd-site .cnd-site-main, .editor-styles-wrapper) .is-style-cnd-landing-pastilles > li {
	margin: 0;
	padding: 5px 12px;
	border-radius: var(--r-pill);
	background: rgba(255, 255, 255, .16);
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
}
:is(body.cnd-site .cnd-site-main, .editor-styles-wrapper) .wp-block-group.is-style-cnd-landing-lire {
	margin: 0 0 16px;
}
:is(body.cnd-site .cnd-site-main, .editor-styles-wrapper) .is-style-cnd-landing-lire > p {
	margin: 0;
	max-width: 58ch;
	font-size: 16px;
	line-height: 1.55;
	color: rgba(255, 255, 255, .9);
}
body.cnd-site .cnd-site-main .cnd-landing-lire__bouton {
	margin: 8px 0 0;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--font-display);
	font-size: 15px;
	color: #FFFFFF;
	text-decoration: underline;
	cursor: pointer;
}
body.cnd-site .cnd-site-main .cnd-landing-lire__bouton:hover {
	background: none;
	color: #FFFFFF;
}
body.cnd-site .cnd-site-main .cnd-landing-lire__bouton:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: 2px;
}
@media (max-width: 899px) {
	.cnd-js :is(body.cnd-site .cnd-site-main) .is-style-cnd-landing-lire:not(.is-expanded) > p {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		overflow: hidden;
	}
}
@media (min-width: 900px) {
	body.cnd-site .cnd-site-main .cnd-landing-lire__bouton {
		display: none;
	}
}
:is(body.cnd-site .cnd-site-main, .editor-styles-wrapper) .wp-block-group.is-style-cnd-landing-logos {
	margin: 12px 0 0;
	padding: 18px 22px;
	border-radius: 12px;
	background: #FFFFFF;
	color: var(--ink);
}

/* Fiches Tarif / Options / Durée : 3 de front à toutes les largeurs (maquette), 2 × 2 du bloc sinon. */
:is(body.cnd-site .cnd-site-main, .editor-styles-wrapper) .is-style-cnd-photo-sombre .cnd-key-figures--fiches {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}
:is(body.cnd-site .cnd-site-main, .editor-styles-wrapper) .is-style-cnd-photo-sombre .cnd-key-figures--fiches .cnd-key-figure:last-child:nth-child(odd) {
	grid-column: auto;
}
@media (max-width: 899px) {
	:is(body.cnd-site .cnd-site-main, .editor-styles-wrapper) .is-style-cnd-photo-sombre .cnd-key-figures--fiches .cnd-key-figure {
		padding: 12px;
	}
	:is(body.cnd-site .cnd-site-main, .editor-styles-wrapper) .is-style-cnd-photo-sombre .cnd-key-figures--fiches .cnd-key-figure__number {
		font-size: 14px;
	}
}
/* Logos : 2 × 2 dans la carte blanche, centrés (maquette : 4 logos ; pastilles neutres à la place de deux). */
:is(body.cnd-site .cnd-site-main, .editor-styles-wrapper) .is-style-cnd-landing-logos .cnd-logos {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: center;
	justify-items: center;
	gap: 16px 24px;
}
/* v0.36.0 (audit Qualiopi) : la mention du logo Qualiopi reste affichée (charte) ; il prend toute la largeur. */
:is(body.cnd-site .cnd-site-main, .editor-styles-wrapper) .is-style-cnd-landing-logos .cnd-logos__item:not(.cnd-logos__item--qualiopi) .cnd-logos__caption {
	display: none;
}
:is(body.cnd-site .cnd-site-main, .editor-styles-wrapper) .is-style-cnd-landing-logos .cnd-logos__item--qualiopi {
	grid-column: 1 / -1;
}

/* ---------- Tarif (maquette, section « tarif ») ----------
   Tableau sur ordinateur, prix en Outfit 32 px ; sous 900 px, les 3 cartes en défilement à la place du tableau.
   Cartes de financement : surtitre et texte, sans pictogramme. */
:is(body.cnd-site .cnd-site-main, .editor-styles-wrapper) .is-style-cnd-landing-tarif .cnd-compare tr.is-emphasis :is(td, th):not(:first-child) {
	font-family: var(--font-display);
	font-size: 32px;
	font-weight: 500;
}
:is(body.cnd-site .cnd-site-main, .editor-styles-wrapper) .is-style-cnd-landing-tarif .cnd-icon-list__icon {
	display: none;
}
@media (min-width: 900px) {
	body.cnd-site .cnd-site-main .is-style-cnd-landing-tarif .cnd-pricing-cards {
		display: none;
	}
}
@media (max-width: 899px) {
	body.cnd-site .cnd-site-main .is-style-cnd-landing-tarif .cnd-compare {
		display: none;
	}
}

/* ---------- Sessions : photo et simulateur côte à côte, simulateur sur une colonne (maquette) ---------- */
:is(body.cnd-site .cnd-site-main, .editor-styles-wrapper) .is-style-cnd-landing-sessions .cnd-rythme {
	flex-direction: column;
	align-items: stretch;
	height: 100%;
}
:is(body.cnd-site .cnd-site-main, .editor-styles-wrapper) .is-style-cnd-landing-sessions .cnd-rythme > * {
	flex: 0 0 auto;
}
:is(body.cnd-site .cnd-site-main, .editor-styles-wrapper) .is-style-cnd-landing-sessions > .wp-block-columns {
	align-items: stretch;
}

/* ---------- Avis : 2 témoignages de front sur ordinateur (maquette) ---------- */
:is(body.cnd-site .cnd-site-main, .editor-styles-wrapper) .is-style-cnd-landing-avis .cnd-carousel {
	--cnd-per-view: 2;
}

/* ---------- FAQ : titre au-dessus, accordéon sur 2 colonnes (maquette), pas le « titre à gauche » des pages ---------- */
:is(body.cnd-site .cnd-site-main, .editor-styles-wrapper) .wp-block-group.is-style-cnd-landing-faq:has(> .wp-block-heading + .cnd.cnd-faq) {
	display: block;
}
:is(body.cnd-site .cnd-site-main, .editor-styles-wrapper) .wp-block-group.is-style-cnd-landing-faq:has(> .wp-block-heading + .cnd.cnd-faq) > :not(.cnd-faq) {
	max-width: none;
	margin: 0 0 var(--s-5);
}

/* Hero : espace sous le titre (maquette : 16 px). */
:is(body.cnd-site .cnd-site-main, .editor-styles-wrapper) .is-style-cnd-photo-sombre .wp-block-column:first-child > h1 {
	margin-bottom: 16px;
}

/* ---------- Landings Éducateur (lot E, v0.34.1) ---------- */

/* Pied en ligne (maquettes Éducateur, option « logo » à non) : filet haut, « © … » à gauche, mention
   d'accessibilité à droite, sur 1140 px. */
.cnd.cnd-landing-footer.cnd-landing-footer--ligne {
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	max-width: 1140px;
	margin: 0 auto;
	padding: 20px 24px 48px;
	border-top: 1px solid var(--line);
	text-align: left;
}
.cnd-landing-footer__note {
	margin: 0;
	font-size: 12px;
	color: var(--ink-3);
}

/* Parcours : photo étirée à gauche, deux cartes empilées à droite, durée en pastille à droite du titre. */
:is(body.cnd-site .cnd-site-main, .editor-styles-wrapper) .is-style-cnd-landing-parcours > .wp-block-columns {
	align-items: stretch;
	gap: 16px;
}
:is(body.cnd-site .cnd-site-main, .editor-styles-wrapper) .is-style-cnd-landing-parcours > .wp-block-columns > .wp-block-column {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
:is(body.cnd-site .cnd-site-main, .editor-styles-wrapper) .is-style-cnd-landing-parcours > .wp-block-columns > .wp-block-column > * {
	margin: 0;
}
:is(body.cnd-site .cnd-site-main, .editor-styles-wrapper) .is-style-cnd-landing-parcours .wp-block-column:first-child > .wp-block-image {
	flex: 1 1 auto;
	min-height: 240px;
}
:is(body.cnd-site .cnd-site-main, .editor-styles-wrapper) .is-style-cnd-landing-parcours .wp-block-column:first-child > .wp-block-image img {
	width: 100%;
	height: 100%;
	aspect-ratio: auto !important;
	object-fit: cover;
	border-radius: 16px;
}
:is(body.cnd-site .cnd-site-main, .editor-styles-wrapper) .is-style-cnd-landing-parcours h3 {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
}
:is(body.cnd-site .cnd-site-main, .editor-styles-wrapper) .cnd-landing-duree {
	padding: 4px 10px;
	border-radius: var(--r-pill);
	background: var(--surface-2);
	color: var(--brand-strong);
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
}
:is(body.cnd-site .cnd-site-main, .editor-styles-wrapper) .is-style-cnd-landing-parcours .is-style-cnd-carte p {
	font-size: 14px;
	line-height: 1.5;
}
