/* Atentiko Blog — styles communs. Les couleurs et polices viennent
   des variables CSS de l'habillage actif (voir skins/<habillage>/skin.php). */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html { background: var(--bg); }

/* Le site ne dépasse jamais 1800 px de large, centré. */
body {
	width: 100%;
	max-width: 1800px;
	margin: 0 auto;
	overflow-x: clip;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
[hidden] { display: none !important; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; clip-path: none; width: auto; height: auto; z-index: 100;
	top: 8px; left: 8px; padding: 10px 16px; background: var(--card); border: 2px solid var(--ink); border-radius: 999px;
}

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap--text { max-width: 760px; }
.center { display: flex; justify-content: center; padding-top: 40px; }
.section { padding-top: 64px; padding-bottom: 40px; }
.section--narrow { max-width: 900px; }
.section__title { margin-bottom: 28px; }

@media (min-width: 1804px) {
	body { border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); }
}

/* ---------- Typo ---------- */
.hand {
	font-family: var(--font-hand); font-weight: 700; font-size: 28px; line-height: 1.2;
	color: var(--hand); display: block;
}
.h2 {
	margin: 0; font-family: var(--font-display); font-weight: var(--display-weight);
	font-size: 40px; line-height: 1.02; letter-spacing: var(--display-tracking); color: inherit;
}
.h2--big { font-size: clamp(34px, 4vw, 52px); }
.lead { margin: 0; font-size: 18px; line-height: 1.55; max-width: 560px; }
.link-strong { font-weight: 700; font-size: 17px; }
.empty { font-size: 18px; color: var(--muted); }
.admin-note { margin: 0; font-size: 14px; background: var(--card); border: 1px dashed var(--ink); border-radius: 12px; padding: 8px 12px; }

/* ---------- Boutons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
	padding: 0 26px; border-radius: 999px; border: 2px solid var(--ink);
	font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
}
.btn--dark { background: var(--btn); border-color: var(--btn); color: #FFFFFF; }
.btn--dark:hover { color: #FFFFFF; filter: brightness(1.15); }
.btn--ink { background: var(--ink); color: #FFFFFF; }
.btn--ink:hover { color: #FFFFFF; filter: brightness(1.3); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { color: var(--ink); filter: brightness(1.05); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #FFFFFF; }

/* ---------- En-tête ---------- */
.site-header { background: var(--bg); border-bottom: 2px solid var(--ink); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 18px; padding-bottom: 18px; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-weight: 600; font-size: 16px; }
.nav__list a { color: var(--ink); text-decoration: none; display: inline-block; padding: 10px 0; }
.nav__list a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 5px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__full { height: 34px; width: auto; display: block; }
.logo__mark { height: 52px; width: auto; display: block; }
.custom-logo { max-height: 48px; width: auto; display: block; }

/* ---------- Hero ---------- */
.hero { background: var(--hero); border-bottom: 2px solid var(--ink); overflow: hidden; }
.hero__inner { padding-top: 72px; padding-bottom: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px; align-items: center; }
.hero__text { display: flex; flex-direction: column; gap: 24px; }
.kicker { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.flag { display: inline-flex; flex-shrink: 0; width: 30px; height: 20px; border: 1.5px solid var(--ink); }
.flag span { flex: 1; }
.flag span:nth-child(1) { background: #2B4BB0; }
.flag span:nth-child(2) { background: #FFFFFF; }
.flag span:nth-child(3) { background: #D9363E; }
.hero__title {
	margin: 0; font-family: var(--font-display); font-weight: var(--display-weight);
	font-size: clamp(44px, 6vw, 80px); line-height: 0.98; letter-spacing: var(--display-tracking); color: var(--title);
}
.hero__title em { color: var(--em); }
.hero__lead { margin: 0; font-size: 20px; line-height: 1.55; max-width: 520px; }
.hero__art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 380px; }
.hero__disc { position: absolute; width: min(360px, 90%); aspect-ratio: 1; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); }
.hero__mascot { position: relative; width: min(300px, 75%); }
.bubble {
	position: absolute; background: var(--card); border: 2px solid var(--ink);
	font-family: var(--font-hand); font-weight: 700; color: var(--title); line-height: 1.2;
}
.bubble--1 { top: 18px; right: 6%; border-radius: 22px 22px 22px 4px; padding: 10px 18px; font-size: 30px; transform: rotate(4deg); }
.bubble--2 { bottom: 20px; left: 4%; background: var(--accent); color: var(--ink); border-radius: 4px 22px 22px 22px; padding: 8px 16px; font-size: 26px; transform: rotate(-5deg); }
.hero--small .hero__inner { padding-top: 56px; padding-bottom: 56px; }
.hero--small .hero__art { min-height: 300px; }

.stripes { height: 24px; background: repeating-linear-gradient(180deg, var(--title) 0 6px, var(--bg) 6px 12px); border-bottom: 2px solid var(--ink); }

/* ---------- Phrase de la semaine ---------- */
.section--phrase { padding-top: 72px; padding-bottom: 24px; }
.phrase { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); border: 2px solid var(--ink); border-radius: 28px; overflow: hidden; background: var(--card); }
.phrase__main { padding: 40px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.phrase__title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: var(--display-tracking); }
.phrase__ne { color: var(--wrong); }
.phrase__side { background: var(--phrase-side); border-left: 2px solid var(--ink); padding: 40px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.phrase__mascot { width: 110px; align-self: flex-end; }
.example { display: flex; gap: 14px; align-items: flex-start; }
.example p { margin: 0; font-size: 19px; line-height: 1.45; }
.example__note { color: var(--muted); font-size: 16px; }
.example__icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.example__icon--wrong { background: var(--wrong); }
.example__icon--right { background: var(--right); }
@media (max-width: 700px) {
	.phrase__side { border-left: 0; border-top: 2px solid var(--ink); }
	.phrase__main, .phrase__side { padding: 28px 24px; }
}

/* ---------- Rubriques et vignettes ---------- */
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 28px; }
.section__head > div:first-child { display: flex; flex-direction: column; gap: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips--page { padding-bottom: 28px; }
.chip {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
	border: 2px solid var(--ink); background: var(--chip, #FFFFFF); color: var(--ink);
	font-weight: 700; font-size: 15px; text-decoration: none;
}
.chip:hover { color: var(--ink); filter: brightness(0.95); }
.chip.is-active { background: var(--ink); color: #FFFFFF; }
.chip--small { min-height: 34px; padding: 0 14px; font-size: 13px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 28px; }
.card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; border: 2px solid var(--ink); border-radius: 22px; overflow: hidden; background: var(--card); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 6px 0 var(--ink); }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }
.visual { height: 190px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; gap: 12px; }
.visual__word { font-family: var(--font-hand); font-weight: 700; font-size: 40px; line-height: 1; color: var(--ink); transform: rotate(-3deg); min-width: 0; overflow-wrap: break-word; }
.visual__mascot { width: 96px; flex-shrink: 0; }
.visual--photo { padding: 0; }
.visual--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--ink); flex-grow: 1; }
.card__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.card__title { margin: 0; font-family: var(--font-display); font-weight: var(--h3-weight); font-size: 23px; line-height: 1.2; }
.card__excerpt { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text2); }

/* ---------- Bloc « aller plus loin » ---------- */
.section--cta { padding-top: 40px; padding-bottom: 40px; }
.cta { background: var(--cta-bg); border: 2px solid var(--ink); border-radius: 32px; padding: 56px 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px; align-items: center; color: #FFFFFF; }
.cta__text { display: flex; flex-direction: column; gap: 18px; }
.cta .lead { color: var(--cta-text); font-size: 19px; }
.hand--cta { color: var(--cta-kicker); font-size: 30px; }
.cta__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tile { background: var(--bg); color: var(--ink); border: 2px solid var(--ink); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.tile strong { font-family: var(--font-display); font-weight: var(--h3-weight); font-size: 20px; }
.tile span { font-size: 15px; color: var(--text2); }
.tile--link { text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.tile--link:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 4px 0 var(--ink); }
.tile__arrow { font-family: var(--font-body); font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .tile--link, .tile--link:hover { transition: none; transform: none; } }
@media (max-width: 600px) {
	.cta { padding: 36px 24px; }
	.tile { padding: 16px; }
}

/* ---------- Newsletter + équipe ---------- */
.section--duo { padding-top: 40px; padding-bottom: 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 28px; }
.box { border: 2px solid var(--ink); border-radius: 28px; padding: 40px; display: flex; flex-direction: column; gap: 16px; background: var(--card); }
.box--accent { background: var(--accent); }
.box--accent .hand { color: var(--ink); }
@media (max-width: 600px) { .box { padding: 28px 24px; } }
.nl-form { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.nl-form input, .search-form input {
	flex: 1 1 220px; min-height: 52px; padding: 0 20px; border: 2px solid var(--ink);
	border-radius: 999px; font: inherit; font-size: 17px; background: #FFFFFF; color: var(--ink);
}
.search-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; }
.team__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 16px; }
.team__member { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.team__member img { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; }
.team__member strong { font-family: var(--font-display); font-weight: var(--h3-weight); font-size: 20px; }

/* ---------- En-têtes de liste et d'article ---------- */
.page-head { background: var(--band); border-bottom: 2px solid var(--ink); }
.page-head__inner { padding-top: 56px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 14px; }
.page-head .hand { color: var(--ink); }
.post-head { background: var(--band); border-bottom: 2px solid var(--ink); }
.post-head__inner { padding-top: 40px; padding-bottom: 48px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.post-head__text { display: flex; flex-direction: column; gap: 16px; }
.back { font-weight: 700; color: var(--ink); text-decoration: none; }
.back:hover { color: var(--ink); text-decoration: underline; }
.post-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.post-head__title { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: var(--display-tracking); color: var(--ink); }
.post-head__lead { margin: 0; font-size: 20px; max-width: 640px; }
.post-head__art { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.post-head__word { font-family: var(--font-hand); font-weight: 700; font-size: 48px; line-height: 1; transform: rotate(-3deg); text-align: center; }
.post-head__mascot { width: 180px; }
.post-head__photo { width: 100%; border: 2px solid var(--ink); border-radius: 22px; }
@media (max-width: 760px) {
	.post-head__inner { grid-template-columns: 1fr; }
	.post-head__art { flex-direction: row; justify-content: flex-start; }
	.post-head__mascot { width: 110px; }
	.post-head__word { font-size: 36px; }
}

/* ---------- Contenu d'article ---------- */
.prose { padding-top: 48px; padding-bottom: 32px; font-size: 19px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 1.15; color: var(--title); margin-top: 1.8em; margin-bottom: 0; }
.prose h2 { font-size: 34px; }
.prose h3 { font-size: 26px; font-weight: var(--h3-weight); }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 20px 24px; border: 2px solid var(--ink); border-radius: 20px; background: var(--phrase-side); font-size: 21px; }
.prose blockquote p { margin: 0; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose img { border-radius: 16px; }
.prose figcaption { font-size: 15px; color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; font-size: 17px; }
.prose th, .prose td { border: 2px solid var(--ink); padding: 10px 14px; text-align: left; }
.prose th { background: var(--hero); }
.prose mark { background: var(--accent); padding: 0 .2em; }
.prose code { background: var(--phrase-side); padding: .1em .35em; border-radius: 6px; font-size: .9em; }
.prose .wp-block-button__link { background: var(--btn); color: #FFFFFF; border-radius: 999px; padding: 14px 26px; font-weight: 700; text-decoration: none; }
.prose .alignwide { max-width: 1000px; margin-left: 50%; transform: translateX(-50%); width: calc(min(100vw, 1800px) - 48px); }
.post-tags a { display: inline-block; margin: 0 6px 6px 0; padding: 4px 12px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 14px; text-decoration: none; color: var(--ink); }

/* ---------- Pagination ---------- */
.pagination { padding-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--ink); }
.pagination .page-numbers.current { background: var(--ink); color: #FFFFFF; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); border-top: 2px solid var(--ink); }
.site-footer a { color: var(--footer-text); }
.site-footer__inner { padding-top: 48px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 32px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.logo--footer .logo__mark { height: auto; width: 64px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; }
.site-footer__links a { text-decoration: none; display: inline-block; padding: 8px 0; }
.site-footer__links a:hover { text-decoration: underline; color: #FFFFFF; }
.sites { border-top: 1px solid var(--footer-line); padding-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.sites__title { font-family: var(--font-hand); font-weight: 700; font-size: 30px; color: #FFFFFF; }
.sites__grid { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .sites__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .sites__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .sites__grid { grid-template-columns: 1fr; } }
.sites__card { min-width: 0; background: var(--footer-card); border: 1.5px solid var(--footer-line); border-radius: 20px; padding: 20px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.sites__label { white-space: nowrap; min-height: 1.5em; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--footer-accent); }
.sites__desc { color: var(--footer-muted); font-size: 14px; line-height: 1.5; }
.sites__card a { color: #FFFFFF; font-weight: 600; font-size: 15px; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--footer-accent); }
.site-footer__bottom { border-top: 1px solid var(--footer-line); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--footer-muted); }
.site-footer__bottom a { color: #FFFFFF; }
.site-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--footer-muted); }
.site-footer__legal a { color: var(--footer-muted); }

/* ---------- Petits écrans ---------- */
@media (max-width: 600px) {
	.nav { padding-top: 12px; padding-bottom: 8px; }
	.nav__list { gap: 0 18px; font-size: 15px; }
	.nav__list a { padding: 8px 0; }
	.hero__inner { padding-top: 48px; padding-bottom: 40px; gap: 32px; }
	.hero__art { min-height: 300px; }
	.bubble--1 { font-size: 24px; }
	.bubble--2 { font-size: 22px; }
}
@media (max-width: 480px) {
	.cta__tiles { grid-template-columns: 1fr; }
}

/* Petits logos des autres sites */
.sites__card .sites__link { display: inline-flex; align-items: center; gap: 8px; }
.sites__icon { width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px; background: #FFFFFF; object-fit: contain; }
.sites__icon--letter { display: inline-flex; align-items: center; justify-content: center; background: var(--footer-accent); color: var(--footer-bg); font-size: 13px; font-weight: 700; text-decoration: none; }
