/*
Theme Name:   NUMEOSEC
Theme URI:    https://www.numeosec.com/
Description:  Thème enfant GeneratePress de NUMEOSEC — La sécurité numérique, simplement. Design éditorial premium, polices locales, sommaire sticky, encarts éditoriaux et affiliation transparente.
Author:       Collectif NUMEOSEC
Author URI:   https://www.numeosec.com/collectif/
Template:     generatepress
Version:      1.0.1
Requires at least: 6.5
Requires PHP: 8.1
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  numeosec
*/

/* ==========================================================================
   SOMMAIRE DU FICHIER
   01. Polices locales (@font-face)
   02. Variables (charte NUMEOSEC)
   03. Base : corps, titres, liens, sélection, focus
   04. Header et navigation
   05. Mise en page des articles (colonne 720 px + sommaire)
   06. Fil d'Ariane et méta (signature, dates)
   07. Sommaire sticky + scrollspy
   08. Encarts éditoriaux (essentiel, réponse directe, définition, à savoir, à retenir, CTA)
   09. Encart affiliation et carte « outil recommandé »
   10. Listes (check, étapes)
   11. Tableaux comparatifs
   12. Citations et sources
   13. Boutons
   14. FAQ Rank Math
   15. Images et médias
   16. Formulaires Fluent Forms
   17. Pop-up de sortie
   18. Footer
   19. Accessibilité, mouvement réduit, impression
   ========================================================================== */


/* 01. POLICES LOCALES ======================================================
   Hébergées dans /assets/fonts : aucune requête vers Google (performance + RGPD).
   Le navigateur prend le premier fichier disponible (woff2 puis woff). */

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/poppins-600.woff2") format("woff2"),
	     url("assets/fonts/poppins-600.woff") format("woff");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/inter-400.woff2") format("woff2"),
	     url("assets/fonts/inter-400.woff") format("woff");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Inter";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/inter-400-italic.woff2") format("woff2"),
	     url("assets/fonts/inter-400-italic.woff") format("woff");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/inter-600.woff2") format("woff2"),
	     url("assets/fonts/inter-600.woff") format("woff");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Polices de secours calibrées pour limiter le décalage (CLS) pendant le chargement. */
@font-face {
	font-family: "Inter Fallback";
	src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
	size-adjust: 107%;
	ascent-override: 90%;
	descent-override: 22%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Poppins Fallback";
	src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
	size-adjust: 112%;
	ascent-override: 93%;
	descent-override: 31%;
	line-gap-override: 9%;
}


/* 02. VARIABLES ============================================================ */

:root {
	/* Charte */
	--nmo-navy: #0A2A5E;          /* titres, header, boutons */
	--nmo-navy-deep: #071F47;     /* survol des boutons, bas de footer */
	--nmo-blue: #1E9EE8;          /* accents, soulignés, icônes, CTA secondaires (décor) */
	--nmo-link: #0A6FAE;          /* texte des liens : bleu de la charte assombri, contraste 5,4:1 (AA) */
	--nmo-bg: #FFFFFF;
	--nmo-bg-alt: #F7F9FC;
	--nmo-text: #3C4653;
	--nmo-muted: #5B6675;         /* textes secondaires, contraste 5,8:1 */
	--nmo-green: #2EAD6E;         /* icônes de validation uniquement */
	--nmo-green-text: #1E7F4F;    /* texte vert lisible, contraste 5:1 */
	--nmo-border: #E3E8EF;
	--nmo-border-strong: #CBD4E1;
	--nmo-blue-tint: #EAF6FD;
	--nmo-amber-tint: #FFF8E8;    /* « À savoir » : jamais de rouge */
	--nmo-amber: #D99A2B;

	/* Typographie */
	--nmo-font-title: "Poppins", "Poppins Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--nmo-font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--nmo-size-body: 1.0625rem;   /* 17 px mobile */
	--nmo-line: 1.6;

	/* Mise en page */
	--nmo-read: 720px;
	--nmo-toc: 248px;
	--nmo-header-h: 72px;
	--nmo-radius: 12px;
	--nmo-radius-lg: 16px;
	--nmo-shadow: 0 1px 2px rgba(10, 42, 94, .06), 0 4px 16px rgba(10, 42, 94, .06);
	--nmo-shadow-hover: 0 2px 4px rgba(10, 42, 94, .08), 0 10px 28px rgba(10, 42, 94, .10);

	/* Micro-interactions : 150–200 ms */
	--nmo-fast: 150ms;
	--nmo-base: 200ms;
	--nmo-ease: cubic-bezier(.2, .7, .2, 1);

	/* Icônes en data-URI (aucune requête) */
	--nmo-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%232EAD6E'/%3E%3Cpath d='M5.5 10.4l3 3 6-6.3' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	--nmo-icon-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='none' stroke='%230A2A5E' stroke-width='1.6'/%3E%3Cpath d='M10 9v5' stroke='%230A2A5E' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='10' cy='6.2' r='1.1' fill='%230A2A5E'/%3E%3C/svg%3E");
	--nmo-icon-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.5l7 2.6v5.2c0 4.3-2.9 7.6-7 9.2-4.1-1.6-7-4.9-7-9.2V4.1z' fill='%230A2A5E'/%3E%3Cpath d='M6.6 10l2.3 2.3 4.6-4.7' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	--nmo-icon-bolt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M11.2 1.5L4 11.2h5l-1.2 7.3L16 8.8h-5z' fill='%231E9EE8'/%3E%3C/svg%3E");
	--nmo-icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10h11m-4.5-4.5L15 10l-4.5 4.5' fill='none' stroke='%230A2A5E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@media (min-width: 768px) {
	:root { --nmo-size-body: 1.125rem; } /* 18 px */
}


/* 03. BASE ================================================================= */

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--nmo-header-h) + 24px);
}

body {
	font-family: var(--nmo-font-body);
	font-size: var(--nmo-size-body);
	line-height: var(--nmo-line);
	color: var(--nmo-text);
	background: var(--nmo-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-feature-settings: "cv11", "ss01"; /* Inter : chiffres et « a » plus lisibles */
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title {
	font-family: var(--nmo-font-title);
	font-weight: 600;
	color: var(--nmo-navy);
	letter-spacing: -0.01em;
	text-wrap: balance;
}

h1, .entry-title {
	font-size: clamp(1.875rem, 1.35rem + 2.2vw, 2.75rem);
	line-height: 1.18;
	margin-bottom: .5em;
}

h2 {
	font-size: clamp(1.4375rem, 1.2rem + 1vw, 1.875rem);
	line-height: 1.25;
	margin: 2.2em 0 .6em;
}

h3 {
	font-size: clamp(1.1875rem, 1.1rem + .4vw, 1.375rem);
	line-height: 1.3;
	margin: 1.8em 0 .5em;
}

h4 { font-size: 1.0625rem; line-height: 1.4; margin: 1.5em 0 .4em; }

.entry-content > h2:first-child,
.entry-content > h3:first-child { margin-top: 0; }

p { margin: 0 0 1.25em; text-wrap: pretty; }

strong, b { font-weight: 600; color: #26303C; }

a {
	color: var(--nmo-link);
	text-decoration: underline;
	text-decoration-color: rgba(30, 158, 232, .45);
	text-decoration-thickness: 1.5px;
	text-underline-offset: .18em;
	transition: color var(--nmo-fast) var(--nmo-ease), text-decoration-color var(--nmo-fast) var(--nmo-ease);
}

a:hover,
a:focus {
	color: var(--nmo-navy);
	text-decoration-color: var(--nmo-blue);
}

::selection { background: var(--nmo-blue-tint); color: var(--nmo-navy); }

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

hr, .wp-block-separator {
	border: 0;
	border-top: 1px solid var(--nmo-border);
	margin: 2.5em 0;
}

h2[id], h3[id] { scroll-margin-top: calc(var(--nmo-header-h) + 24px); }

/* Conteneur GeneratePress : fond blanc, une seule colonne (réglage Customizer « One container ») */
.one-container .site-content,
.separate-containers .inside-article { background: var(--nmo-bg); }


/* 04. HEADER ET NAVIGATION =================================================
   Prérequis Customizer : Layout → Primary Navigation → Navigation Location = « Float Right ». */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--nmo-border);
}

.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.inside-header {
	min-height: var(--nmo-header-h);
	padding-top: 10px;
	padding-bottom: 10px;
	align-items: center;
}

.site-logo img,
.site-header .header-image {
	height: 40px;
	width: auto;
	max-width: 220px;
}

@media (max-width: 768px) {
	.site-logo img, .site-header .header-image { height: 32px; }
}

.main-navigation,
.main-navigation ul ul { background: transparent; }

.main-navigation .main-nav ul li a {
	font-family: var(--nmo-font-body);
	font-weight: 600;
	font-size: .9375rem;
	color: var(--nmo-navy);
	padding-left: 14px;
	padding-right: 14px;
	line-height: var(--nmo-header-h);
	text-decoration: none;
	transition: color var(--nmo-fast) var(--nmo-ease);
	position: relative;
}

.main-navigation .main-nav ul li:not(.nmo-cta) > a::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 20px;
	height: 2px;
	border-radius: 2px;
	background: var(--nmo-blue);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--nmo-base) var(--nmo-ease);
}

.main-navigation .main-nav ul li:not(.nmo-cta) > a:hover::after,
.main-navigation .main-nav ul li.current-menu-item:not(.nmo-cta) > a::after,
.main-navigation .main-nav ul li.current-menu-ancestor:not(.nmo-cta) > a::after {
	transform: scaleX(1);
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a { color: var(--nmo-navy); }

/* Sous-menus (panneau « Guides ») */
.main-navigation ul ul {
	background: #fff;
	border: 1px solid var(--nmo-border);
	border-radius: var(--nmo-radius);
	box-shadow: var(--nmo-shadow-hover);
	padding: 8px;
	width: 280px;
}

.main-navigation .main-nav ul ul li a {
	line-height: 1.4;
	padding: 10px 12px;
	border-radius: 8px;
	font-weight: 500;
}

.main-navigation .main-nav ul ul li a::after { display: none; }
.main-navigation .main-nav ul ul li a:hover { background: var(--nmo-bg-alt); }

/* Bouton du menu : ajouter la classe CSS « nmo-cta » à l'élément de menu */
.main-navigation .main-nav ul li.nmo-cta > a {
	line-height: 1;
	margin-left: 12px;
	padding: 12px 18px;
	border-radius: 10px;
	background: var(--nmo-navy);
	color: #fff;
	transition: background-color var(--nmo-fast) var(--nmo-ease), transform var(--nmo-fast) var(--nmo-ease), box-shadow var(--nmo-fast) var(--nmo-ease);
}

.main-navigation .main-nav ul li.nmo-cta > a:hover {
	background: var(--nmo-navy-deep);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(10, 42, 94, .22);
}

.main-navigation:not(.toggled) .main-nav > ul { align-items: center; }

/* Menu mobile */
.menu-toggle,
.main-navigation .menu-toggle {
	color: var(--nmo-navy);
	font-weight: 600;
	background: transparent;
	padding: 0 12px;
	line-height: 48px;
	min-height: 48px;
}

@media (max-width: 768px) {
	.main-navigation.toggled .main-nav > ul {
		background: #fff;
		border-top: 1px solid var(--nmo-border);
		padding: 8px 0 16px;
	}
	.main-navigation .main-nav ul li a {
		line-height: 1.4;
		padding-top: 14px;
		padding-bottom: 14px;
	}
	.main-navigation .main-nav ul li:not(.nmo-cta) > a::after { display: none; }
	.main-navigation .main-nav ul li.nmo-cta > a {
		margin: 12px 20px 0;
		text-align: center;
		display: block;
		padding: 16px 18px;
	}
	.main-navigation ul ul { width: auto; box-shadow: none; border: 0; padding: 0 0 0 12px; }
}


/* 05. MISE EN PAGE DES ARTICLES ============================================
   Colonne de lecture 720 px. Sur grand écran, le sommaire occupe une colonne de droite sticky.
   Prérequis Customizer : Layout → Container → Container Width = 1120 ; sidebar désactivée (gérée par le thème). */

.single-post .inside-article,
.page .inside-article {
	padding-top: 32px;
	padding-bottom: 56px;
}

.single-post .entry-header,
.single-post .entry-content > *,
.single-post .entry-summary > * {
	max-width: var(--nmo-read);
}

.single-post:not(.nmo-has-toc) .inside-article {
	max-width: calc(var(--nmo-read) + 80px);
	margin-left: auto;
	margin-right: auto;
}

@media (min-width: 1200px) {
	.single-post.nmo-has-toc .entry-content {
		display: grid;
		grid-template-columns: minmax(0, var(--nmo-read)) var(--nmo-toc);
		column-gap: 64px;
		align-items: start;
	}
	.single-post.nmo-has-toc .entry-content > * { grid-column: 1; min-width: 0; }
	/* En grille, les marges ne fusionnent plus : on resserre l'espace avant les H2. */
	.single-post.nmo-has-toc .entry-content > h2 { margin-top: 1.4em; }
	.single-post.nmo-has-toc .entry-content > .nmo-toc {
		grid-column: 2;
		grid-row: 1 / span 500;
		position: sticky;
		top: calc(var(--nmo-header-h) + 32px);
		max-height: calc(100vh - var(--nmo-header-h) - 64px);
		overflow-y: auto;
		margin: 0;
	}
	.admin-bar.single-post.nmo-has-toc .entry-content > .nmo-toc { top: calc(var(--nmo-header-h) + 64px); }
}

/* Pages (accueil, hubs) construites avec GenerateBlocks : pleine largeur maîtrisée par les blocs. */
.page .entry-content > .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }

.entry-content > * + h2 { margin-top: 2.2em; }

.entry-content ul,
.entry-content ol { margin: 0 0 1.25em 1.25em; }

.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--nmo-blue); }


/* 06. FIL D'ARIANE ET MÉTA ================================================== */

.rank-math-breadcrumb {
	font-size: .875rem;
	color: var(--nmo-muted);
	margin: 0 0 16px;
}

.rank-math-breadcrumb p { margin: 0; }

.rank-math-breadcrumb a {
	color: var(--nmo-muted);
	text-decoration: none;
}

.rank-math-breadcrumb a:hover { color: var(--nmo-navy); text-decoration: underline; }
.rank-math-breadcrumb .separator { margin: 0 6px; color: var(--nmo-border-strong); }
.rank-math-breadcrumb .last { color: var(--nmo-text); }

.nmo-meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 4px 0 28px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--nmo-border);
	font-size: .9375rem;
	color: var(--nmo-muted);
}

.nmo-meta p { margin: 0; }

.nmo-signature {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--nmo-text);
}

.nmo-signature::before {
	content: "";
	flex: 0 0 20px;
	height: 20px;
	margin-top: 2px;
	background: var(--nmo-icon-shield) center / contain no-repeat;
}

.nmo-signature a { font-weight: 600; }

.nmo-dates { padding-left: 30px; }
.nmo-dates time { font-variant-numeric: tabular-nums; }

.nmo-verifie {
	align-self: flex-start;
	margin-left: 30px !important;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #EAF7F0;
	color: var(--nmo-green-text);
	font-size: .8125rem;
	font-weight: 600;
}


/* 07. SOMMAIRE STICKY ====================================================== */

.nmo-toc {
	margin: 0 0 32px;
	font-size: .9375rem;
}

.nmo-toc details {
	border: 1px solid var(--nmo-border);
	border-radius: var(--nmo-radius);
	background: var(--nmo-bg-alt);
}

.nmo-toc summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	cursor: pointer;
	list-style: none;
	font-family: var(--nmo-font-title);
	font-weight: 600;
	color: var(--nmo-navy);
	min-height: 48px;
}

.nmo-toc summary::-webkit-details-marker { display: none; }

.nmo-toc summary::after {
	content: "";
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--nmo-navy);
	border-bottom: 2px solid var(--nmo-navy);
	transform: rotate(45deg) translateY(-3px);
	transition: transform var(--nmo-base) var(--nmo-ease);
}

.nmo-toc details[open] summary::after { transform: rotate(-135deg) translateX(-2px); }

.nmo-toc ol {
	list-style: none;
	counter-reset: nmo-toc;
	margin: 0;
	padding: 0 10px 12px;
}

.nmo-toc li { margin: 0; counter-increment: nmo-toc; }

.nmo-toc a {
	display: grid;
	grid-template-columns: 22px 1fr;
	gap: 4px;
	padding: 7px 8px;
	border-radius: 8px;
	color: var(--nmo-text);
	text-decoration: none;
	line-height: 1.4;
	border-left: 2px solid transparent;
	transition: background-color var(--nmo-fast) var(--nmo-ease), color var(--nmo-fast) var(--nmo-ease), border-color var(--nmo-fast) var(--nmo-ease);
}

.nmo-toc a::before {
	content: counter(nmo-toc);
	font-variant-numeric: tabular-nums;
	color: var(--nmo-muted);
	font-size: .8125rem;
	padding-top: 1px;
}

.nmo-toc a:hover { background: #fff; color: var(--nmo-navy); }

.nmo-toc a[aria-current] {
	background: #fff;
	color: var(--nmo-navy);
	font-weight: 600;
	border-left-color: var(--nmo-blue);
	border-radius: 0 8px 8px 0;
}

@media (min-width: 1200px) {
	.nmo-toc details { background: transparent; border: 0; }
	.nmo-toc summary { padding: 0 0 10px 10px; min-height: 0; font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--nmo-muted); }
	.nmo-toc details[open] summary { cursor: default; pointer-events: none; }
	.nmo-toc details[open] summary::after { display: none; }
	.nmo-toc ol { padding: 0; border-left: 1px solid var(--nmo-border); }
	.nmo-toc a { border-radius: 0 8px 8px 0; margin-left: -1px; }
}


/* 08. ENCARTS ÉDITORIAUX =================================================== */

/* Signature NUMEOSEC : « L'essentiel en 30 secondes » */
.nmo-essentiel {
	position: relative;
	margin: 0 0 32px;
	padding: 22px 24px 8px;
	border: 1px solid var(--nmo-border);
	border-radius: var(--nmo-radius-lg);
	background: linear-gradient(180deg, var(--nmo-blue-tint) 0, #fff 120px);
	box-shadow: var(--nmo-shadow);
}

.nmo-essentiel .nmo-essentiel__titre {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-family: var(--nmo-font-title);
	font-weight: 600;
	font-size: .9375rem;
	color: var(--nmo-navy);
	text-transform: uppercase;
	letter-spacing: .05em;
}

.nmo-essentiel .nmo-essentiel__titre::before {
	content: "";
	width: 18px;
	height: 18px;
	background: var(--nmo-icon-bolt) center / contain no-repeat;
}

.nmo-essentiel .nmo-essentiel__pied {
	margin: 4px 0 14px;
	font-size: .875rem;
	color: var(--nmo-muted);
}

/* Réponse directe sous chaque H2 (answer-first, 40–60 mots) */
.nmo-reponse {
	font-size: 1.0625em;
	line-height: 1.55;
	color: #1D2A3A;
	padding: 2px 0 2px 18px;
	border-left: 3px solid var(--nmo-blue);
}

/* Bloc définition (candidat DefinedTerm) */
.nmo-definition {
	margin: 0 0 28px;
	padding: 18px 22px;
	border-radius: var(--nmo-radius);
	background: var(--nmo-bg-alt);
	border: 1px solid var(--nmo-border);
}

.nmo-definition p { margin: 0 0 .4em; }
.nmo-definition p:last-child { margin-bottom: 0; }

.nmo-definition .nmo-definition__terme {
	font-family: var(--nmo-font-title);
	font-weight: 600;
	color: var(--nmo-navy);
}

.nmo-definition .nmo-definition__terme::before {
	content: "Définition · ";
	font-family: var(--nmo-font-body);
	font-weight: 500;
	font-size: .8125rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--nmo-muted);
}

/* À savoir (ambre doux : informe sans alarmer) */
.nmo-attention {
	margin: 0 0 28px;
	padding: 16px 20px 4px 52px;
	border-radius: var(--nmo-radius);
	background: var(--nmo-amber-tint) var(--nmo-icon-info) 18px 18px / 20px no-repeat;
	border: 1px solid #F3DDB2;
}

/* À retenir / verdict */
.nmo-retenir {
	margin: 32px 0;
	padding: 20px 24px 6px;
	border-radius: var(--nmo-radius-lg);
	background: var(--nmo-navy);
	color: #E7EEF8;
}

.nmo-retenir p, .nmo-retenir li { color: #E7EEF8; }
.nmo-retenir strong { color: #fff; }
.nmo-retenir a { color: #9ED8FA; text-decoration-color: rgba(158, 216, 250, .5); }
.nmo-retenir a:hover { color: #fff; }
.nmo-retenir .nmo-retenir__titre { font-family: var(--nmo-font-title); font-weight: 600; color: #fff; margin-bottom: 8px; }
.nmo-retenir li::marker { color: var(--nmo-blue); }

/* Bloc d'appel à l'action (bilan cyber, checklist) */
.nmo-cta-bloc {
	margin: 40px 0;
	padding: 28px;
	border-radius: var(--nmo-radius-lg);
	border: 1px solid var(--nmo-border);
	background: radial-gradient(120% 140% at 100% 0, var(--nmo-blue-tint) 0, #fff 60%);
	box-shadow: var(--nmo-shadow);
}

.nmo-cta-bloc .nmo-cta-bloc__titre {
	font-family: var(--nmo-font-title);
	font-weight: 600;
	font-size: 1.25rem;
	color: var(--nmo-navy);
	margin-bottom: 6px;
}

.nmo-cta-bloc .wp-block-buttons { margin-top: 16px; }

.nmo-essentiel > :last-child,
.nmo-attention > :last-child,
.nmo-retenir > :last-child,
.nmo-cta-bloc > :last-child { margin-bottom: 0; }

.wp-block-group__inner-container > :last-child { margin-bottom: 0; }
.nmo-essentiel .wp-block-group__inner-container > :last-child { margin-bottom: 14px; }
.nmo-attention .wp-block-group__inner-container > :last-child,
.nmo-retenir .wp-block-group__inner-container > :last-child { margin-bottom: 16px; }


/* 09. AFFILIATION ========================================================== */

.nmo-affiliation {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0 0 28px;
	padding: 14px 18px;
	border-radius: var(--nmo-radius);
	background: var(--nmo-bg-alt);
	border: 1px solid var(--nmo-border);
	font-size: .875rem;
	line-height: 1.55;
	color: var(--nmo-muted);
}

.nmo-affiliation::before {
	content: "";
	flex: 0 0 18px;
	height: 18px;
	margin-top: 2px;
	background: var(--nmo-icon-info) center / contain no-repeat;
}

.nmo-affiliation p { margin: 0; }
.nmo-affiliation a { color: var(--nmo-link); font-weight: 600; }

/* Carte « Outil recommandé » */
.nmo-outil {
	position: relative;
	margin: 32px 0;
	padding: 26px 26px 22px;
	border: 1px solid var(--nmo-border);
	border-radius: var(--nmo-radius-lg);
	background: #fff;
	box-shadow: var(--nmo-shadow);
	transition: box-shadow var(--nmo-base) var(--nmo-ease), transform var(--nmo-base) var(--nmo-ease);
}

.nmo-outil:hover { box-shadow: var(--nmo-shadow-hover); }

.nmo-outil .nmo-outil__badge {
	position: absolute;
	top: -12px;
	left: 22px;
	margin: 0;
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--nmo-navy);
	color: #fff;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.nmo-outil .nmo-outil__nom {
	margin: 4px 0 2px;
	font-family: var(--nmo-font-title);
	font-weight: 600;
	font-size: 1.375rem;
	color: var(--nmo-navy);
}

.nmo-outil .nmo-outil__pour {
	margin: 0 0 14px;
	color: var(--nmo-muted);
	font-size: .9375rem;
}

.nmo-outil .nmo-outil__infos {
	margin: 12px 0 16px;
	padding-top: 12px;
	border-top: 1px dashed var(--nmo-border-strong);
	font-size: .875rem;
	color: var(--nmo-muted);
}

.nmo-outil .wp-block-buttons { margin: 0; }


/* 10. LISTES =============================================================== */

.entry-content ul.nmo-liste-check,
.nmo-liste-check {
	list-style: none;
	margin-left: 0;
	padding-left: 0;
}

.nmo-liste-check li {
	position: relative;
	padding-left: 32px;
	margin-bottom: .6em;
}

.nmo-liste-check li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .2em;
	width: 20px;
	height: 20px;
	background: var(--nmo-icon-check) center / contain no-repeat;
}

/* Étapes numérotées (processus, tutoriels) */
.entry-content ol.nmo-etapes,
.nmo-etapes {
	list-style: none;
	counter-reset: nmo-etape;
	margin-left: 0;
	padding-left: 0;
}

.nmo-etapes > li {
	counter-increment: nmo-etape;
	position: relative;
	padding: 0 0 1.1em 48px;
	margin: 0;
}

.nmo-etapes > li::before {
	content: counter(nmo-etape);
	position: absolute;
	left: 0;
	top: -1px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--nmo-navy);
	color: #fff;
	font-family: var(--nmo-font-title);
	font-weight: 600;
	font-size: .9375rem;
}

.nmo-etapes > li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 15px;
	top: 36px;
	bottom: 4px;
	width: 2px;
	background: var(--nmo-border);
}


/* 11. TABLEAUX COMPARATIFS ================================================= */

.wp-block-table {
	margin: 0 0 32px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--nmo-border);
	border-radius: var(--nmo-radius);
	box-shadow: var(--nmo-shadow);
}

.wp-block-table table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: .9375rem;
	line-height: 1.45;
	margin: 0;
	font-variant-numeric: tabular-nums;
}

.wp-block-table.nmo-comparatif table { min-width: 640px; }

.wp-block-table thead { border: 0; }

.wp-block-table th,
.wp-block-table td {
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid var(--nmo-border);
	text-align: left;
	vertical-align: top;
}

.wp-block-table thead th {
	background: var(--nmo-bg-alt);
	color: var(--nmo-navy);
	font-family: var(--nmo-font-body);
	font-weight: 600;
	font-size: .8125rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	white-space: nowrap;
}

.wp-block-table tbody tr:last-child td { border-bottom: 0; }

.wp-block-table tbody tr { transition: background-color var(--nmo-fast) var(--nmo-ease); }
.wp-block-table tbody tr:hover { background: #FBFCFE; }

.wp-block-table tbody td:first-child {
	font-weight: 600;
	color: var(--nmo-navy);
}

/* Première colonne figée sur mobile pour comparer sans perdre le nom de l'outil */
@media (max-width: 767px) {
	.wp-block-table.nmo-comparatif th:first-child,
	.wp-block-table.nmo-comparatif td:first-child {
		position: sticky;
		left: 0;
		z-index: 1;
		background: #fff;
		box-shadow: 1px 0 0 var(--nmo-border);
	}
	.wp-block-table.nmo-comparatif thead th:first-child { background: var(--nmo-bg-alt); }
}

.wp-block-table figcaption,
.wp-element-caption {
	font-size: .8125rem;
	color: var(--nmo-muted);
	padding: 10px 16px;
	margin: 0;
	text-align: left;
}

.wp-block-table td a { font-weight: 600; white-space: nowrap; }


/* 12. CITATIONS ET SOURCES ================================================= */

.wp-block-quote,
blockquote {
	margin: 32px 0;
	padding: 4px 0 4px 22px;
	border-left: 4px solid var(--nmo-navy);
	font-style: normal;
	background: none;
}

.wp-block-quote p,
blockquote p {
	font-size: 1.0625em;
	color: #1D2A3A;
	margin-bottom: .6em;
}

.wp-block-quote cite,
blockquote cite {
	display: block;
	font-size: .875rem;
	font-style: normal;
	color: var(--nmo-muted);
}

.nmo-source {
	padding: 20px 24px 20px 26px;
	border-left-color: var(--nmo-blue);
	border-radius: 0 var(--nmo-radius) var(--nmo-radius) 0;
	background: var(--nmo-bg-alt);
}

.nmo-source cite::before { content: "Source : "; font-weight: 600; color: var(--nmo-text); }

.nmo-sources {
	margin-top: 48px;
	padding-top: 20px;
	border-top: 1px solid var(--nmo-border);
	font-size: .875rem;
	color: var(--nmo-muted);
}

.nmo-sources ol { margin-left: 1.2em; }


/* 13. BOUTONS ============================================================== */

.wp-block-button__link,
.wp-element-button,
.button,
button:not(.menu-toggle):not(.nmo-popup__fermer):not([class*="ff-"]):not(.wp-block-search__button),
input[type="submit"],
.fluentform .ff-btn-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 13px 22px;
	border: 0;
	border-radius: 10px;
	background: var(--nmo-navy);
	color: #fff;
	font-family: var(--nmo-font-body);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--nmo-fast) var(--nmo-ease), transform var(--nmo-fast) var(--nmo-ease), box-shadow var(--nmo-fast) var(--nmo-ease), color var(--nmo-fast) var(--nmo-ease);
}

.wp-block-button__link:hover,
.wp-element-button:hover,
.button:hover,
input[type="submit"]:hover,
.fluentform .ff-btn-submit:hover {
	background: var(--nmo-navy-deep);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(10, 42, 94, .22);
}

.wp-block-button__link:active,
.fluentform .ff-btn-submit:active { transform: translateY(0); box-shadow: none; }

/* Bouton secondaire : style « Contour » de Gutenberg */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--nmo-navy);
	box-shadow: inset 0 0 0 2px var(--nmo-blue);
	border: 0;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--nmo-blue-tint);
	color: var(--nmo-navy);
	box-shadow: inset 0 0 0 2px var(--nmo-blue);
}

/* Flèche sur les boutons sortants (/go/) */
.wp-block-button__link[href*="/go/"]::after {
	content: "→";
	transition: transform var(--nmo-fast) var(--nmo-ease);
}

.wp-block-button__link[href*="/go/"]:hover::after { transform: translateX(3px); }

.wp-block-buttons { gap: 12px; }


/* 14. FAQ RANK MATH ======================================================== */

.rank-math-block .rank-math-list,
#rank-math-faq .rank-math-list { margin: 0; }

.rank-math-block .rank-math-list-item,
#rank-math-faq .rank-math-list-item {
	margin: 0 0 12px;
	padding: 18px 22px;
	border: 1px solid var(--nmo-border);
	border-radius: var(--nmo-radius);
	background: #fff;
	transition: border-color var(--nmo-fast) var(--nmo-ease), box-shadow var(--nmo-fast) var(--nmo-ease);
}

.rank-math-block .rank-math-list-item:hover,
#rank-math-faq .rank-math-list-item:hover {
	border-color: var(--nmo-border-strong);
	box-shadow: var(--nmo-shadow);
}

.rank-math-block .rank-math-question,
#rank-math-faq .rank-math-question {
	margin: 0 0 8px;
	font-size: 1.0625rem;
	line-height: 1.4;
}

.rank-math-block .rank-math-answer,
#rank-math-faq .rank-math-answer { font-size: .9688em; }

.rank-math-block .rank-math-answer > :last-child,
#rank-math-faq .rank-math-answer > :last-child { margin-bottom: 0; }


/* 15. IMAGES ET MÉDIAS ===================================================== */

img { height: auto; }

.entry-content img,
.wp-block-image img { border-radius: var(--nmo-radius); }

.wp-block-image { margin: 0 0 28px; }

.wp-block-image figcaption {
	margin-top: 8px;
	font-size: .8125rem;
	color: var(--nmo-muted);
	text-align: left;
	padding: 0;
}

.post-image img,
.featured-image img { border-radius: var(--nmo-radius-lg); }

.wp-block-embed iframe { border-radius: var(--nmo-radius); max-width: 100%; }


/* 16. FORMULAIRES FLUENT FORMS ============================================ */

.fluentform .ff-el-group { margin-bottom: 16px; }

.fluentform .ff-el-input--label label {
	font-weight: 600;
	font-size: .9375rem;
	color: var(--nmo-navy);
}

.fluentform .ff-el-form-control,
input[type="email"],
input[type="text"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea,
select {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid var(--nmo-border-strong);
	border-radius: 10px;
	background: #fff;
	color: var(--nmo-text);
	font: inherit;
	font-size: 1rem; /* 16 px minimum : évite le zoom automatique sur iOS */
	transition: border-color var(--nmo-fast) var(--nmo-ease), box-shadow var(--nmo-fast) var(--nmo-ease);
}

.fluentform .ff-el-form-control:focus,
input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--nmo-blue);
	box-shadow: 0 0 0 4px rgba(30, 158, 232, .18);
}

.fluentform .ff-el-is-error .ff-el-form-control { border-color: var(--nmo-amber); }
.fluentform .error.text-danger { color: #8A5A00; font-size: .875rem; }

.fluentform .ff-message-success {
	border: 1px solid #BFE6D1;
	background: #EAF7F0;
	color: var(--nmo-green-text);
	border-radius: var(--nmo-radius);
	box-shadow: none;
}

.nmo-mention-rgpd {
	font-size: .8125rem;
	color: var(--nmo-muted);
	margin-top: 10px;
}


/* 17. POP-UP DE SORTIE (une fois par visiteur, mémoire 14 jours) =========== */

.nmo-popup {
	width: min(480px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	padding: 0;
	border: 0;
	border-radius: 18px;
	background: #fff;
	color: var(--nmo-text);
	box-shadow: 0 24px 64px rgba(7, 31, 71, .28);
	overflow: auto;
}

.nmo-popup[open] { animation: nmo-pop var(--nmo-base) var(--nmo-ease); }

.nmo-popup::backdrop {
	background: rgba(7, 31, 71, .45);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	animation: nmo-fade var(--nmo-base) var(--nmo-ease);
}

@keyframes nmo-pop {
	from { opacity: 0; transform: translateY(8px) scale(.98); }
	to   { opacity: 1; transform: none; }
}

@keyframes nmo-fade { from { opacity: 0; } to { opacity: 1; } }

.nmo-popup__inner { padding: 32px 28px 24px; }

.nmo-popup__surtitre {
	margin: 0 0 6px;
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--nmo-link);
}

.nmo-popup__titre {
	font-family: var(--nmo-font-title);
	font-weight: 600;
	color: var(--nmo-navy);
	letter-spacing: -0.01em;
	margin: 0 0 10px;
	font-size: 1.5rem;
	line-height: 1.25;
}

.nmo-popup__texte { margin: 0 0 18px; font-size: 1rem; }

.nmo-popup__fermer {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--nmo-muted);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color var(--nmo-fast) var(--nmo-ease), color var(--nmo-fast) var(--nmo-ease);
}

.nmo-popup__fermer:hover { background: var(--nmo-bg-alt); color: var(--nmo-navy); }

.nmo-popup__refus {
	display: block;
	margin: 12px auto 0;
	padding: 8px;
	border: 0;
	background: none;
	color: var(--nmo-muted);
	font: inherit;
	font-size: .875rem;
	text-decoration: underline;
	cursor: pointer;
}


/* 18. FOOTER =============================================================== */

.site-footer { font-size: .9375rem; }

.site-footer .footer-widgets {
	background: var(--nmo-navy);
	color: #C9D6E8;
	padding-top: 56px;
	padding-bottom: 40px;
}

.site-footer .footer-widgets .widget-title,
.site-footer .footer-widgets h2,
.site-footer .footer-widgets h3 {
	font-family: var(--nmo-font-title);
	font-weight: 600;
	font-size: 1rem;
	color: #fff;
	margin: 0 0 14px;
	letter-spacing: 0;
}

.site-footer .footer-widgets a {
	color: #E7EEF8;
	text-decoration: none;
	transition: color var(--nmo-fast) var(--nmo-ease);
}

.site-footer .footer-widgets a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--nmo-blue); }

.site-footer .footer-widgets ul { list-style: none; margin: 0; padding: 0; }
.site-footer .footer-widgets li { margin: 0 0 9px; }

.site-footer .footer-widgets .widget { margin-bottom: 28px; }

.site-info {
	background: var(--nmo-navy-deep);
	color: #AFC0D6;
	font-size: .8125rem;
}

.site-info a { color: #E7EEF8; }
.site-info .inside-site-info { padding-top: 18px; padding-bottom: 18px; }


/* 19. ACCESSIBILITÉ, MOUVEMENT RÉDUIT, IMPRESSION ========================== */

.screen-reader-text:focus {
	background: #fff;
	color: var(--nmo-navy);
	box-shadow: var(--nmo-shadow-hover);
	border-radius: 8px;
	padding: 12px 16px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 1ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 1ms !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.site-header, .site-footer, .nmo-toc, .nmo-popup, .nmo-cta-bloc, .rank-math-breadcrumb { display: none !important; }
	body { font-size: 11pt; color: #000; }
	a { color: #000; text-decoration: underline; }
	.entry-content a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
	.single-post .entry-content { display: block !important; }
}
