/*
Theme Name: Nocolead
Theme URI: https://nocolead.com
Author: Envicap
Description: Thème sur mesure de nocolead.com, sans constructeur de pages. Le contenu reste modifiable dans WordPress et par l'API.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: nocolead
*/

@font-face {
	font-family: "Schibsted Grotesk";
	src: url("assets/fonts/schibsted-grotesk-latin.woff2") format("woff2-variations");
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--encre: #0b1533;
	--bleu: #2563eb;
	--bleu-fonce: #1a47b8;
	--ciel: #e9f0fe;
	--brume: #f3f5f9;
	--texte: #2c3650;
	--doux: #566079;
	--trait: #d9dfea;
	--vert: #0a7350;
	--rouge: #b4233c;
	--blanc: #fff;
	--largeur: 1180px;
	--gouttiere: clamp(16px, 4vw, 40px);
	--section: clamp(56px, 8vw, 104px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--blanc);
	color: var(--texte);
	font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
	margin: 0;
	color: var(--encre);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.02em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; }

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

a { color: var(--bleu-fonce); text-underline-offset: 3px; }
a:hover { color: var(--encre); }

:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; border-radius: 2px; }

.nl-evitement {
	position: absolute; left: -999px; top: 8px; z-index: 100;
	padding: 10px 16px; background: var(--encre); color: var(--blanc);
}
.nl-evitement:focus { left: 8px; color: var(--blanc); }

.nl-cadre { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: var(--gouttiere); }

/* Boutons */
.nl-bouton {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 50px; padding: 12px 24px;
	border: 2px solid var(--bleu); border-radius: 8px;
	background: var(--bleu); color: var(--blanc);
	font: inherit; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
	cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.nl-bouton:hover { background: var(--bleu-fonce); border-color: var(--bleu-fonce); color: var(--blanc); }
.nl-bouton[disabled] { opacity: .6; cursor: wait; }
.nl-bouton--creux { background: transparent; color: var(--encre); border-color: var(--trait); }
.nl-bouton--creux:hover { background: transparent; color: var(--bleu-fonce); border-color: var(--bleu); }

/* En-tête */
.nl-entete { position: sticky; top: 0; z-index: 50; background: var(--blanc); border-bottom: 1px solid var(--trait); }
.admin-bar .nl-entete { top: 32px; }
.nl-entete__ligne { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.nl-logo { flex: none; }
.nl-logo img { width: 158px; }
.nl-menu-bouton {
	display: none; margin-left: auto; width: 46px; height: 46px; padding: 0;
	border: 1px solid var(--trait); border-radius: 8px; background: none; color: var(--encre);
	font: inherit; cursor: pointer;
}
.nl-menu-bouton span, .nl-menu-bouton span::before, .nl-menu-bouton span::after {
	display: block; width: 20px; height: 2px; margin-inline: auto; background: currentColor; content: "";
}
.nl-menu-bouton span::before { transform: translateY(-6px); }
.nl-menu-bouton span::after { transform: translateY(4px); }
.nl-nav { display: flex; align-items: center; gap: 24px; flex: 1; }
.nl-nav ul { list-style: none; margin: 0; padding: 0; }
.nl-nav > ul { display: flex; gap: 4px; margin-left: auto; }
.nl-nav li { position: relative; }
.nl-nav a:not(.nl-bouton) { display: block; padding: 10px 12px; color: var(--encre); font-weight: 600; text-decoration: none; }
.nl-nav a:not(.nl-bouton):hover, .nl-nav .current-menu-item > a { color: var(--bleu-fonce); }
.nl-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 270px; padding: 8px;
	background: var(--blanc); border: 1px solid var(--trait); border-radius: 8px;
	box-shadow: 0 14px 30px rgba(11, 21, 51, .12);
	opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .12s, transform .12s;
}
.nl-nav li:hover > .sub-menu, .nl-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nl-nav .nl-bouton { min-height: 44px; padding: 8px 18px; flex: none; }

/* Page d'ouverture */
.nl-ouverture { position: relative; overflow: hidden; background: linear-gradient(90deg, var(--blanc) 56%, var(--bleu) 56%); }
.nl-ouverture__grille {
	display: grid; grid-template-columns: minmax(0, 56fr) minmax(0, 44fr); align-items: center; gap: clamp(32px, 6vw, 72px);
	padding-block: clamp(48px, 7vw, 92px);
}
.nl-ouverture__texte { padding-right: clamp(0px, 2vw, 24px); }
.nl-ouverture h1 { margin-bottom: 22px; }
.nl-chapo { max-width: 56ch; margin-bottom: 30px; font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--doux); }
.nl-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.nl-ouverture--simple { background: var(--ciel); }
.nl-ouverture--simple .nl-ouverture__grille { grid-template-columns: minmax(0, 1fr); padding-block: clamp(44px, 6vw, 76px); }
.nl-ouverture--simple .nl-chapo { margin-bottom: 0; }

/* La fiche : l'élément signature du site */
.nl-fiche { position: relative; background: var(--blanc); border-radius: 12px; padding: 22px 24px 18px; box-shadow: 0 22px 48px rgba(6, 17, 56, .32); }
.nl-fiche__titre { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-bottom: 12px; border-bottom: 2px solid var(--encre); }
.nl-fiche__titre strong { color: var(--encre); font-size: 1.15rem; font-weight: 800; }
.nl-fiche__titre span { color: var(--doux); font-size: .85rem; white-space: nowrap; }
.nl-fiche dl { margin: 0; }
.nl-fiche__ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--trait); }
.nl-fiche dt { color: var(--doux); font-size: .9rem; }
.nl-fiche dd { margin: 0; grid-row: 2; color: var(--encre); font-weight: 700; line-height: 1.3; }
.nl-fiche__preuve { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 6px; color: var(--vert); font-size: .85rem; font-weight: 700; }
.nl-fiche__preuve::before {
	content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
	background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.7 2.6L13 6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.nl-fiche__note { margin: 12px 0 0; color: var(--doux); font-size: .82rem; }
@media (prefers-reduced-motion: no-preference) {
	.nl-fiche__preuve { animation: nl-valide .32s ease-out both; }
	.nl-fiche__ligne:nth-child(1) .nl-fiche__preuve { animation-delay: .35s; }
	.nl-fiche__ligne:nth-child(2) .nl-fiche__preuve { animation-delay: .6s; }
	.nl-fiche__ligne:nth-child(3) .nl-fiche__preuve { animation-delay: .85s; }
	.nl-fiche__ligne:nth-child(4) .nl-fiche__preuve { animation-delay: 1.1s; }
	.nl-fiche__ligne:nth-child(5) .nl-fiche__preuve { animation-delay: 1.35s; }
}
@keyframes nl-valide { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

/* Sections */
.nl-section { padding-block: var(--section); }
.nl-section--brume { background: var(--brume); }
.nl-section--encre { background: var(--encre); color: #c9d3ea; }
.nl-section--encre h2, .nl-section--encre h3 { color: var(--blanc); }
.nl-intro { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.nl-intro h2 { margin-bottom: 14px; }
.nl-intro p { color: var(--doux); font-size: 1.125rem; }
.nl-section--encre .nl-intro p { color: #c9d3ea; }

/* Comparatif */
.nl-comparatif { width: 100%; border-collapse: collapse; }
.nl-comparatif th, .nl-comparatif td { width: 50%; padding: 18px 28px 18px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--trait); }
.nl-comparatif thead th { padding-top: 0; color: var(--encre); font-size: 1.15rem; font-weight: 800; border-bottom: 2px solid var(--encre); }
.nl-comparatif td:first-child { color: var(--doux); }
.nl-comparatif s { color: var(--rouge); text-decoration-thickness: 2px; font-weight: 700; }
.nl-comparatif td:last-child strong { color: var(--encre); }

/* Liste des produits */
.nl-produits { border-top: 2px solid var(--encre); }
.nl-produit { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 16px 36px; padding-block: 28px; border-bottom: 1px solid var(--trait); }
.nl-produit h3 { font-size: clamp(1.3rem, 2.3vw, 1.65rem); }
.nl-produit h3 a { color: inherit; text-decoration: none; }
.nl-produit h3 a:hover { color: var(--bleu-fonce); }
.nl-produit ul { margin: 0; padding: 0; list-style: none; color: var(--doux); font-size: .95rem; }
.nl-produit li + li { margin-top: 4px; }

/* Étapes numérotées */
.nl-etapes { display: grid; grid-template-columns: repeat(var(--colonnes, 3), minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; counter-reset: etape; }
.nl-etapes li { counter-increment: etape; padding-top: 16px; border-top: 2px solid var(--bleu); }
.nl-etapes li::before { content: counter(etape); display: block; margin-bottom: 10px; color: var(--bleu); font-size: 2.1rem; font-weight: 800; line-height: 1; }
.nl-section--encre .nl-etapes li::before { color: #8fb2ff; }
.nl-section--encre .nl-etapes li { border-color: #8fb2ff; }
.nl-etapes h3 { margin-bottom: 8px; }

/* Bloc d'arguments */
.nl-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 48px; }
.nl-point { padding-left: 18px; border-left: 3px solid var(--bleu); }
.nl-point h3 { margin-bottom: 6px; }
.nl-point p { color: var(--doux); }

/* Deux colonnes */
.nl-duo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.nl-duo h2 { margin-bottom: 14px; }
.nl-duo__aide { color: var(--doux); }
.nl-coordonnees { margin: 24px 0 0; padding: 0; list-style: none; }
.nl-coordonnees li { padding-block: 10px; border-top: 1px solid var(--trait); }

/* Questions */
.nl-questions { max-width: 820px; border-top: 2px solid var(--encre); }
.nl-questions details { border-bottom: 1px solid var(--trait); }
.nl-questions summary { position: relative; padding: 18px 40px 18px 0; color: var(--encre); font-weight: 700; cursor: pointer; list-style: none; }
.nl-questions summary::-webkit-details-marker { display: none; }
.nl-questions summary::after { content: "+"; position: absolute; right: 4px; top: 12px; color: var(--bleu); font-size: 1.6rem; font-weight: 500; }
.nl-questions details[open] summary::after { content: "\2212"; }
.nl-questions details p { padding: 0 40px 18px 0; }

/* Formulaire */
.nl-demande { background: var(--ciel); }
.nl-formulaire { padding: clamp(20px, 3vw, 32px); background: var(--blanc); border-radius: 12px; border: 1px solid var(--trait); }
.nl-formulaire__etat { margin: 0 0 18px; color: var(--doux); font-size: .92rem; font-weight: 600; }
.nl-formulaire fieldset { margin: 0 0 18px; padding: 0; border: 0; }
.nl-formulaire legend, .nl-champ label { display: block; margin-bottom: 6px; padding: 0; color: var(--encre); font-weight: 700; font-size: .96rem; }
.nl-champ { margin-bottom: 16px; }
.nl-champs-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.nl-formulaire input[type="text"], .nl-formulaire input[type="email"], .nl-formulaire input[type="tel"], .nl-formulaire select, .nl-formulaire textarea {
	width: 100%; min-height: 48px; padding: 10px 12px;
	border: 1px solid #aeb8ca; border-radius: 8px; background: var(--blanc); color: var(--encre);
	font: inherit;
}
.nl-formulaire textarea { min-height: 96px; resize: vertical; }
.nl-coche { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; color: var(--texte); font-size: 1rem; cursor: pointer; }
.nl-coche input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--bleu); }
.nl-coche--legal { font-size: .9rem; color: var(--doux); }
.nl-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nl-formulaire__boutons { display: flex; flex-wrap: wrap; gap: 10px; }
.nl-formulaire__message { margin: 14px 0 0; font-weight: 600; }
.nl-formulaire__message:empty { display: none; }
.nl-formulaire__message.est-erreur { color: var(--rouge); }
.nl-champ.est-invalide input, .nl-champ.est-invalide select { border-color: var(--rouge); }
.nl-formulaire__merci h3 { margin-bottom: 8px; }

/* Pages de texte */
.nl-page { padding-block: clamp(40px, 6vw, 72px) var(--section); }
.nl-page h1 { margin-bottom: 28px; font-size: clamp(2rem, 4vw, 3rem); }
.nl-prose { max-width: 74ch; }
.nl-prose h2 { margin: 2em 0 .5em; font-size: 1.45rem; letter-spacing: -0.01em; }
.nl-prose ul { padding-left: 1.2em; }
.nl-prose li + li { margin-top: 4px; }

/* Pied de page */
.nl-pied { background: var(--encre); color: #b9c4dd; font-size: .95rem; }
.nl-pied__grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; padding-block: 48px 32px; }
.nl-pied__marque { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--blanc); font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
.nl-pied__marque:hover { color: var(--blanc); }
.nl-pied__marque img { width: 34px; border-radius: 7px; }
.nl-pied a { color: var(--blanc); }
.nl-pied ul { list-style: none; margin: 0; padding: 0; }
.nl-pied li + li { margin-top: 6px; }
.nl-pied__bas { padding-block: 16px 24px; border-top: 1px solid #2a3558; font-size: .88rem; }

@media (max-width: 960px) {
	.nl-menu-bouton { display: block; }
	.nl-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px var(--gouttiere) 20px; background: var(--blanc); border-bottom: 1px solid var(--trait); box-shadow: 0 16px 28px rgba(11, 21, 51, .12); max-height: calc(100vh - 72px); overflow-y: auto; }
	.nl-nav.est-ouvert { display: flex; }
	.nl-nav > ul { flex-direction: column; margin-left: 0; }
	.nl-nav .sub-menu { position: static; min-width: 0; padding: 0 0 0 14px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
	.nl-ouverture { background: var(--blanc); }
	.nl-ouverture--simple { background: var(--ciel); }
	.nl-ouverture__grille { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; }
	.nl-ouverture--simple .nl-ouverture__grille { padding-bottom: 44px; }
	.nl-ouverture__fiche { margin-inline: calc(var(--gouttiere) * -1); padding: 28px var(--gouttiere); background: var(--bleu); }
	.nl-produit { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.nl-duo, .nl-pied__grille { grid-template-columns: minmax(0, 1fr); }
	.nl-etapes { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 782px) {
	.admin-bar .nl-entete { top: 46px; }
	.nl-points { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
	.nl-comparatif thead { display: none; }
	.nl-comparatif tr { display: block; padding-block: 12px; border-bottom: 1px solid var(--trait); }
	.nl-comparatif th, .nl-comparatif td { display: block; width: auto; padding: 4px 0; border: 0; }
	.nl-champs-duo { grid-template-columns: minmax(0, 1fr); }
	.nl-actions .nl-bouton { width: 100%; }
	.nl-fiche { padding-inline: 16px; }
	.nl-fiche__preuve { font-size: .8rem; }
}

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