/*
Theme Name: Annuaire-Liens
Theme URI: https://annuaire-liens.fr/
Author: Annuaire-Liens.fr
Description: Annuaire de sites francophones et plateforme d'échange d'articles entre webmasters, avec crédits, vérification des sites et contrôle automatique des liens.
Version: 1.4.2
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: annuaire-liens
*/

/* ---------- Jetons ---------- */
:root {
	--nuit: #041A45;
	--nuit-2: #0B2B66;
	--nuit-3: #03123A;
	--elec: #0A6CF2;
	--elec-fonce: #0756C7;
	--cyan: #12C4F2;
	--brume: #F3F6FC;
	--brume-2: #E8EEF9;
	--ardoise: #55628A;
	--filet: #DCE3F1;
	--blanc: #FFFFFF;
	--ok: #0E7C55;
	--ok-fond: #E3F5EC;
	--erreur: #B4271F;
	--erreur-fond: #FCE9E7;
	--attente: #8A5A00;
	--attente-fond: #FFF2D6;
	--f: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--large: 118%;
	--r-panneau: 20px;
	--r-champ: 12px;
	--r-petit: 8px;
	--page: 1180px;
	--gouttiere: clamp(16px, 4vw, 32px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--blanc);
	color: var(--nuit);
	font-family: var(--f);
	font-size: 17px;
	line-height: 1.6;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--elec); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--elec-fonce); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; color: var(--nuit); }
h1, h2 { font-weight: 800; font-stretch: var(--large); letter-spacing: -.01em; }
h3 { font-weight: 700; font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.al-saut { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--nuit); color: #fff; padding: 10px 16px; border-radius: 999px; }
.al-saut:focus { left: 12px; }
.al-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.al-ico { flex: none; vertical-align: -.2em; }

/* ---------- Boutons ---------- */
.al-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 20px;
	border: 1.5px solid var(--filet); border-radius: 999px;
	background: var(--blanc); color: var(--nuit);
	font: 600 .95rem/1.2 var(--f); text-decoration: none; cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.al-btn:hover { border-color: var(--nuit); color: var(--nuit); }
.al-btn--plein { background: var(--elec); border-color: var(--elec); color: #fff; }
.al-btn--plein:hover { background: var(--elec-fonce); border-color: var(--elec-fonce); color: #fff; }
.al-btn--clair { background: #fff; border-color: #fff; color: var(--nuit); }
.al-btn--clair:hover { background: var(--cyan); border-color: var(--cyan); color: var(--nuit); }
.al-btn--discret { border-color: transparent; background: var(--brume); }
.al-btn--grand { min-height: 54px; padding: 14px 26px; font-size: 1.02rem; }
.al-lien-fort { font-weight: 700; color: var(--nuit); text-decoration: none; border-bottom: 2px solid var(--cyan); }
.al-lien-fort:hover { color: var(--elec); }

/* ---------- En-tête ---------- */
.al-tete { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--filet); }
.admin-bar .al-tete { top: 32px; }
.al-tete__in { max-width: var(--page); margin: 0 auto; padding: 12px var(--gouttiere); display: flex; align-items: center; gap: 24px; }
.al-logo { display: block; flex: none; }
.al-logo img { display: block; width: 260px; height: auto; }
.al-tete__menu { display: none; margin-left: auto; background: none; border: 0; color: var(--nuit); padding: 8px; cursor: pointer; }
.al-nav { flex: 1; display: flex; align-items: center; gap: 20px; }
.al-nav__liste { display: flex; gap: 4px; list-style: none; margin: 0 auto 0 12px; padding: 0; }
.al-nav__liste a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--nuit); font-weight: 600; text-decoration: none; }
.al-nav__liste a:hover, .al-nav__liste a[aria-current="page"], .al-nav__liste .current-menu-item > a { background: var(--brume); }
.al-nav__compte { display: flex; align-items: center; gap: 14px; }
.al-nav__connexion, .al-nav__espace { color: var(--nuit); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.al-nav__credits { background: var(--nuit); color: #fff; font-size: .8rem; border-radius: 999px; padding: 1px 8px; }

/* ---------- Mises en page ---------- */
.al-section { padding: clamp(56px, 8vw, 96px) 0; }
.al-section__in { max-width: var(--page); margin: 0 auto; padding: 0 var(--gouttiere); }
.al-section__in--etroit { max-width: 820px; }
.al-section__titre { font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin-bottom: .7em; max-width: 22ch; }
.al-section__entete { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.al-section__entete .al-section__titre { margin: 0; }
.al-section__entete p { color: var(--ardoise); margin: 0; max-width: 46ch; }
.al-chapo { font-size: 1.15rem; color: var(--ardoise); max-width: 62ch; }

/* ---------- À la une ---------- */
.al-une { background: var(--brume); border-bottom: 1px solid var(--filet); overflow: hidden; }
.al-une__in { max-width: var(--page); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gouttiere); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.al-une__titre { font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: 1.02; margin-bottom: .45em; max-width: 15ch; }
.al-une__chapo { font-size: 1.15rem; color: var(--ardoise); max-width: 56ch; margin-bottom: 28px; }
.al-une__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.al-recherche { position: relative; display: flex; align-items: center; gap: 8px; max-width: 620px; background: #fff; border: 1.5px solid var(--filet); border-radius: 999px; padding: 6px 6px 6px 18px; }
.al-recherche:focus-within { border-color: var(--elec); box-shadow: 0 0 0 4px rgba(10,108,242,.12); }
.al-recherche .al-ico { color: var(--ardoise); }
.al-recherche input[type="search"] { flex: 1; min-width: 0; border: 0; background: none; font: 500 1rem var(--f); color: var(--nuit); padding: 10px 4px; outline: none; }

/* Vitrine : derniers sites inscrits (ou thématiques à découvrir). */
.al-vitrine { background: #fff; border: 1.5px solid var(--filet); border-radius: var(--r-panneau); overflow: hidden; }
.al-vitrine__titre { margin: 0; padding: 18px 22px 14px; font-weight: 800; font-stretch: 110%; font-size: 1.05rem; border-bottom: 1px solid var(--filet); }
.al-vitrine__liste { list-style: none; margin: 0; padding: 0; }
.al-vitrine__liste li + li { border-top: 1px solid var(--filet); }
.al-vitrine__liste a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 13px 22px; color: var(--nuit); text-decoration: none; transition: background-color .15s; }
.al-vitrine__liste a:hover { background: var(--brume); }
.al-vitrine__liste .al-favicon { grid-row: span 2; }
.al-vitrine__nom { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-vitrine__info { font-size: .85rem; color: var(--ardoise); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-vitrine__pied { display: block; padding: 14px 22px; border-top: 1px solid var(--filet); background: var(--brume); font-weight: 700; color: var(--elec); text-decoration: none; }
.al-vitrine__pied:hover { background: var(--brume-2); }
@media (prefers-reduced-motion: no-preference) {
	.al-js .al-vitrine__liste li { opacity: 0; animation: al-entree .45s cubic-bezier(.2,.7,.2,1) forwards; }
	.al-js .al-vitrine__liste li:nth-child(2) { animation-delay: .08s; }
	.al-js .al-vitrine__liste li:nth-child(3) { animation-delay: .16s; }
	.al-js .al-vitrine__liste li:nth-child(4) { animation-delay: .24s; }
	.al-js .al-vitrine__liste li:nth-child(5) { animation-delay: .32s; }
	.al-js .al-vitrine__liste li:nth-child(6) { animation-delay: .40s; }
}
@keyframes al-entree { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Icônes de sites */
.al-favicon { display: inline-block; width: 32px; height: 32px; border-radius: 8px; object-fit: contain; background: #fff; vertical-align: middle; }
.al-favicon--lettre { display: inline-grid; place-items: center; background: hsl(var(--t, 215) 70% 94%); color: hsl(var(--t, 215) 60% 30%); font-weight: 800; font-size: .85em; line-height: 1; }

/* ---------- Deux façons ---------- */
.al-deux__grille { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.al-deux__col { border: 1.5px solid var(--filet); border-radius: var(--r-panneau); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; }
.al-deux__col h3 { font-size: 1.6rem; font-weight: 800; font-stretch: var(--large); margin-bottom: .2em; }
.al-deux__resume { color: var(--ardoise); }
.al-deux__col ul { list-style: none; padding: 0; margin: 4px 0 28px; flex: 1; }
.al-deux__col li { padding: 10px 0 10px 30px; border-top: 1px solid var(--filet); position: relative; }
.al-deux__col li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 14px; height: 8px; border-left: 2.5px solid var(--elec); border-bottom: 2.5px solid var(--elec); transform: rotate(-45deg); }
.al-deux__col .al-btn { align-self: flex-start; }
.al-deux__col--nuit { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.al-deux__col--nuit h3 { color: #fff; }
.al-deux__col--nuit .al-deux__resume { color: #B8C6E6; }
.al-deux__col--nuit li { border-color: rgba(255,255,255,.14); }
.al-deux__col--nuit li::before { border-color: var(--cyan); }

/* ---------- Index des thématiques (façon annuaire papier) ---------- */
.al-index { background: var(--brume); border-block: 1px solid var(--filet); }
.al-index__grille { columns: 3 280px; column-gap: 48px; }
.al-index__groupe { break-inside: avoid; display: grid; grid-template-columns: 44px 1fr; margin-bottom: 18px; }
.al-index__lettre { font-weight: 800; font-stretch: 125%; font-size: 1.9rem; line-height: 1; color: var(--elec); padding-top: 4px; }
.al-index__groupe ul { list-style: none; margin: 0; padding: 0; }
.al-index__groupe a, .al-liste-themes a { display: flex; align-items: baseline; gap: 6px; padding: 5px 0; color: var(--nuit); text-decoration: none; font-weight: 600; }
.al-index__groupe a::after, .al-liste-themes a::after { content: none; }
.al-index__groupe a span:first-child, .al-liste-themes a span:first-child { flex: none; max-width: 80%; }
.al-index__groupe a::before, .al-liste-themes a::before { content: ""; order: 1; flex: 1; border-bottom: 2px dotted #BFCBE3; transform: translateY(-4px); }
.al-index__n { order: 2; font-variant-numeric: tabular-nums; color: var(--ardoise); font-weight: 500; font-size: .9rem; }
.al-index__groupe a.al-sans-n::before, .al-liste-themes a.al-sans-n::before { content: none; }
.al-index__groupe a:hover span:first-child, .al-liste-themes a:hover span:first-child { color: var(--elec); }
.al-liste-themes { list-style: none; margin: 0; padding: 0; }
.al-liste-themes a[aria-current="page"] span:first-child { color: var(--elec); }

/* ---------- Étapes de l'échange ---------- */
.al-maillons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: etape; }
.al-maillons li { counter-increment: etape; position: relative; padding-top: 72px; }
.al-maillons li::before { content: counter(etape); position: absolute; top: 0; left: 0; font-weight: 800; font-stretch: 125%; font-size: 3.2rem; line-height: 1; color: var(--elec); }
.al-maillons li::after { content: ""; position: absolute; top: 26px; left: 56px; right: -20px; height: 2px; background: repeating-linear-gradient(90deg, var(--cyan) 0 14px, transparent 14px 22px); }
.al-maillons li:last-child::after { display: none; }
.al-maillons h2, .al-maillons h3 { font-size: 1.3rem; font-weight: 800; font-stretch: 110%; }
.al-maillons p { color: var(--ardoise); }

/* ---------- Listes de sites ---------- */
.al-liste-sites { list-style: none; margin: 0; padding: 0; }
.al-ligne-site { display: grid; grid-template-columns: 168px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--filet); }
.al-ligne-site:last-child { border-bottom: 1px solid var(--filet); }
.al-ligne-site--page { grid-template-columns: 1fr; }
.al-ligne-site__image { display: block; }
.al-capture { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid var(--filet); background: var(--brume); }
.al-capture--vide { display: grid; place-items: center; align-content: center; gap: 8px; color: var(--ardoise); font-size: .8rem; }
.al-ligne-site h3 { font-size: 1.2rem; margin: 2px 0 6px; }
.al-ligne-site h3 a { color: var(--nuit); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.al-ligne-site h3 a:hover { color: var(--elec); }
.al-ligne-site__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; color: var(--ardoise); margin-bottom: 8px; }
.al-ligne-site__meta a { color: var(--elec); font-weight: 600; text-decoration: none; }
.al-accepte { color: var(--ok); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.al-ligne-site__desc { color: var(--ardoise); margin: 0; }
.al-liste-sites--compacte .al-ligne-site { grid-template-columns: 120px 1fr; }

/* ---------- FAQ ---------- */
.al-faq { border-top: 1px solid var(--filet); margin-bottom: 1.5em; }
.al-faq__q { border-bottom: 1px solid var(--filet); }
.al-faq__q summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative; font-weight: 700; font-size: 1.08rem; }
.al-faq__q summary::-webkit-details-marker { display: none; }
.al-faq__q summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--elec), var(--elec)) center / 14px 2.5px no-repeat, linear-gradient(var(--elec), var(--elec)) center / 2.5px 14px no-repeat; transition: transform .2s; }
.al-faq__q[open] summary::after { transform: rotate(45deg); }
.al-faq__q p { color: var(--ardoise); margin: 0 0 18px; max-width: 68ch; }

/* ---------- Appel final ---------- */
.al-appel { background: var(--nuit); color: #fff; }
.al-appel__in { max-width: var(--page); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gouttiere); }
.al-appel h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 16ch; }
.al-appel p { color: #B8C6E6; font-size: 1.12rem; max-width: 48ch; margin-bottom: 28px; }

/* ---------- Pied de page ---------- */
.al-pied { background: var(--nuit-3); color: #B8C6E6; font-size: .95rem; }
.al-pied__in { max-width: var(--page); margin: 0 auto; padding: 64px var(--gouttiere) 32px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.al-pied__marque img { width: 220px; height: auto; display: block; margin-bottom: 16px; }
.al-pied__marque p { max-width: 34ch; }
.al-pied h2 { color: #fff; font-size: 1rem; font-stretch: 100%; letter-spacing: 0; margin-bottom: 12px; }
.al-pied ul { list-style: none; padding: 0; margin: 0; }
.al-pied li { margin: 6px 0; }
.al-pied a { color: #DCE6FA; text-decoration: none; }
.al-pied a:hover { color: var(--cyan); text-decoration: underline; }
.al-pied__bas { max-width: var(--page); margin: 0 auto; padding: 20px var(--gouttiere) 32px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }

/* ---------- Bandeau des pages d'annuaire ---------- */
.al-bandeau { background: var(--brume); border-bottom: 1px solid var(--filet); }
.al-bandeau__in { max-width: var(--page); margin: 0 auto; padding: clamp(36px, 5vw, 64px) var(--gouttiere); }
.al-bandeau h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); max-width: 20ch; }
.al-bandeau p { color: var(--ardoise); max-width: 64ch; font-size: 1.08rem; }
.al-bandeau__compte { font-size: .98rem !important; }
.al-bandeau .al-recherche { margin-top: 20px; }
.al-ariane { font-size: .88rem; color: var(--ardoise); margin-bottom: 14px; }
.al-ariane a { color: var(--ardoise); text-decoration: none; }
.al-ariane a:hover { color: var(--elec); text-decoration: underline; }
.al-colonnes { max-width: var(--page); margin: 0 auto; padding: 40px var(--gouttiere) 80px; display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 56px; }
.al-colonnes__cote h2 { font-size: 1.05rem; font-stretch: 100%; letter-spacing: 0; margin: 22px 0 10px; }
.al-colonnes__cote { position: relative; }
.al-colonnes__cote .al-liste-themes { position: sticky; top: 96px; }
.al-vide { background: var(--brume); border: 1.5px dashed #C3CFE6; border-radius: var(--r-panneau); padding: 28px; color: var(--ardoise); }
.al-vide p:last-child { margin: 0; }
.nav-links, .al-pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.nav-links .page-numbers, .al-pagination a, .al-pagination span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--filet); color: var(--nuit); text-decoration: none; font-weight: 600; }
.nav-links .page-numbers.current, .al-pagination [aria-current] { background: var(--nuit); border-color: var(--nuit); color: #fff; }

/* ---------- Fiche d'un site ---------- */
.al-fiche { max-width: var(--page); margin: 0 auto; padding: 36px var(--gouttiere) 80px; }
.al-fiche__tete { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid var(--filet); margin-bottom: 36px; }
.al-fiche__tete .al-ariane { flex-basis: 100%; margin: 0; }
.al-fiche__titre { display: flex; align-items: center; gap: 18px; }
.al-fiche__titre .al-favicon { width: 56px; height: 56px; border-radius: 14px; border: 1px solid var(--filet); padding: 6px; }
.al-fiche__titre .al-favicon--lettre { font-size: 1.5rem; padding: 0; }
.al-fiche__titre h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 0; }
.al-fiche__titre p { margin: 2px 0 0; color: var(--ardoise); font-weight: 600; }
.al-fiche__corps { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
.al-fiche__capture { margin: 0 0 32px; }
.al-fiche__capture .al-capture { border-radius: var(--r-panneau); }
.al-fiche__principal h2 { font-size: 1.5rem; }
.al-fiche__infos dl { margin: 0 0 24px; border-top: 1px solid var(--filet); }
.al-fiche__infos dl > div { padding: 12px 0; border-bottom: 1px solid var(--filet); }
.al-fiche__infos dt { font-size: .82rem; color: var(--ardoise); font-weight: 600; }
.al-fiche__infos dd { margin: 2px 0 0; font-weight: 600; }
.al-verifie { color: var(--ok); display: inline-flex; align-items: center; gap: 6px; }
.al-fiche__echange { background: var(--nuit); color: #fff; border-radius: var(--r-panneau); padding: 24px; margin-bottom: 20px; }
.al-fiche__echange h2 { color: #fff; font-size: 1.2rem; font-stretch: 105%; }
.al-fiche__echange ul { padding-left: 1.1em; color: #CFDAF2; }
.al-fiche__signaler { font-size: .88rem; color: var(--ardoise); }
.al-fiche__voisins { margin-top: 64px; }
.al-fiche__voisins h2 { font-size: 1.6rem; }

/* ---------- Pages ---------- */
.al-page { max-width: 820px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) var(--gouttiere) 88px; }
.al-page--large { max-width: var(--page); }
.al-page--formulaire { max-width: 720px; }
.al-page__tete { margin-bottom: 32px; }
.al-page__tete h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.al-page__maj { color: var(--ardoise); font-size: .92rem; }
.al-texte > * { max-width: 72ch; }
.al-texte h2 { font-size: 1.55rem; margin-top: 1.6em; }
.al-texte h3 { margin-top: 1.4em; }
.al-texte li { margin: .3em 0; }
.al-page--large .al-texte > * { max-width: none; }

/* ---------- Formulaires ---------- */
.al-form { display: grid; gap: 20px; }
.al-champ { display: grid; gap: 6px; }
.al-champ label, .al-label { font-weight: 700; font-size: .95rem; }
.al-form input[type="text"], .al-form input[type="email"], .al-form input[type="url"], .al-form input[type="password"], .al-form input[type="number"], .al-form select, .al-form textarea,
.al-refus input, .al-publication input, .al-filtres select {
	width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--filet); border-radius: var(--r-champ);
	background: #fff; color: var(--nuit); font: 500 1rem/1.4 var(--f);
}
.al-form textarea { min-height: 120px; resize: vertical; }
.al-form input:focus, .al-form select:focus, .al-form textarea:focus, .al-refus input:focus, .al-publication input:focus, .al-filtres select:focus { outline: none; border-color: var(--elec); box-shadow: 0 0 0 4px rgba(10,108,242,.12); }
.al-aide { font-size: .88rem; color: var(--ardoise); margin: 0; }
.al-compteur.est-ok, .al-compteur-mots.est-ok { color: var(--ok); font-weight: 600; }
.al-case { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; }
.al-case input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--elec); flex: none; }
.al-form > .al-btn { justify-self: start; }
.al-form__bas { font-size: .92rem; color: var(--ardoise); margin: 0; }
.al-mdp { position: relative; }
.al-mdp input { padding-right: 92px !important; }
.al-mdp__voir { position: absolute; right: 6px; top: 6px; bottom: 6px; border: 0; background: var(--brume); border-radius: 8px; padding: 0 12px; font: 600 .85rem var(--f); color: var(--nuit); cursor: pointer; }
.al-grille-champs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.al-grille-champs--2 { grid-template-columns: repeat(2, 1fr); }
.al-interrupteur { display: flex; align-items: center; gap: 12px; font-weight: 700; cursor: pointer; }
.al-interrupteur input { appearance: none; width: 46px; height: 26px; border-radius: 999px; background: var(--filet); position: relative; cursor: pointer; transition: background .15s; flex: none; margin: 0; }
.al-interrupteur input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(4,26,69,.3); }
.al-interrupteur input:checked { background: var(--elec); }
.al-interrupteur input:checked::after { transform: translateX(20px); }
.al-alerte { border-radius: var(--r-champ); padding: 14px 18px; margin-bottom: 20px; font-weight: 500; }
.al-alerte ul { margin: 0; padding-left: 1.1em; }
.al-alerte--ok { background: var(--ok-fond); color: var(--ok); }
.al-alerte--erreur { background: var(--erreur-fond); color: var(--erreur); }
.wp-editor-wrap { border: 1.5px solid var(--filet); border-radius: var(--r-champ); overflow: hidden; }
.wp-editor-container textarea { border: 0 !important; }

/* ---------- Espace membre ---------- */
.al-espace { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
.al-espace__nav { position: sticky; top: 92px; border: 1.5px solid var(--filet); border-radius: var(--r-panneau); padding: 16px; }
.al-espace__solde { background: var(--nuit); color: #fff; border-radius: 14px; padding: 16px; margin-bottom: 12px; display: flex; align-items: baseline; gap: 8px; }
.al-espace__solde-n { font-size: 2.2rem; font-weight: 800; font-stretch: 120%; line-height: 1; }
.al-espace__nav ul { list-style: none; margin: 0 0 8px; padding: 0; }
.al-espace__nav li a { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 10px; color: var(--nuit); text-decoration: none; font-weight: 600; }
.al-espace__nav li a:hover { background: var(--brume); }
.al-espace__nav li a[aria-current="page"] { background: var(--brume-2); color: var(--elec); }
.al-badge { background: var(--elec); color: #fff; border-radius: 999px; font-size: .78rem; padding: 0 8px; }
.al-espace__sortie { display: flex; align-items: center; gap: 8px; padding: 9px 12px; color: var(--ardoise); font-size: .92rem; text-decoration: none; border-top: 1px solid var(--filet); margin-top: 4px; }
.al-espace__titre { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.al-espace__sous-titre { margin-top: 36px; }
.al-espace__intro { color: var(--ardoise); max-width: 64ch; }
.al-espace__entete { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.al-espace__entete .al-espace__titre { margin: 0; }
.al-tuiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.al-tuile { border: 1.5px solid var(--filet); border-radius: 16px; padding: 16px; color: var(--nuit); text-decoration: none; display: grid; }
.al-tuile:hover { border-color: var(--elec); }
.al-tuile strong { font-size: 2rem; font-weight: 800; font-stretch: 120%; line-height: 1.1; }
.al-tuile span { color: var(--ardoise); font-size: .9rem; }
.al-etapes { list-style: none; padding: 0; margin: 0; counter-reset: e; }
.al-etapes li { counter-increment: e; border-top: 1px solid var(--filet); }
.al-etapes a { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 14px 0; color: var(--nuit); text-decoration: none; }
.al-etapes a::before { content: counter(e); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--filet); display: grid; place-items: center; font-weight: 800; color: var(--ardoise); }
.al-etapes .est-fait a::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: #fff; }
.al-etapes .est-fait strong { text-decoration: line-through; text-decoration-color: var(--ardoise); color: var(--ardoise); }
.al-etapes span { color: var(--ardoise); font-size: .92rem; }
.al-panneau { border: 1.5px solid var(--filet); border-radius: var(--r-panneau); padding: 22px; margin-bottom: 20px; }
.al-panneau__tete { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.al-panneau__tete h3 { margin: 0; }
.al-panneau__tete p { margin: 0; color: var(--ardoise); font-size: .9rem; }
.al-panneau__etats { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.al-etat { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--brume-2); color: var(--ardoise); text-decoration: none; white-space: nowrap; }
.al-etat--publiee, .al-etat--verifie { background: var(--ok-fond); color: var(--ok); }
.al-etat--attente, .al-etat--acceptee { background: var(--attente-fond); color: var(--attente); }
.al-etat--refusee, .al-etat--expiree, .al-etat--retiree { background: var(--erreur-fond); color: var(--erreur); }
.al-verif { background: var(--brume); border-radius: 14px; padding: 18px; }
.al-verif__methodes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.al-verif h4 { margin: 0 0 6px; }
.al-verif__methodes p { font-size: .9rem; color: var(--ardoise); }
.al-code { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--filet); border-radius: 10px; padding: 8px 8px 8px 12px; }
.al-code code { flex: 1; min-width: 0; overflow-x: auto; font-size: .82rem; white-space: nowrap; }
.al-copier { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--brume-2); border-radius: 8px; padding: 6px 10px; font: 600 .82rem var(--f); color: var(--nuit); cursor: pointer; }
.al-copier.est-copie { background: var(--ok-fond); color: var(--ok); }
.al-filtres { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.al-filtres label { display: grid; gap: 4px; font-size: .85rem; font-weight: 700; }
.al-filtres select { min-width: 180px; }
.al-catalogue { list-style: none; margin: 0; padding: 0; }
.al-catalogue__ligne { display: grid; grid-template-columns: 220px 1fr auto; align-items: center; gap: 18px; padding: 18px 0; border-top: 1px solid var(--filet); }
.al-catalogue__site { display: flex; align-items: center; gap: 10px; }
.al-catalogue__site a { color: var(--nuit); text-decoration: none; }
.al-catalogue__site > div > span { display: block; font-size: .85rem; color: var(--ardoise); }
.al-catalogue__ligne > .al-btn { white-space: nowrap; }
.al-catalogue__infos { display: grid; grid-template-columns: repeat(6, auto); gap: 4px 18px; margin: 0; }
.al-catalogue__infos dt { font-size: .75rem; color: var(--ardoise); }
.al-catalogue__infos dd { margin: 0; font-weight: 700; font-size: .92rem; white-space: nowrap; }
.al-consignes { background: var(--brume); border-radius: 16px; padding: 18px 20px; margin-bottom: 24px; }
.al-consignes ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.al-consignes li { display: flex; gap: 10px; align-items: center; }
.al-consignes .al-ico { color: var(--elec); }
.al-consignes p { margin: 0; }
.al-commandes { list-style: none; margin: 0; padding: 0; }
.al-commande { border: 1.5px solid var(--filet); border-radius: 16px; padding: 18px; margin-bottom: 14px; }
.al-commande__tete { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.al-commande__tete span { display: block; color: var(--ardoise); font-size: .88rem; }
.al-commande__motif { background: var(--brume); border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; font-size: .92rem; }
.al-commande__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }
.al-refus { display: flex; gap: 8px; flex: 1; min-width: 260px; }
.al-refus input { min-height: 44px; }
.al-publication { margin-top: 14px; display: grid; gap: 6px; }
.al-publication label { font-weight: 700; font-size: .92rem; }
.al-ligne { display: flex; gap: 8px; flex-wrap: wrap; }
.al-ligne input { flex: 1; min-width: 220px; }
.al-article { margin-top: 12px; }
.al-article summary { cursor: pointer; font-weight: 700; color: var(--elec); }
.al-article__texte { border: 1px solid var(--filet); border-radius: 12px; padding: 18px; margin: 12px 0; max-height: 460px; overflow: auto; }
.al-article__texte h1 { font-size: 1.4rem; font-stretch: 100%; }
.al-article__message { background: var(--brume); border-radius: 10px; padding: 10px 12px; margin-top: 12px; }
.al-notation { display: flex; align-items: center; gap: 2px; margin-top: 12px; }
.al-notation span { margin-right: 8px; font-weight: 600; }
.al-notation button { background: none; border: 0; padding: 2px; color: #C3CFE6; cursor: pointer; }
.al-notation button:hover, .al-notation button:has(~ button:hover), .al-notation button:focus-visible { color: #F2B705; }
.al-solde-grand { font-size: 1.1rem; margin-bottom: 8px; }
.al-solde-grand strong { font-size: 3rem; font-weight: 800; font-stretch: 120%; color: var(--elec); }
.al-tableau { overflow-x: auto; border: 1.5px solid var(--filet); border-radius: 16px; }
.al-tableau table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.al-tableau th, .al-tableau td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--filet); }
.al-tableau thead th { background: var(--brume); font-size: .82rem; }
.al-tableau tr:last-child td { border-bottom: 0; }
.al-num { text-align: right !important; font-variant-numeric: tabular-nums; }
.al-plus { color: var(--ok); font-weight: 700; }
.al-moins { color: var(--erreur); font-weight: 700; }
.al-profil { border-top: 1px solid var(--filet); margin: 0 0 20px; }
.al-profil > div { display: grid; grid-template-columns: 180px 1fr; padding: 12px 0; border-bottom: 1px solid var(--filet); }
.al-profil dt { color: var(--ardoise); }
.al-profil dd { margin: 0; font-weight: 600; }

/* ---------- Page « Échange d'articles » ---------- */
.al-echange .al-chapo { font-size: 1.25rem; margin-bottom: 48px; }
.al-echange .al-maillons { margin-bottom: 64px; }
.al-garanties { background: var(--nuit); color: #fff; border-radius: var(--r-panneau); padding: clamp(24px, 4vw, 48px); }
.al-garanties h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); }
.al-garanties ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; }
.al-garanties li { display: flex; gap: 12px; color: #CFDAF2; }
.al-garanties li strong { color: #fff; }
.al-garanties .al-ico { color: var(--cyan); width: 24px; height: 24px; }
.al-echange__cta { margin-top: 40px; }

/* ---------- Écrans moyens ---------- */
@media (max-width: 1080px) {
	.al-catalogue__ligne { grid-template-columns: 1fr; }
	.al-catalogue__infos { grid-template-columns: repeat(3, auto); justify-content: start; }
	.al-tuiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
	.al-tete__menu { display: block; }
	.al-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--filet); flex-direction: column; align-items: stretch; padding: 12px var(--gouttiere) 20px; }
	.al-nav.est-ouvert { display: flex; }
	.al-nav__liste { flex-direction: column; margin: 0; }
	.al-nav__liste a { padding: 12px; }
	.al-nav__compte { flex-direction: column; align-items: stretch; padding-top: 12px; border-top: 1px solid var(--filet); }
	.al-nav__connexion, .al-nav__espace { padding: 10px 12px; }
	.al-une__in { grid-template-columns: 1fr; }
	.al-vitrine { max-width: 560px; }
	.al-deux__grille { grid-template-columns: 1fr; }
			.al-colonnes, .al-fiche__corps { grid-template-columns: 1fr; gap: 32px; }
	.al-colonnes__cote .al-liste-themes { position: static; columns: 2 200px; column-gap: 32px; }
	.al-espace { grid-template-columns: 1fr; }
	.al-espace__nav { position: static; }
	.al-espace__nav ul { display: flex; flex-wrap: wrap; gap: 4px; }
	.al-pied__in { grid-template-columns: 1fr 1fr; }
	.al-pied__marque { grid-column: 1 / -1; }
}

/* ---------- Téléphones ---------- */
@media (max-width: 640px) {
	body { font-size: 16px; }
	.al-logo img { width: 190px; }
	.al-une__titre { font-size: clamp(2.1rem, 9.5vw, 2.8rem); }
	.al-recherche { border-radius: 18px; flex-wrap: wrap; padding: 8px 8px 8px 14px; }
	.al-recherche .al-btn { width: 100%; }
	.al-une__actions .al-btn { width: 100%; }
	.al-maillons { grid-template-columns: 1fr; }
	.al-maillons li { padding: 0 0 0 64px; min-height: 52px; }
	.al-maillons li::after { display: none; }
	.al-maillons li::before { font-size: 2.6rem; }
	.al-ligne-site, .al-liste-sites--compacte .al-ligne-site { grid-template-columns: 96px 1fr; gap: 14px; }
	.al-ligne-site__desc { display: none; }
	.al-ligne-site h3 { font-size: 1.05rem; }
	.al-grille-champs, .al-grille-champs--2, .al-verif__methodes, .al-garanties ul { grid-template-columns: 1fr; }
	.al-pied__in { grid-template-columns: 1fr; }
	.al-profil > div { grid-template-columns: 1fr; }
	.al-fiche__tete .al-btn { width: 100%; }
	.al-refus { flex-direction: column; }
	.admin-bar .al-tete { top: 0; }
}

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

/* =========================================================
   Version fun : stickers, couleurs, Maïlo
   ========================================================= */
:root {
	--soleil: #FFD45C; --soleil-pale: #FFF4D1;
	--bonbon: #FF8FB3; --bonbon-pale: #FFE6EF;
	--menthe: #5FE0BD; --menthe-pale: #DDF8EF;
	--lavande: #B3A8FF; --lavande-pale: #EEEBFF;
	--ciel: #7FDCF7; --ciel-pale: #E1F6FD;
	--peche: #FFB27D; --peche-pale: #FFEDE0;
	--trait: 2.5px solid var(--nuit);
}

/* Boutons « autocollants » */
.al-btn { border: var(--trait); box-shadow: 3px 3px 0 var(--nuit); transition: transform .12s, box-shadow .12s, background-color .15s; font-weight: 700; }
.al-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--nuit); color: var(--nuit); border-color: var(--nuit); }
.al-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--nuit); }
.al-btn--plein { background: var(--elec); border-color: var(--nuit); color: #fff; }
.al-btn--plein:hover { background: var(--elec); color: #fff; border-color: var(--nuit); }
.al-btn--jaune { background: var(--soleil); color: var(--nuit); }
.al-btn--jaune:hover { background: #FFCB2E; }
.al-btn--clair { background: #fff; color: var(--nuit); border-color: #fff; box-shadow: 3px 3px 0 var(--cyan); }
.al-btn--clair:hover { background: #fff; border-color: #fff; box-shadow: 5px 5px 0 var(--cyan); }
.al-btn--discret { box-shadow: none; border-color: var(--filet); }
.al-btn--discret:hover { box-shadow: none; transform: none; border-color: var(--nuit); }
.al-tete .al-btn { min-height: 40px; padding: 7px 16px; }
.al-recherche { border: var(--trait); box-shadow: 4px 4px 0 var(--nuit); }
.al-recherche .al-btn { box-shadow: none; border-width: 2px; }
.al-recherche .al-btn:hover { transform: none; box-shadow: none; }

/* À la une */
.al-une { position: relative; background-color: #EAF3FF; background-image: radial-gradient(#C8DBF7 1.6px, transparent 1.6px); background-size: 22px 22px; border-bottom: 0; overflow: visible; }
.al-une__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); padding-bottom: clamp(70px, 9vw, 120px); }
.al-une__titre { max-width: 12ch; }
.al-souligne { position: relative; display: inline-block; white-space: nowrap; }
.al-souligne::after {
	content: ""; position: absolute; left: -2%; right: -2%; bottom: -.16em; height: .3em; z-index: -1;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 18 C 80 4, 200 2, 296 10' fill='none' stroke='%2312C4F2' stroke-width='9' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.al-une__titre .al-souligne { z-index: 0; isolation: isolate; }
.al-une__chiffres { margin: 20px 0 0; color: var(--ardoise); }
.al-une__chiffres strong { color: var(--nuit); font-stretch: 110%; }
.al-une__mascotte { position: relative; display: grid; place-items: center; }
.al-une__mascotte::before { content: ""; position: absolute; width: min(360px, 90%); aspect-ratio: 1; border-radius: 50%; background: var(--soleil); border: var(--trait); top: 26%; z-index: 0; }
.al-une__mascotte::after { content: ""; position: absolute; width: 26px; height: 26px; border-radius: 6px; background: var(--bonbon); border: var(--trait); transform: rotate(18deg); top: 18%; right: 6%; }
.al-une__mascotte .al-perso { position: relative; z-index: 1; }
.al-vague { position: absolute; left: 0; right: 0; bottom: -1px; height: 48px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C 150 0, 300 0, 450 24 S 750 48, 900 22 S 1110 0, 1200 18 V48 H0 Z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%; }

/* Maïlo et sa bulle */
.al-perso { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.al-mascotte { display: block; overflow: visible; height: auto; }
.al-bulle { position: relative; margin: 0; max-width: 300px; background: #fff; border: var(--trait); border-radius: 20px; box-shadow: 4px 4px 0 var(--nuit); padding: 14px 18px; font-weight: 600; line-height: 1.4; color: var(--nuit); }
.al-bulle::after { content: ""; position: absolute; left: 50%; bottom: -13px; width: 22px; height: 22px; background: #fff; border-right: var(--trait); border-bottom: var(--trait); transform: translateX(-50%) rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
	.al-une .al-mascotte { animation: al-flotte 4s ease-in-out infinite; }
	.al-js .al-une .al-bulle { animation: al-pop .5s cubic-bezier(.3,1.6,.5,1) .3s both; }
}
@keyframes al-flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes al-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

/* Les thématiques en boîtes */
.al-section__in--large { max-width: 1320px; }
.al-boites-section { padding-top: 40px; }
.al-boites { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 20px; }
.al-boite { --teinte: var(--ciel); background: #fff; border: var(--trait); border-radius: 18px; box-shadow: 4px 4px 0 var(--nuit); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.al-boite:hover { transform: translate(-2px, -2px) rotate(-.4deg); box-shadow: 6px 6px 0 var(--nuit); }
.al-boite--soleil { --teinte: var(--soleil); }
.al-boite--bonbon { --teinte: var(--bonbon); }
.al-boite--menthe { --teinte: var(--menthe); }
.al-boite--lavande { --teinte: var(--lavande); }
.al-boite--ciel { --teinte: var(--ciel); }
.al-boite--peche { --teinte: var(--peche); }
.al-boite__tete { margin: 0; font-size: 1rem; }
.al-boite__tete a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--teinte); border-bottom: var(--trait); color: var(--nuit); text-decoration: none; font-weight: 800; font-stretch: 104%; line-height: 1.15; }
.al-boite__emoji { flex: none; width: 36px; height: 36px; display: grid; place-items: center; background: #fff; border: 2px solid var(--nuit); border-radius: 50%; font-size: 1.15rem; line-height: 1; }
.al-boite__nom { flex: 1; }
.al-boite__n { flex: none; background: var(--nuit); color: #fff; border-radius: 999px; font-size: .75rem; padding: 2px 8px; }
.al-boite__sites { list-style: none; margin: 0; padding: 8px 12px 6px; }
.al-boite__sites a { display: flex; align-items: center; gap: 8px; padding: 5px 0; color: var(--nuit); text-decoration: none; font-weight: 600; font-size: .95rem; }
.al-boite__sites a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-boite__sites a:hover { color: var(--elec); }
.al-boite__sites .al-favicon { width: 20px; height: 20px; border-radius: 5px; flex: none; }
.al-boite__plus { margin: auto 12px 12px; font-weight: 700; font-size: .88rem; color: var(--elec); text-decoration: none; }
.al-boite__libre { display: block; margin: 12px; padding: 10px 12px; border: 2px dashed #B9C7E2; border-radius: 12px; color: var(--ardoise); font-weight: 600; font-size: .9rem; text-decoration: none; line-height: 1.35; }
.al-boite__libre:hover { border-color: var(--elec); color: var(--elec); background: var(--brume); }

/* Étapes et cartes */
.al-carte { background: #fff; border: var(--trait); border-radius: 22px; box-shadow: 5px 5px 0 var(--nuit); padding: 22px; }
.al-carte--soleil { background: var(--soleil-pale); }
.al-carte--menthe { background: var(--menthe-pale); }
.al-carte--bonbon { background: var(--bonbon-pale); }
.al-fonctionnement { background: #fff; }
.al-fonctionnement__grille { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; align-items: center; }
.al-etapes-fun { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: etape; }
.al-etapes-fun li { counter-increment: etape; position: relative; }
.al-etapes-fun li::before { content: counter(etape); position: absolute; top: -16px; right: 16px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--nuit); color: #fff; border-radius: 50%; font-weight: 800; }
.al-etapes-fun__emoji { display: block; font-size: 2.2rem; line-height: 1; margin-bottom: 12px; }
.al-etapes-fun h3 { font-size: 1.2rem; font-weight: 800; font-stretch: 108%; }
.al-etapes-fun p { margin: 0; color: #2E3B63; }
.al-fonctionnement__mascotte .al-bulle { font-size: .95rem; }

/* Deux façons */
.al-deux { background: #EAF3FF; }
.al-deux__col { border: var(--trait); box-shadow: 5px 5px 0 var(--nuit); }
.al-deux__col h3 span { margin-right: 4px; }
.al-deux__col--nuit, .al-deux__col--nuit.al-carte { background: var(--nuit); color: #fff; box-shadow: 5px 5px 0 var(--cyan); }

/* FAQ et appel final */
.al-faq__q summary:hover { color: var(--elec); }
.al-appel { position: relative; overflow: hidden; }
.al-appel::before, .al-appel::after { content: ""; position: absolute; border-radius: 50%; }
.al-appel::before { width: 220px; height: 220px; background: var(--elec); opacity: .35; left: -60px; bottom: -90px; }
.al-appel::after { width: 90px; height: 90px; background: var(--soleil); opacity: .9; right: 32%; top: -40px; }
.al-appel__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; }
.al-appel__perso { position: relative; display: grid; place-items: center; padding: 10px 20px 0; }
.al-appel__perso::before { content: ""; position: absolute; width: 230px; aspect-ratio: 1; border-radius: 50%; background: var(--soleil); border: 3px solid #fff; top: 22%; }
.al-appel__mascotte { position: relative; width: 230px; }

/* En-têtes de pages avec Maïlo */
.al-page__tete--perso { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.al-page__tete--perso .al-perso .al-bulle { font-size: .92rem; max-width: 220px; }
.al-bandeau__in--perso { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.al-bandeau__emoji { display: inline-grid; place-items: center; width: 64px; height: 64px; font-size: 2rem; background: #fff; border: var(--trait); border-radius: 50%; box-shadow: 3px 3px 0 var(--nuit); margin-bottom: 14px; }
.al-vide--perso { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; background: #fff; border: var(--trait); border-style: dashed; }
.al-vide--perso .al-mascotte { width: 120px; }
.al-page--404 .al-perso { margin: 0 auto 28px; }
.al-espace__bonjour { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.al-espace__bonjour .al-mascotte { width: 86px; flex: none; }
.al-espace__bonjour .al-bulle { max-width: none; }
.al-espace__bonjour .al-bulle::after { left: -12px; top: 50%; bottom: auto; transform: translateY(-50%) rotate(135deg); }
.al-tuile, .al-panneau, .al-commande, .al-espace__nav { border: var(--trait); box-shadow: 4px 4px 0 var(--nuit); }
.al-tuile:hover { border-color: var(--nuit); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--nuit); }
.al-pied { position: relative; }
.al-pied__mascotte { position: absolute; top: -114px; right: max(24px, calc((100% - var(--page)) / 2 + 24px)); width: 110px; }

@media (max-width: 960px) {
	.al-une__in { grid-template-columns: 1fr; }
	.al-une__mascotte { order: -1; }
	.al-une__mascotte .al-mascotte { width: 200px; }
	.al-une__mascotte::before { width: 240px; top: 30%; }
	.al-fonctionnement__grille { grid-template-columns: 1fr; }
	.al-fonctionnement__mascotte { display: none; }
	.al-etapes-fun { grid-template-columns: 1fr; gap: 26px; }
	.al-appel__in { grid-template-columns: 1fr; }
	.al-appel__mascotte { width: 160px; }
	.al-appel__perso::before { width: 170px; }
	.al-page__tete--perso, .al-bandeau__in--perso { grid-template-columns: 1fr; }
	.al-page__tete--perso .al-perso, .al-bandeau__in--perso .al-perso { display: none; }
}
@media (max-width: 640px) {
	.al-boites { grid-template-columns: 1fr 1fr; gap: 12px; }
	.al-boite__tete a { flex-direction: column; align-items: flex-start; gap: 6px; font-size: .92rem; }
	.al-boite__n { position: absolute; }
	.al-boite { position: relative; }
	.al-boite__n { top: 10px; right: 10px; }
	.al-boite__libre { margin: 8px; font-size: .82rem; }
	.al-vide--perso { grid-template-columns: 1fr; }
	.al-pied__mascotte { width: 84px; top: -87px; }
	.al-bulle { font-size: .92rem; }
}
.home .al-pied__mascotte { display: none; }

.al-mini-emoji { display: inline-block; width: 1.3em; text-align: center; }
.al-bandeau { background-color: #EAF3FF; background-image: radial-gradient(#C8DBF7 1.6px, transparent 1.6px); background-size: 22px 22px; }
.al-bandeau__in--perso .al-perso { padding-bottom: 4px; }
.al-colonnes__principale .al-boites { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.al-bandeau .al-bulle { max-width: 250px; font-size: .95rem; color: var(--nuit); }
.al-bandeau .al-bulle::after { content: ""; }
@media (max-width: 1140px) {
	.al-tete__menu { display: block; }
	.al-tete__in { position: relative; }
	.al-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: var(--trait); flex-direction: column; align-items: stretch; padding: 12px var(--gouttiere) 20px; }
	.al-nav.est-ouvert { display: flex; }
	.al-nav__liste { flex-direction: column; margin: 0; }
	.al-nav__liste a { padding: 12px; }
	.al-nav__compte { flex-direction: column; align-items: stretch; padding-top: 12px; border-top: 1px solid var(--filet); }
	.al-nav__connexion, .al-nav__espace { padding: 10px 12px; }
}

/* =========================================================
   Indice AL, chiffres des sites, images de fiche (1.4)
   ========================================================= */
.al-jauge { display: block; flex: none; overflow: visible; }
.al-jauge__arc { stroke: var(--teinte-jauge, var(--ciel)); }
.al-jauge--bonbon { --teinte-jauge: var(--bonbon); }
.al-jauge--peche { --teinte-jauge: var(--peche); }
.al-jauge--soleil { --teinte-jauge: #FFC21F; }
.al-jauge--menthe { --teinte-jauge: #2FCF9F; }
.al-jauge--ciel { --teinte-jauge: #3CC6F0; }
.al-jauge--lavande { --teinte-jauge: #8E7DFF; }
.al-jauge__n { font: 800 34px/1 var(--f); font-stretch: 112%; fill: var(--nuit); }
.al-jauge__sur { font: 700 12px/1 var(--f); fill: var(--ardoise); }

.al-fiche__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.al-fiche__indice { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; background: #fff; border: var(--trait); border-radius: 999px; box-shadow: 3px 3px 0 var(--nuit); color: var(--nuit); text-decoration: none; transition: transform .12s, box-shadow .12s; }
.al-fiche__indice:hover { color: var(--nuit); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--nuit); }
.al-fiche__indice .al-jauge__n { font-size: 40px; }
.al-fiche__indice .al-jauge__sur { display: none; }
.al-fiche__indice span { display: flex; flex-direction: column; font-size: .88rem; line-height: 1.2; color: var(--ardoise); font-weight: 600; }
.al-fiche__indice strong { color: var(--nuit); font-size: 1rem; font-stretch: 108%; }
.al-fiche__capture .al-capture { width: 100%; height: auto; border: var(--trait); box-shadow: 5px 5px 0 var(--nuit); background: var(--brume); }

.al-chiffres { margin-top: 56px; scroll-margin-top: 24px; }
.al-chiffres h2 { font-size: 1.6rem; }
.al-chiffres__intro { color: var(--ardoise); margin: -4px 0 22px; }
.al-synthese { --teinte: var(--soleil-pale); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; background: var(--teinte); border: var(--trait); border-radius: 22px; box-shadow: 5px 5px 0 var(--nuit); padding: 24px 26px; margin-bottom: 26px; }
.al-synthese--bonbon { --teinte: var(--bonbon-pale); }
.al-synthese--peche { --teinte: var(--peche-pale); }
.al-synthese--menthe { --teinte: var(--menthe-pale); }
.al-synthese--ciel { --teinte: var(--ciel-pale); }
.al-synthese--lavande { --teinte: var(--lavande-pale); }
.al-synthese__niveau { font-size: 1.35rem; font-weight: 800; font-stretch: 110%; margin: 0 0 4px; }
.al-synthese__texte > p { margin: 0 0 14px; color: #2E3B63; }
.al-barres { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.al-barres li { display: grid; grid-template-columns: 170px minmax(0, 1fr) 64px; gap: 12px; align-items: center; font-size: .9rem; }
.al-barres__nom { font-weight: 600; }
.al-barres__piste { height: 12px; background: #fff; border: 2px solid var(--nuit); border-radius: 999px; overflow: hidden; }
.al-barres__piste span { display: block; height: 100%; background: var(--nuit); border-radius: 999px; min-width: 0; }
.al-barres__pts { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.al-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.al-stat { --teinte: var(--ciel); position: relative; background: #fff; border: var(--trait); border-radius: 18px; box-shadow: 4px 4px 0 var(--nuit); padding: 18px 18px 16px; display: flex; flex-direction: column; }
.al-stat::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: var(--teinte); border-bottom: 2px solid var(--nuit); border-radius: 15px 15px 0 0; }
.al-stat--soleil { --teinte: var(--soleil); }
.al-stat--bonbon { --teinte: var(--bonbon); }
.al-stat--menthe { --teinte: var(--menthe); }
.al-stat--lavande { --teinte: var(--lavande); }
.al-stat--peche { --teinte: var(--peche); }
.al-stat__emoji { font-size: 1.6rem; line-height: 1; margin: 6px 0 8px; }
.al-stat__titre { font-size: .9rem; font-weight: 700; color: var(--ardoise); margin: 0 0 2px; font-stretch: 100%; }
.al-stat__valeur { font-size: 1.55rem; font-weight: 800; font-stretch: 112%; line-height: 1.15; margin: 0 0 4px; }
.al-stat__precision { font-size: .88rem; font-weight: 600; color: var(--nuit-2); margin: 0 0 10px; }
.al-stat__liste { list-style: none; margin: 2px 0 10px; padding: 0; font-size: .88rem; font-weight: 600; }
.al-stat__liste li { padding: 1px 0; }
.al-stat__liste .est-ok span[aria-hidden] { color: var(--ok); font-weight: 800; }
.al-stat__liste .est-ko { color: var(--ardoise); }
.al-stat__liste .est-ko span[aria-hidden] { color: var(--erreur); font-weight: 800; }
.al-stat__explication { margin: auto 0 0; padding-top: 10px; border-top: 1.5px dashed #C3CFE6; font-size: .84rem; line-height: 1.45; color: var(--ardoise); }
.al-chiffres__note { margin: 22px 0 0; font-size: .88rem; color: var(--ardoise); max-width: 70ch; }

.al-indice-pastille { --teinte: var(--ciel); display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 7px; border: 2px solid var(--nuit); border-radius: 999px; background: var(--teinte); color: var(--nuit); font-weight: 800; font-size: .8rem; font-variant-numeric: tabular-nums; }
.al-indice-pastille--bonbon { --teinte: var(--bonbon); }
.al-indice-pastille--peche { --teinte: var(--peche); }
.al-indice-pastille--soleil { --teinte: var(--soleil); }
.al-indice-pastille--menthe { --teinte: var(--menthe); }
.al-indice-pastille--lavande { --teinte: var(--lavande); }

.al-fiche__revendiquer { background: var(--soleil-pale); border: var(--trait); border-radius: var(--r-panneau); box-shadow: 4px 4px 0 var(--nuit); padding: 20px; margin-bottom: 20px; }
.al-fiche__revendiquer h2 { font-size: 1.15rem; margin-bottom: .3em; }
.al-fiche__revendiquer p { font-size: .92rem; color: #2E3B63; margin: 0 0 14px; }
.al-aide--indice { background: var(--brume); border-radius: var(--r-petit); padding: 10px 12px; margin: 4px 0 12px; }

.al-image-fiche { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; align-items: start; padding: 16px 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--filet); }
.al-image-fiche__apercu .al-capture { width: 100%; height: auto; border-radius: 12px; border: 2px solid var(--nuit); }
.al-image-fiche__apercu .al-capture--vide { aspect-ratio: 4 / 3; }
.al-image-fiche__texte { display: grid; gap: 8px; justify-items: start; }
.al-image-fiche input[type="file"], .al-form--site input[type="file"] { font: inherit; font-size: .9rem; max-width: 100%; }
.al-facultatif { font-weight: 500; color: var(--ardoise); }

.al-page--desabo { max-width: 620px; }
.al-desabo { text-align: center; display: grid; justify-items: center; gap: 6px; padding: 32px 28px; }
.al-desabo h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin-top: 8px; }
.al-desabo p { color: #2E3B63; margin: 0 0 14px; }

@media (max-width: 760px) {
	.al-synthese { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 22px 18px; }
	.al-synthese__texte { width: 100%; text-align: left; }
	.al-barres li { grid-template-columns: minmax(0, 1fr) 56px; }
	.al-barres__piste { grid-column: 1 / -1; grid-row: 2; }
	.al-image-fiche { grid-template-columns: 1fr; }
	.al-fiche__actions { width: 100%; }
	.al-fiche__actions .al-btn { flex: 1; }
}
