/* Newsletter (maquette 19) — templates/page-newsletter.php + patterns/page-newsletter.php. Échelle : cote maquette × 1,47. */

@media (min-width: 761px) {
	.tpl-newsletter .pg-hero__inner { min-height: 360px; }
	/* Titre plus grand et plus espacé que celui des pages légales (maquette 19) */
	.tpl-newsletter .pg-hero h1 { font-size: 62px; line-height: 1.02; letter-spacing: .03em; }
}
/* Largeur du chapô : coupures de la maquette (« directement » en fin de 2e ligne) entre 549 et 552 px */
.tpl-newsletter .pg-hero h1 + p { max-width: 550px; }
.tpl-newsletter .pg-hero h1 + p strong { font-weight: 600; }

.nl-content > * { margin-block: 0; }
.tpl-newsletter .nl-banner { margin-top: 12px; }
/* Bandeau : titre plus petit qu'en pages légales, sous-titre sur une ligne, champ et bouton de 50 px (maquette 19) */
@media (min-width: 1025px) {
	.tpl-newsletter .nl-banner__inner { grid-template-columns: auto 1fr minmax(320px, 540px); }
	.tpl-newsletter .nl-banner__title { font-size: 20px; }
	.tpl-newsletter .nl-banner p { font-size: 14.5px; }
	.tpl-newsletter .nl-banner .nl-form :is(input, .btn) { min-height: 50px; }
}
.nl-content strong { color: var(--ink); }

/* Avantages (liste .nl-perks) */
/* Largeurs inégales comme la maquette (cartes de 210, 192, 217 et 203 px) ; retour à la ligne du texte saisi dans le contenu */
.nl-perks { display: grid; grid-template-columns: 1.03fr .94fr 1.06fr .99fr; gap: 18px; margin-top: 26px !important; }
.nl-perks li { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 106px; padding: 12px 6px 12px 104px; border-radius: 4px; background: #fcf1f1; font-size: 15px; line-height: 1.38; color: #555; }
.nl-perks strong { display: block; margin-bottom: 8px; font-size: 16px; letter-spacing: -.01em; font-weight: 700; line-height: 1.25; }
/* Texte plus près des pictos larges (enveloppe, cloche), comme la maquette */
.nl-perks li:nth-child(n+3) { padding-left: 92px; }
.nl-perks .cp-ico { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); font-size: 58px; }

/* Deux colonnes : formulaire | aperçu + pourquoi */
.nl-content .wp-block-columns.nl-main { display: grid; grid-template-columns: minmax(0, .476fr) minmax(0, .524fr); gap: 20px; margin-top: 21px !important; margin-bottom: 0; align-items: stretch; }
.nl-main > .wp-block-column { min-width: 0; display: flex; flex-direction: column; }
.nl-main > .wp-block-column > * + * { margin-top: 20px; }

.nl-head h2 { margin: 0; padding-left: 26px; font-size: 22.5px; letter-spacing: .02em; }
.nl-head h2::before { top: 0; width: 11px; }
/* Titres de la colonne de droite et de la FAQ plus petits que celui du formulaire (maquette) ; sous-titre aligné sur le texte du titre */
:is(.nl-edition-wrap, .nl-why, .nl-faq) .nl-head h2 { padding-left: 20px; font-size: 19.5px; letter-spacing: .01em; }
.nl-why .nl-head h2 { font-size: 19px; }
.nl-faq .nl-head h2 { font-size: 18px; }
:is(.nl-edition-wrap, .nl-why, .nl-faq) .nl-head h2::before { top: -1px; bottom: -1px; width: 8px; }
:is(.nl-edition-wrap, .nl-faq) .nl-head p { margin-left: 20px; }
.nl-head > * { margin: 0; }

/* Carte formulaire */
/* Le formulaire est placé juste après le titre : champ e-mail en haut, bouton déplacé en bas (order), comme la maquette.
   La place libre (colonne de droite plus haute, pas de champ « nom ») est répartie avant chaque groupe (margin auto). */
.nl-signup-card { flex: 1; display: flex; flex-direction: column; padding: 12px 28px 12px; border-radius: 4px; background: #fef4f4; }
.nl-signup-card :is(.nl-signup, .nl-form) { display: contents; }
.nl-signup-card .nl-signup__label { margin: 0 0 7px; padding-top: 18px; }
.nl-signup-card .nl-form input { min-height: 49px; }
.nl-signup-card .nl-form .btn { order: 1; min-height: 50px; margin-top: auto; }
.nl-signup-card .nl-topics { margin-bottom: 31px; }
.nl-signup-card .nl-privacy { order: 2; }
:where(.nl-content) p { margin: 0; }
.nl-signup-card .nl-head h2 { margin-left: -28px; padding-left: 28px; }
.nl-label { margin-top: auto !important; padding-top: 21px; margin-bottom: 13px !important; font-size: 16px; font-weight: 700; color: var(--ink); }
.nl-hint { margin: -13px 0 15px !important; font-size: 15px; color: #666; }
.nl-formulas { display: grid; gap: 9px; }
.nl-formulas li { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 7px 16px 8px 64px; min-height: 62px; border: 1px solid #e3e3e3; border-radius: 4px; background: var(--white); font-size: 14.5px; line-height: 1.35; color: #666; }
.nl-formulas li:first-child { border-color: var(--red); background: #fff7f7; }
.nl-formulas strong { display: block; font-size: 16px; font-weight: 700; }
.nl-formulas .cp-ico { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; }
/* Colonnes inégales de la maquette (182, 195 et 167 px à 1400 px) */
.nl-topics { display: grid; grid-template-columns: minmax(0, 182fr) minmax(0, 195fr) minmax(0, 167fr); gap: 12px 0; }
.nl-topics li { position: relative; display: flex; align-items: center; min-height: 29px; padding-left: 40px; font-size: 15px; font-weight: 500; color: #222; }
.nl-topics li::before { content: ""; position: absolute; left: 0; top: 50%; width: 21px; height: 21px; margin-top: -10.5px; border-radius: 3px; background: var(--red); }
.nl-topics li::after { content: ""; position: absolute; left: 7.5px; top: 50%; width: 6px; height: 11px; margin-top: -8px; border: solid var(--white); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.nl-privacy { position: relative; margin-top: 12px !important; padding-left: 32px; font-size: 13.5px; line-height: 1.42; color: #6b6b6b; }
.nl-privacy .cp-ico { position: absolute; left: 4px; top: 3px; font-size: 18px; color: #8a8a8a; }

/* Aperçu d'une édition ([lecri24_newsletter_apercu]) */
.nl-edition-wrap .nl-head { margin-bottom: 14px; }
.nl-edition { padding: 18px 18px 22px; border: 1px solid #e3e3e3; border-radius: 4px; background: var(--white); }
.nl-edition__head { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 22px; margin-bottom: 18px; }
.nl-edition__brand { display: grid; justify-items: center; gap: 4px; }
.nl-edition__brand .logo-text { font-size: 46px; }
.nl-edition__brand small { font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.nl-edition__meta { position: relative; display: grid; margin: 0; padding-bottom: 16px; }
.nl-edition__meta strong { font-size: 22px; font-weight: 700; line-height: 1.2; }
.nl-edition__meta span { font-size: 17px; color: #333; }
.nl-edition__meta::before, .nl-edition__meta::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; border-radius: 2px; }
.nl-edition__meta::before { right: 12px; background: #e9e9e9; }
.nl-edition__meta::after { width: 44px; background: var(--red); }
.nl-edition__body { display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr); gap: 18px; }
.nl-edition__lead > * { margin: 0; }
.nl-edition__lead .ratio { border-radius: 3px; }
.nl-edition__kicker { margin-top: 12px !important; font-size: 14px; font-weight: 600; color: var(--red); }
.nl-edition__lead h3 { margin-top: 5px !important; font-size: 18px; line-height: 1.27; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nl-edition__excerpt { margin-top: 8px !important; font-size: 12.5px; line-height: 1.45; color: #6b6b6b; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nl-edition__lead .btn { margin-top: 14px; min-height: 36px; padding: 0 16px; border-radius: 4px; font-size: 14px; }
.nl-edition__list { display: grid; align-content: start; gap: 16px; }
.nl-edition__list li { display: grid; grid-template-columns: 106px minmax(0, 1fr); gap: 14px; align-items: center; }
.nl-edition__thumb { position: relative; display: block; aspect-ratio: 1.6; overflow: hidden; border-radius: 3px; background: var(--surface); }
.nl-edition__thumb img, .nl-edition__thumb .img-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nl-edition__thumb .play { width: 30px; height: 30px; margin: -15px 0 0 -15px; background: var(--red); color: var(--white); }
.nl-edition__thumb .play .icon { font-size: 13px; margin-left: 2px; }
.nl-edition__list .badge { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.nl-edition__list h3 { font-size: 14.5px; line-height: 1.36; font-weight: 500; color: #222; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Pourquoi s'abonner */
.nl-why .nl-head { margin-bottom: 12px; }
.nl-why__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.nl-why__list li { display: flex; flex-direction: column; align-items: center; padding: 14px 5px 16px; border: 1px solid #e6e6e6; border-radius: 4px; background: var(--white); box-shadow: 0 1px 4px rgb(0 0 0 / .04); text-align: center; font-size: 14px; line-height: 1.5; color: #6b6b6b; }
.nl-why__list .cp-ico { margin-bottom: 10px; font-size: 50px; }
.nl-why__list strong { display: block; margin-bottom: 10px; font-size: 14.5px; font-weight: 700; letter-spacing: -.02em; line-height: 1.45; color: #222; }

/* Bandeau sombre (pleine largeur : fond prolongé par box-shadow, sans débordement horizontal) */
.nl-band { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: center; margin-top: 26px !important; padding-block: 10px; color: rgb(255 255 255 / .92); background: radial-gradient(48% 90% at 55% 50%, rgb(227 6 19 / .2), transparent 70%), #121619; box-shadow: 0 0 0 100vmax #121619; clip-path: inset(0 -100vmax); }
.nl-band__text > * { margin: 0; }
.nl-band h2 { position: relative; padding-left: 34px; color: var(--white); font: 700 31px/1.22 var(--serif); letter-spacing: .01em; }
.nl-band h2::before { content: ""; position: absolute; left: 0; top: 1px; bottom: 1px; width: 11px; background: var(--red); }
.nl-band__text p { max-width: 470px; margin-top: 14px !important; padding-left: 34px; font-size: 20px; line-height: 1.5; }
.nl-band__list { display: grid; gap: 6px; padding-left: 36px; border-left: 1px solid rgb(255 255 255 / .2); }
.nl-band__list li { position: relative; padding-left: 52px; min-height: 36px; font-size: 17px; line-height: 1.3; display: flex; flex-direction: column; justify-content: center; }
.nl-band__list strong { color: var(--white); font-size: 21px; font-weight: 700; }
.nl-band__list .cp-ico { position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-size: 38px; }

/* Questions fréquentes */
/* Pas d'écart de rangée : le titre couvre 20 rangées implicites (vides = 0 px), l'écart vient de la marge des questions. */
.nl-faq { display: grid; grid-template-columns: minmax(0, .36fr) minmax(0, .64fr); gap: 0 40px; align-items: start; margin-top: 16px !important; }
.nl-faq .nl-head { grid-row: 1 / span 20; }
.nl-faq .wp-block-details { grid-column: 2; margin: 0 0 7px; border: 1px solid #e3e3e3; border-radius: 4px; background: var(--white); }
.nl-faq summary { position: relative; display: block; padding: 5px 44px 5px 15px; font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.nl-faq summary::-webkit-details-marker { display: none; }
.nl-faq summary::after { content: "+"; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 600; line-height: 1; }
.nl-faq details[open] summary::after { content: "\2212"; }
.nl-faq summary:hover { color: var(--red); }
.nl-faq details > :not(summary) { margin: 0; padding: 0 15px 12px; font-size: 15.5px; line-height: 1.55; color: #555; }
.nl-faq details a { color: var(--red); text-decoration: underline; }

@media (max-width: 1240px) {
	.nl-perks li, .nl-perks li:nth-child(n+3) { padding-left: 76px; }
	.nl-perks .cp-ico { left: 18px; font-size: 40px; }
	.nl-why__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
	.nl-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nl-content .wp-block-columns.nl-main { grid-template-columns: minmax(0, 1fr); }
	.nl-band { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.nl-band__list { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 0; border-left: 0; }
}
@media (max-width: 760px) {
	.nl-perks { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.nl-perks li { min-height: 0; }
	.nl-signup-card { padding: 16px 18px 20px; }
	.nl-signup-card .nl-head h2 { margin-left: -18px; padding-left: 18px; }
	.nl-head h2::before { width: 8px; }
	.nl-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
	.nl-edition__head, .nl-edition__body { grid-template-columns: minmax(0, 1fr); }
	.nl-edition__brand { justify-items: start; }
	.nl-band h2 { font-size: 26px; padding-left: 22px; }
	.nl-band h2::before { width: 6px; }
	.nl-band__text p { padding-left: 22px; font-size: 17px; }
	.nl-band__list { grid-template-columns: minmax(0, 1fr); }
	.nl-faq { grid-template-columns: minmax(0, 1fr); }
	.nl-faq .nl-head { grid-row: auto; margin-bottom: 6px; }
	.nl-faq .wp-block-details { grid-column: 1; }
}
@media (max-width: 420px) {
	.nl-why__list li { padding-inline: 8px; }
	.nl-topics li { padding-left: 34px; }
}
