/**
 * Landing SEA Permis d'exploitation — mobile-first (65 % du trafic).
 * D'après les maquettes desktop (1400 px) et mobile (390 px).
 * Palette : #30698C primaire · #224A62/#183546 foncés · #ACC3D1/#EAF0F4 clairs
 *           #ECF9FF bleu clair · #EFEFEF gris · #F2703F orange d'action
 */
/* Largeur du contenu des sections — une seule valeur pour toute la page.
   Les maquettes en utilisaient trois (1200 px pour les grilles, 1000 px pour
   le programme, les infos pratiques et les liens, 860 px pour le texte et la
   FAQ) : d'une section à l'autre, les bords gauche et droit sautaient.
   Toutes les sections suivent désormais --lp-largeur. Pour rendre aux
   sections de lecture (texte, FAQ, programme…) une colonne plus étroite,
   changer seulement --lp-lecture (ex. 860px) : elles se centreront dans la
   même largeur que les autres. */
:root {
	--lp-largeur: 1200px;
	--lp-lecture: var(--lp-largeur);
}
 html {
	--wp--preset--spacing--20: 0.44rem;
	--wp--preset--spacing--30: 0.67rem;
	--wp--preset--spacing--40: 1rem;
	--wp--preset--spacing--50: 1.5rem;
	--wp--preset--spacing--60: 2.25rem;
	--wp--preset--spacing--70: 3.38rem;
	--wp--preset--spacing--80: 5.06rem;
 }
.l4-landing-page {
	margin: 0;
	background: #fff;
	font-family: Lato, system-ui, sans-serif;
	color: #2c3f49;
	-webkit-font-smoothing: antialiased;
}
.lp * { box-sizing: border-box; }
.lp img { max-width: 100%; }
.lp a { color: #30698C; }
.lp a:hover { color: #224A62; }
.lp h1, .lp h2, .lp h3 { font-family: Poppins, system-ui, sans-serif; color: #30698C; }
.lp h2 { font-size: 22px; line-height: 1.25; font-weight: 600; margin: 0 0 8px; text-align: center; }
.lp section { padding: 26px 16px; }
.lp-section-sub {
	margin: 0 auto 18px;
	font-size: 14.5px;
	line-height: 1.5;
	color: #5c7381;
	text-align: center;
	max-width: 680px;
}
.lp-center { text-align: center; margin: 24px 0 0; }
/* Conteneur centré à la largeur du site. Les grilles de section (lp-hero-grid,
   lp-packs-grid…) portent déjà ces deux valeurs ; celle-ci sert quand une
   section n'a qu'un seul bloc à cadrer — la liste d'avis, par exemple, qui
   affiche désormais sa propre colonne « note globale » et n'a plus de voisin. */
.lp-wide { max-width: var(--lp-largeur); margin: 0 auto; }
.lp-desktop-only { display: none !important; }

/* ---------- Boutons & badges ---------- */
.lp-btn {
	display: inline-block;
	text-decoration: none;
	font: 600 15px/1 Poppins, sans-serif;
	padding: 15px 20px;
	border-radius: 7px;
	text-align: center;
	min-height: 46px;
}
.lp-btn-orange { background: #F2703F; color: #fff !important; box-shadow: 0 2px 6px rgba(242, 112, 63, .35); }
.lp-btn-orange:hover { background: #e05f2e; }
.lp-btn-blue { background: #30698C; color: #fff !important; }
.lp-btn-blue:hover { background: #224A62; }
.lp-btn-ghost { background: #fff; color: #30698C !important; border: 1.5px solid #30698C; }
.lp-btn-ghost:hover { background: #ECF9FF; }
.lp-btn-block { display: block; }
.lp-btn-lg { font-size: 17px; padding: 17px 28px; }
.lp-badge {
	font: 700 10px/1 Poppins, sans-serif;
	letter-spacing: .06em;
	text-transform: uppercase;
	background: #F2703F;
	color: #fff;
	padding: 5px 7px;
	border-radius: 3px;
	white-space: nowrap;
}
.lp-stars { color: #F2B01E; letter-spacing: 1.5px; font-size: 13px; }
.lp-link {
	font: 700 14px/1 Lato, sans-serif;
	text-decoration: none;
	border-bottom: 1.5px solid #30698C;
	padding-bottom: 2px;
	align-self: flex-start;
}

/* ---------- Bandeau promo + header ---------- */
.lp-topbar {
	background: #224A62;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	min-height: 34px;
	padding: 6px 14px;
	font: 400 12.5px/1.3 Lato, sans-serif;
}
.lp-topbar-tel { display: none; color: #fff !important; text-decoration: none; font-weight: 700; }
.lp-topbar-promo { display: flex; align-items: center; gap: 8px; }

.lp-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid #EFEFEF;
}
.lp-logo { height: 32px; width: auto; display: block; }
.lp-header-right { display: flex; align-items: center; gap: 22px; }
.lp-header-trust { font: 400 13px/1.4 Lato, sans-serif; color: #5c7381; }
.lp-header-trust b { color: #183546; }
.lp-header-tel {
	text-decoration: none;
	display: flex;
	align-items: center;
	border: 1.5px solid #30698C;
	border-radius: 6px;
	padding: 10px 12px;
	min-height: 44px;
	font: 600 14px/1 Poppins, sans-serif;
	color: #30698C;
}

/* ---------- Hero ---------- */
.lp-hero { background: #ECF9FF; padding: 22px 16px 24px; }
.lp-hero-grid { max-width: var(--lp-largeur); margin: 0 auto; }
.lp-kicker {
	display: inline-block;
	font: 700 10.5px/1.4 Lato, sans-serif;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #30698C;
	margin-bottom: 10px;
}
.lp-hero h1 { margin: 0 0 10px; font-size: 29px; line-height: 1.15; font-weight: 600; text-wrap: pretty; }
.lp-hero-sub { margin: 0 0 16px; font-size: 16px; line-height: 1.55; color: #3d5563; max-width: 560px; }
.lp-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.lp-price { font: 600 34px/1 Poppins, sans-serif; color: #183546; }
.lp-price-md { font: 600 30px/1 Poppins, sans-serif; color: #183546; }
.lp-price-old { font: 400 15px/1 Lato, sans-serif; color: #767D80; text-decoration: line-through; }
/* « à partir de », posé au-dessus du prix par l4_lp_price_row_promo() quand une
   promotion est en cours. Le prix devient alors haut de deux lignes : la ligne
   s'aligne par le bas, sinon le prix barré et le badge remonteraient au niveau
   de cette mention. Hors promotion, la mention n'existe pas et le :has() ne
   s'applique pas — l'alignement historique est intact. */
.lp-price-from { display: block; font: 400 13px/1.2 Lato, sans-serif; color: #767D80; margin-bottom: 3px; }
.lp-price-row:has(.lp-price-from) { align-items: flex-end; }

.lp-checks { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.lp-checks li {
	position: relative;
	padding-left: 29px;
	font-size: 14.5px;
	line-height: 1.45;
}
.lp-checks li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 1px;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	background: #30698C;
	color: #fff;
	font: 700 10px/19px Lato, sans-serif;
	text-align: center;
}
.lp-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0 10px; }
.lp-hero-tel { margin: 0 0 24px; font-size: 14px; color: #5c7381; }
.lp-hero-tel a { font-weight: 700; text-decoration: none; }

/* Carte prochaine session */
.lp-next-card {
	background: #fff;
	border: 1px solid #ACC3D1;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 16px;
	box-shadow: 0 6px 20px rgba(24, 53, 70, .10);
}
.lp-mobile-only.lp-next-card, .lp-next-body { padding: 16px; }
.lp-next-photo { width: 100%; height: 190px; object-fit: cover; display: block; }
.lp-next-label {
	font: 700 10.5px/1 Lato, sans-serif;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #F2703F;
	margin-bottom: 8px;
}
.lp-next-date { font: 600 21px/1.2 Poppins, sans-serif; color: #183546; margin-bottom: 4px; }
.lp-next-range { margin: 0 0 12px; font-size: 15px; line-height: 1.5; color: #3d5563; }
.lp-next-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: #ECF9FF;
	border-radius: 7px;
	padding: 10px 12px;
	margin-bottom: 12px;
}
.lp-seats { font: 700 14px/1.3 Lato, sans-serif; color: #1c7a4a; }
.lp-next-price { font: 600 19px/1 Poppins, sans-serif; color: #183546; }
.lp-next-alt { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: #5c7381; text-align: center; }

/* Carte de réassurance */
.lp-trust-card {
	background: #fff;
	border: 1px solid #ACC3D1;
	border-radius: 10px;
	padding: 16px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	box-shadow: 0 2px 8px rgba(24, 53, 70, .06);
	margin-top: 4px;
}
.lp-trust-item { display: flex; gap: 10px; align-items: center; font: 400 12.5px/1.35 Lato, sans-serif; }
.lp-trust-item img { height: 28px; width: auto; flex: none; }
.lp-trust-item a { text-decoration: underline; }
.lp-trust-sep { border-top: 1px solid #EFEFEF; padding-top: 13px; }
.lp-trust-big { flex: none; font: 600 22px/1 Poppins, sans-serif; color: #183546; }
.lp-trust-big small { font-size: 13px; color: #767D80; }

/* ---------- Module d'inscription ---------- */
.lp-booking { background: #EFEFEF; }
.lp-booking-grid { max-width: var(--lp-largeur); margin: 0 auto; }
.lp-booking-main { background: #fff; border-radius: 10px; padding: 18px 14px 22px; }
.lp-booking-aside { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.lp-card { background: #fff; border-radius: 10px; padding: 20px; display: flex; flex-direction: column; }
.lp-card h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.3; font-weight: 600; }
.lp-card p { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: #5c7381; }
.lp-pay-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.lp-pay-row img { width: auto; }
.lp-pay-row span { font-size: 14px; line-height: 1.4; color: #2c3f49; }
/* Logos Qualiopi + Avis Garantis du bloc « Payez en toute sécurité » :
   masqués (trop petits pour être lisibles — retour client du 10/08/2026).
   Le groupe reste dans le contenu des pages existantes, d'où le display:none
   plutôt qu'une suppression. */
.lp-pay-logos { display: none; }
.lp-pay-logos img { width: auto; }
.lp-card-dark { background: #224A62; color: #fff; }
.lp-card-dark-title { font: 600 17px/1.3 Poppins, sans-serif; margin-bottom: 6px; }
.lp-card-dark p { color: #D3E4EE; }
.lp-card-dark-tel { color: #fff !important; font: 600 20px/1 Poppins, sans-serif; text-decoration: none; }

/* ---------- Packs ---------- */
.lp-packs-grid { max-width: var(--lp-largeur); margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.lp-pack { border: 1px solid #EFEFEF; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; }
.lp-pack h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.lp-pack-desc { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; color: #5c7381; }
.lp-pack .lp-btn { margin-top: auto; }
.lp-pack-featured { border: 2px solid #30698C; background: #F7FDFF; position: relative; }
.lp-pack-flag {
	position: absolute;
	top: -11px;
	left: 16px;
	background: #F2703F;
	color: #fff;
	font: 700 10px/1 Lato, sans-serif;
	letter-spacing: .07em;
	text-transform: uppercase;
	padding: 5px 8px;
	border-radius: 3px;
}

/* ---------- Autres formations / questions / licences ---------- */
.lp-others { border-top: 1px solid #EFEFEF; }
.lp-others-grid,
.lp-questions-grid,
.lp-licences-grid {
	max-width: var(--lp-largeur);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.lp-others-grid .lp-card,
.lp-questions-grid .lp-card { border: 1px solid #EFEFEF; }
.lp-questions { background: #EAF0F4; }
.lp-questions-grid .lp-card { border-color: #ACC3D1; }
.lp-questions .l4-faq-bloc { max-width: 820px; margin: 24px auto 0; }
.lp-licences { background: #EAF0F4; }
.lp-licences .lp-card h3 { font-size: 16px; }
.lp-licences .lp-card p { margin: 0; }

/* ---------- Pourquoi cette formation / qui est concerné ---------- */
/* Ces deux sections sont écrites pour servir AUSSI hors du gabarit landing
   (pages permis, renouvellement, HACCP…). Deux conséquences sur les règles
   ci-dessous : elles ne supposent aucune enveloppe `.lp` autour de la page — la
   section la porte elle-même (l4_lp_section_render) —, et leurs marges
   intérieures sont écrites sur `section.lp` plutôt que sur `.lp section`, qui
   ne vise que les sections posées *dans* la coque de la landing. */
section.lp { padding: 26px 16px; }

.lp-pourquoi-grid,
.lp-concerne-grid {
	max-width: var(--lp-largeur);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.lp-steps { counter-reset: lp-step; display: flex; flex-direction: column; gap: 10px; }
.lp-step {
	display: flex;
	gap: 13px;
	background: #fff;
	border: 1px solid #E4EBF0;
	border-radius: 8px;
	padding: 15px 17px;
}
/* Le numéro est calculé par un compteur CSS, jamais tapé : retirer ou déplacer
   un argument dans l'éditeur renumérote la liste toute seule. Un « 03 » écrit à
   la main, lui, survivait à la suppression du « 02 ». */
.lp-step::before {
	content: counter(lp-step, decimal-leading-zero);
	counter-increment: lp-step;
	font: 700 13px/1.55 Poppins, sans-serif;
	color: #F2703F;
}
.lp-step p { margin: 0; font-size: 14.5px; line-height: 1.55; color: #30698C; }

.lp-alert { background: #FFF3EC; border: 1px solid #F8D7C6; }
.lp-alert-label {
	margin: 0 0 10px;
	font: 700 10.5px/1 Poppins, sans-serif;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #F2703F;
}
.lp-alert p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.6; color: #5c7381; }
.lp-alert .wp-block-buttons { margin-top: 4px; }

.lp-concerne { background: #ECF9FF; }
.lp-col p { margin: 0 0 14px; font-size: 15px; line-height: 1.7; color: #2c3f49; }
.lp-col p:last-child { margin-bottom: 0; }
.lp-card-check { border: 1px solid #ACC3D1; box-shadow: 0 6px 20px rgba(24, 53, 70, .06); }
.lp-card-check h3 { margin-bottom: 14px; }
/* Une carte n'est pas l'ouverture : `.lp-checks` y passe à deux colonnes dès
   640 px (c'est ce qu'il faut sur toute la largeur du hero), et chaque item
   tenait alors sur deux lignes dans une colonne de 420 px. Règle plus
   spécifique que celle des media queries : elle l'emporte quel que soit
   l'ordre des blocs. */
.lp-card-check .lp-checks { display: flex; flex-direction: column; max-width: none; margin-bottom: 18px; }
.lp-card-check .lp-checks li { color: #2c3f49; }
/* ✓ sans pastille : la carte en aligne cinq sous un titre, et les pastilles
   bleues y pesaient plus que la liste qu'elles annoncent. */
.lp-card-check .lp-checks li::before { background: none; color: #30698C; font-size: 15px; }

/* ---------- Avis ---------- */
.lp-reviews { background: #ECF9FF; }
.lp-reviews-grid { max-width: var(--lp-largeur); margin: 0 auto; }
.lp-reviews-score { align-items: center; text-align: center; margin-bottom: 14px; }
.lp-reviews-score img { width: auto; margin-bottom: 8px; }
.lp-reviews-score .lp-trust-big { font-size: 32px; }
.lp-reviews-score p { margin: 6px 0 0; }
.lp-reviews-cards {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 4px;
}
.lp-review { flex: none; width: 210px; scroll-snap-align: start; }
.lp-review-author { font: 700 14px/1 Lato, sans-serif; color: #183546; margin-bottom: 4px; }
.lp-review-date { font-size: 12px; color: #A7A7A7; margin-bottom: 8px; }
.lp-review .lp-stars { margin-bottom: 8px; }
.lp-review p { margin: 0; color: #2c3f49; }

/* ---------- Programme ---------- */
.lp-programme > div { max-width: var(--lp-lecture); margin: 0 auto; display: inherit !important; }
.lp-programme h2 { text-align: left; font-size: 24px; margin-bottom: 16px; }
.lp-programme p { margin: 0 0 14px; font-size: 16px; line-height: 1.7; }

/* ---------- CTA final + footer ---------- */
.lp-cta-final { background: #183546; }
.lp-cta-final .lp-next-price { color: white;}
.lp-cta-final-inner {
	max-width: var(--lp-largeur);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
	text-align: center;
}
.lp-cta-final-title { font: 600 20px/1.3 Poppins, sans-serif; color: #fff; margin-bottom: 6px; }
.lp-cta-final-sub { font-size: 14.5px; line-height: 1.5; color: #ACC3D1; }
.lp-footer {
	background: #224A62;
	padding: 20px 16px calc(20px + 92px + env(safe-area-inset-bottom, 0px)); /* réserve pour la barre sticky mobile */
	display: flex;
	flex-direction: column;
	gap: 14px;
	font: 400 12.5px/1.7 Lato, sans-serif;
	color: #ACC3D1;
}
.lp-footer b { color: #fff; }
.lp-footer a { color: #ACC3D1; text-decoration: none; }
.lp-footer a:hover { color: #fff; }

/* ---------- Barre sticky mobile ---------- */
.lp-stickybar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 50;
	background: #fff;
	border-top: 1px solid #ACC3D1;
	box-shadow: 0 -4px 14px rgba(24, 53, 70, .14);
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
	transition: transform .25s ease;
}
/* Masquée quand le module de réservation est à l'écran (voir script du template) */
.lp-stickybar.is-hidden { transform: translateY(110%); }
.lp-stickybar-info { font-size: 12px; line-height: 1.3; color: #5c7381; text-align: center; margin-bottom: 8px; }
.lp-stickybar-info b { color: #183546; }
.lp-stickybar-btns { display: flex; gap: 10px; }
.lp-stickybar-btns .lp-btn { flex: 1; }

/* Ancres : compense la hauteur des barres fixes */
#module, #programme, #devis { scroll-margin-top: 16px; }

/* ============================================================
   Pont Gutenberg : styles des blocs natifs (front + éditeur)
   `:where(.lp, .editor-styles-wrapper)` couvre la page publiée
   ET l'aperçu dans l'éditeur de blocs.
   ============================================================ */
:where(.lp, .editor-styles-wrapper) { font-family: Lato, system-ui, sans-serif; color: #2c3f49; }

/* Jumelles éditeur des règles de base déclarées plus haut sur `.lp` seul :
   l'éditeur n'enveloppe pas le contenu dans `.lp`, et sans elles les liens
   restaient en bleu souligné par défaut et les images débordaient. */
:where(.lp, .editor-styles-wrapper) * { box-sizing: border-box; }
:where(.lp, .editor-styles-wrapper) img { max-width: 100%; }
:where(.lp, .editor-styles-wrapper) a { color: #30698C; }
:where(.lp, .editor-styles-wrapper) a:hover { color: #224A62; }

/* ------------------------------------------------------------------
   ⚠️ La largeur du canevas — la cause n°1 d'un aperçu qui « ne ressemble
   pas au site »

   OceanWP est un thème classique sans theme.json : l'éditeur de blocs ne
   s'affiche PAS dans une iframe. Les media queries se règlent donc sur la
   largeur de la FENÊTRE (1400 px, disons), pendant que le contenu, lui, est
   contraint à ~840 px. La mise en page desktop se déclenche — deux colonnes,
   grille de quatre cartes, bloc « ordinateur seulement » visible — mais dans
   une colonne deux fois trop étroite : tout paraît cassé alors que le site
   publié est juste.

   On rend donc aux sections de la landing toute la largeur du canevas.
   `!important` assumé : la contrainte vient d'une règle de l'éditeur portant
   la même spécificité, dont l'ordre de chargement n'est pas garanti.
   ------------------------------------------------------------------ */
.editor-styles-wrapper .wp-block-l4-lp-section,
.editor-styles-wrapper .wp-block[data-type^="l4/lp-"] { max-width: none !important; }

/* Dans l'éditeur, certains conteneurs de blocs ajoutent des div
   intermédiaires : display:contents les rend transparents pour que les
   grilles/flex (lp-hero-grid, lp-packs-grid…) s'appliquent comme sur le site.
   Les blocs « Section landing » et « Conteneur landing » posent leur contenu
   directement dans leur propre élément (useInnerBlocksProps) ; la règle vaut
   pour ce qu'ils contiennent — une rangée de boutons, une liste — dont le
   conteneur intermédiaire, lui, casserait le flex de `.wp-block-buttons`
   (boutons empilés dans l'éditeur, côte à côte sur le site). */
.editor-styles-wrapper .wp-block-group > .block-editor-inner-blocks,
.editor-styles-wrapper .wp-block-group > .block-editor-inner-blocks > .block-editor-block-list__layout,
.editor-styles-wrapper .wp-block-l4-lp-section .block-editor-inner-blocks,
.editor-styles-wrapper .wp-block-l4-lp-section .block-editor-inner-blocks > .block-editor-block-list__layout,
.editor-styles-wrapper .wp-block-l4-lp-box .block-editor-inner-blocks,
.editor-styles-wrapper .wp-block-l4-lp-box .block-editor-inner-blocks > .block-editor-block-list__layout { display: contents; }

/* Sur le site publié, WordPress ajoute le même conteneur intermédiaire
   (.wp-block-group__inner-container) dès qu'un bloc Groupe n'a pas
   d'attribut "layout" explicite — ce qui casse toutes les grilles/flex
   ciblant les enfants directs (lp-hero-grid, lp-packs-grid, lp-price-row,
   lp-trust-card…), qui se retrouvent alors empilés en une colonne. Même
   traitement que dans l'éditeur : on neutralise ce conteneur. */
.lp .wp-block-group__inner-container { display: contents; }

/* Neutralise les marges auto-injectées par la mise en page WP (is-layout-*)
   pour que l'espacement reste celui défini ici — dans l'éditeur aussi, sans
   quoi les sections y paraissent deux fois plus aérées que sur le site. */
:where(.lp, .editor-styles-wrapper) :is(.is-layout-flow, .is-layout-constrained) > * { margin-block-start: 0; }
:where(.lp, .editor-styles-wrapper) h1,
:where(.lp, .editor-styles-wrapper) h2,
:where(.lp, .editor-styles-wrapper) h3 { font-family: Poppins, system-ui, sans-serif; color: #183546; }
:where(.editor-styles-wrapper) h2 { font-size: 22px; font-weight: 600; text-align: center; }
:where(.editor-styles-wrapper) section { padding: 26px 16px; }
:where(.lp, .editor-styles-wrapper) figure { margin: 0; }

/* Boutons (bloc core/button + styles Landing)
   Un bouton qui porte un style « Landing — … » est stylé partout, y compris
   posé hors d'une « Section landing » (entre deux sections, dans un groupe
   natif) : sur une page ordinaire, `.lp` n'entoure que les sections, et un
   bouton dupliqué hors de l'une d'elles sortait avec le bleu d'OceanWP alors
   que l'éditeur l'annonçait orange. Les classes de style étant propres au
   thème, les sortir du périmètre `.lp` ne touche aucun autre bouton. */
:where(.lp, .editor-styles-wrapper) .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
:where(.lp, .editor-styles-wrapper, .wp-block-button[class*="is-style-lp-"]) .wp-block-button__link {
	display: inline-block;
	text-decoration: none;
	font: 600 15px/1 Poppins, sans-serif;
	padding: 15px 20px;
	border-radius: 7px;
	text-align: center;
	min-height: 46px;
	background: #F2703F;
	color: #fff;
	box-shadow: 0 2px 6px rgba(242, 112, 63, .35);
	border: 0;
	/* OceanWP met tous les boutons Gutenberg en majuscules espacées
	   (.wp-block-button__link, style.min.css). Sous le modèle Landing SEA sa
	   feuille est retirée, donc on ne le voyait pas ; sur une page ordinaire,
	   les boutons sortaient en « JE M'INSCRIS À LA FORMATION ». Le texte
	   s'affiche désormais tel qu'il est saisi. */
	text-transform: none;
	letter-spacing: normal;
}
.is-style-lp-orange .wp-block-button__link { background: #F2703F; color: #fff; }
.is-style-lp-orange .wp-block-button__link:hover { background: #e05f2e; }
.is-style-lp-blue .wp-block-button__link { background: #30698C; color: #fff; box-shadow: none; }
.is-style-lp-blue .wp-block-button__link:hover { background: #224A62; }
.is-style-lp-ghost .wp-block-button__link {
	background: #fff;
	color: #30698C;
	border: 1.5px solid #30698C;
	box-shadow: none;
}
.is-style-lp-ghost .wp-block-button__link:hover { background: #ECF9FF; }
.lp-btn-lg .wp-block-button__link { font-size: 17px; padding: 17px 28px; }
.wp-block-button.lp-btn-block,
.lp-btn-block .wp-block-button__link { display: block; width: 100%; }
:where(.lp, .editor-styles-wrapper) .lp-center .wp-block-buttons { justify-content: center; }

/* Paragraphes dans les mises en flex/grid : pas de marges parasites */
.lp-price-row p,
.lp-trust-item p,
.lp-pay-row p,
.lp-next-meta p,
.lp-cta-final-txt p,
.lp-pay-logos p { margin: 0; }
.lp-next-card .wp-block-buttons { margin-bottom: 2px; }

/* Tailles des logos insérés en blocs image */
.lp-trust-logo img { height: 34px; width: auto; }
.lp-pay-logo img { height: 30px; width: auto; }
.lp-pay-logo-lg img { height: 52px; width: auto; }
.lp-reviews-badge img { height: 74px; width: auto; margin-bottom: 8px; }
.lp-next-photo-wrap img { width: 100%; height: 190px; object-fit: cover; display: block; }

/* Lien téléphone de la carte sombre */
.lp-card-dark-telwrap { margin: 0; }

/* Note d'aide visible uniquement dans l'éditeur (masquée sur le site) */
.l4-landing-page .lp-editor-note { display: none; }
.editor-styles-wrapper .lp-editor-note {
	background: #FFF6E5;
	border: 1px dashed #E0A800;
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 13.5px;
	color: #7a5b00;
}

/* Accessibilité : focus clavier visible + reduced-motion */
.lp a:focus-visible,
.lp-btn:focus-visible {
	outline: 2px solid #F2703F;
	outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
	.lp-stickybar { transition: none; }
	.lp { scroll-behavior: auto; }
}

/* ============================================================
   Tablette (≥ 640 px) : grilles intermédiaires
   ============================================================ */
@media (min-width: 640px) and (max-width: 899px) {
	.lp section { padding: 36px 24px; }
	.lp h2 { font-size: 26px; }
	.lp-hero h1 { font-size: 36px; }
	/* Sections posées hors coque landing : 16px de marge latérale, c'est la
	   valeur du mobile — sur une tablette, les lignes filent d'un bord à l'autre. */
	section.lp { padding: 34px 24px; }
	.lp-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
	.lp-checks li:last-child { grid-column: 1 / -1; }
	.lp-packs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
	.lp-others-grid,
	.lp-questions-grid,
	.lp-licences-grid {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
		gap: 16px;
	}
	.lp-trust-card { grid-template-columns: 1fr 1fr; }
	.lp-reviews-cards { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
	.lp-review { width: auto; }
	.lp-booking-aside { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
	.lp-booking-aside .lp-card-dark { grid-column: 1 / -1; }
}

/* ============================================================
   Desktop (≥ 900 px)
   ============================================================ */
@media (min-width: 900px) {
	.lp-desktop-only { display: revert !important; }
	.lp-mobile-only { display: none !important; }
	/* Pas de max-width sur .lp lui-même : les fonds de section (topbar, header,
	   sections, footer) doivent aller jusqu'au bord de l'écran sur les grands
	   écrans. La largeur de lecture (1400px) est appliquée en padding
	   gauche/droite calculé (évite d'ajouter un wrapper interne à chaque
	   section) ; les grilles internes (.lp-hero-grid, .lp-booking-grid…)
	   gardent leur propre max-width plus étroit pour le contenu. */
	/* Hors coque landing : `.lp section` ne matche pas (la page n'a pas
	   l'enveloppe `.lp`), et le rembourrage latéral se calcule sur une section
	   qui n'occupe pas toute la largeur de l'écran — d'où un minimum plus
	   étroit. Écrite AVANT la règle de la coque : à spécificité égale, c'est
	   la dernière qui l'emporte, donc la landing garde la sienne. */
	section.lp { padding: 48px max(24px, calc(50% - 700px)); }
	.lp section { padding: 56px max(40px, calc(50% - 700px)); }
	.lp h2 { font-size: 32px; }
	.lp-section-sub { font-size: 17px; margin-bottom: 30px; }

	/* Promo centrée sur l'écran ; le téléphone est sorti du flux (sinon il
	   repousse la promo tout à droite où on ne la voit plus). */
	.lp-topbar { position: relative; justify-content: center; padding: 0 max(40px, calc(50% - 700px)); min-height: 42px; font-size: 13px; }
	.lp-topbar-tel {
		display: block;
		position: absolute;
		right: max(40px, calc(50% - 700px));
		top: 50%;
		transform: translateY(-50%);
	}
	.lp-header { padding: 14px max(40px, calc(50% - 700px)); }
	.lp-logo { height: 44px; }
	.lp-header-tel { border: 0; padding: 0; min-height: 0; font-size: 18px; }

	.lp-hero { padding: 52px 40px 56px; }
	.lp-hero-grid {
		display: grid;
		grid-template-columns: 1fr 400px;
		gap: 48px;
		align-items: start;
	}
	.lp-hero h1 { font-size: 46px; line-height: 1.12; letter-spacing: -.01em; margin-bottom: 14px; }
	.lp-hero-sub { font-size: 19px; margin-bottom: 26px; }
	.lp-kicker {
		font-size: 11.5px;
		background: #fff;
		border: 1px solid #ACC3D1;
		padding: 7px 11px;
		border-radius: 4px;
		margin-bottom: 18px;
	}
	.lp-price { font-size: 44px; }
	.lp-price-old { font-size: 17px; }
	.lp-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; max-width: 600px; margin-bottom: 14px; }
	.lp-checks li { font-size: 15px; }
	.lp-checks li:last-child { grid-column: 1 / -1; }
	.lp-trust-card { grid-template-columns: 1fr 1fr; gap: 18px 26px; padding: 20px 22px; margin-top: 24px; }
	.lp-trust-item { font-size: 13.5px; }
	.lp-trust-item img { height: 34px; }
	.lp-trust-sep { padding-top: 16px; }
	.lp-trust-big { font-size: 24px; }
	.lp-next-body { padding: 22px 24px 24px; }
	.lp-next-date { font-size: 30px; }

	.lp-booking-grid { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; }
	.lp-booking-main { padding: 26px 26px 30px; }
	.lp-booking-aside { margin-top: 0; }
	.lp-card { padding: 24px; }
	.lp-card h3 { font-size: 18px; }

	/* auto-fit : deux offres gardent leurs deux colonnes (les pistes vides
	   s'effacent), trois offres (page HACCP) passent sur trois colonnes. */
	.lp-packs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: stretch; }
	.lp-pack { padding: 30px; }
	.lp-pack h3 { font-size: 22px; }
	.lp-pack-flag { top: -13px; left: 30px; font-size: 11.5px; padding: 7px 11px; }

	.lp-others-grid, .lp-questions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
	.lp-licences-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
	.lp-questions-grid .lp-card { padding: 26px 24px; }
	.lp-questions-grid .lp-card h3 { font-size: 19px; }

	.lp-reviews-grid { display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: start; }
	.lp-reviews-score { margin-bottom: 0; }
	.lp-reviews-cards { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
	.lp-review { width: auto; }

	.lp-programme h2 { font-size: 32px; }
	.lp-programme p { font-size: 17px; }

	.lp-pourquoi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
	.lp-concerne-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
	.lp-steps { gap: 12px; }
	.lp-step { padding: 17px 20px; gap: 16px; }
	.lp-step::before { font-size: 14px; }
	.lp-step p { font-size: 15px; }
	.lp-alert { padding: 24px 26px; }
	.lp-alert p { font-size: 15px; }
	.lp-col p { font-size: 16px; }
	.lp-card-check { padding: 26px 28px; }
	.lp-cta-final { padding: 44px max(40px, calc(50% - 700px)); }
	.lp-cta-final-inner { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
	.lp-cta-final-title { font-size: 26px; }
	.lp-footer { flex-direction: row; justify-content: space-between; padding: 34px max(40px, calc(50% - 700px)); font-size: 13px; }
}

/* ============================================================
   Gabarit « page formation » (maquettes Aventum, septembre 2026)
   Blocs 02 à 16 de INSTRUCTIONS-AGENCE.html — compositions dans
   inc/formation-patterns.php, blocs dynamiques dans
   inc/formation-blocks.php. Mobile d'abord, comme le reste de la feuille.
   ============================================================ */

/* Titres de section : à gauche dans les sections de lecture, centrés dans
   les sections « vitrine » (choisir, proches, parcours, cross-sell) — ce que
   fait déjà `.lp h2`. */
:is(section.lp-contenu, section.lp-modules, section.lp-pratique, section.lp-faq, section.lp-lieux, section.lp-liens, section.lp-devis) h2 { text-align: left; }
section.lp :is(h2, h3) { text-wrap: pretty; }
/* Titres bleu nuit (#183546) dans le gabarit, là où la landing les veut bleu
   primaire (`.lp h2`). La section sombre (choisir) garde ses titres blancs. */
section.lp:is(.lp-fhero, .lp-trust, .lp-contenu, .lp-devis, .lp-proches, .lp-modules, .lp-parcours, .lp-lieux, .lp-pratique, .lp-faq, .lp-liens, .lp-xsell) :is(h1, h2, h3) { color: #183546; }
/* Sections partagées avec la landing (réservation, offres, avis) : bleu nuit
   aussi, mais seulement hors du modèle Landing SEA, qui garde son bleu. */
body:not(.l4-landing-page) section.lp:is(.lp-booking, .lp-packs, .lp-reviews) :is(h2, h3) { color: #183546; }
.lp-narrow { max-width: var(--lp-lecture); margin: 0 auto; }

/* Ancres : sous le header du site ET la barre de navigation de la page.
   --lp-anchor-offset est mesuré par assets/js/formation.js ; sans script, la
   valeur par défaut couvre header (72 px) + barre (56 px). */
section.lp[id], .lp [id] { scroll-margin-top: var(--lp-anchor-offset, 140px); }

/* ---------- 02. Ouverture (fond blanc) ---------- */
.lp-fhero { background: #fff; }
.lp-fhero-grid { max-width: var(--lp-largeur); margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.lp-fhero h1 { margin: 0 0 10px; font-size: 29px; line-height: 1.15; font-weight: 600; color: #183546; }
.lp-fhero .lp-price-row { margin-bottom: 18px; }
.lp-fhero .lp-checks { margin-bottom: 20px; }
.lp-fhero .lp-hero-aside { display: flex; flex-direction: column; gap: 14px; }
/* Sans visuel, la carte « prochaine session » garde ses marges intérieures. */
.lp-fhero .lp-next-card > .lp-next-label:first-child { margin-top: 0; }
.lp-fhero .lp-next-card:not(:has(.lp-next-body)) { padding: 18px; }

/* Encart « en bref » / sessions annoncées (formations sur devis) */
.lp-aside-info { background: #F7FDFF; border: 1px solid #ACC3D1; border-radius: 12px; }
.lp-aside-info p { color: #2c3f49; font-size: 15px; line-height: 1.6; }
.lp-aside-info .lp-next-label { color: #30698C; }
.lp-aside-info .lp-aside-small { margin: 12px 0 0; font-size: 13px; color: #5c7381; }
.lp-info-row { display: flex; align-items: center; gap: 12px; border: 1px solid #EFEFEF; border-radius: 10px; padding: 14px 16px; }
.lp-info-row figure { flex: none; }
.lp-info-row figure img { height: 36px; width: auto; }
.lp-info-row p { margin: 0; font-size: 13px; line-height: 1.45; color: #2c3f49; }

/* ---------- 03. Navigation de la page (bloc l4/lp-nav) ---------- */
.lp-nav {
	position: sticky;
	top: var(--lp-sticky-top, 60px);
	z-index: 40;
	background: #fff;
	border-top: 1px solid #EFEFEF;
	border-bottom: 1px solid #EFEFEF;
	box-shadow: 0 2px 8px rgba(24, 53, 70, .06);
}
body.admin-bar .lp-nav { top: var(--lp-sticky-top, 106px); }
.lp-nav-inner {
	max-width: var(--lp-largeur);
	margin: 0 auto;
	display: flex;
	gap: 22px;
	padding: 0 16px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.lp-nav-inner::-webkit-scrollbar { display: none; }
.lp .lp-nav-link {
	flex: none;
	scroll-snap-align: start;
	display: flex;
	align-items: center;
	min-height: 48px;
	font: 500 14px/1 Poppins, sans-serif;
	color: #2c3f49;
	text-decoration: none;
	border-bottom: 2.5px solid transparent;
	white-space: nowrap;
}
.lp .lp-nav-link:hover { color: #30698C; }
.lp .lp-nav-link.is-current { color: #183546; font-weight: 600; border-bottom-color: #30698C; }

/* ---------- 04. Bandeau de réassurance ---------- */
section.lp-trust { background: #ECF9FF; padding-top: 20px; padding-bottom: 20px; }
.lp-trust-grid { max-width: var(--lp-largeur); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.lp-trust-grid .lp-trust-item { font-size: 12.5px; }
.lp-trust-grid .lp-trust-item a { color: #30698C; }

/* ---------- 05. Contenu rédactionnel ---------- */
section.lp-contenu { background: #fff; }
section.lp-contenu + section.lp-contenu { padding-top: 0; }
.lp-contenu h2 { font-size: 22px; margin-bottom: 12px; }
.lp-contenu h3 { font-size: 18px; margin: 20px 0 8px; }
.lp-contenu p { margin: 0 0 14px; font-size: 16px; line-height: 1.7; color: #2c3f49; }
.lp-contenu .wp-block-buttons { margin-top: 6px; }

/* Listes du gabarit : une classe à poser sur un bloc Liste. */
.lp-dashes { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lp-dashes li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.6; color: inherit; }
.lp-dashes li::before { content: "—"; position: absolute; left: 0; color: #30698C; font-weight: 700; }
.lp-ticks { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lp-ticks li { position: relative; padding-left: 24px; font-size: 15px; line-height: 1.55; color: #2c3f49; }
.lp-ticks li::before { content: "✓"; position: absolute; left: 0; color: #30698C; font-weight: 700; }
.lp-check-cards { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.lp-check-cards li {
	position: relative;
	background: #F7FDFF;
	border: 1px solid #EFEFEF;
	border-radius: 7px;
	padding: 13px 15px 13px 40px;
	font-size: 15px;
	line-height: 1.45;
	color: #2c3f49;
}
.lp-check-cards li::before { content: "✓"; position: absolute; left: 15px; top: 13px; color: #30698C; font-weight: 700; }
.lp-muted { color: #5c7381 !important; }

/* ---------- 06b. Sessions annoncées + devis ---------- */
section.lp-devis { background: #fff; }
.lp-devis-grid { max-width: var(--lp-largeur); margin: 0 auto; }
.lp-form-card { background: #EFEFEF; border-radius: 11px; padding: 22px 18px; }
/* Variante sans fond : les mêmes champs, posés à même la section (fond blanc
   ou couleur choisie dans le réglage « Fond » de la section). */
.lp-form-plain { background: none; border-radius: 0; padding: 0; }
.lp-form-card h2 { font-size: 21px; margin-bottom: 12px; }
.lp-form-card p { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: #3d5563; max-width: 620px; }
.lp-form-card .lp-form-alt { margin: 14px 0 0; font-size: 13.5px; color: #5c7381; }
.lp-form-card .lp-form-alt a { font-weight: 700; text-decoration: none; }
/* Formulaire inséré (Gravity Forms, Contact Form 7, WPForms…) : libellé au-dessus,
   champs de 46 px au moins — cible tactile de 48 px avec la bordure. */
.lp-form-card label { display: block; font: 700 12.5px/1.3 Lato, sans-serif; color: #2c3f49; margin-bottom: 6px; }
.lp-form-card :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea) {
	width: 100%;
	min-height: 48px;
	border: 1px solid #ACC3D1;
	border-radius: 7px;
	background: #fff;
	padding: 10px 12px;
	font: 400 15px/1.4 Lato, sans-serif;
	color: #2c3f49;
}
.lp-form-card textarea { min-height: 96px; }
.lp-form-card :is(input[type="submit"], button[type="submit"]) {
	min-height: 48px;
	background: #F2703F;
	color: #fff;
	border: 0;
	border-radius: 7px;
	padding: 15px 26px;
	font: 600 16px/1 Poppins, sans-serif;
	cursor: pointer;
}
.lp-form-card :is(input[type="submit"], button[type="submit"]):hover { background: #e05f2e; }

/* ---------- 07. Offres : de une à trois cartes ---------- */
.lp-pack .lp-ticks { margin-bottom: 20px; }
.lp-pack .wp-block-buttons { margin-top: auto; }
.lp-pack .lp-price-row, .lp-pack .lp-offer-price { margin-bottom: 16px; }
.lp-offer-price { display: flex; align-items: baseline; gap: 9px; margin: 0 0 16px; font: 400 13.5px/1.3 Lato, sans-serif; color: #5c7381; }
.lp-offer-price strong { font: 600 28px/1 Poppins, sans-serif; color: #183546; }

/* ---------- 08. Pourquoi nous choisir + chiffres qualité ---------- */
section.lp-choisir { background: #224A62; }
.lp-choisir h2 { color: #fff; }
.lp-choisir .lp-section-sub { color: #ACC3D1; }
.lp-choisir-grid { max-width: var(--lp-largeur); margin: 0 auto; }
.lp-args { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.lp-arg { background: rgba(255, 255, 255, .07); border-radius: 10px; padding: 18px 20px; }
.lp-arg p { margin: 0; font-size: 15px; line-height: 1.55; color: #fff; }
.lp-arg b, .lp-arg strong { color: #fff; }
.lp-stats {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	border-top: 1px solid rgba(255, 255, 255, .18);
	padding-top: 24px;
	text-align: center;
}
.lp-stat { flex: 0 0 78%; scroll-snap-align: start; }
.lp-stat p { margin: 0; }
.lp-stat .lp-stat-value { font: 600 34px/1 Poppins, sans-serif; color: #fff; margin-bottom: 6px; }
.lp-stat .lp-stat-value small { font-size: .5em; }
.lp-stat .lp-stat-label { font: 700 14.5px/1.4 Lato, sans-serif; color: #fff; }
.lp-stat .lp-stat-period { margin-top: 5px; font: 400 12.5px/1.5 Lato, sans-serif; color: #8FB4CB; }
.lp-choisir .lp-center { margin-top: 26px; }

/* ---------- 10 et 15. Cartes formation (proches, cross-sell) ---------- */
section.lp-proches { background: #EAF0F4; }
section.lp-xsell { background: #EAF0F4; }
.lp-proches-grid { max-width: var(--lp-largeur); margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.lp-xsell-grid,
.lp-cards-row {
	max-width: var(--lp-largeur);
	margin: 0 auto;
	display: flex;
	gap: 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 4px;
}
.lp-xsell-grid > .lp-course,
.lp-cards-row > * { flex: 0 0 80%; scroll-snap-align: start; }
.lp-course { background: #fff; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.lp-course > .wp-block-image img,
.lp-course > figure img { width: 100%; height: 150px; object-fit: cover; display: block; }
.lp-course-body,
.lp-proches-grid .lp-course { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.lp-course h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.3; font-weight: 600; color: #183546; }
.lp-course p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.55; color: #5c7381; }
.lp-course .lp-course-meta,
.lp-course p.lp-course-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 12px; font: 700 13.5px/1.3 Lato, sans-serif; color: #30698C; }
.lp-course-meta p { margin: 0; font: inherit; color: inherit; }
.lp-course-meta .lp-tbd { color: #A7A7A7; }
.lp-course p:last-child { margin-bottom: 0; }
.lp-course .lp-link { margin-top: auto; display: inline-block; }
.lp-course p:has(> .lp-link) { margin-top: auto; }
.lp-proches .lp-center p { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: #2c3f49; }
.lp-proches .lp-center p a { font-weight: 700; text-decoration: none; }

/* ---------- 11. Programme en modules ---------- */
section.lp-modules { background: #fff; }
.lp-modules > .lp-narrow,
.lp-modules-inner { max-width: var(--lp-lecture); margin: 0 auto; }
.lp-modules-grid { max-width: var(--lp-lecture); margin: 0 auto; }
.lp-modules h2 { font-size: 22px; margin-bottom: 20px; }
section.lp-modules .lp-modules { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 22px; }
/* Fond blanc : sur une section colorée (bleu très clair, gris…), une carte
   transparente se confondait avec le fond. Sur fond foncé, elle redevient
   transparente (l4_lp_background_css). */
.lp-module { background: #fff; border: 1px solid #EFEFEF; border-radius: 10px; padding: 18px 20px; }
.lp-module h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.3; font-weight: 600; color: #183546; }
.lp-module p { margin: 0; font-size: 15px; line-height: 1.6; color: #3d5563; }
.lp-objectives { background: #ECF9FF; border-radius: 10px; padding: 20px 20px; margin-bottom: 22px; }
.lp-objectives h3 { margin: 0 0 12px; font-size: 17px; line-height: 1.3; font-weight: 600; color: #183546; }
.lp-objectives .lp-ticks { margin: 0; gap: 10px; }
.lp-objectives .lp-ticks li { font-size: 15.5px; line-height: 1.6; }
.lp-notes { display: grid; grid-template-columns: 1fr; gap: 18px; }
.lp-note { border-left: 3px solid #30698C; padding-left: 16px; }
.lp-note h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.3; font-weight: 600; color: #183546; }
.lp-note p { margin: 0; font-size: 15px; line-height: 1.7; color: #3d5563; }

/* ---------- Parcours en étapes (HACCP, SSCT) ---------- */
section.lp-parcours { background: #fff; }
.lp-parcours-grid { max-width: var(--lp-largeur); margin: 0 auto; }
.lp-stages { display: grid; grid-template-columns: 1fr; gap: 16px; }
.lp-stage { background: #fff; border: 1px solid #EFEFEF; border-radius: 11px; overflow: hidden; display: flex; flex-direction: column; padding-bottom: 22px; }
.lp-stage > .wp-block-image img,
.lp-stage > figure img { width: 100%; height: 130px; object-fit: cover; display: block; }
.lp-stage > :not(figure) { margin-left: 20px; margin-right: 20px; }
.lp-stage > :not(figure):first-child,
.lp-stage > figure + * { margin-top: 20px; }
.lp-stage-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.lp-stage-head h3 { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 600; color: #183546; }
.lp-stage-head p { margin: 0; font: 700 13px/1 Lato, sans-serif; color: #30698C; white-space: nowrap; }
.lp-stage .lp-dashes { margin-top: 0; margin-bottom: 0; gap: 9px; }
.lp-stage .lp-dashes li { font-size: 15px; line-height: 1.55; color: #3d5563; }
.lp-parcours .lp-parcours-note { margin: 20px auto 0; max-width: 820px; font-size: 15.5px; line-height: 1.7; color: #5c7381; text-align: center; }

/* ---------- Lieux de présentiel (remplace les cartes Google Maps) ---------- */
section.lp-lieux { background: #fff; }
.lp-lieux .lp-narrow,
.lp-lieux-grid { max-width: var(--lp-lecture); margin: 0 auto; }
.lp-lieux p { font-size: 16px; line-height: 1.7; color: #2c3f49; margin: 0 0 22px; max-width: 780px; }
.lp-places { display: flex; flex-direction: column; gap: 1px; background: #EFEFEF; border: 1px solid #EFEFEF; border-radius: 10px; overflow: hidden; }
.lp-place { background: #fff; padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; }
.lp-lieux .lp-place p { margin: 0; max-width: none; }
.lp-place > :nth-child(1) { font: 600 17px/1.3 Poppins, sans-serif; color: #183546; }
.lp-place > :nth-child(2) { grid-column: 1; grid-row: 2; font-size: 14.5px; line-height: 1.5; color: #3d5563; }
.lp-place > :nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }
.lp-place-soon { background: #F7FDFF; }
.lp-place-soon > :nth-child(1),
.lp-place-soon > :nth-child(2) { color: #767D80; }
.lp-place-soon .lp-link { border-bottom-color: #ACC3D1; }
.lp-place .lp-link { white-space: nowrap; }

/* ---------- 12. Informations pratiques : accordéon, onglets sur ordinateur ---------- */
section.lp-pratique { background: #fff; }
/* `section.` : même poids que `.lp h2` (marges à 0), déclaré après — sans quoi
   le titre restait collé à gauche pendant que les panneaux se centraient. */
section.lp-pratique > * { max-width: var(--lp-lecture); margin-left: auto; margin-right: auto; }
.lp-pratique h2 { font-size: 22px; margin-bottom: 18px; }
.lp-pratique details { border-bottom: 1px solid #EFEFEF; }
.lp-pratique details:first-of-type { border-top: 1px solid #EFEFEF; }
.lp-pratique summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 52px;
	padding: 12px 0;
	font: 600 15.5px/1.35 Poppins, sans-serif;
	color: #183546;
}
.lp-pratique summary::-webkit-details-marker { display: none; }
.lp-pratique summary::after { content: "+"; flex: none; font: 400 22px/1 Lato, sans-serif; color: #30698C; }
.lp-pratique details[open] > summary::after { content: "−"; }
.lp-pratique details > :not(summary) { margin-top: 0; }
.lp-pratique details[open] { padding-bottom: 18px; }
.lp-pratique details h3 { margin: 12px 0 8px; font-size: 16px; line-height: 1.3; font-weight: 600; color: #183546; }
.lp-pratique details h3:first-of-type { margin-top: 0; }
.lp-pratique details p { margin: 0 0 12px; font-size: 15px; line-height: 1.65; color: #3d5563; }
.lp-pratique .lp-dashes li { font-size: 15px; color: #3d5563; }
.lp-two-cols { display: grid; grid-template-columns: 1fr; gap: 16px 34px; }
.lp-two-cols > * { min-width: 0; }
.lp-version { margin-top: 22px !important; margin-bottom: 0 !important; font: 400 12.5px/1.5 Lato, sans-serif !important; color: #A7A7A7 !important; }

/* Onglets, posés par assets/js/formation.js sur ordinateur seulement. */
.lp-tabs { display: none; }
.lp-tabs-on .lp-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid #EFEFEF; margin-bottom: 24px; }
.lp-tab {
	appearance: none;
	background: none;
	border: 0;
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
	padding: 13px 16px;
	min-height: 48px;
	cursor: pointer;
	font: 500 14.5px/1 Poppins, sans-serif;
	color: #5c7381;
}
.lp-tab:hover { color: #183546; }
.lp-tab[aria-selected="true"] { font-weight: 600; color: #183546; border-bottom-color: #30698C; background: #F7FDFF; }
.lp-tab:focus-visible { outline: 2px solid #F2703F; outline-offset: -2px; }
.lp-tabs-on details { border: 0 !important; padding-bottom: 0 !important; }
.lp-tabs-on details > summary { display: none; }
.lp-tabs-on details:not([open]) { display: none; }

/* ---------- 13. Questions fréquentes ---------- */
section.lp-faq { background: #fff; }
section.lp-faq > * { max-width: var(--lp-lecture); margin-left: auto; margin-right: auto; }
.lp-faq h2 { font-size: 22px; margin-bottom: 14px; }
.lp-faq .l4-faq-bloc { margin-top: 0; }

/* ---------- 14. Articles liés ---------- */
section.lp-liens { background: #fff; }
section.lp-liens > * { max-width: var(--lp-lecture); margin-left: auto; margin-right: auto; }
.lp-liens h2 { font-size: 20px; margin-bottom: 14px; }
.lp-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0 22px; }
.lp-links li { border-bottom: 1px solid #ACC3D1; font-size: 15.5px; line-height: 1.5; }
.lp-links li a { display: flex; align-items: center; min-height: 48px; padding: 8px 0; text-decoration: none; }

/* ---------- 16. Rappel de conversion : ligne de session ---------- */
.lp-cta-final .l4-session-line.lp-cta-final-title,
.lp-cta-final .lp-cta-final-title { margin: 0 0 6px; }
.lp-cta-final .l4-session-line.lp-cta-final-sub { margin: 0; }

/* ---------- Barre d'action mobile (bloc l4/lp-actionbar) ---------- */
.lp-actionbar { font-family: Lato, system-ui, sans-serif; }
.lp-actionbar .lp-btn { display: flex; align-items: center; justify-content: center; min-height: 48px; }
@media (max-width: 899px) {
	/* Réserve la hauteur de la barre sous le pied de page. */
	body:has(.lp-actionbar) { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
/* Aperçu dans l'éditeur : dans le flux, pas collée à l'écran. */
.lp-stickybar--apercu { position: static; box-shadow: none; border: 1px solid #ACC3D1; border-radius: 8px; max-width: 420px; }
.editor-styles-wrapper .lp-nav { position: static; }

@media (prefers-reduced-motion: reduce) {
	.lp-actionbar { transition: none; }
}

/* ---------- Tablette ---------- */
@media (min-width: 640px) and (max-width: 899px) {
	.lp-trust-grid { grid-template-columns: repeat(4, 1fr); }
	.lp-check-cards { grid-template-columns: 1fr 1fr; }
	.lp-check-cards li:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.lp-args { display: grid; grid-template-columns: repeat(3, 1fr); }
	.lp-stat { flex-basis: 45%; }
	.lp-proches-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
	.lp-xsell-grid > .lp-course,
	.lp-cards-row > * { flex-basis: 46%; }
	section.lp-modules .lp-modules,
	.lp-notes,
	.lp-two-cols { grid-template-columns: 1fr 1fr; }
	.lp-links { grid-template-columns: 1fr 1fr; }
}

/* ---------- Ordinateur ---------- */
@media (min-width: 900px) {
	.lp-nav-inner { gap: 28px; padding: 0 40px; overflow: visible; }
	.lp .lp-nav-link { min-height: 56px; }
	body.admin-bar .lp-nav { top: var(--lp-sticky-top, 104px); }
	.lp-nav { top: var(--lp-sticky-top, 72px); }

	section.lp-fhero { padding-top: 32px; padding-bottom: 48px; }
	.lp-fhero-grid { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: start; }
	/* Sans visuel ni carte, le hero se recentre sur une colonne. */
	.lp-fhero-grid:not(:has(> .lp-hero-aside)) { grid-template-columns: 1fr; max-width: var(--lp-lecture); }
	.lp-fhero h1 { font-size: 44px; line-height: 1.12; letter-spacing: -.01em; margin-bottom: 12px; }
	.lp-fhero .lp-hero-sub { font-size: 19px; margin-bottom: 22px; }
	.lp-fhero .lp-checks { display: flex; flex-direction: column; gap: 11px; max-width: 620px; margin-bottom: 28px; }
	.lp-fhero .lp-checks li { font-size: 15.5px; }
	.lp-fhero .lp-next-date { font-size: 26px; }

	section.lp-trust { padding-top: 26px; padding-bottom: 26px; }
	.lp-trust-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
	.lp-trust-grid .lp-trust-item { font-size: 13.5px; }
	.lp-trust-grid .lp-trust-item img { height: 36px; }

	section.lp-contenu { padding-top: 52px; padding-bottom: 44px; }
	.lp-contenu h2,
	.lp-modules h2,
	.lp-pratique h2,
	.lp-faq h2,
	.lp-lieux h2 { font-size: 30px; line-height: 1.22; }
	.lp-contenu h2 { margin-bottom: 14px; }
	.lp-contenu p,
	.lp-contenu .lp-dashes li { font-size: 17px; }
	.lp-check-cards { grid-template-columns: 1fr 1fr; gap: 10px 20px; }
	.lp-check-cards li:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.lp-check-cards li { font-size: 15.5px; }

	.lp-devis-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
	.lp-form-card { padding: 26px 28px; }
	.lp-form-plain { padding: 0; }
	.lp-form-card h2 { font-size: 22px; }
	.lp-form-card .gform_fields,
	.lp-form-card .lp-form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

	.lp-args { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 34px; }
	.lp-arg { padding: 22px 24px; }
	.lp-arg p { font-size: 15.5px; }
	.lp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; overflow: visible; padding-top: 30px; }
	.lp-stat .lp-stat-value { font-size: 40px; }
	.lp-stat .lp-stat-label { font-size: 15px; }
	section.lp-choisir h2 { font-size: 28px; }
	.lp-choisir .lp-center { margin-top: 30px; }

	.lp-proches-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
	.lp-proches-grid .lp-course { padding: 22px 24px; }
	.lp-xsell-grid,
	.lp-cards-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; overflow: visible; }
	section.lp-xsell h2 { font-size: 26px; margin-bottom: 26px; }

	section.lp-modules .lp-modules { grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
	.lp-module { padding: 22px 24px; }
	.lp-module h3,
	.lp-objectives h3,
	.lp-note h3 { font-size: 18px; }
	.lp-objectives { padding: 26px 28px; margin-bottom: 26px; }
	.lp-objectives .lp-ticks li { font-size: 16px; }
	.lp-notes { grid-template-columns: 1fr 1fr; gap: 20px; }
	.lp-note p { font-size: 15.5px; }

	.lp-stages { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
	.lp-stage > :not(figure) { margin-left: 24px; margin-right: 24px; }
	.lp-stage-head h3 { font-size: 20px; }

	/* Première colonne à la largeur du plus long libellé de la liste (une
	   ville, ou une plage de dates « 1er au 24 mars 2027 »), et non plus 150 px
	   fixes où les dates passaient sur deux lignes. Toutes les lignes
	   partagent les mêmes colonnes (subgrid), donc les adresses et les liens
	   restent alignés d'une ligne à l'autre. Plafond de 300 px : au-delà, le
	   libellé revient à la ligne. */
	.lp-places { display: grid; grid-template-columns: fit-content(300px) 1fr auto; row-gap: 1px; column-gap: 0; }
	.lp-places > .block-list-appender { grid-column: 1 / -1; }
	.lp-place { grid-column: 1 / -1; grid-template-columns: subgrid; gap: 20px; padding: 18px 22px; }
	.lp-place > :nth-child(2) { grid-column: 2; grid-row: 1; font-size: 15px; }
	.lp-place > :nth-child(3) { grid-column: 3; grid-row: 1; }
	.lp-place > :nth-child(1) { font-size: 18px; }
	.lp-lieux p { font-size: 17px; }

	.lp-pratique h2 { margin-bottom: 22px; }
	.lp-two-cols { grid-template-columns: 1fr 1fr; gap: 26px 34px; }
	.lp-pratique details p { font-size: 15.5px; }
	.lp-pratique details h3 { font-size: 17px; }

	section.lp-liens { padding-top: 44px; padding-bottom: 44px; }
	.lp-liens h2 { font-size: 24px; margin-bottom: 18px; }
	.lp-links { grid-template-columns: repeat(3, 1fr); }
	.lp-links li a { min-height: 44px; }
}

/* Ligne « places + prix » vide (Amelia muette : les deux blocs « Info session »
   ne rendent rien) — pas de bandeau bleu vide dans la carte. */
.lp-next-meta:not(:has(*)) { display: none; }

/* Mobile : le texte du rappel d'action est centré, son bouton aussi. */
@media (max-width: 899px) {
	.lp-cta-final-inner .wp-block-buttons { justify-content: center; }
}
/* Petits écrans : dans le bandeau de réassurance à deux colonnes, le logo
   passe au-dessus du texte — côte à côte, le texte tenait sur 60 px. */
@media (max-width: 639px) {
	/* Une case par ligne, le logo à gauche dans un emplacement de largeur fixe,
	   le texte à droite : les logos n'ont pas les mêmes proportions (Qualiopi
	   carré, drapeau très large, pictogramme partenaire), et empilés logo
	   au-dessus du texte sur deux colonnes, chaque case partait à sa hauteur.
	   Alignés dans la même colonne, les textes commencent tous au même endroit. */
	.lp-trust-grid { grid-template-columns: 1fr; gap: 12px; }
	.lp-trust-grid .lp-trust-item { flex-direction: row; align-items: center; gap: 12px; }
	.lp-trust-grid .lp-trust-item > :first-child:is(figure, .wp-block-image, img, .lp-trust-big) {
		flex: 0 0 64px;
		display: flex;
		justify-content: center;
		margin: 0;
	}
	.lp-trust-grid .lp-trust-item > :first-child img {
		width: auto;
		height: auto;
		max-width: 64px;
		max-height: 34px;
		object-fit: contain;
	}
	.lp-trust-grid .lp-trust-item > .lp-trust-big:first-child { font-size: 22px; }
}

/* ============================================================
   Grilles qui s'adaptent au nombre d'éléments (ordinateur)

   Les grilles avaient un nombre de colonnes fixe : un quatrième module dans
   une grille de deux restait seul à gauche, trois cases dans le bandeau de
   réassurance en laissaient une vide à droite. Elles comptent désormais
   leurs éléments (sélecteurs :has, donc aussi dans l'éditeur, en direct) :

   - --lp-n   : nombre d'éléments réellement présents (5 = « 5 ou plus ») ;
   - --lp-max : colonnes au plus, propre à chaque grille ;
   - colonnes = le plus petit des deux, et la dernière rangée incomplète est
     **centrée** (flex + justify-content) au lieu de rester calée à gauche.

   Un élément seul ne s'étire pas sur toute la largeur : --lp-item-max le
   borne (une offre de 1 200 px de large ne se lit plus).
   ============================================================ */
@media (min-width: 900px) {
	:is(.lp-packs-grid, .lp-trust-grid, .lp-args, .lp-stats, .lp-proches-grid, .lp-xsell-grid, .lp-cards-row, .lp-stages, section.lp-modules .lp-modules, .lp-notes, .lp-others-grid, .lp-questions-grid, .lp-licences-grid) {
		display: flex;
		/* Plusieurs grilles sont en colonne sur mobile (offres, formations
		   proches, arguments…) : sans ce retour à la ligne, elles restaient
		   empilées sur ordinateur. */
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		align-items: stretch;
		gap: var(--lp-gap, 20px);
		overflow: visible;
		--lp-cols: min(var(--lp-n, var(--lp-max, 3)), var(--lp-max, 3));
	}
	:is(.lp-packs-grid, .lp-trust-grid, .lp-args, .lp-stats, .lp-proches-grid, .lp-xsell-grid, .lp-cards-row, .lp-stages, section.lp-modules .lp-modules, .lp-notes, .lp-others-grid, .lp-questions-grid, .lp-licences-grid) > :not(.block-list-appender) {
		flex: 0 0 calc((100% - (var(--lp-cols) - 1) * var(--lp-gap, 20px)) / var(--lp-cols));
		max-width: var(--lp-item-max, none);
		min-width: 0;
		margin: 0;
	}

	.lp-packs-grid { --lp-max: 3; --lp-gap: 24px; --lp-item-max: 580px; }
	.lp-trust-grid { --lp-max: 4; --lp-gap: 20px; }
	.lp-args { --lp-max: 3; --lp-gap: 22px; }
	.lp-stats { --lp-max: 3; --lp-gap: 22px; }
	.lp-proches-grid { --lp-max: 3; --lp-gap: 18px; --lp-item-max: 420px; }
	.lp-xsell-grid,
	.lp-cards-row { --lp-max: 3; --lp-gap: 20px; --lp-item-max: 420px; }
	.lp-stages { --lp-max: 3; --lp-gap: 22px; --lp-item-max: 420px; }
	section.lp-modules .lp-modules { --lp-max: 2; --lp-gap: 20px; }
	.lp-notes { --lp-max: 2; --lp-gap: 20px; }
	.lp-others-grid,
	.lp-questions-grid { --lp-max: 3; --lp-gap: 20px; }
	.lp-licences-grid { --lp-max: 4; --lp-gap: 16px; }

	/* Le compte. `:not(.block-list-appender)` : dans l'éditeur, le bouton « + »
	   d'un conteneur sélectionné est un enfant de plus — il ne doit pas faire
	   passer la grille de 3 à 4 colonnes le temps d'un clic. Écrit sans
	   imbrication CSS : le minifieur d'Autoptimize ne la connaît pas. */
	:is(.lp-packs-grid, .lp-trust-grid, .lp-args, .lp-stats, .lp-proches-grid, .lp-xsell-grid, .lp-cards-row, .lp-stages, section.lp-modules .lp-modules, .lp-notes, .lp-others-grid, .lp-questions-grid, .lp-licences-grid):has(> :nth-child(1 of :not(.block-list-appender)):nth-last-child(1 of :not(.block-list-appender))) { --lp-n: 1; }
	:is(.lp-packs-grid, .lp-trust-grid, .lp-args, .lp-stats, .lp-proches-grid, .lp-xsell-grid, .lp-cards-row, .lp-stages, section.lp-modules .lp-modules, .lp-notes, .lp-others-grid, .lp-questions-grid, .lp-licences-grid):has(> :nth-child(2 of :not(.block-list-appender)):nth-last-child(1 of :not(.block-list-appender))) { --lp-n: 2; }
	:is(.lp-packs-grid, .lp-trust-grid, .lp-args, .lp-stats, .lp-proches-grid, .lp-xsell-grid, .lp-cards-row, .lp-stages, section.lp-modules .lp-modules, .lp-notes, .lp-others-grid, .lp-questions-grid, .lp-licences-grid):has(> :nth-child(3 of :not(.block-list-appender)):nth-last-child(1 of :not(.block-list-appender))) { --lp-n: 3; }
	:is(.lp-packs-grid, .lp-trust-grid, .lp-args, .lp-stats, .lp-proches-grid, .lp-xsell-grid, .lp-cards-row, .lp-stages, section.lp-modules .lp-modules, .lp-notes, .lp-others-grid, .lp-questions-grid, .lp-licences-grid):has(> :nth-child(4 of :not(.block-list-appender)):nth-last-child(1 of :not(.block-list-appender))) { --lp-n: 4; }
	:is(.lp-packs-grid, .lp-trust-grid, .lp-args, .lp-stats, .lp-proches-grid, .lp-xsell-grid, .lp-cards-row, .lp-stages, section.lp-modules .lp-modules, .lp-notes, .lp-others-grid, .lp-questions-grid, .lp-licences-grid):has(> :nth-child(5 of :not(.block-list-appender))) { --lp-n: 5; }

	/* Grilles montées en bloc Groupe core (première landing SEA, composition
	   d'origine) : thème classique sans theme.json, WordPress glisse un
	   `.wp-block-group__inner-container` entre la grille et ses cartes. Il est
	   en `display: contents` (plus haut), donc les cartes sont bien les
	   éléments flex — mais les règles ci-dessus, en `>`, visaient ce seul
	   enveloppe : largeur de colonne jamais posée, compte bloqué à 1. Cartes à
	   la largeur de leur texte, empilées et décalées. On refait le compte et la
	   largeur un cran plus bas ; --lp-cols est recalculé sur l'enveloppe, sinon
	   il hériterait de la valeur figée sur la grille. */
	:is(.lp-packs-grid, .lp-trust-grid, .lp-args, .lp-stats, .lp-proches-grid, .lp-xsell-grid, .lp-cards-row, .lp-stages, section.lp-modules .lp-modules, .lp-notes, .lp-others-grid, .lp-questions-grid, .lp-licences-grid) > .wp-block-group__inner-container {
		--lp-cols: min(var(--lp-n, var(--lp-max, 3)), var(--lp-max, 3));
	}
	:is(.lp-packs-grid, .lp-trust-grid, .lp-args, .lp-stats, .lp-proches-grid, .lp-xsell-grid, .lp-cards-row, .lp-stages, section.lp-modules .lp-modules, .lp-notes, .lp-others-grid, .lp-questions-grid, .lp-licences-grid) > .wp-block-group__inner-container > :not(.block-list-appender) {
		flex: 0 0 calc((100% - (var(--lp-cols) - 1) * var(--lp-gap, 20px)) / var(--lp-cols));
		max-width: var(--lp-item-max, none);
		min-width: 0;
		margin: 0;
	}
	:is(.lp-packs-grid, .lp-trust-grid, .lp-args, .lp-stats, .lp-proches-grid, .lp-xsell-grid, .lp-cards-row, .lp-stages, section.lp-modules .lp-modules, .lp-notes, .lp-others-grid, .lp-questions-grid, .lp-licences-grid) > .wp-block-group__inner-container:has(> :nth-child(1 of :not(.block-list-appender)):nth-last-child(1 of :not(.block-list-appender))) { --lp-n: 1; }
	:is(.lp-packs-grid, .lp-trust-grid, .lp-args, .lp-stats, .lp-proches-grid, .lp-xsell-grid, .lp-cards-row, .lp-stages, section.lp-modules .lp-modules, .lp-notes, .lp-others-grid, .lp-questions-grid, .lp-licences-grid) > .wp-block-group__inner-container:has(> :nth-child(2 of :not(.block-list-appender)):nth-last-child(1 of :not(.block-list-appender))) { --lp-n: 2; }
	:is(.lp-packs-grid, .lp-trust-grid, .lp-args, .lp-stats, .lp-proches-grid, .lp-xsell-grid, .lp-cards-row, .lp-stages, section.lp-modules .lp-modules, .lp-notes, .lp-others-grid, .lp-questions-grid, .lp-licences-grid) > .wp-block-group__inner-container:has(> :nth-child(3 of :not(.block-list-appender)):nth-last-child(1 of :not(.block-list-appender))) { --lp-n: 3; }
	:is(.lp-packs-grid, .lp-trust-grid, .lp-args, .lp-stats, .lp-proches-grid, .lp-xsell-grid, .lp-cards-row, .lp-stages, section.lp-modules .lp-modules, .lp-notes, .lp-others-grid, .lp-questions-grid, .lp-licences-grid) > .wp-block-group__inner-container:has(> :nth-child(4 of :not(.block-list-appender)):nth-last-child(1 of :not(.block-list-appender))) { --lp-n: 4; }
	:is(.lp-packs-grid, .lp-trust-grid, .lp-args, .lp-stats, .lp-proches-grid, .lp-xsell-grid, .lp-cards-row, .lp-stages, section.lp-modules .lp-modules, .lp-notes, .lp-others-grid, .lp-questions-grid, .lp-licences-grid) > .wp-block-group__inner-container:has(> :nth-child(5 of :not(.block-list-appender))) { --lp-n: 5; }
}

/* ============================================================
   Fond de section sur toute la largeur de l'écran

   Sur une page ordinaire, la section vit dans le conteneur du thème : son
   fond s'arrêtait aux bords du contenu, en bandeau. `border-image` avec un
   débord horizontal peint la couleur jusqu'aux bords de l'écran **sans rien
   changer à la mise en page** : pas de largeur en vw (qui ferait apparaître
   un ascenseur horizontal), pas de position ni de contexte d'empilement —
   la popup d'Amelia, rendue dans la section d'inscription, ne doit pas se
   retrouver sous la barre collante.

   La couleur vient de --lp-bg : celle de la variante (ci-dessous), ou celle
   choisie dans le réglage « Fond » de la section (classes lp-bg-*, générées
   par inc/landing-sections.php). Pas dans l'éditeur : le débord y passerait
   sous les panneaux latéraux.
   ============================================================ */
section.lp:is(.lp-hero, .lp-trust, .lp-concerne, .lp-reviews) { --lp-bg: #ECF9FF; }
section.lp.lp-booking { --lp-bg: #EFEFEF; }
section.lp:is(.lp-questions, .lp-licences, .lp-proches, .lp-xsell) { --lp-bg: #EAF0F4; }
section.lp.lp-choisir { --lp-bg: #224A62; }
/* Filet des notes : le bleu de marque disparaît sur un fond foncé. */
section.lp.lp-choisir .lp-note { border-left-color: #8FB4CB; }
section.lp.lp-cta-final { --lp-bg: #183546; }

/* Seulement les sections qui ont un fond : border-image remplace les bordures
   (le filet de .lp-others, par exemple). #wrap d'OceanWP (overflow:hidden,
   pleine largeur) arrête le débord au bord de l'écran. */
body:not(.wp-admin) section.lp:is(.lp-hero, .lp-trust, .lp-concerne, .lp-reviews, .lp-booking, .lp-questions, .lp-licences, .lp-proches, .lp-xsell, .lp-choisir, .lp-cta-final, [class*="lp-bg-"]) {
	border-image: conic-gradient(var(--lp-bg) 0 0) 0 fill / 0 / 0 100vmax;
}

/* ============================================================
   Espacement entre les blocs empilés d'une section

   Les écarts tenaient à des marges posées SOUS certains blocs (modules,
   encart objectifs, arguments…) et pas sous d'autres (notes, paragraphe
   centré) : dès qu'on changeait l'ordre dans l'éditeur, deux blocs se
   touchaient. Les grilles de section qui empilent des blocs les espacent
   désormais toutes de la même valeur, quel que soit l'ordre :
   --lp-pile entre deux blocs, --lp-titre sous un titre suivi de son chapô.
   ============================================================ */
:root {
	--lp-pile: 24px;
	--lp-titre: 10px;
}
@media (min-width: 900px) {
	:root { --lp-pile: 32px; --lp-titre: 12px; }
}
section.lp :is(.lp-modules-grid, .lp-parcours-grid, .lp-choisir-grid, .lp-lieux-grid, .lp-devis-grid) {
	display: flex;
	flex-direction: column;
	gap: var(--lp-pile);
}
section.lp :is(.lp-modules-grid, .lp-parcours-grid, .lp-choisir-grid, .lp-lieux-grid, .lp-devis-grid) > * {
	margin-top: 0;
	margin-bottom: 0;
}
/* Un titre et son chapô restent groupés : le chapô remonte sous le titre. */
section.lp :is(.lp-modules-grid, .lp-parcours-grid, .lp-choisir-grid, .lp-lieux-grid, .lp-devis-grid) > :is(h2, h3) + :is(p, .lp-section-sub) {
	margin-top: calc(var(--lp-titre) - var(--lp-pile));
}

/* Notes : jusqu'à trois côte à côte. Quatre → deux rangées de deux (3 + 1
   laisserait une note seule) ; cinq et plus → rangées de trois, la dernière
   centrée. */
@media (min-width: 900px) {
	.lp-notes { --lp-max: 3; }
	.lp-notes:has(> :nth-child(4 of :not(.block-list-appender)):nth-last-child(1 of :not(.block-list-appender))) { --lp-max: 2; }
	/* Filets alignés en haut, même si une note est plus longue. */
	.lp-notes { align-items: flex-start; }
}
