/* ==========================================================================
   Achats-Malins — feuille de style principale
   Les couleurs se règlent dans Apparence > Personnaliser > Thème Achats-Malins > Couleurs
   ========================================================================== */

/* Polices hébergées localement (aucun appel à Google : conforme RGPD) */
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2"); }

:root {
	--am-primary: #26388c;
	--am-accent: #f7941d;
	--am-highlight: #ffc21a;
	--am-bg: #f6f7fb;
	--am-primary-dark: color-mix(in srgb, var(--am-primary) 75%, #000);
	--am-primary-soft: color-mix(in srgb, var(--am-primary) 8%, #fff);
	--am-accent-soft: color-mix(in srgb, var(--am-accent) 14%, #fff);
	--am-text: #1d2340;
	--am-muted: #5f6687;
	--am-line: #e5e8f2;
	--am-white: #fff;
	--am-radius: 18px;
	--am-radius-sm: 10px;
	--am-shadow: 0 10px 30px -12px rgba(29, 35, 64, .22);
	--am-shadow-lg: 0 24px 60px -20px rgba(29, 35, 64, .35);
	--am-font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--am-font-title: "Poppins", "Nunito", system-ui, sans-serif;
	--am-container: 1220px;
}

/* --- Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--am-font); font-size: 17px; line-height: 1.65; color: var(--am-text); background: #fff; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--am-primary); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--am-accent); }
h1, h2, h3, h4, h5, h6 { font-family: var(--am-font-title); font-weight: 800; line-height: 1.2; color: var(--am-text); margin: 0 0 .6em; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--am-accent); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 10px; left: 10px; width: auto; height: auto; clip: auto; z-index: 1000; padding: 10px 16px; background: #fff; border-radius: 8px; box-shadow: var(--am-shadow); }

.am-container { width: 100%; max-width: var(--am-container); margin: 0 auto; padding: 0 24px; }
.am-container--narrow { max-width: 820px; }

/* --- Boutons ---------------------------------------------------------- */
.am-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.4em; border: 2px solid transparent; border-radius: 999px; font-family: var(--am-font-title); font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s; white-space: nowrap; }
.am-btn:hover { transform: translateY(-2px); }
.am-btn--lg { padding: 1em 1.8em; font-size: 1.05rem; }
.am-btn--primary { background: var(--am-primary); color: #fff; }
.am-btn--primary:hover { background: var(--am-primary-dark); color: #fff; box-shadow: var(--am-shadow); }
.am-btn--accent { background: var(--am-accent); color: #fff; }
.am-btn--accent:hover { color: #fff; box-shadow: 0 10px 24px -10px var(--am-accent); }
.am-btn--cta { background: linear-gradient(180deg, color-mix(in srgb, var(--am-highlight) 70%, #fff) 0%, var(--am-highlight) 55%, color-mix(in srgb, var(--am-highlight) 80%, var(--am-accent)) 100%); color: #1b1f33; border-color: var(--am-accent); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--am-accent) 80%, transparent), inset 0 -3px 0 rgba(0, 0, 0, .08); }
.am-btn--cta:hover { color: #1b1f33; box-shadow: 0 14px 30px -10px var(--am-accent); }
.am-btn--ghost { background: #fff; color: var(--am-primary); border-color: color-mix(in srgb, var(--am-primary) 25%, #fff); }
.am-btn--ghost:hover { border-color: var(--am-primary); color: var(--am-primary); }
.am-icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--am-primary-soft); color: var(--am-primary); cursor: pointer; transition: background .2s; }
.am-icon-btn:hover { background: color-mix(in srgb, var(--am-primary) 15%, #fff); }

/* --- Barre d'annonce -------------------------------------------------- */
.am-topbar { background: var(--am-primary); color: #fff; font-size: .88rem; font-weight: 700; text-align: center; padding: 8px 0; }
.am-topbar a { color: #fff; text-decoration: none; }
.am-topbar a:hover { color: var(--am-highlight); }

/* --- En-tête ---------------------------------------------------------- */
.am-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--am-line); transition: box-shadow .25s; }
.admin-bar .am-header { top: 32px; }
.am-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(29, 35, 64, .35); }
.am-header__inner { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.am-header__logo { flex-shrink: 0; }
.am-header__logo .custom-logo-link { display: block; line-height: 0; }
.am-header__logo img { width: auto; max-height: 62px; transition: max-height .25s; }
.am-header.is-scrolled .am-header__logo img { max-height: 50px; }
.am-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.am-nav { margin-left: auto; }
.am-nav .menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.am-nav li { position: relative; }
.am-nav a { display: block; padding: 10px 14px; border-radius: 999px; color: var(--am-text); font-family: var(--am-font-title); font-weight: 600; font-size: .95rem; text-decoration: none; transition: background .2s, color .2s; }
.am-nav a:hover, .am-nav .current-menu-item > a, .am-nav .current-menu-ancestor > a { background: var(--am-primary-soft); color: var(--am-primary); }
.am-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.am-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 230px; padding: 8px; margin: 0; list-style: none; background: #fff; border-radius: 14px; box-shadow: var(--am-shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.am-nav li:hover > .sub-menu, .am-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.am-nav .sub-menu a { border-radius: 8px; }

.am-menu-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.am-menu-toggle span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: currentColor; transition: .25s; }
.am-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.am-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.am-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.am-search-panel { border-top: 1px solid var(--am-line); padding: 18px 0; background: #fff; }
.am-searchform { display: flex; gap: 10px; }
.am-searchform input[type="search"] { flex: 1; min-width: 0; padding: .85em 1.2em; border: 2px solid var(--am-line); border-radius: 999px; background: #fff; }
.am-searchform input[type="search"]:focus { outline: none; border-color: var(--am-primary); }

/* --- Bandeau d'accueil ------------------------------------------------ */
.am-hero { position: relative; overflow: hidden; background: radial-gradient(circle at 85% 20%, var(--am-accent-soft) 0, transparent 45%), radial-gradient(circle at 10% 90%, var(--am-primary-soft) 0, transparent 50%), #fff; padding: 56px 0 40px; }
.am-hero__deco { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(color-mix(in srgb, var(--am-primary) 14%, transparent) 1.5px, transparent 1.5px); background-size: 26px 26px; mask-image: linear-gradient(90deg, #000 0, transparent 45%); -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 45%); opacity: .6; }
.am-hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; }
.am-hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; margin-bottom: 18px; border-radius: 999px; background: #fff; border: 1px solid var(--am-line); box-shadow: var(--am-shadow); font-weight: 700; font-size: .88rem; color: var(--am-primary); }
.am-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); animation: am-pulse 2s infinite; }
@keyframes am-pulse { 50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } }
.am-hero__title { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.05; color: var(--am-primary); letter-spacing: -.025em; margin-bottom: 20px; }
.am-hero__title span { color: var(--am-accent); position: relative; white-space: nowrap; }
.am-hero__title span::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em; background: var(--am-highlight); opacity: .45; border-radius: 4px; z-index: -1; }
.am-hero__text { font-size: 1.15rem; color: var(--am-muted); max-width: 540px; margin-bottom: 28px; }
.am-hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.am-hero__stats { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; margin: 0; padding: 0; }
.am-hero__stats li { flex: 1 1 140px; padding: 14px 16px; background: rgba(255, 255, 255, .85); border: 1px solid var(--am-line); border-radius: 14px; }
.am-hero__stats strong { display: block; font-family: var(--am-font-title); font-weight: 800; font-size: 1.5rem; color: var(--am-accent); line-height: 1.1; }
.am-hero__stats span { font-size: .88rem; color: var(--am-muted); line-height: 1.3; display: block; }
.am-hero__media { position: relative; }
.am-hero__media img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; animation: am-float 6s ease-in-out infinite; }
@keyframes am-float { 50% { transform: translateY(-10px); } }

/* --- Sections --------------------------------------------------------- */
.am-section { padding: 72px 0; }
.am-latest { background: var(--am-bg); }
.am-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.am-section__title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .2em; position: relative; }
.am-section__title::before { content: ""; display: block; width: 46px; height: 5px; border-radius: 4px; background: var(--am-accent); margin-bottom: 14px; }
.am-section__subtitle { color: var(--am-muted); margin: 0; }
.am-link-arrow { font-family: var(--am-font-title); font-weight: 600; text-decoration: none; white-space: nowrap; }

.am-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.am-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--am-line); color: var(--am-text); font-weight: 700; font-size: .92rem; text-decoration: none; transition: .2s; }
.am-chip small { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--am-primary-soft); color: var(--am-primary); font-size: .75rem; }
.am-chip:hover { border-color: var(--am-accent); color: var(--am-accent); transform: translateY(-2px); }

/* Badge catégorie */
.am-badge { display: inline-block; padding: 4px 12px; margin-bottom: 10px; border-radius: 999px; background: var(--am-accent-soft); color: color-mix(in srgb, var(--am-accent) 70%, #000); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.am-badge:hover { background: var(--am-accent); color: #fff; }

/* Méta */
.am-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--am-muted); font-size: .88rem; }
.am-meta__author { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--am-text); margin-right: 6px; }
.am-meta__author img { border-radius: 50%; }

/* Article à la une */
.am-featured { display: grid; grid-template-columns: 1.25fr 1fr; background: #fff; border-radius: var(--am-radius); overflow: hidden; box-shadow: var(--am-shadow); margin-bottom: 30px; transition: box-shadow .25s; }
.am-featured:hover { box-shadow: var(--am-shadow-lg); }
.am-featured__thumb { position: relative; display: block; min-height: 340px; overflow: hidden; background: var(--am-primary-soft); }
.am-featured__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.am-featured:hover .am-featured__thumb img { transform: scale(1.04); }
.am-featured__flag { position: absolute; top: 18px; left: 18px; padding: 6px 14px; border-radius: 999px; background: var(--am-accent); color: #fff; font-family: var(--am-font-title); font-weight: 600; font-size: .85rem; box-shadow: var(--am-shadow); }
.am-featured__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 40px; gap: 6px; }
.am-featured__title { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0 0 6px; }
.am-featured__title a, .am-card__title a { color: var(--am-text); text-decoration: none; background-image: linear-gradient(var(--am-accent), var(--am-accent)); background-size: 0 3px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s; }
.am-featured__title a:hover, .am-card__title a:hover { background-size: 100% 3px; color: var(--am-text); }
.am-featured__excerpt { color: var(--am-muted); }
.am-featured .am-meta { margin-bottom: 18px; }

/* Grille de cartes */
.am-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.am-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--am-radius); overflow: hidden; box-shadow: 0 2px 0 var(--am-line), var(--am-shadow); transition: transform .25s, box-shadow .25s; }
.am-card:hover { transform: translateY(-6px); box-shadow: var(--am-shadow-lg); }
.am-card__thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--am-primary-soft); }
.am-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.am-card:hover .am-card__thumb img { transform: scale(1.06); }
.am-card__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 22px 22px 24px; }
.am-card__title { font-size: 1.2rem; margin: 0 0 10px; }
.am-card__excerpt { color: var(--am-muted); font-size: .97rem; flex: 1; }

.am-thumb-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--am-primary) 0%, color-mix(in srgb, var(--am-primary) 60%, var(--am-accent)) 100%); }
.am-thumb-placeholder span { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--am-highlight); color: var(--am-primary); font-family: var(--am-font-title); font-weight: 800; font-size: 2.2rem; box-shadow: 0 0 0 10px rgba(255, 255, 255, .15); }

.am-empty { padding: 40px; text-align: center; background: #fff; border-radius: var(--am-radius); border: 2px dashed var(--am-line); }

/* --- Newsletter ------------------------------------------------------- */
.am-newsletter { position: relative; margin: 72px 0; border-radius: 28px; overflow: hidden; background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--am-accent) 55%, transparent) 0, transparent 40%), linear-gradient(135deg, var(--am-primary) 0%, var(--am-primary-dark) 100%); color: #fff; box-shadow: var(--am-shadow-lg); }
.am-newsletter::after { content: "€"; position: absolute; right: -10px; bottom: -70px; font-family: var(--am-font-title); font-weight: 800; font-size: 260px; line-height: 1; color: rgba(255, 255, 255, .05); pointer-events: none; }
.am-newsletter__inner { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr 1.15fr; align-items: center; gap: 32px; padding: 44px 48px; }
.am-newsletter__icon { color: var(--am-primary); }
.am-newsletter__icon svg { width: 72px; height: 72px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .25)); transform: rotate(-8deg); }
.am-newsletter h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; }
.am-newsletter p { margin: 0; color: rgba(255, 255, 255, .85); }
.am-layout__main .am-newsletter { margin: 48px 0; }
.am-layout__main .am-newsletter__inner { grid-template-columns: 1fr; gap: 18px; padding: 34px; }
.am-layout__main .am-newsletter__icon { display: none; }

.am-nl-form__row { display: flex; gap: 8px; padding: 6px; background: #fff; border-radius: 999px; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .35); }
.am-nl-form__row input[type="email"] { flex: 1; min-width: 0; padding: .7em 1.1em; border: 0; background: transparent; color: var(--am-text); }
.am-nl-form__row input[type="email"]:focus { outline: none; }
.am-nl-form__row .am-btn { flex-shrink: 0; }
.am-nl-form__consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; font-size: .82rem; line-height: 1.45; color: rgba(255, 255, 255, .85); cursor: pointer; }
.am-nl-form__consent input { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--am-accent); }
.am-nl-form__msg { min-height: 1em; margin: 10px 0 0 !important; font-weight: 700; font-size: .95rem; }
.am-nl-form__msg.is-success { color: #8ef0b0; }
.am-nl-form__msg.is-error { color: #ffd0a6; }
.am-nl-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.am-nl-form.is-loading .am-btn { opacity: .7; pointer-events: none; }
.am-nl-form.is-done .am-nl-form__row, .am-nl-form.is-done .am-nl-form__consent { display: none; }

/* Version compacte (pied de page, barre latérale) */
.am-nl-form--compact .am-nl-form__row { flex-direction: column; background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
.am-nl-form--compact .am-nl-form__row input[type="email"] { background: #fff; border-radius: 999px; padding: .8em 1.1em; }

/* --- En-têtes de pages ------------------------------------------------ */
.am-page-head { padding: 56px 0 44px; background: radial-gradient(circle at 90% 0, var(--am-accent-soft) 0, transparent 40%), var(--am-bg); border-bottom: 1px solid var(--am-line); margin-bottom: 48px; }
.am-page-head h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--am-primary); margin: 0; }
.am-page-head__kicker { display: inline-block; margin-bottom: 8px; color: var(--am-accent); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.am-page-head__desc { margin-top: 12px; color: var(--am-muted); max-width: 700px; }

/* --- Mise en page avec barre latérale -------------------------------- */
.am-layout { padding-bottom: 72px; }
.has-sidebar .am-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.has-sidebar .am-layout .am-grid { grid-template-columns: repeat(2, 1fr); }
.am-sidebar { position: sticky; top: 110px; display: grid; gap: 24px; }
.am-sidebar .widget { padding: 24px; background: var(--am-bg); border-radius: var(--am-radius); }
.widget-title { font-size: 1.1rem; margin-bottom: 14px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--am-line); }
.widget li:last-child { border-bottom: 0; }
.widget li a { text-decoration: none; color: var(--am-text); font-weight: 700; }
.widget li a:hover { color: var(--am-accent); }
.am-sidebar .am-nl-form__consent { color: var(--am-muted); }

/* --- Article ---------------------------------------------------------- */
.am-single__head { padding: 56px 0 32px; text-align: center; background: linear-gradient(180deg, var(--am-bg) 0, #fff 100%); }
.am-single__title { font-size: clamp(2rem, 4.4vw, 3.1rem); color: var(--am-primary); margin: 8px 0 18px; }
.am-single__head .am-meta { justify-content: center; }
.am-single__cover { margin-bottom: 48px; }
.am-single__cover img { display: block; width: 100%; max-height: 560px; object-fit: cover; border-radius: 24px; box-shadow: var(--am-shadow-lg); }
.am-single .am-layout { padding-top: 8px; }
body:not(.has-sidebar) .am-single .am-layout__main { max-width: 820px; margin: 0 auto; }

.am-content { font-size: 1.08rem; }
.am-content > * { max-width: 100%; }
.am-content h2 { font-size: 1.7rem; margin-top: 1.8em; }
.am-content h3 { font-size: 1.35rem; margin-top: 1.6em; }
.am-content img { border-radius: 14px; }
.am-content ul, .am-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.am-content li { margin-bottom: .4em; }
.am-content li::marker { color: var(--am-accent); font-weight: 800; }
.am-content blockquote { margin: 1.6em 0; padding: 20px 26px; border-left: 5px solid var(--am-accent); background: var(--am-accent-soft); border-radius: 0 14px 14px 0; font-size: 1.12rem; }
.am-content blockquote p:last-child { margin: 0; }
.am-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .97rem; }
.am-content th, .am-content td { padding: 12px 14px; border-bottom: 1px solid var(--am-line); text-align: left; }
.am-content th { background: var(--am-primary); color: #fff; }
.am-content .wp-block-button__link { border-radius: 999px; background: var(--am-accent); font-family: var(--am-font-title); font-weight: 600; }
.am-content pre { overflow: auto; padding: 18px; background: #1d2340; color: #fff; border-radius: 12px; }
.am-content--full > .alignwide { max-width: var(--am-container); margin-left: auto; margin-right: auto; }
.am-content--full > *:not(.alignfull):not(.alignwide) { max-width: 820px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.alignwide { margin-left: -60px; margin-right: -60px; max-width: calc(100% + 120px); }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.wp-caption-text, figcaption { font-size: .88rem; color: var(--am-muted); text-align: center; margin-top: 8px; }

.am-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; }
.am-tags a { padding: 5px 12px; border-radius: 999px; background: var(--am-bg); color: var(--am-muted); font-size: .85rem; font-weight: 700; text-decoration: none; }
.am-tags a::before { content: "#"; }
.am-tags a:hover { background: var(--am-primary); color: #fff; }

.am-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px; padding: 18px 20px; background: var(--am-bg); border-radius: 14px; }
.am-share > span { font-weight: 800; margin-right: 6px; }
.am-share a, .am-share button { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: #fff; color: var(--am-primary); font-weight: 700; font-size: .85rem; text-decoration: none; cursor: pointer; box-shadow: 0 2px 0 var(--am-line); transition: .2s; }
.am-share a:hover, .am-share button:hover { background: var(--am-primary); color: #fff; }

.post-navigation { margin-top: 40px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: block; height: 100%; padding: 18px 20px; border: 1px solid var(--am-line); border-radius: 14px; text-decoration: none; color: var(--am-text); transition: .2s; }
.post-navigation a:hover { border-color: var(--am-accent); box-shadow: var(--am-shadow); }
.post-navigation small { display: block; color: var(--am-accent); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.post-navigation span { font-family: var(--am-font-title); font-weight: 600; }
.post-navigation .nav-next { text-align: right; grid-column: 2; }

.am-related { background: var(--am-bg); }

/* Pagination */
.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--am-line); color: var(--am-text); font-weight: 800; text-decoration: none; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--am-primary); border-color: var(--am-primary); color: #fff; }

/* Commentaires */
.am-comments { margin-top: 56px; }
.am-comments__list { list-style: none; padding: 0; }
.am-comments__list .comment-body { padding: 20px; margin-bottom: 16px; background: var(--am-bg); border-radius: 14px; }
.am-comments__list .children { list-style: none; padding-left: 28px; }
.comment-author img { border-radius: 50%; float: left; margin-right: 12px; }
.comment-metadata { font-size: .82rem; }
.comment-metadata a { color: var(--am-muted); text-decoration: none; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: .8em 1em; border: 2px solid var(--am-line); border-radius: 12px; background: #fff; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--am-primary); }
.comment-form label { display: block; font-weight: 700; margin-bottom: 4px; }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }

/* 404 */
.am-404 { text-align: center; }
.am-404__code { font-family: var(--am-font-title); font-weight: 800; font-size: clamp(6rem, 18vw, 10rem); line-height: 1; margin: 0; background: linear-gradient(135deg, var(--am-primary), var(--am-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.am-404 .am-searchform { max-width: 520px; margin: 24px auto; }

/* Widgets d'accueil */
.am-home-widgets .widget { margin-bottom: 32px; }

/* --- Pied de page ----------------------------------------------------- */
.am-footer { position: relative; background: #141a3a; color: rgba(255, 255, 255, .75); padding: 72px 0 0; font-size: .97rem; }
.am-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--am-primary), var(--am-accent), var(--am-highlight)); }
.am-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.am-footer__logo { display: inline-block; padding: 12px 18px; margin-bottom: 18px; background: #fff; border-radius: 14px; }
.am-footer__logo img { max-height: 54px; width: auto; display: block; }
.am-footer .widget-title { color: #fff; font-size: 1.05rem; }
.am-footer .widget li { border-color: rgba(255, 255, 255, .08); }
.am-footer .widget li a, .am-footer a { color: rgba(255, 255, 255, .8); text-decoration: none; font-weight: 400; }
.am-footer .widget li a:hover, .am-footer a:hover { color: var(--am-highlight); }
.am-footer .am-nl-form__consent { color: rgba(255, 255, 255, .6); }
.am-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.am-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: .2s; }
.am-social a:hover { background: var(--am-accent); color: #fff; transform: translateY(-3px); }
.am-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding: 24px 0 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .87rem; }
.am-footer__bottom p { margin: 0; }
.am-footer__menu { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.am-footer__disclaimer { flex-basis: 100%; color: rgba(255, 255, 255, .5); font-size: .8rem; }

.am-totop { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--am-accent); color: #fff; font-weight: 800; font-size: 1.3rem; text-decoration: none; box-shadow: var(--am-shadow-lg); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .25s; }
.am-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.am-totop:hover { color: #fff; background: var(--am-primary); }

/* Apparition au défilement */
.am-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.am-reveal.is-in { opacity: 1; transform: none; }

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 1100px) {
	.am-footer__grid { grid-template-columns: 1fr 1fr; }
	.am-newsletter__inner { grid-template-columns: 1fr 1.2fr; }
	.am-newsletter__icon { display: none; }
	.has-sidebar .am-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
}

@media (max-width: 960px) {
	.am-menu-toggle { display: inline-flex; }
	.am-header__cta { display: none; }
	.am-nav { position: fixed; top: var(--am-header-h, 84px); left: 0; right: 0; bottom: 0; margin: 0; padding: 20px 24px 40px; background: #fff; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .25s ease, transform .25s ease, visibility .25s; z-index: 99; }
	.am-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.am-nav .menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.am-nav a { padding: 14px 16px; font-size: 1.1rem; border-radius: 12px; }
	.am-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
	.am-nav .menu-item-has-children > a::after { display: none; }
	body.am-menu-open { overflow: hidden; }

	.am-hero { padding: 36px 0 28px; }
	.am-hero__inner { grid-template-columns: 1fr; gap: 10px; }
	.am-hero__media { order: -1; max-width: 460px; margin: 0 auto; }
	.am-hero__content { text-align: center; }
	.am-hero__text { margin-left: auto; margin-right: auto; }
	.am-hero__buttons { justify-content: center; }

	.am-grid, .has-sidebar .am-layout .am-grid { grid-template-columns: repeat(2, 1fr); }
	.am-featured { grid-template-columns: 1fr; }
	.am-featured__thumb { min-height: 0; aspect-ratio: 16 / 9; }
	.am-featured__body { padding: 28px; }
	.has-sidebar .am-layout { grid-template-columns: 1fr; }
	.am-sidebar { position: static; }
	.am-newsletter__inner { grid-template-columns: 1fr; padding: 36px 28px; }
	.alignwide { margin-left: 0; margin-right: 0; max-width: 100%; }
}

@media (max-width: 782px) {
	.admin-bar .am-header { top: 46px; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.am-container { padding: 0 18px; }
	.am-header__inner { min-height: 70px; gap: 12px; }
	.am-header__logo img { max-height: 46px; }
	.am-section { padding: 52px 0; }
	.am-section__head { flex-direction: column; align-items: flex-start; }
	.am-grid, .has-sidebar .am-layout .am-grid { grid-template-columns: 1fr; }
	.am-hero__buttons .am-btn { width: 100%; }
	.am-hero__stats li { flex-basis: 100%; }
	.am-nl-form__row { flex-direction: column; padding: 0; background: transparent; box-shadow: none; border-radius: 0; }
	.am-nl-form__row input[type="email"] { background: #fff; border-radius: 999px; padding: .9em 1.2em; }
	.am-nl-form__row .am-btn { width: 100%; }
	.am-newsletter { border-radius: 22px; margin: 52px 0; }
	.am-footer__grid { grid-template-columns: 1fr; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: auto; }
	.am-searchform { flex-direction: column; }
}

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

/* Couleurs de la palette de l'éditeur */
.has-am-bleu-color { color: #26388c !important; } .has-am-bleu-background-color { background-color: #26388c !important; }
.has-am-orange-color { color: #f7941d !important; } .has-am-orange-background-color { background-color: #f7941d !important; }
.has-am-jaune-color { color: #ffc21a !important; } .has-am-jaune-background-color { background-color: #ffc21a !important; }
.has-am-nuit-color { color: #141a3a !important; } .has-am-nuit-background-color { background-color: #141a3a !important; }
.has-am-gris-color { color: #f6f7fb !important; } .has-am-gris-background-color { background-color: #f6f7fb !important; }
.has-am-blanc-color { color: #fff !important; } .has-am-blanc-background-color { background-color: #fff !important; }
