/*
Theme Name: Atlas Business
Theme URI: https://atlas-business.fr/
Author: Atlas Business
Description: Thème éditorial sur mesure pour le blog Atlas Business : rubriques à la racine, pages auteurs détaillées, SEO complet, connexion sur /connexion/, design illustré à la main.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: atlas-business
*/

/* ==========================================================================
   Polices (auto-hébergées)
   ========================================================================== */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url(assets/fonts/inter-400.woff) format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500 600; font-style: normal; font-display: swap; src: url(assets/fonts/inter-500.woff) format("woff"); }
@font-face { font-family: "Inter"; font-weight: 700 800; font-style: normal; font-display: swap; src: url(assets/fonts/inter-700.woff) format("woff"); }
@font-face { font-family: "Inter"; font-weight: 900; font-style: normal; font-display: swap; src: url(assets/fonts/inter-900.woff) format("woff"); }
@font-face { font-family: "Caveat"; font-weight: 600; font-style: normal; font-display: swap; src: url(assets/fonts/caveat-600.woff) format("woff"); }

/* ==========================================================================
   Jetons
   ========================================================================== */
:root {
	--ink: #163300;
	--lime: #9fe870;
	--spruce: #054d28;
	--linen: #e2f6d5;
	--fog: #e8ebe6;
	--paper: #ffffff;
	--charcoal: #454745;
	--obsidian: #0e0f0c;
	--slate: #5f615f;
	--pebble: #868685;
	--red: #cb272f;

	--sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

	--r-hand: 18px 24px 16px 22px / 22px 16px 24px 18px;
	--r-hand-lg: 28px 36px 26px 34px / 34px 26px 36px 28px;
	--r-input: 10px;
	--pill: 9999px;

	--line: 2px solid var(--ink);
	--offset: 6px 6px 0 var(--lime);
	--offset-hover: 9px 9px 0 var(--lime);

	--wrap: 1200px;
	--gutter: 24px;
	--section: clamp(56px, 8vw, 96px);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1.6;
	letter-spacing: -0.007em;
	color: var(--charcoal);
	background: var(--paper);
	font-feature-settings: "calt";
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: var(--lime); }
h1, h2, h3, h4 { color: var(--obsidian); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--lime); padding: 10px 16px; border-radius: var(--pill); font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(780px + 2 * var(--gutter)); }
.ico { flex: none; }
.hand { font-family: var(--hand); font-weight: 600; font-size: 1.45em; line-height: 1.1; letter-spacing: 0; color: var(--ink); }
.muted { color: var(--pebble); }
mark { background: var(--lime); color: var(--ink); padding: 0 .2em; border-radius: 4px; }

/* ==========================================================================
   Boutons, liens, pastilles
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 12px 24px;
	font: 700 16px/1.2 var(--sans); letter-spacing: -0.01em;
	border-radius: var(--pill); border: var(--line);
	text-decoration: none; cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn-primary { background: var(--lime); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-outline { background: var(--paper); color: var(--ink); }
.btn-outline:hover { background: var(--linen); }
.btn .plane { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.btn:hover .plane { transform: translate(5px, -5px) rotate(-8deg); }
.text-link { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.text-link:hover { text-decoration-color: var(--ink); }
.pill {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 14px;
	font: 600 14px/1.2 var(--sans);
	color: var(--ink); background: var(--lime);
	border: 1.5px solid var(--ink); border-radius: var(--pill);
	text-decoration: none;
}
a.pill:hover { background: var(--ink); color: var(--lime); }
.pill-sm { padding: 4px 11px; font-size: 13px; }
.pill-soft { background: var(--linen); border-color: transparent; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.pills-lg .pill { font-size: 15px; padding: 8px 16px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: var(--ink); }

/* ==========================================================================
   En-tête
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 2px solid var(--ink);
}
.header-in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--obsidian); flex: none; }
.brand-name { font-weight: 900; font-size: 23px; letter-spacing: -0.045em; }
.brand .logo-mark { transition: transform .6s cubic-bezier(.3, 1.4, .5, 1); }
.brand:hover .logo-mark { transform: rotate(-18deg); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 2px; list-style: none; }
.main-nav a {
	position: relative; display: inline-flex; align-items: center; gap: 7px;
	padding: 10px 13px;
	font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em;
	color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nav-ico {
	display: inline-grid; place-items: center;
	width: 26px; height: 26px; border-radius: 50%;
	background: var(--linen); color: var(--ink);
	transition: background-color .2s ease, transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.main-nav .nav-ring {
	position: absolute; inset: -2px -4px; width: calc(100% + 8px); height: calc(100% + 4px);
	color: var(--ink); pointer-events: none; overflow: visible;
	stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
	transition: stroke-dashoffset .45s ease, opacity .15s ease;
}
.main-nav .nav-ring path { stroke-dasharray: 1; stroke-dashoffset: inherit; }
.main-nav a:hover .nav-ring, .main-nav a:focus-visible .nav-ring { stroke-dashoffset: 0; opacity: 1; }
.main-nav a:hover .nav-ico { background: var(--lime); transform: rotate(-10deg) scale(1.1); }
.main-nav a[aria-current="page"] .nav-ico { background: var(--lime); }
.main-nav a[aria-current="page"] .nav-ring { stroke-dashoffset: 0; opacity: 1; }
.btn-contact { padding: 9px 18px; font-size: 15px; flex: none; }
.btn-contact[aria-current="page"] { background: var(--lime); }

.mobile-nav { display: none; margin-left: auto; position: relative; }
.mobile-nav summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 46px; height: 46px; border: var(--line); border-radius: 50%; color: var(--ink); background: var(--paper); }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav .i-close, .mobile-nav[open] .i-open { display: none; }
.mobile-nav[open] .i-close { display: block; }
.mobile-nav[open] summary { background: var(--lime); }
.mobile-panel {
	position: absolute; right: 0; top: calc(100% + 12px); width: min(320px, calc(100vw - 32px));
	background: var(--paper); border: var(--line); border-radius: var(--r-hand); box-shadow: var(--offset);
	padding: 18px;
}
.mobile-panel .hand { margin-bottom: 8px; }
.mobile-panel ul { list-style: none; }
.mobile-panel li a { display: flex; align-items: center; gap: 10px; padding: 10px 6px; font-weight: 600; text-decoration: none; border-radius: 10px; }
.mobile-panel li a:hover, .mobile-panel li a[aria-current="page"] { background: var(--linen); }
.mobile-sub { border-top: 1.5px dashed var(--pebble); margin-top: 10px; padding-top: 10px; }

/* ==========================================================================
   Titres d'affichage
   ========================================================================== */
.display {
	font-weight: 900;
	font-size: clamp(42px, 7.4vw, 92px);
	line-height: .92;
	letter-spacing: -0.045em;
	color: var(--obsidian);
	margin: 0 0 24px;
	text-wrap: balance;
}
.display-md { font-size: clamp(36px, 5.2vw, 64px); line-height: .98; }
.mark { position: relative; display: inline-block; white-space: nowrap; }
.mark .scribble { position: absolute; left: -2%; bottom: -.08em; width: 104%; height: .32em; color: var(--lime); z-index: -1; overflow: visible; }
.mark .scribble path { stroke-width: 7; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1s .35s ease-out forwards; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--charcoal); max-width: 62ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 18px; }
.eyebrow .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px var(--ink); }
.kicker { margin: 0 0 4px; transform: rotate(-2deg); transform-origin: left; display: inline-block; }
.h-section { font-weight: 900; font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -0.035em; line-height: 1.02; margin: 0; }
.h-sub { font-weight: 800; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.03em; margin: 0 0 16px; }
.count { color: var(--pebble); font-weight: 700; }

/* ==========================================================================
   Héros
   ========================================================================== */
.hero { position: relative; isolation: isolate; padding: clamp(36px, 5vw, 72px) 0 clamp(8px, 2vw, 24px); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin: 30px 0 34px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; font-size: 15px; color: var(--slate); }
.hero-facts strong { display: block; font-weight: 900; font-size: 30px; line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
.hero-facts li { padding-left: 14px; border-left: 3px solid var(--lime); }
.hero-art { position: relative; }
.hero-svg { width: 100%; height: auto; overflow: visible; }
.hand-svg { font-family: var(--hand); }

/* Animation unique au chargement : la courbe se dessine, l'avion plane */
.h-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s .2s cubic-bezier(.6, 0, .3, 1) forwards; }
.h-draw-late { opacity: 0; animation: pop .3s 1.5s ease-out forwards; }
.h-plane { animation: float 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.h-stars { animation: twinkle 3.2s ease-in-out infinite; }
.p-plane { transform-box: fill-box; transform-origin: center; transition: transform .6s cubic-bezier(.3, 1.4, .5, 1); }
.cta-card:hover .p-plane { transform: translate(14px, -10px) rotate(-6deg); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(6px, -9px) rotate(-3deg); } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: var(--section) 0; }
.section-flush { padding-top: 24px; }
.section-tint { background: var(--linen); }
.section-dark { background: var(--ink); color: rgba(255, 255, 255, .86); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px 48px; align-items: end; margin-bottom: 40px; }
.section-intro { margin: 0; color: var(--slate); max-width: 58ch; }

/* Rubriques */
.cat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; list-style: none; }
.cat-card {
	position: relative; display: flex; flex-direction: column;
	padding: 24px 20px 20px;
	background: var(--paper); border: var(--line); border-radius: var(--r-hand);
	box-shadow: var(--offset);
	transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card:nth-child(even) { border-radius: 24px 16px 22px 18px / 16px 22px 18px 24px; }
.cat-card:hover { transform: translate(-3px, -3px) rotate(-.4deg); box-shadow: var(--offset-hover); }
.cat-ico { display: inline-grid; place-items: center; width: 58px; height: 58px; margin-bottom: 18px; background: var(--lime); color: var(--ink); border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%; border: 2px solid var(--ink); }
.cat-ico-sm { width: 36px; height: 36px; margin: 0; border-width: 1.5px; }
.cat-card:hover .cat-ico { transform: rotate(-8deg); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.cat-name { font-size: 20px; font-weight: 800; letter-spacing: -0.025em; margin: 0 0 8px; }
.cat-name a { text-decoration: none; color: inherit; }
.cat-name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.cat-card p { font-size: 15px; line-height: 1.5; color: var(--slate); margin: 0 0 16px; }
.cat-count { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--ink); }

/* Cartes d'article */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 26px; }
.card {
	position: relative; display: flex; flex-direction: column;
	background: var(--paper); border: var(--line); border-radius: var(--r-hand);
	box-shadow: var(--offset); overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: var(--offset-hover); }
.card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: var(--line); background: var(--linen); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.card-title { font-size: 20px; font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; margin: 0; }
.card-title a { color: var(--obsidian); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-body .pill { position: relative; z-index: 2; }
.card-title a:hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; }
.card-excerpt { font-size: 15.5px; line-height: 1.55; color: var(--slate); margin: 0; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: auto 0 0; padding-top: 6px; font-size: 13.5px; color: var(--pebble); }

/* État vide */
.empty { text-align: center; padding: 48px 24px; border: 2px dashed var(--ink); border-radius: var(--r-hand-lg); background: var(--paper); color: var(--slate); }
.empty .ico { color: var(--ink); margin: 0 auto 12px; display: block; }
.empty-title { font-weight: 800; font-size: 22px; color: var(--obsidian); letter-spacing: -0.02em; margin-bottom: 6px; }
.empty .pills { justify-content: center; margin-top: 18px; }

/* Pourquoi on écrit (section sombre) */
.why-head { max-width: 760px; margin-bottom: 44px; }
.section-dark .h-section { color: var(--lime); }
.section-dark .hand { color: var(--paper); }
.section-dark .section-intro { color: rgba(255, 255, 255, .78); margin-top: 16px; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; list-style: none; }
.why-card { padding: 28px 26px; border: 2px solid var(--lime); border-radius: var(--r-hand); }
.why-card:nth-child(2) { border-radius: 24px 16px 22px 18px / 16px 22px 18px 24px; }
.why-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%; background: var(--lime); color: var(--ink); }
.why-card h3 { color: var(--paper); font-size: 21px; font-weight: 800; }
.why-card p { margin: 0; font-size: 16px; }
.why-grid-light .why-card { border-color: var(--ink); background: var(--paper); box-shadow: var(--offset); }
.why-grid-light .why-card h3 { color: var(--obsidian); }
.why-grid-light .why-card p { color: var(--slate); }

/* Auteurs */
.author-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.author-card {
	position: relative; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start;
	padding: 28px; background: var(--paper);
	border: var(--line); border-radius: var(--r-hand-lg); box-shadow: var(--offset);
	transition: transform .2s ease, box-shadow .2s ease;
}
.author-card:hover { transform: translate(-3px, -3px); box-shadow: var(--offset-hover); }
.avatar { border-radius: 50%; object-fit: cover; background: var(--linen); }
.avatar-lg { width: 120px; height: 120px; border: var(--line); box-shadow: 5px 5px 0 var(--lime); }
.avatar-sm { width: 44px; height: 44px; border: 1.5px solid var(--ink); }
.avatar-xs { width: 32px; height: 32px; border: 1.5px solid var(--ink); }
.avatar-xl { width: clamp(160px, 22vw, 220px); height: auto; aspect-ratio: 1; border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--lime); }
.author-card-name { font-size: 24px; font-weight: 900; letter-spacing: -0.03em; margin: 0 0 2px; }
.author-card-name a { text-decoration: none; color: var(--obsidian); }
.author-card-name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.author-card-role { font-family: var(--hand); font-weight: 600; font-size: 23px; line-height: 1.1; color: var(--spruce); margin: 0 0 10px; }
.author-card p { font-size: 16px; line-height: 1.55; }
.author-card .pills { margin: 4px 0 16px; }
.author-card:hover .link-arrow .ico { transform: translateX(4px); transition: transform .2s ease; }

/* Appel au contact */
.section-cta { padding-top: 0; }
.section-tint + .section-cta, .section-dark + .section-cta { padding-top: var(--section); }
.cta-card {
	display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: center;
	padding: clamp(28px, 4vw, 48px);
	background: var(--linen); border: var(--line); border-radius: var(--r-hand-lg);
}
.cta-text p { max-width: 54ch; color: var(--slate); margin: 14px 0 24px; }
.plane-svg { width: 100%; max-width: 340px; margin-left: auto; display: block; overflow: visible; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer { position: relative; background: var(--ink); color: rgba(255, 255, 255, .8); margin-top: 40px; padding: 64px 0 28px; font-size: 16px; }
.footer-edge { position: absolute; left: 0; top: -38px; width: 100%; height: 40px; color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.brand-light .brand-name { color: var(--paper); }
.footer-tag { margin: 16px 0 10px; max-width: 34ch; }
.footer-hand { color: var(--lime); font-size: 24px; transform: rotate(-2deg); transform-origin: left; }
.footer-title { color: var(--lime); font-weight: 800; font-size: 15px; margin-bottom: 14px; letter-spacing: 0; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.footer-col a:hover { color: var(--lime); text-decoration: underline; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 22px; font-size: 14px; color: rgba(255, 255, 255, .62); }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1.5px dashed rgba(159, 232, 112, .35); }
.footer-bottom p { margin: 0; }
.site-footer :focus-visible { outline-color: var(--lime); }

/* ==========================================================================
   Fil d'Ariane
   ========================================================================== */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; font-size: 14px; color: var(--slate); margin-bottom: 22px; }
.crumbs li + li::before { content: "/"; margin: 0 9px; color: var(--pebble); }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; display: inline-block; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* ==========================================================================
   Article
   ========================================================================== */
.post-head { padding: 36px 0 32px; }
.post-head .pill { margin-bottom: 18px; }
.post-title { font-weight: 900; font-size: clamp(34px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.04em; max-width: 22ch; margin: 0 0 20px; text-wrap: balance; }
.post-lead { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; max-width: 60ch; color: var(--charcoal); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; font-size: 15px; color: var(--slate); }
.byline { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--charcoal); }
.byline strong { color: var(--ink); }
.byline:hover strong { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; }
.meta-item { display: inline-flex; align-items: center; gap: 7px; }
.meta-item .ico { color: var(--ink); }
.post-figure { margin: 0 0 48px; }
.post-figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: var(--line); border-radius: var(--r-hand-lg); box-shadow: 10px 10px 0 var(--lime); }
.post-figure figcaption { margin-top: 14px; font-size: 14px; color: var(--pebble); }
.post-layout { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; gap: 56px; padding-bottom: var(--section); }
.post-layout.has-toc { grid-template-columns: 270px minmax(0, 760px); justify-content: space-between; }

/* Sommaire */
.toc details { position: sticky; top: 100px; padding: 20px 20px 18px; border: var(--line); border-radius: var(--r-hand); background: var(--paper); box-shadow: var(--offset); }
.toc summary { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; counter-reset: toc; margin-top: 14px; display: grid; gap: 4px; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 26px 1fr; gap: 4px; padding: 6px 8px; font-size: 15px; line-height: 1.4; color: var(--charcoal); text-decoration: none; border-radius: 8px; }
.toc a::before { content: counter(toc); font-family: var(--hand); font-weight: 600; font-size: 21px; line-height: 1; color: var(--spruce); }
.toc a:hover { background: var(--linen); color: var(--ink); }

/* Contenu rédactionnel */
.prose { font-size: 18.5px; line-height: 1.75; color: var(--charcoal); min-width: 0; }
.prose > * { max-width: 100%; }
.prose h2 { position: relative; font-size: clamp(26px, 2.8vw, 33px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.15; margin: 2em 0 .7em; padding-bottom: 12px; }
.prose h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 8'%3E%3Cpath d='M2 5c10-3 20 2 30-1s22 2 38-2' fill='none' stroke='%239fe870' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat; }
.prose h3 { font-size: 23px; font-weight: 800; margin: 1.6em 0 .5em; letter-spacing: -0.02em; }
.prose h4 { font-size: 19px; font-weight: 800; margin: 1.4em 0 .4em; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.25em; }
.prose a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.prose a:hover { background: var(--linen); text-decoration-color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.6em; }
.prose li { margin: .35em 0; padding-left: .2em; }
.prose ul { list-style: none; padding-left: 1.5em; }
.prose ul > li { position: relative; }
.prose ul > li::before { content: ""; position: absolute; left: -1.25em; top: .62em; width: 11px; height: 11px; background: var(--lime); border: 2px solid var(--ink); border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%; }
.prose ol > li::marker { font-weight: 800; color: var(--ink); }
.prose blockquote { margin: 1.8em 0; padding: 22px 26px 22px 30px; background: var(--linen); border-left: 5px solid var(--ink); border-radius: 0 var(--r-input) var(--r-input) 0; font-size: 19px; color: var(--ink); }
.prose blockquote p:last-child { margin: 0; }
.prose blockquote cite { display: block; margin-top: 8px; font-style: normal; font-size: 15px; color: var(--slate); }
.prose img { height: auto; border-radius: var(--r-input); }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: 14px; color: var(--pebble); margin-top: 10px; text-align: center; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 1.6em 0; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 11px 14px; border: 1.5px solid var(--ink); text-align: left; vertical-align: top; }
.prose th { background: var(--lime); color: var(--ink); font-weight: 800; }
.prose tr:nth-child(even) td { background: #f5faf1; }
.prose hr { border: 0; height: 12px; margin: 2.4em 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 6c20-6 38 6 58 0s38 6 58 0' fill='none' stroke='%23163300' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/120px 12px no-repeat; }
.prose code { font-size: .88em; background: var(--fog); padding: .1em .35em; border-radius: 5px; }
.prose pre { background: var(--ink); color: var(--linen); padding: 18px 20px; border-radius: var(--r-input); overflow-x: auto; font-size: 15px; }
.prose pre code { background: none; padding: 0; }
.prose .wp-block-button__link { background: var(--lime); color: var(--ink); border: var(--line); border-radius: var(--pill); font-weight: 700; text-decoration: none; padding: 12px 24px; }
.prose-plain p:last-child { margin-bottom: 0; }
.page-links { margin: 2em 0; font-weight: 700; }

/* Encadré auteur */
.author-box {
	display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start;
	margin-top: 56px; padding: 30px;
	background: var(--linen); border: var(--line); border-radius: var(--r-hand-lg);
	font-size: 17px; line-height: 1.6;
}
.author-box .avatar-lg { width: 112px; height: 112px; }
.author-box .hand { margin: 0 0 2px; font-size: 25px; transform: rotate(-3deg); transform-origin: left; }
.author-box-name { font-weight: 900; font-size: 24px; letter-spacing: -0.03em; color: var(--obsidian); margin: 0 0 10px; }
.author-box-name span { display: block; font-weight: 600; font-size: 15px; letter-spacing: 0; color: var(--spruce); margin-top: 2px; }
.author-box p:not(.hand):not(.author-box-name) { margin: 0 0 18px; }
.prose .author-box .btn { text-decoration: none; font-weight: 700; }
.prose .author-box .btn:hover { background: var(--paper); }

/* ==========================================================================
   Rubrique, pages, auteur
   ========================================================================== */
.archive-head { background: var(--linen); border-bottom: var(--line); padding: 36px 0 44px; }
.archive-head-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.archive-head .eyebrow { margin-bottom: 14px; }
.archive-art img { width: 100%; height: auto; border: var(--line); border-radius: var(--r-hand-lg); box-shadow: 10px 10px 0 var(--ink); }
.archive-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 8px; }
.writers { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.writers .hand { font-size: 22px; }
.writer { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; text-decoration: none; }
.writer:hover { text-decoration: underline; }
.page-indicator { font-weight: 700; color: var(--slate); margin-bottom: 18px; }

.page-head { padding: 40px 0 36px; }
.page-head-tint { background: var(--linen); border-bottom: var(--line); margin-bottom: 0; }
.page-head .lead p:last-child { margin: 0; }
.page-updated { margin: 40px 0 80px; font-size: 14px; color: var(--pebble); }
.page .prose h2 { font-size: 26px; }

.author-hero { background: var(--linen); border-bottom: var(--line); padding: 36px 0 52px; }
.author-hero-in { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.author-portrait { position: relative; }
.portrait-note { position: absolute; right: -22px; top: -6px; transform: rotate(10deg); font-size: 27px; }
.author-stats { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 4px 0 26px; font-size: 16px; color: var(--slate); }
.author-stats strong { color: var(--ink); font-weight: 900; font-size: 20px; }
.author-body { padding-top: var(--section); padding-bottom: calc(var(--section) * .6); }
.author-main { max-width: 820px; margin: 0 auto; }
.author-section { margin-bottom: 56px; }
.author-section .prose { font-size: 18px; }
.author-cats { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 22px; }
.author-cats a { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: var(--line); border-radius: var(--r-hand); text-decoration: none; background: var(--paper); transition: background-color .2s ease; }
.author-cats a:hover { background: var(--linen); }
.author-cats strong { display: block; color: var(--obsidian); font-size: 17px; }
.author-cats small { display: block; color: var(--slate); font-size: 14px; line-height: 1.45; margin-top: 2px; }
.why-quote { margin: 0; padding: 32px 34px 26px; background: var(--ink); color: rgba(255, 255, 255, .9); border-radius: var(--r-hand-lg); font-size: 19.5px; line-height: 1.6; position: relative; }
.why-quote::before { content: "“"; position: absolute; left: 22px; top: -18px; font: 900 82px/1 var(--sans); color: var(--lime); }
.why-quote p { margin: 0 0 12px; }
.why-quote footer { color: var(--lime); font-size: 26px; text-align: right; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.step { position: relative; padding: 24px 22px 20px 74px; border: var(--line); border-radius: var(--r-hand); background: var(--paper); }
.step:nth-child(even) { border-radius: 24px 16px 22px 18px / 16px 22px 18px 24px; }
.step-num { position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); font: 600 26px/1 var(--hand); color: var(--ink); }
.step h3 { font-size: 18px; font-weight: 800; margin: 0 0 6px; }
.step p { font-size: 15.5px; line-height: 1.55; margin: 0; color: var(--slate); }

/* Qui sommes-nous */
.about-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.about-art .hero-svg { max-width: 380px; margin-left: auto; display: block; }
.about-body { max-width: 900px; padding-top: var(--section); padding-bottom: var(--section); }
.about-block { margin-bottom: 64px; }
.about-block:last-child { margin-bottom: 0; }
.charter { list-style: none; display: grid; gap: 14px; }
.charter li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 18px 20px; border: var(--line); border-radius: var(--r-hand); background: var(--paper); }
.charter .ico { background: var(--lime); border-radius: 50%; padding: 5px; width: 32px; height: 32px; border: 1.5px solid var(--ink); }
.charter strong { color: var(--obsidian); }

/* Contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; padding-top: 48px; padding-bottom: var(--section); }
.form-wrap { scroll-margin-top: 110px; }
.contact-form { padding: clamp(22px, 3.5vw, 36px); border: var(--line); border-radius: var(--r-hand-lg); background: var(--paper); box-shadow: var(--offset); }
.field { margin: 0 0 20px; display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field label { font-weight: 700; font-size: 15.5px; color: var(--ink); }
.field input, .field select, .field textarea, .search-form input {
	width: 100%; padding: 13px 16px;
	font: 400 16px/1.4 var(--sans); color: var(--obsidian);
	background: var(--paper); border: 1.5px solid var(--pebble); border-radius: var(--r-input);
	transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field select:focus, .field textarea:focus, .search-form input:focus { outline: none; border-color: var(--ink); box-shadow: 4px 4px 0 var(--lime); }
.field-check { flex-direction: row; align-items: flex-start; gap: 12px; }
.field-check input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--ink); }
.field-check label { font-weight: 400; font-size: 15px; color: var(--charcoal); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 16px 0 0; font-size: 14px; color: var(--pebble); }
.btn-send:hover .plane { transform: translate(8px, -8px) rotate(-12deg); }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-hand); border: var(--line); margin-bottom: 22px; }
.notice p { margin: 0; }
.notice-ok { background: var(--lime); color: var(--ink); }
.notice-title { font-weight: 800; }
.notice-error { background: #fdecec; border-color: var(--red); color: #7d1218; }
.contact-aside { display: grid; gap: 18px; }
.info-card { padding: 22px; border: var(--line); border-radius: var(--r-hand); background: var(--paper); }
.info-card h2 { font-size: 18px; font-weight: 800; margin: 12px 0 6px; }
.info-card p { font-size: 15px; line-height: 1.55; color: var(--slate); margin: 0; }
.info-card-authors { background: var(--linen); }
.info-card-authors h2 { margin-top: 0; }
.info-card-authors ul { list-style: none; display: grid; gap: 12px; margin-top: 12px; }
.info-card-authors li { display: flex; gap: 12px; align-items: center; font-weight: 700; color: var(--obsidian); font-size: 16px; }
.info-card-authors small { display: block; font-weight: 400; color: var(--slate); font-size: 13.5px; }

/* Plan du site */
.sitemap { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding-top: 16px; padding-bottom: var(--section); }
.sitemap-block .h-sub { margin-top: 0; }
.sitemap-block .h-sub ~ .h-sub { margin-top: 36px; }
.sitemap-list { list-style: none; display: grid; gap: 8px; }
.sitemap-list li { padding-left: 18px; position: relative; }
.sitemap-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); border: 1.5px solid var(--ink); }
.sitemap-list small { color: var(--pebble); }
.sitemap-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-content: start; }
.sitemap-cats > .h-sub { grid-column: 1 / -1; margin-bottom: 0; }
.sitemap-cat { padding: 22px; border: var(--line); border-radius: var(--r-hand); }
.sitemap-cat h3 { font-size: 19px; margin-bottom: 14px; }
.sitemap-cat h3 a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.sitemap-cat .sitemap-list { font-size: 16px; }

/* Recherche */
.search-form { position: relative; display: flex; max-width: 520px; margin: 22px 0; }
.search-form input { padding-right: 56px; border-radius: var(--pill); border: var(--line); }
.search-form button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--lime); color: var(--ink); cursor: pointer; }
.search-form button:hover { background: var(--ink); color: var(--lime); }

/* 404 */
.notfound { padding: clamp(48px, 8vw, 100px) 0; }
.notfound-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.notfound .pills { margin: 6px 0 28px; }

/* Pagination */
.pager { margin-top: 48px; }
.pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border: var(--line); border-radius: var(--pill); font-weight: 700; text-decoration: none; background: var(--paper); }
.pager .current { background: var(--lime); }
.pager a:hover { background: var(--linen); }
.pager .dots { border-color: transparent; background: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
	.main-nav a { padding: 10px 9px; font-size: 15px; }
	.main-nav .nav-ico { display: none; }
	.cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
	.main-nav, .btn-contact { display: none; }
	.mobile-nav { display: block; }
	.hero-in, .archive-head-in, .about-head, .notfound-in { grid-template-columns: 1fr; }
	.hero-art { max-width: 520px; margin: 0 auto; width: 100%; }
	.about-art { display: none; }
	.archive-art { max-width: 560px; }
	.section-head { grid-template-columns: 1fr; }
	.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.author-grid { grid-template-columns: 1fr; }
	.post-layout.has-toc { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.toc details { position: static; }
	.toc details:not([open]) { box-shadow: none; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.contact-layout { grid-template-columns: 1fr; }
	.sitemap { grid-template-columns: 1fr; }
	.why-grid { grid-template-columns: 1fr; }
	.cta-card { grid-template-columns: 1fr; }
	.cta-art { display: none; }
	.notfound-art { max-width: 300px; }
}
@media (max-width: 680px) {
	:root { --gutter: 16px; }
	body { font-size: 17px; }
	.header-in { min-height: 64px; }
	.brand-name { font-size: 20px; }
	.cat-grid, .card-grid, .steps, .sitemap-cats, .field-row { grid-template-columns: 1fr; }
	.author-card, .author-box { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
	.author-hero-in { grid-template-columns: 1fr; }
	.author-portrait { max-width: 180px; }
	.prose { font-size: 17.5px; }
	.post-figure img { box-shadow: 6px 6px 0 var(--lime); }
	.archive-art img { box-shadow: 6px 6px 0 var(--ink); }
	.footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.hero-facts strong { font-size: 26px; }
	.crumbs [aria-current] { max-width: 24ch; }
}

/* ==========================================================================
   Mouvement réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.h-draw, .mark .scribble path { stroke-dashoffset: 0; }
	.h-draw-late { opacity: 1; }
}

/* Impression */
@media print {
	.site-header, .site-footer, .toc, .related, .author-box .btn { display: none !important; }
	.post-figure img, .card { box-shadow: none; }
}

/* Ajustements */
.prose .avatar, .avatar { border-radius: 50%; }
.section-head > div:only-child { grid-column: 1 / -1; }
.archive-meta .pill-soft { background: var(--paper); border-color: var(--ink); }
.site-footer { margin-top: 0; }
.site-main > :last-child:not(.section-tint):not(.section-dark) { padding-bottom: calc(var(--section) + 20px); }
