/*
Theme Name: Jupiter Child (altern8)
Description: Thème enfant de Jupiter pour altern8 — VERSION PROD « blog seul » (extrait de la préprod du 2026-12-01) — véhicule des modifications visuelles et structurelles. Versionné en Git, déployé par simple copie de fichiers : ne touche NI la base de données NI le contenu (articles, commentaires, messages).
Author: altern8
Template: jupiter
Version: 1.1.0
*/

/* =========================================================================
   Personnalisations altern8
   -------------------------------------------------------------------------
   Ajoute ici tes styles. Tout ce qui est écrit dans ce fichier se déploie
   préprod -> prod par simple copie, sans aucun risque pour le contenu.

   Bonne pratique : regrouper par zone et dater les blocs, pour que la
   promotion en production soit lisible.
   ========================================================================= */

/* --- 2026-10-14 — Blog — style 3 : bandeau, filtres, à la une, grille de cartes ---
   Rendu HTML produit par functions.php (a8_blog_render). */
body.blog #mk-page-introduce { display: none; }
body.blog #theme-page { overflow-x: clip; }
body.blog #theme-page .theme-page-wrapper { margin-top: 0 !important; }
body.blog #theme-page .theme-page-wrapper .theme-content { padding-top: 0 !important; }

#theme-page .a8-blog {
	--a8-navy: #0f2c47;
	--a8-red: #e43117;
	--a8-ink: #16283b;
	--a8-muted: #6b7785;
	--a8-line: #e3e8ef;
	max-width: 1180px;
	margin: 0 auto 64px;
}
#theme-page .a8-blog a { text-decoration: none; }
#theme-page .a8-icon {
	width: 16px; height: 16px; flex-shrink: 0;
	fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
#theme-page .a8-stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Bandeau */
#theme-page .a8-hero {
	position: relative;
	margin: 0 calc(50% - 50vw) 28px;
	padding: 64px 20px 72px;
	background: var(--a8-navy) center 40% / cover no-repeat;
	color: #fff;
}
#theme-page .a8-hero::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(11, 33, 56, .97) 0%, rgba(11, 33, 56, .9) 38%, rgba(11, 33, 56, .55) 70%, rgba(11, 33, 56, .35) 100%);
}
#theme-page .a8-hero__inner { position: relative; max-width: 1180px; margin: 0 auto; }
#theme-page .a8-hero__kicker {
	margin: 0 0 8px; padding: 0;
	font-size: 13px; font-weight: 700; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase;
	color: rgba(255, 255, 255, .85);
}
#theme-page .a8-hero__title {
	margin: 0 0 14px; padding: 0;
	font-family: Comfortaa, sans-serif;
	font-size: 46px; font-weight: 600; line-height: 1.15; letter-spacing: normal; text-transform: none;
	color: #fff;
}
#theme-page .a8-hero__text {
	margin: 0; padding: 0; max-width: 470px;
	font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, .85);
}

/* Thématiques (filtres par catégorie) : grandes cartes photo */
#theme-page .a8-themes { margin: 0 0 32px; }
#theme-page .a8-themes__title {
	margin: 0 0 16px; padding: 0;
	font-family: Comfortaa, sans-serif; font-size: 28px; font-weight: 600; line-height: 1.2; text-transform: none;
	color: var(--a8-navy);
}
#theme-page .a8-themes__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
#theme-page .a8-theme {
	position: relative; isolation: isolate; box-sizing: border-box;
	display: flex; flex-direction: column; justify-content: flex-end;
	aspect-ratio: 4 / 5; padding: 18px 56px 18px 18px;
	border-radius: 12px; overflow: hidden;
	background-color: var(--a8-navy); background-size: cover; background-repeat: no-repeat;
	color: #fff; box-shadow: 0 8px 20px rgba(15, 44, 71, .18);
	transition: transform .25s, box-shadow .25s;
}
#theme-page .a8-theme::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(15, 44, 71, .3) 0%, rgba(12, 36, 60, .78) 55%, rgba(8, 24, 42, .96) 100%);
}
#theme-page .a8-theme::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
	background-size: 4px 4px;
}
#theme-page .a8-theme.is-active::before {
	background: linear-gradient(180deg, rgba(228, 49, 23, .35) 0%, rgba(205, 42, 20, .82) 55%, rgba(150, 26, 10, .96) 100%);
}
#theme-page .a8-theme:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(15, 44, 71, .28); }
#theme-page .a8-theme .a8-icon { width: 26px; height: 26px; margin-bottom: 12px; }
#theme-page .a8-theme__name { font-size: 16px; font-weight: 800; line-height: 1.2; color: #fff; }
#theme-page .a8-theme__count { margin-top: 4px; font-size: 12px; line-height: 1.3; color: rgba(255, 255, 255, .8); }
#theme-page .a8-theme__arrow {
	position: absolute; right: 14px; bottom: 16px;
	display: flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; border-radius: 50%;
	background: #fff; color: var(--a8-ink);
}
#theme-page .a8-theme__arrow .a8-icon { width: 16px; height: 16px; margin: 0; }
#theme-page .a8-themes__all { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--a8-red); }

/* Article à la une */
#theme-page .a8-featured {
	position: relative;
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
	margin: 0 0 32px;
	border-radius: 14px; overflow: hidden;
	background: linear-gradient(115deg, #0b2138 0%, #11314f 55%, #17406a 100%);
	box-shadow: 0 14px 32px rgba(15, 44, 71, .2);
}
#theme-page .a8-featured__body { padding: 44px 24px 44px 48px; }
#theme-page .a8-badge {
	display: inline-block; margin: 0 0 18px; padding: 6px 11px;
	border-radius: 4px; background: var(--a8-red);
	font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: .12em; text-transform: uppercase; color: #fff;
}
#theme-page .a8-featured__title {
	margin: 0 0 16px; padding: 0;
	font-size: 34px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; text-transform: none;
}
#theme-page .a8-featured__title a { color: #fff; }
#theme-page .a8-featured__excerpt {
	margin: 0 0 24px; padding: 0;
	font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .78);
}
#theme-page .a8-featured__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#theme-page .a8-featured__meta { font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .8); }
#theme-page .a8-featured__meta strong { color: #fff; font-weight: 700; }
#theme-page .a8-featured__media { display: flex; justify-content: center; padding: 28px 28px 28px 8px; }
#theme-page .a8-featured__media img {
	display: block; width: auto; max-width: 100%; height: auto; max-height: 400px;
	border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

/* Flèches */
#theme-page .a8-arrow {
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 34px; height: 34px; border-radius: 50%;
	border: 1.5px solid var(--a8-ink); color: var(--a8-ink);
	transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
#theme-page .a8-arrow--red { width: 46px; height: 46px; border: 0; background: var(--a8-red); color: #fff; }
#theme-page .a8-arrow--red .a8-icon { width: 20px; height: 20px; }
#theme-page .a8-featured:hover .a8-arrow--red { transform: translateX(3px); }

/* Grille de cartes */
#theme-page .a8-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
#theme-page .a8-card {
	position: relative; display: flex; flex-direction: column;
	border: 1px solid var(--a8-line); border-radius: 12px; overflow: hidden;
	background: #fff; box-shadow: 0 2px 8px rgba(15, 44, 71, .06);
	transition: transform .2s, box-shadow .2s;
}
#theme-page .a8-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15, 44, 71, .13); }
#theme-page .a8-card__media { aspect-ratio: 1356 / 1160; background: #f4f6f9; }
#theme-page .a8-card__media img { display: block; width: 100%; height: 100%; object-fit: contain; }
#theme-page .a8-card__body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 20px; }
#theme-page .a8-card__cat {
	margin: 0 0 8px;
	font-size: 11px; font-weight: 800; line-height: 1.2; letter-spacing: .09em; text-transform: uppercase;
	color: var(--a8-red);
}
#theme-page .a8-card__title {
	margin: 0 0 18px; padding: 0;
	font-size: 18px; font-weight: 800; line-height: 1.3; text-transform: none;
}
#theme-page .a8-card__title a { color: var(--a8-ink); transition: color .2s; }
#theme-page .a8-card:hover .a8-card__title a { color: var(--a8-navy); }
#theme-page .a8-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
#theme-page .a8-card__date { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; line-height: 1; color: var(--a8-muted); }
#theme-page .a8-card:hover .a8-arrow { background: var(--a8-navy); border-color: var(--a8-navy); color: #fff; }

/* Pagination */
#theme-page .a8-pagination ul { display: flex; justify-content: center; gap: 8px; margin: 44px 0 0; padding: 0; list-style: none; }
#theme-page .a8-pagination li { margin: 0; padding: 0; list-style: none; }
#theme-page .a8-pagination li > .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid var(--a8-line); border-radius: 8px; background: #fff;
	font-size: 15px; font-weight: 700; color: var(--a8-ink);
}
#theme-page .a8-pagination li > a.page-numbers:hover { border-color: var(--a8-navy); color: var(--a8-navy); }
#theme-page .a8-pagination li > .current { background: var(--a8-navy); border-color: var(--a8-navy); color: #fff; }
#theme-page .a8-empty { padding: 40px 0; text-align: center; color: var(--a8-muted); }

/* Tablette */
@media (max-width: 1024px) {
	#theme-page .a8-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	#theme-page .a8-hero__title { font-size: 38px; }
	#theme-page .a8-featured__title { font-size: 28px; }
	#theme-page .a8-featured__body { padding: 36px 16px 36px 36px; }
	#theme-page .a8-theme { padding: 14px 46px 14px 14px; }
	#theme-page .a8-theme__name { font-size: 14px; }
	#theme-page .a8-theme__arrow { right: 10px; bottom: 12px; width: 28px; height: 28px; }
}

/* Mobile */
@media (max-width: 767px) {
	#theme-page .a8-hero { padding: 44px 20px 48px; }
	#theme-page .a8-hero__title { font-size: 32px; }
	#theme-page .a8-hero__text { font-size: 15px; }
	#theme-page .a8-themes__title { font-size: 22px; }
	#theme-page .a8-themes__list { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
	#theme-page .a8-theme { flex: 0 0 150px; scroll-snap-align: start; }
	#theme-page .a8-featured { grid-template-columns: 1fr; }
	#theme-page .a8-featured__media { order: -1; padding: 20px 20px 0; }
	#theme-page .a8-featured__body { padding: 22px 22px 26px; }
	#theme-page .a8-featured__title { font-size: 24px; }
	#theme-page .a8-grid { grid-template-columns: 1fr; gap: 20px; }
}


/* --- Refonte — animations du site (pages refaites + blog), essai 23/10 ---
   .a8r-on est posé sur <html> dans le <head> (functions.php) ; sans script, tout reste affiché normalement. */
@media (prefers-reduced-motion: no-preference) {
	/* Apparition au défilement (titres, cartes, images…) */
	.a8r-on #theme-page .a8r {
		opacity: 0; transform: translateY(28px);
		transition: opacity .7s ease-out, transform .8s cubic-bezier(.2, .8, .3, 1);
		transition-delay: var(--r-d, 0s);
	}
	.a8r-on #theme-page .a8r.is-in { opacity: 1; transform: none; }

	/* Bandeau : titre mot par mot, puis le reste (titre masqué le temps du découpage, réaffiché au bout de 2 s quoi qu'il arrive) */
	.a8r-on #theme-page :is(.a8p-hero__title, .a8-hero__title):not(.is-split) { opacity: 0; animation: a8r-show 0s 2s forwards; }
	.a8r-on #theme-page .a8w { display: inline-block; opacity: 0; transform: translateY(.45em); animation: a8r-word .6s calc(.15s + var(--w) * .09s) cubic-bezier(.2, .8, .3, 1) forwards; }
	.a8r-on #theme-page :is(.a8p-hero__text > :not(.a8p-hero__title), .a8-hero__inner > :not(.a8-hero__title)) { opacity: 0; animation: a8r-up .7s var(--h-d, .9s) ease-out forwards; }
	.a8r-on #theme-page .a8p-home .a8p-hero__visual { opacity: 0; animation: a8r-zoom 1s .3s cubic-bezier(.2, .8, .3, 1) forwards; }
	#theme-page .a8p-home .a8p-illu { animation: a8r-float 6s 1.4s ease-in-out infinite; }

	/* Frise de Notre histoire : la ligne se dessine au fil du défilement */
	.a8r-on #theme-page .a8p-timeline .alt8-timeline::before { transform: scaleY(var(--tl, 0)); transform-origin: top; }
}
@keyframes a8r-word { to { opacity: 1; transform: none; } }
@keyframes a8r-show { to { opacity: 1; } }
@keyframes a8r-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes a8r-zoom { from { opacity: 0; transform: scale(.92) translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes a8r-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }


/* --- Refonte — finitions (23/10) : page d'un article (extrait prod : blog seul) --- */

/* Page d'un article (blog) */
/* Le titre principal (H1) est celui de la bande Jupiter, remis en forme ; le titre secondaire en double est masqué */
body.single-post #mk-page-introduce { margin: 0; padding: 44px 0 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
body.single-post #mk-page-introduce .mk-grid { max-width: 820px; margin: 0 auto; }
body.single-post #mk-page-introduce h1.page-title {
	margin: 0; padding: 0; font-family: Comfortaa, sans-serif !important; font-size: 40px !important; font-weight: 700 !important; line-height: 1.22 !important;
	letter-spacing: -.01em !important; text-transform: none !important; color: #101F43 !important;
}
body.single-post #theme-page .mk-blog-single .blog-single-title { display: none; }
@media (max-width: 767px) {
	body.single-post #mk-page-introduce { padding-top: 24px !important; }
	body.single-post #mk-page-introduce h1.page-title { font-size: 28px !important; }
}
body.single-post #theme-page .mk-blog-single { max-width: 820px; margin: 0 auto; padding: 18px 0 20px; }
body.single-post #theme-page .mk-blog-single .blog-single-title {
	margin: 0 0 18px; font-family: Comfortaa, sans-serif; font-size: 40px; font-weight: 700; line-height: 1.22;
	letter-spacing: -.01em; text-transform: none !important; color: #101F43;
}
body.single-post #theme-page .blog-single-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; float: none; margin: 0 0 14px; font-size: 14.5px; color: #6b7785; }
body.single-post #theme-page .blog-single-meta > div,
body.single-post #theme-page .blog-single-meta > time { float: none; margin: 0; padding: 0; border: 0; font-size: 14.5px; }
body.single-post #theme-page .blog-single-meta a { color: #101F43; font-weight: 700; }
body.single-post #theme-page .blog-single-meta .mk-post-cat a {
	display: inline-block; padding: 3px 10px; border-radius: 999px; background: #e43117; color: #fff;
	font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
body.single-post #theme-page .single-social-section { float: none; margin: 0 0 30px; padding-bottom: 22px; border-bottom: 1px solid #e3e8ef; }
body.single-post #theme-page .mk-single-content { font-size: 18px; line-height: 1.8; color: #34465a; }
body.single-post #theme-page .mk-single-content p { margin: 0 0 22px; }
body.single-post #theme-page .mk-single-content h2,
body.single-post #theme-page .mk-single-content h3 {
	margin: 44px 0 16px; padding-left: 14px; border-left: 4px solid #e43117;
	font-family: Nunito, sans-serif; font-size: 24px; font-weight: 800; line-height: 1.3;
	letter-spacing: normal; text-transform: none !important; color: #101F43;
}
body.single-post #theme-page .mk-single-content h3:empty { display: none; }
body.single-post #theme-page .mk-single-content img { border-radius: 14px; }
body.single-post #theme-page .mk-single-content a { color: #087BC4; text-decoration: underline; text-underline-offset: 3px; }
body.single-post #theme-page .a8-post-cta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; clear: both;
	margin: 48px 0 10px; padding: 30px 34px; border-radius: 20px;
	background: linear-gradient(120deg, #101F43, #173A5E); color: #fff;
}
body.single-post #theme-page .a8-post-cta__title { margin: 0 0 4px; font-family: Nunito, sans-serif; font-size: 22px; font-weight: 800; line-height: 1.3; color: #fff; }
body.single-post #theme-page .a8-post-cta__text { margin: 0; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .78); }
body.single-post #theme-page .a8-post-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
body.single-post #theme-page .mk-single-content .a8-post-cta a { text-decoration: none; }
body.single-post #theme-page .a8-post-cta__btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
	background: #e43117; font-size: 15px; font-weight: 800; line-height: 1.2; color: #fff !important; transition: background-color .2s;
}
body.single-post #theme-page .a8-post-cta__btn:hover { background: #c92a12; }
body.single-post #theme-page .a8-post-cta__btn--ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .4); }
body.single-post #theme-page .a8-post-cta__btn--ghost:hover { background: rgba(255, 255, 255, .1); }
@media (max-width: 767px) {
	body.single-post #theme-page .mk-blog-single { padding-top: 24px; }
	body.single-post #theme-page .mk-blog-single .blog-single-title { font-size: 28px; }
	body.single-post #theme-page .mk-single-content { font-size: 17px; }
	body.single-post #theme-page .mk-single-content h2,
	body.single-post #theme-page .mk-single-content h3 { font-size: 21px; }
	body.single-post #theme-page .a8-post-cta { padding: 24px; }
}


/* Article : temps de lecture, sommaire, barre de progression */
body.single-post #theme-page .blog-single-meta .a8-readtime { display: inline-flex; align-items: center; gap: 6px; }
body.single-post .a8-readtime svg { width: 15px; height: 15px; fill: none; stroke: #6b7785; stroke-width: 2; stroke-linecap: round; }
body.single-post #theme-page .a8-toc { margin: 6px 0 34px; padding: 22px 26px; border-left: 4px solid #087BC4; border-radius: 0 16px 16px 0; background: #F1F7FC; }
body.single-post #theme-page .mk-single-content .a8-toc__title { margin: 0 0 10px; font-family: Nunito, sans-serif; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #087BC4; }
body.single-post #theme-page .mk-single-content .a8-toc ol { margin: 0; padding: 0 0 0 20px; }
body.single-post #theme-page .mk-single-content .a8-toc li { margin: 0 0 6px; padding: 0; font-size: 16px; line-height: 1.5; }
body.single-post #theme-page .mk-single-content .a8-toc li.is-sub { margin-left: 18px; list-style: circle; font-size: 15px; }
body.single-post #theme-page .mk-single-content .a8-toc a { color: #101F43; font-weight: 700; text-decoration: none; }
body.single-post #theme-page .mk-single-content .a8-toc a:hover,
body.single-post #theme-page .mk-single-content .a8-toc a.is-active { color: #e43117; }
body.single-post #theme-page .mk-single-content h2[id],
body.single-post #theme-page .mk-single-content h3[id] { scroll-margin-top: 130px; }
.a8-progress { position: fixed; top: var(--wp-admin--admin-bar--height, 0px); left: 0; right: 0; z-index: 100001; height: 4px; pointer-events: none; }
.a8-progress span { display: block; height: 100%; background: linear-gradient(90deg, #e43117, #FF6B5E); transform: scaleX(0); transform-origin: 0 50%; }


/* --- Page d'un article : image de couverture en entier (03/11) --- */
body.single-post #theme-page .mk-blog-single > .featured-image.a8-fi-full { height: auto !important; margin-bottom: 26px; }
body.single-post #theme-page .mk-blog-single > .featured-image.a8-fi-full img.blog-image { display: block; width: 100%; height: auto !important; }

/* --- Référencement (03/11) : H1 d'un article lu par Google et les lecteurs d'écran, sans s'afficher (le titre est déjà dans l'image d'en-tête) --- */
body.single-post #theme-page .mk-blog-single .blog-single-title.a8-h1-lecteur {
	display: block !important; position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}


/* --- Blog : texte de présentation sous la liste des articles (09/11) --- */
#theme-page .a8-blog-texte { max-width: 860px; margin: 64px auto 0; padding: 40px 0 0; border-top: 1px solid var(--a8-line); }
#theme-page .a8-blog-texte h2 { color: var(--a8-ink); font-size: 26px; line-height: 1.3; margin: 0 0 18px; }
#theme-page .a8-blog-texte h2 strong { color: var(--a8-red); }
#theme-page .a8-blog-texte p { color: var(--a8-ink); font-size: 16px; line-height: 1.7; margin: 0 0 14px; }
#theme-page .a8-blog-texte a { color: #087bc4; text-decoration: underline; }
html.a8-dark #theme-page .a8-blog-texte a { color: #7cc0f2; }
