/*
Theme Name: Regards Ubiqus
Theme URI: https://ubiqus-reporting.com/
Author: Regards Ubiqus
Author URI: https://ubiqus-reporting.com/
Description: Magazine généraliste : ce qui change dans votre quotidien, avant que ça vous change.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: ubq-journal
*/

/* ===================== Jetons : Aube, Nuit, Vermillon ===================== */
:root {
	color-scheme: light;
	--ubq-nuit: #10262E;
	--ubq-verm: #E39A1C;
	--ubq-verm-t: #9A5B00;
	--ubq-verm-fonce: #7A4600;
	--ubq-verm-c: #F5C25B;
	--ubq-aube: #F3F7F5;
	--ubq-rose: #DCEDE8;
	--ubq-blanc: #FFFFFF;
	--ubq-ardoise: #4A6068;
	--ubq-brume: #A9BBBF;
	--ubq-filet: #D6E2DE;
	--ubq-titre: "Rethink Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ubq-lecture: "Gelasio", Georgia, "Times New Roman", serif;
	--ubq-ombre: 0 10px 30px -12px rgba(16,38,46,.22);
	--ubq-ombre-haut: 0 24px 60px -20px rgba(16,38,46,.30);
	--ubq-rayon: 18px;
	--ubq-tete-h: 68px;

	/* habillage des blocs d'article */
	--sb-fond: #F3F7F5; --sb-encre: #10262E; --sb-doux: #4A6068; --sb-filet: #D6E2DE;
	--sb-accent: #E39A1C; --sb-accent-fort: #9A5B00; --sb-accent-2: #10262E;
	--sb-surf: #FFFFFF; --sb-surf2: #DCEDE8; --sb-rub: #9A5B00;
	--sb-rayon: 18px;
	--sb-ombre: 0 10px 30px -12px rgba(16,38,46,.22);
	--sb-ombre-haut: 0 24px 60px -20px rgba(16,38,46,.30);
	--sb-titre: "Rethink Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--sb-lecture: "Gelasio", Georgia, "Times New Roman", serif;
	--sb-aside-largeur: 340px;
	--sb-haut-collant: 92px;
}
/* Le site est en clair uniquement : les variables des blocs ne basculent jamais. */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--sb-fond: #F3F7F5; --sb-encre: #10262E; --sb-doux: #4A6068; --sb-filet: #D6E2DE;
		--sb-surf: #FFFFFF; --sb-surf2: #DCEDE8;
	}
}
:root[data-theme="dark"] {
	--sb-fond: #F3F7F5; --sb-encre: #10262E; --sb-doux: #4A6068; --sb-filet: #D6E2DE;
	--sb-surf: #FFFFFF; --sb-surf2: #DCEDE8;
}

/* ===================== Base ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
	margin: 0; min-width: 320px; background: var(--ubq-aube); color: var(--ubq-nuit);
	font: 400 17px/1.55 var(--ubq-titre); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
	display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
}
body > * { min-width: 0; }
body > #contenu { flex: 1 0 auto; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin-block: 0; }
ul, ol { padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ubq-verm-t); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }
.ubq-evitement { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--ubq-nuit); color: #fff; border-radius: 12px; font-weight: 700; text-decoration: none; }
.ubq-evitement:focus { top: 12px; }
.ubq-cadre, .sb-cadre { width: min(1280px, 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .ubq-cadre, .sb-cadre { width: min(1280px, 100% - 64px); } }
#contenu { display: block; }
.ubq-ton2 { font-style: normal; color: var(--ubq-verm-t); }
.ubq-surtitre { font: 700 14px/1.2 var(--ubq-titre); color: var(--ubq-verm-t); letter-spacing: .02em; }

/* ===================== Bandeau « À la minute » ===================== */
.ubq-minute { background: var(--ubq-rose); color: var(--ubq-nuit); font: 600 14.5px/1 var(--ubq-titre); }
.ubq-minute__in { display: flex; align-items: center; gap: 20px; height: 40px; }
.ubq-minute__label { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
.ubq-point { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ubq-verm); box-shadow: 0 0 0 0 rgba(232,65,44,.55); animation: ubq-pulse 2.4s ease-out infinite; flex: 0 0 auto; }
@keyframes ubq-pulse { 0% { box-shadow: 0 0 0 0 rgba(232,65,44,.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(232,65,44,0); } }
.ubq-minute__fil { position: relative; flex: 1 1 auto; min-width: 0; height: 40px; margin: 0; padding: 0; list-style: none; }
/* Rotation : l'ancien titre s'efface (0,25 s) AVANT que le nouveau apparaisse (départ à 0,3 s) — jamais deux titres lisibles. */
.ubq-minute__fil li { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; min-width: 0; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
.ubq-minute__fil li.is-actif { opacity: 1; visibility: visible; transition: opacity .35s ease .3s, visibility 0s linear .3s; }
.ubq-minute__fil time { flex: 0 0 auto; color: var(--ubq-verm-t); font-weight: 800; font-variant-numeric: tabular-nums; }
.ubq-minute__fil a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; font-weight: 600; }
.ubq-minute__fil a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ubq-minute__maj, .ubq-minute__date { flex: 0 0 auto; color: #35505A; font-weight: 600; font-variant-numeric: tabular-nums; }
.ubq-minute__date { font-weight: 700; color: var(--ubq-nuit); }
.ubq-minute__ecrire { flex: 0 0 auto; display: inline-flex; align-items: center; height: 28px; padding: 0 14px; border-radius: 999px; background: var(--ubq-verm-t); color: #fff; font-weight: 700; text-decoration: none; transition: background .2s; }
.ubq-minute__ecrire:hover { background: var(--ubq-verm-fonce); }
@media (max-width: 1260px) { .ubq-minute__maj { display: none; } }
@media (max-width: 1060px) { .ubq-minute__date { display: none; } }
@media (max-width: 760px) { .ubq-minute__in { height: 36px; gap: 12px; } .ubq-minute__fil, .ubq-minute__fil li { height: 36px; } .ubq-minute__ecrire { display: none; } .ubq-minute__label { font-size: 12px; } }

/* ===================== Barre d'en-tête : une seule ligne, Nuit ===================== */
.ubq-tete { position: sticky; top: 0; z-index: 60; height: var(--ubq-tete-h); background: var(--ubq-nuit); color: #fff; transition: box-shadow .25s ease; }
.ubq-tete.is-pose { box-shadow: 0 10px 28px -14px rgba(16,38,46,.6); }
.ubq-tete__in { display: flex; align-items: center; gap: 24px; height: 100%; width: min(1440px, 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .ubq-tete__in { width: min(1440px, 100% - 48px); } }
.ubq-logo { flex: 0 0 auto; display: block; line-height: 0; text-decoration: none; }
.ubq-logo-svg { display: block; height: 40px; width: auto; max-width: none; }
.ubq-nav { flex: 1 1 auto; min-width: 0; }
.ubq-nav__liste { display: flex; justify-content: center; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ubq-nav__lien { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 9px; border-radius: 999px; color: #fff; font: 600 17px/1 var(--ubq-titre); letter-spacing: -.01em; white-space: nowrap; text-decoration: none; transition: background .2s; }
.ubq-nav__lien:hover { background: rgba(255,255,255,.1); }
.ubq-nav__lien.is-actif { background: rgba(255,255,255,.14); }
.ubq-nav__lien.is-actif::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 4px; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--ubq-rub) 40%, #fff); }
.ubq-nav__point { display: none; width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--ubq-rub) 40%, #fff); flex: 0 0 auto; }
.ubq-nav__pied { display: none; }
.ubq-outils { display: flex; align-items: center; gap: 10px; margin-left: auto; position: relative; }
.ubq-loupe { position: relative; }
.ubq-loupe > summary { list-style: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.45); cursor: pointer; transition: background .2s, border-color .2s; }
.ubq-loupe > summary::-webkit-details-marker { display: none; }
.ubq-loupe > summary:hover, .ubq-loupe[open] > summary { background: rgba(255,255,255,.14); border-color: #fff; }
.ubq-loupe svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.ubq-loupe__panneau { position: absolute; right: 0; top: calc(100% + 12px); width: min(460px, calc(100vw - 32px)); padding: 12px; background: #fff; border-radius: 20px; box-shadow: var(--ubq-ombre-haut); z-index: 70; }
.ubq-recherche { display: flex; align-items: stretch; gap: 8px; margin: 0; }
.ubq-recherche input { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 18px; border: 1.5px solid var(--ubq-filet); border-radius: 14px; background: var(--ubq-aube); color: var(--ubq-nuit); font: 500 16px/1 var(--ubq-titre); }
.ubq-recherche input:focus { border-color: var(--ubq-nuit); outline: none; box-shadow: 0 0 0 3px rgba(16,38,46,.14); }
.ubq-recherche button { flex: 0 0 auto; height: 48px; padding: 0 20px; border: 0; border-radius: 14px; background: var(--ubq-verm-t); color: #fff; font: 700 16px/1 var(--ubq-titre); cursor: pointer; }
.ubq-recherche button:hover { background: var(--ubq-verm-fonce); }
.ubq-burger { display: none; align-items: center; gap: 10px; height: 46px; padding: 0 16px 0 14px; border: 0; border-radius: 999px; background: var(--ubq-verm-t); color: #fff; font: 700 16px/1 var(--ubq-titre); cursor: pointer; }
.ubq-burger__barres, .ubq-burger__barres::before { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; }
.ubq-burger__barres { position: relative; box-shadow: 0 6px 0 #fff; margin-bottom: 0; transform: translateY(-3px); }
.ubq-burger__barres::before { content: ""; position: absolute; top: 12px; left: 0; }
.ubq-tete.is-menu .ubq-burger__barres { box-shadow: none; transform: rotate(45deg); }
.ubq-tete.is-menu .ubq-burger__barres::before { top: 0; transform: rotate(-90deg); }

@media (max-width: 1399.98px) {
	.ubq-nav__point { display: inline-block; }
	.ubq-nav__lien.is-actif::after { display: none; }
	.ubq-burger { display: inline-flex; }
	.ubq-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; padding: 8px 16px 28px; background: var(--ubq-nuit); border-top: 1px solid rgba(255,255,255,.12); max-height: calc(100vh - var(--ubq-tete-h)); overflow-y: auto; box-shadow: 0 30px 40px -20px rgba(16,38,46,.6); }
	.ubq-tete.is-menu .ubq-nav { display: block; }
	.ubq-nav__liste { flex-direction: column; align-items: stretch; gap: 0; max-width: 560px; margin-inline: auto; }
	.ubq-nav__lien { padding: 15px 8px; border-radius: 0; font-size: 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
	.ubq-nav__lien:hover, .ubq-nav__lien.is-actif { background: rgba(255,255,255,.07); }
	.ubq-nav__pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; max-width: 560px; margin: 18px auto 0; }
	.ubq-nav__date { color: var(--ubq-brume); font-weight: 600; font-size: 16px; }
}
@media (max-width: 760px) {
	:root { --ubq-tete-h: 58px; --sb-haut-collant: 76px; }
	.ubq-tete__in { gap: 12px; }
	.ubq-logo-svg { height: 34px; }
	.ubq-burger__txt { display: none; }
	.ubq-burger { width: 46px; padding: 0; justify-content: center; }
	.ubq-loupe > summary { width: 44px; height: 44px; }
}

/* ===================== Boutons, pastilles, liens ===================== */
.ubq-bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 1.5px solid var(--ubq-nuit); border-radius: 14px; background: transparent; color: var(--ubq-nuit); font: 700 16px/1.1 var(--ubq-titre); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.ubq-bouton:hover { background: var(--ubq-nuit); color: #fff; }
.ubq-bouton--plein { background: var(--ubq-verm-t); border-color: var(--ubq-verm-t); color: #fff; }
.ubq-bouton--plein:hover { background: var(--ubq-verm-fonce); border-color: var(--ubq-verm-fonce); }
.ubq-bouton[disabled] { opacity: .6; cursor: progress; }
.ubq-lien-fleche { display: inline-flex; align-items: center; gap: 6px; color: var(--ubq-verm-t); font: 700 16px/1.2 var(--ubq-titre); text-decoration: none; }
.ubq-lien-fleche:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.ubq-pastille { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 12px; border-radius: 999px; background: var(--ubq-rub, var(--ubq-nuit)); color: #fff; font: 700 13px/1.2 var(--ubq-titre); text-decoration: none; transition: filter .2s; }
a.ubq-pastille:hover { filter: brightness(1.12); }
.ubq-ariane a.ubq-pastille, .ubq-ariane a.ubq-pastille:hover, .ubq-pastille, a.ubq-pastille:visited { color: #fff; text-decoration: none; }

/* ===================== Le Ping et le voyant d'éveil ===================== */
.ubq-journal { width: 24px; height: 24px; flex: 0 0 auto; overflow: visible; }
.ubq-voyant { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 13px 5px 8px; border-radius: 999px; background: #fff; color: var(--ubq-nuit); box-shadow: var(--ubq-ombre); font: 700 13px/1.15 var(--ubq-titre); }
.ubq-voyant .ubq-journal { width: 22px; height: 22px; color: var(--ubq-verm); }
.ubq-voyant__txt { min-width: 0; }
.ubq-voyant--cheval { position: absolute; left: 12px; bottom: 12px; z-index: 3; max-width: calc(100% - 24px); }
.ubq-voyant--ligne { box-shadow: none; padding: 0; background: none; color: var(--ubq-ardoise); font-size: 13px; margin-bottom: 4px; }
.ubq-voyant--ligne .ubq-journal { width: 20px; height: 20px; }
.ubq-ondes { position: absolute; right: 100%; top: 0; width: 340px; height: 340px; overflow: visible; color: var(--ubq-verm); pointer-events: none; z-index: 0; }

/* ===================== Cartes ===================== */
.ubq-carte { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--ubq-filet); border-radius: var(--ubq-rayon); box-shadow: var(--ubq-ombre); transition: box-shadow .3s ease, transform .3s ease; }
.ubq-carte:hover { box-shadow: var(--ubq-ombre-haut); }
.ubq-carte__media { position: relative; }
.ubq-carte__photo { display: block; overflow: hidden; border-radius: var(--ubq-rayon) var(--ubq-rayon) 0 0; aspect-ratio: 16 / 10; background: var(--ubq-rose); }
.ubq-carte__photo img, .ubq-carte__media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ubq-carte:hover .ubq-carte__photo img { transform: scale(1.04); }
.ubq-carte__corps { display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-width: 0; padding: 16px 18px 18px; }
.ubq-carte__corps .ubq-pastille { margin-bottom: 10px; }
.ubq-carte__titre { font: 800 20px/1.2 var(--ubq-titre); letter-spacing: -.015em; text-wrap: balance; overflow-wrap: anywhere; }
.ubq-carte__lien { color: var(--ubq-nuit); text-decoration: none; }
.ubq-carte__lien::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ubq-carte:hover .ubq-carte__lien { color: var(--ubq-verm-t); }
.ubq-carte__chapo { margin-top: 10px; font: 400 16px/1.5 var(--ubq-lecture); color: var(--ubq-ardoise); }
.ubq-carte__meta { margin-top: 10px; font: 600 13px/1.2 var(--ubq-titre); color: var(--ubq-ardoise); font-variant-numeric: tabular-nums; }
.ubq-etiquette { position: absolute; left: 12px; top: 12px; z-index: 3; padding: 5px 11px; border-radius: 999px; background: var(--ubq-nuit); color: #fff; font: 700 12.5px/1.1 var(--ubq-titre); }

/* carte horizontale : photo à gauche */
.ubq-carte--h { flex-direction: row; align-items: flex-start; gap: 14px; padding: 10px; }
.ubq-carte--h .ubq-carte__media { flex: 0 0 112px; width: 112px; }
.ubq-carte--h .ubq-carte__photo { aspect-ratio: 1 / 1; border-radius: 14px; }
.ubq-carte--h .ubq-carte__corps { padding: 2px 0 0; flex: 1 1 auto; }
.ubq-carte--h .ubq-carte__titre { font-size: 17px; line-height: 1.22; }
/* rangée à vignette ronde */
.ubq-carte--m { flex-direction: row; align-items: center; gap: 14px; padding: 12px 0; background: none; border: 0; border-top: 1px solid var(--ubq-filet); border-radius: 0; box-shadow: none; }
.ubq-carte--m:first-child { border-top: 0; }
.ubq-carte--m:hover { box-shadow: none; }
.ubq-carte--m .ubq-carte__media { flex: 0 0 56px; width: 56px; order: 2; }
.ubq-carte--m .ubq-carte__photo { aspect-ratio: 1 / 1; border-radius: 50%; }
.ubq-carte--m .ubq-carte__corps { padding: 0; flex: 1 1 auto; order: 1; }
.ubq-carte--m .ubq-carte__titre { font-size: 16.5px; line-height: 1.25; }
.ubq-carte--m .ubq-carte__meta { margin: 0 0 4px; }
/* carte haute : titre sur la photo */
.ubq-carte--t { background: none; border: 0; box-shadow: none; }
.ubq-carte--t .ubq-carte__photo { aspect-ratio: 5 / 4; border-radius: 22px; box-shadow: var(--ubq-ombre); }
.ubq-carte--t .ubq-carte__voile { position: absolute; inset: 0; border-radius: 22px; background: linear-gradient(to top, rgba(16,38,46,.92) 0%, rgba(16,38,46,.55) 42%, rgba(16,38,46,0) 72%); pointer-events: none; }
.ubq-carte--t .ubq-voyant--cheval { top: 14px; bottom: auto; left: 14px; }
.ubq-carte--t .ubq-carte__corps { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; color: #fff; }
.ubq-carte--t .ubq-carte__titre { font-size: 24px; line-height: 1.12; }
.ubq-carte--t .ubq-carte__lien { color: #fff; }
.ubq-carte--t:hover .ubq-carte__lien { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.ubq-carte--t .ubq-carte__meta { color: rgba(255,255,255,.88); }
.ubq-repli { display: grid; place-items: center; width: 100%; height: 100%; min-height: 100%; background: var(--ubq-repli, var(--ubq-nuit)); color: rgba(255,255,255,.85); }
.ubq-repli .ubq-journal { width: 34%; height: auto; }

/* apparition au défilement ; les ondes du voyant se dessinent */
/* Apparition au défilement = AMÉLIORATION seulement (passe 3) : une carte est visible par défaut. Le script ne pose
 * .ubq-a-venir que sur les cartes SOUS le pli au chargement (jamais dans un carrousel horizontal) et retire tout
 * au bout de 1,5 s quoi qu'il arrive : aucune capture, aucun visiteur ne voit une section vide. */
.ubq-carte.ubq-a-venir { opacity: 0; transform: translateY(12px); }
.ubq-carte.ubq-a-venir.is-vu { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease, box-shadow .3s ease; }
@media (hover: hover) { .ubq-carte:hover { transform: translateY(-3px); transition: box-shadow .3s ease, transform .3s ease; } }
.ubq-carte.ubq-a-venir .ubq-onde { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ubq-carte.ubq-a-venir.is-vu .ubq-onde { stroke-dashoffset: 0; transition: stroke-dashoffset .4s ease .3s; }

/* ===================== Grilles de cartes : jamais de case vide, jamais de carte orpheline ===================== */
.ubq-grille { display: grid; gap: 24px; min-width: 0; }
.ubq-grille > * { min-width: 0; }
.ubq-grille--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ubq-grille--3 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ubq-grille--3 > * { grid-column: span 2; }
.ubq-grille--3.ubq-grille--reste-1 > :first-child { grid-column: span 6; }
.ubq-grille--3.ubq-grille--reste-2 > :nth-child(-n+2) { grid-column: span 3; }
.ubq-grille--3.ubq-grille--reste-1 > :first-child .ubq-carte__photo { aspect-ratio: 21 / 9; }
@media (max-width: 1080px) {
	.ubq-grille--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ubq-grille--4 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
	.ubq-grille--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ubq-grille--3 > *, .ubq-grille--3.ubq-grille--reste-1 > :first-child, .ubq-grille--3.ubq-grille--reste-2 > :nth-child(-n+2) { grid-column: auto; }
	.ubq-grille--3.ubq-grille--reste-1 > :first-child .ubq-carte__photo { aspect-ratio: 16 / 10; }
	.ubq-grille--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.ubq-grille--4, .ubq-grille--3 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.ubq-grille--4 > :last-child:nth-child(odd), .ubq-grille--3 > :last-child:nth-child(odd) { grid-column: auto; }
}

/* ===================== « Charger plus » et liste de secours ===================== */
.ubq-suite { display: flex; justify-content: center; margin: 36px 0 8px; }
.ubq-secours { margin-top: 40px; padding: 26px 28px; background: #fff; border: 1px solid var(--ubq-filet); border-radius: var(--ubq-rayon); }
.ubq-secours__titre { font: 800 20px/1.2 var(--ubq-titre); margin-bottom: 14px; }
.ubq-secours__titre span { color: var(--ubq-ardoise); font-weight: 600; font-variant-numeric: tabular-nums; }
.ubq-secours__liste { list-style: none; margin: 0; columns: 2; column-gap: 40px; }
.ubq-secours__liste li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--ubq-filet); break-inside: avoid; font: 600 16px/1.35 var(--ubq-titre); }
.ubq-secours__liste time { color: var(--ubq-ardoise); font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.ubq-secours__liste a { text-decoration: none; }
.ubq-secours__liste a:hover { color: var(--ubq-verm-t); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .ubq-secours { padding: 20px 16px; } .ubq-secours__liste { columns: 1; } }

/* ===================== Formulaires ===================== */
.ubq-form { min-width: 0; }
.ubq-form__corps { position: relative; display: grid; gap: 12px; }
.ubq-champ { margin: 0; display: grid; gap: 6px; min-width: 0; }
.ubq-champ label { font: 700 14px/1.2 var(--ubq-titre); }
.ubq-champ input, .ubq-champ textarea { width: 100%; min-width: 0; padding: 12px 14px; border: 1.5px solid var(--ubq-filet); border-radius: 12px; background: #fff; color: var(--ubq-nuit); font: 500 16px/1.4 var(--ubq-titre); }
.ubq-champ textarea { resize: vertical; min-height: 64px; }
.ubq-champ input:focus, .ubq-champ textarea:focus { border-color: var(--ubq-nuit); outline: none; box-shadow: 0 0 0 3px rgba(16,38,46,.14); }
.ubq-champs-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ubq-piege { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; margin: 0; }
.ubq-piege label, .ubq-piege input { display: block; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; }
.ubq-form__titre { display: flex; align-items: center; gap: 8px; font: 800 18px/1.2 var(--ubq-titre); }
.ubq-form__ping { width: 24px; height: 24px; color: var(--ubq-verm); }
.ubq-form__erreur { font: 600 14px/1.4 var(--ubq-titre); color: var(--ubq-verm-fonce); }
.ubq-form__confirmation { padding: 16px 18px; border-radius: 14px; background: #EAF5EF; color: #0A4F40; font: 700 16px/1.4 var(--ubq-titre); }
.ubq-objets { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
.ubq-objets legend { padding: 0; margin-bottom: 10px; font: 700 14px/1.2 var(--ubq-titre); }
.ubq-objet input { position: absolute; opacity: 0; pointer-events: none; }
.ubq-objet span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--ubq-nuit); border-radius: 999px; font: 700 15px/1 var(--ubq-titre); cursor: pointer; transition: background .2s, color .2s; }
.ubq-objet input:checked + span { background: var(--ubq-nuit); color: #fff; }
.ubq-objet input:focus-visible + span { outline: 3px solid var(--ubq-verm-t); outline-offset: 3px; }
@media (max-width: 560px) { .ubq-champs-duo { grid-template-columns: minmax(0, 1fr); } }

/* ===================== Avatars ===================== */
.ubq-avatar { display: block; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--ubq-nuit); }
.ubq-avatar--ping svg { display: block; width: 100%; height: 100%; }

/* ===================== Sections de l'accueil : fonds qui alternent ===================== */
.ubq-sec { position: relative; padding: clamp(36px, 3.6vw, 52px) 0; }
.ubq-sec--aube { background: var(--ubq-aube); }
.ubq-sec--blanc { background: #fff; }
.ubq-sec--rose { background: var(--ubq-rose); }
.ubq-sec--nuit { background: var(--ubq-nuit); color: #fff; }
.ubq-sec > .ubq-cadre { position: relative; z-index: 1; }
.ubq-sec-tete { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 4px solid var(--ubq-rub, var(--ubq-verm)); }
.ubq-sec-titre { font: 900 clamp(32px, 3.6vw, 52px)/1 var(--ubq-titre); letter-spacing: -.03em; color: var(--ubq-rub, var(--ubq-nuit)); text-wrap: balance; }
.ubq-sec-ping { width: 38px; height: 38px; color: var(--ubq-rub, var(--ubq-verm)); }
.ubq-sec-tete .ubq-lien-fleche { margin-left: auto; }
.ubq-sec-tete--petit { margin-bottom: 18px; padding-bottom: 10px; }
.ubq-sec-tete--petit .ubq-sec-titre { font-size: clamp(26px, 2.6vw, 34px); }
.ubq-sec-tete--petit .ubq-lien-fleche { font-size: 15px; }
.ubq-sec--nuit .ubq-sec-tete, .ubq-sec-tete--clair { border-bottom-color: var(--ubq-verm); }
.ubq-sec--nuit .ubq-sec-titre { color: #fff; }
.ubq-sec--nuit .ubq-sec-ping { color: var(--ubq-verm-c); }
.ubq-sec--nuit .ubq-lien-fleche { color: var(--ubq-verm-c); }
@media (max-width: 760px) { .ubq-sec-tete { margin-bottom: 20px; } .ubq-sec-ping { width: 30px; height: 30px; } }

/* ===================== Pied de page (bloc figé, habillage) ===================== */
.sb-pied { position: relative; isolation: isolate; overflow: hidden; background: var(--ubq-nuit); color: #fff; padding-top: 56px; font-family: var(--ubq-titre); }
.sb-pied::after { content: ""; position: absolute; z-index: -1; right: -70px; bottom: -110px; width: 600px; height: 600px; opacity: .12; pointer-events: none; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23E8412C' stroke-linecap='round'%3E%3Cpath d='M12 19A7 7 0 0 0 5 12' stroke-width='3.2'/%3E%3Cpath d='M17 19A12 12 0 0 0 5 7' stroke-width='2.4'/%3E%3Cpath d='M22 19A17 17 0 0 0 5 2' stroke-width='1.7'/%3E%3C/g%3E%3Ccircle cx='5' cy='19' r='3' fill='%23E8412C'/%3E%3C/svg%3E"); }
.sb-pied-haut { padding-bottom: 36px; border-bottom-color: rgba(255,255,255,.16); }
.sb-pied-marque { gap: 20px; }
.sb-mono--pied, .ubq-logo-svg--pied { height: 44px; width: auto; max-width: none; }
.sb-pied-nom { font: 800 18px/1.2 var(--ubq-titre); }
.sb-pied-baseline { font: 400 16px/1.4 var(--ubq-lecture); color: var(--ubq-brume); max-width: 32ch; }
.sb-pied-loupe { border-color: rgba(255,255,255,.4); }
.sb-pied-loupe input { min-width: 240px; font: 500 16px/1 var(--ubq-titre); }
.sb-pied-loupe input::placeholder { color: var(--ubq-brume); }
.sb-pied-loupe button { background: var(--ubq-verm-t); font: 700 15px/1 var(--ubq-titre); padding-inline: 22px; }
.sb-pied-grille { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, .7fr); gap: 48px; padding-block: 44px; }
.sb-pied-titre { color: var(--ubq-brume); font: 700 13px/1.2 var(--ubq-titre); letter-spacing: .08em; }
.sb-pied-rubriques { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.sb-pied-rubrique-tete { font-size: 15.5px; flex-wrap: wrap; }
.sb-pied-compte { color: var(--ubq-brume); opacity: 1; font-size: 13px; }
.sb-pied-rubrique-chapo { color: var(--ubq-brume); font: 400 13.5px/1.4 var(--ubq-lecture); }
.sb-pied-fil a, .sb-pied-liste a { color: #fff; font-size: 15px; line-height: 1.35; }
.sb-pied-fil time { color: var(--ubq-brume); font-size: 12.5px; }
.sb-pied-fil { gap: 14px; }
.sb-pied-liste { gap: 14px; }
.sb-ours { color: var(--ubq-brume); font-size: 14px; border-top-color: rgba(255,255,255,.16); }
.sb-nav-mobile { display: none !important; }
@media (max-width: 980px) { .sb-pied-grille { grid-template-columns: minmax(0, 1fr); gap: 36px; } .sb-pied::after { width: 420px; height: 420px; } }
@media (max-width: 560px) { .sb-pied-rubriques { grid-template-columns: minmax(0, 1fr); } .sb-pied-loupe { width: 100%; } .sb-pied-loupe input { min-width: 0; flex: 1; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.ubq-js .ubq-carte, .ubq-js .ubq-carte.is-vu { opacity: 1; transform: none; }
	.ubq-js .ubq-carte .ubq-onde { stroke-dashoffset: 0; }
	.ubq-minute__fil li { transition: none; }
}
