:root {
    --mag-common-bg: #f7f7f4;
    --mag-common-surface: #ffffff;
    --mag-common-surface-soft: #efefea;
    --mag-common-text: #15171a;
    --mag-common-muted: #62676d;
    --mag-common-border: rgba(21, 23, 26, 0.12);
    --mag-common-border-strong: rgba(21, 23, 26, 0.22);
    --mag-common-accent: #0b1f3a;
    --mag-common-accent-soft: #dfe8f3;
    --mag-common-radius-lg: 28px;
    --mag-common-radius-md: 18px;
    --mag-common-radius-sm: 12px;
    --mag-common-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    --mag-common-container: 1180px;
    --mag-header-ink: #0b1f3a;
    --mag-header-blue: #2563eb;
    --mag-header-cyan: #06b6d4;
    --mag-header-teal: #14b8a6;
    --mag-header-green: #22c55e;
    --mag-header-yellow: #facc15;
    --mag-header-orange: #f97316;
    --mag-header-pink: #ec4899;
    --mag-header-purple: #8b5cf6;
    --mag-header-red: #ef4444;
    --mag-header-cream: #fff7ed;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    background: var(--mag-common-bg);
    color: var(--mag-common-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.is-nav-locked {
    overflow: hidden;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

.mag-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.mag-site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    isolation: isolate;
    overflow: visible;
    background:
        linear-gradient(115deg, rgba(11, 31, 58, 0.94), rgba(11, 31, 58, 0.74) 39%, rgba(11, 31, 58, 0.9)),
        conic-gradient(from 215deg at 8% 18%, var(--mag-header-yellow), var(--mag-header-orange), var(--mag-header-pink), var(--mag-header-purple), var(--mag-header-blue), var(--mag-header-cyan), var(--mag-header-yellow)),
        radial-gradient(circle at 84% 8%, rgba(250, 204, 21, 0.92), transparent 22rem),
        radial-gradient(circle at 16% 100%, rgba(20, 184, 166, 0.9), transparent 22rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 18px 58px rgba(11, 31, 58, 0.22);
    color: #ffffff;
    backdrop-filter: blur(18px);
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.mag-site-header::before,
.mag-site-header::after {
    position: absolute;
    z-index: -1;
    content: "";
    pointer-events: none;
}

.mag-site-header::before {
    inset: 0;
    background:
        linear-gradient(135deg, transparent 0 12%, rgba(255, 255, 255, 0.16) 12% 12.5%, transparent 12.5% 100%),
        linear-gradient(44deg, transparent 0 24%, rgba(255, 255, 255, 0.13) 24% 24.4%, transparent 24.4% 100%),
        linear-gradient(154deg, transparent 0 40%, rgba(255, 255, 255, 0.14) 40% 40.4%, transparent 40.4% 100%),
        linear-gradient(22deg, transparent 0 66%, rgba(255, 255, 255, 0.1) 66% 66.4%, transparent 66.4% 100%),
        conic-gradient(from 90deg at 7% 26%, rgba(250, 204, 21, 0.72) 0 13%, rgba(249, 115, 22, 0.72) 13% 26%, rgba(236, 72, 153, 0.72) 26% 38%, rgba(139, 92, 246, 0.72) 38% 50%, rgba(37, 99, 235, 0.72) 50% 63%, rgba(6, 182, 212, 0.72) 63% 76%, rgba(20, 184, 166, 0.72) 76% 88%, rgba(250, 204, 21, 0.72) 88% 100%);
    mix-blend-mode: screen;
    opacity: 0.62;
}

.mag-site-header::after {
    inset: auto 0 -1px 0;
    height: 8px;
    background: linear-gradient(90deg, var(--mag-header-yellow) 0 12%, var(--mag-header-orange) 12% 24%, var(--mag-header-pink) 24% 36%, var(--mag-header-purple) 36% 49%, var(--mag-header-blue) 49% 62%, var(--mag-header-cyan) 62% 75%, var(--mag-header-teal) 75% 88%, var(--mag-header-green) 88% 100%);
    box-shadow: 0 0 34px rgba(255, 255, 255, 0.24);
}

.mag-site-header.is-scrolled {
    background:
        linear-gradient(115deg, rgba(11, 31, 58, 0.98), rgba(15, 23, 42, 0.92)),
        conic-gradient(from 215deg at 8% 18%, var(--mag-header-yellow), var(--mag-header-orange), var(--mag-header-pink), var(--mag-header-purple), var(--mag-header-blue), var(--mag-header-cyan), var(--mag-header-yellow));
    border-bottom-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 16px 46px rgba(11, 31, 58, 0.28);
}

.mag-site-header__inner {
    position: relative;
    z-index: 2;
    width: min(var(--mag-common-container), calc(100% - 40px));
    margin: 0 auto;
}

.mag-site-header__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 14px 0 12px;
}

.mag-site-header__mobile-actions {
    display: none;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.mag-site-header__brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    max-width: none;
    gap: 15px;
    padding: 12px 18px 12px 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)), rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 26px;
    color: #ffffff;
    text-align: left;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 18px 46px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(18px);
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.mag-site-header__brand:hover {
    transform: translateY(-1px) rotate(-0.2deg);
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 22px 52px rgba(0, 0, 0, 0.2);
}

.mag-site-header__mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    padding: 7px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 18px;
    color: var(--mag-header-ink);
    font-size: 0.98rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2), 0 0 0 7px rgba(255, 255, 255, 0.1);
}

.mag-site-header__logo {
    position: relative;
    z-index: 1;
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 180ms ease;
}

.mag-site-header__brand:hover .mag-site-header__logo {
    transform: scale(1.03);
}

.mag-site-header__brand-text {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.mag-site-header__brand-text strong {
    overflow: hidden;
    color: #ffffff;
    font-size: clamp(1.12rem, 2vw, 1.48rem);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 1.08;
    text-overflow: ellipsis;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.22);
    white-space: nowrap;
}

.mag-site-header__brand-text small {
    overflow: hidden;
    max-width: 900px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(0.9rem, 1.15vw, 1rem);
    font-weight: 720;
    line-height: 1.35;
    text-overflow: ellipsis;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
    white-space: nowrap;
}

.mag-site-header__toggle {
    position: relative;
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.74));
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    color: var(--mag-header-ink);
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.mag-site-header__toggle-line {
    position: absolute;
    width: 19px;
    height: 2px;
    background: var(--mag-header-ink);
    border-radius: 999px;
    transition: transform 180ms ease, opacity 180ms ease;
}

.mag-site-header__toggle-line:nth-child(1) {
    transform: translateY(-6px);
}

.mag-site-header__toggle-line:nth-child(2) {
    transform: translateY(0);
}

.mag-site-header__toggle-line:nth-child(3) {
    transform: translateY(6px);
}

.mag-site-header.is-open .mag-site-header__toggle-line:nth-child(1) {
    transform: rotate(45deg);
}

.mag-site-header.is-open .mag-site-header__toggle-line:nth-child(2) {
    opacity: 0;
}

.mag-site-header.is-open .mag-site-header__toggle-line:nth-child(3) {
    transform: rotate(-45deg);
}

.mag-site-header__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 66px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.mag-site-header__moments {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    min-width: 0;
}

.mag-moment-selector__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 17px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 237, 0.84));
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    color: var(--mag-header-ink);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 860;
    letter-spacing: -0.015em;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 14px 36px rgba(0, 0, 0, 0.16);
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.mag-moment-selector__button::before {
    width: 10px;
    height: 10px;
    background: conic-gradient(from 90deg, var(--mag-header-yellow), var(--mag-header-orange), var(--mag-header-pink), var(--mag-header-purple), var(--mag-header-blue), var(--mag-header-cyan), var(--mag-header-yellow));
    border-radius: 999px;
    content: "";
    box-shadow: 0 0 0 4px rgba(11, 31, 58, 0.08);
}

.mag-moment-selector__button:hover,
.mag-moment-selector__button.is-active,
.mag-moment-selector__button[aria-expanded="true"] {
    background: linear-gradient(135deg, rgba(11, 31, 58, 0.98), rgba(37, 99, 235, 0.9));
    border-color: rgba(255, 255, 255, 0.38);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 18px 42px rgba(0, 0, 0, 0.24);
    transform: translateY(-1px);
}

.mag-moment-selector__button:hover::before,
.mag-moment-selector__button.is-active::before,
.mag-moment-selector__button[aria-expanded="true"]::before {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
}

.mag-moment-selector__icon {
    font-size: 0.76rem;
    line-height: 1;
}

.mag-moment-selector__menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 13px);
    right: 0;
    display: grid;
    min-width: 270px;
    padding: 10px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 22px;
    box-shadow: 0 26px 70px rgba(11, 31, 58, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.78);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px) scale(0.98);
    transition: opacity 160ms ease, transform 160ms ease;
    backdrop-filter: blur(18px);
}

.mag-moment-selector__menu::before {
    position: absolute;
    top: -7px;
    right: 28px;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.62);
    border-left: 1px solid rgba(255, 255, 255, 0.62);
    content: "";
    transform: rotate(45deg);
}

.mag-moment-selector__menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.mag-moment-selector__link {
    position: relative;
    display: block;
    padding: 12px 13px 12px 34px;
    border-radius: 14px;
    color: var(--mag-common-text);
    font-size: 0.93rem;
    font-weight: 720;
    text-decoration: none;
}

.mag-moment-selector__link::before {
    position: absolute;
    top: 50%;
    left: 13px;
    width: 10px;
    height: 10px;
    background: var(--mag-header-blue);
    border-radius: 999px;
    content: "";
    transform: translateY(-50%);
}

.mag-moment-selector__link:nth-child(2n)::before {
    background: var(--mag-header-pink);
}

.mag-moment-selector__link:nth-child(3n)::before {
    background: var(--mag-header-orange);
}

.mag-moment-selector__link:nth-child(4n)::before {
    background: var(--mag-header-teal);
}

.mag-moment-selector__link:hover,
.mag-moment-selector__link.is-active {
    background: linear-gradient(135deg, rgba(11, 31, 58, 0.08), rgba(37, 99, 235, 0.08));
    color: var(--mag-common-accent);
}

.mag-site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    border-top: 0;
}

.mag-site-nav__list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0;
    padding: 11px 0 14px;
    list-style: none;
}

.mag-site-nav__item {
    position: relative;
}

.mag-site-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 48px;
    padding: 0 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    font-size: clamp(1rem, 1.15vw, 1.12rem);
    font-weight: 860;
    letter-spacing: -0.025em;
    text-decoration: none;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11), 0 10px 24px rgba(0, 0, 0, 0.08);
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.mag-site-nav__link::before {
    width: 10px;
    height: 10px;
    background: var(--mag-header-yellow);
    border-radius: 999px;
    content: "";
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.07);
}

.mag-site-nav__item:nth-child(2n) .mag-site-nav__link::before {
    background: var(--mag-header-orange);
}

.mag-site-nav__item:nth-child(3n) .mag-site-nav__link::before {
    background: var(--mag-header-pink);
}

.mag-site-nav__item:nth-child(4n) .mag-site-nav__link::before {
    background: var(--mag-header-purple);
}

.mag-site-nav__item:nth-child(5n) .mag-site-nav__link::before {
    background: var(--mag-header-blue);
}

.mag-site-nav__item:nth-child(6n) .mag-site-nav__link::before {
    background: var(--mag-header-cyan);
}

.mag-site-nav__item:nth-child(7n) .mag-site-nav__link::before {
    background: var(--mag-header-teal);
}

.mag-site-nav__item:nth-child(8n) .mag-site-nav__link::before {
    background: var(--mag-header-green);
}

.mag-site-nav__link:hover,
.mag-site-nav__link.is-active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 237, 0.86));
    border-color: rgba(255, 255, 255, 0.62);
    color: var(--mag-header-ink);
    text-shadow: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 16px 38px rgba(0, 0, 0, 0.18);
}

.mag-site-nav__link:hover {
    transform: translateY(-2px) rotate(-0.25deg);
}

.mag-site-nav__link.is-active {
    transform: translateY(-1px);
}

.mag-site-nav__dropdown {
    position: absolute;
    z-index: 20;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    min-width: 240px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--mag-common-border);
    border-radius: 18px;
    box-shadow: var(--mag-common-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 160ms ease, transform 160ms ease;
    backdrop-filter: blur(18px);
}

.mag-site-nav__dropdown.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mag-site-nav__dropdown-link {
    display: block;
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--mag-common-text);
    font-size: 0.92rem;
    font-weight: 650;
    text-decoration: none;
}

.mag-site-nav__dropdown-link:hover {
    background: var(--mag-common-surface-soft);
}

.mag-site-footer {
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 28rem), linear-gradient(145deg, #0b1f3a, #101820);
    color: #ffffff;
}

.mag-site-footer__inner {
    width: min(var(--mag-common-container), calc(100% - 40px));
    margin: 0 auto;
    padding: 58px 0 28px;
}

.mag-site-footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
    gap: 38px;
    align-items: start;
    padding-bottom: 38px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.mag-site-footer__logo {
    display: inline-flex;
    color: #ffffff;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 820;
    letter-spacing: -0.06em;
    line-height: 1;
    text-decoration: none;
}

.mag-site-footer__brand p {
    max-width: 660px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.75;
}

.mag-site-footer__social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

.mag-site-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 26px rgba(0, 0, 0, 0.12);
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.mag-site-footer__social-link:hover,
.mag-site-footer__social-link:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.34);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 34px rgba(0, 0, 0, 0.2);
    opacity: 1;
    outline: 0;
    text-decoration: none;
    transform: translateY(-2px);
}

.mag-site-footer__social-link:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 34px rgba(0, 0, 0, 0.2);
}

.mag-site-footer__social-icon {
    display: block;
    width: 21px;
    height: 21px;
    color: #ffffff;
    fill: currentColor;
    flex: 0 0 auto;
    pointer-events: none;
}

.mag-site-footer__social-link--instagram {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.22), rgba(236, 72, 153, 0.18)), rgba(255, 255, 255, 0.08);
}

.mag-site-footer__social-link--facebook {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(6, 182, 212, 0.12)), rgba(255, 255, 255, 0.08);
}

.mag-site-footer__social-link--threads {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
}

.mag-site-footer__social-link--linkedin {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(11, 31, 58, 0.16)), rgba(255, 255, 255, 0.08);
}

.mag-site-footer__social-link--x {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(11, 31, 58, 0.16));
}

.mag-site-footer__newsletter {
    padding: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--mag-common-radius-lg);
}

.mag-site-footer__kicker {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.76rem;
    font-weight: 780;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mag-site-footer__newsletter h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.35rem;
    letter-spacing: -0.045em;
    line-height: 1.15;
}

.mag-site-footer__form {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    padding: 7px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid transparent;
    border-radius: 999px;
}

.mag-site-footer__form input {
    min-width: 0;
    flex: 1;
    padding: 0 10px;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--mag-common-text);
}

.mag-site-footer__form button {
    min-height: 40px;
    padding: 0 15px;
    background: var(--mag-common-accent);
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 760;
}

.mag-site-footer__form.is-error {
    border-color: #ffb4b4;
}

.mag-site-footer__form.is-success {
    border-color: #a8e6bd;
}

.mag-site-footer__form button:disabled {
    cursor: default;
    opacity: 0.78;
}

.mag-site-footer__nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    padding: 38px 0;
}

.mag-site-footer__column h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mag-site-footer__column ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mag-site-footer__column li,
.mag-site-footer__column a {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.94rem;
    line-height: 1.55;
    text-decoration: none;
}

.mag-site-footer__column a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.mag-site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.mag-site-footer__bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.84rem;
    line-height: 1.5;
}

@media (max-width: 1080px) {
    .mag-site-header__top {
        grid-template-columns: 48px minmax(0, 1fr);
        min-height: 80px;
        padding: 12px 0;
    }

    .mag-site-header__mobile-actions {
        display: flex;
    }

    .mag-site-header__brand {
        justify-self: stretch;
    }

    .mag-site-header__toggle {
        display: inline-flex;
    }

    .mag-site-header__bottom {
        position: absolute;
        top: calc(100% + 14px);
        right: 0;
        left: 0;
        display: grid;
        gap: 10px;
        min-height: 0;
        padding: 13px;
        background:
            linear-gradient(125deg, rgba(11, 31, 58, 0.96), rgba(11, 31, 58, 0.86)),
            conic-gradient(from 180deg at 14% 20%, var(--mag-header-yellow), var(--mag-header-orange), var(--mag-header-pink), var(--mag-header-purple), var(--mag-header-blue), var(--mag-header-cyan), var(--mag-header-teal), var(--mag-header-yellow));
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 26px;
        box-shadow: 0 24px 68px rgba(11, 31, 58, 0.34);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px) scale(0.98);
        transition: opacity 180ms ease, transform 180ms ease;
        backdrop-filter: blur(18px);
    }

    .mag-site-header.is-open .mag-site-header__bottom {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .mag-site-nav {
        display: block;
        min-height: 0;
    }

    .mag-site-nav__list {
        display: grid;
        justify-content: stretch;
        gap: 8px;
        padding: 0;
    }

    .mag-site-nav__link {
        justify-content: flex-start;
        width: 100%;
        min-height: 52px;
        padding: 0 16px;
        font-size: 1.05rem;
    }

    .mag-site-nav__link:hover {
        transform: none;
    }

    .mag-site-header__moments {
        display: grid;
        justify-content: stretch;
        width: 100%;
    }

    .mag-moment-selector__button {
        justify-content: flex-start;
        width: 100%;
        min-height: 52px;
        padding: 0 16px;
    }

    .mag-moment-selector__menu {
        position: static;
        display: none;
        min-width: 0;
        margin-top: 8px;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .mag-moment-selector__menu::before {
        display: none;
    }

    .mag-moment-selector__menu.is-open {
        display: grid;
    }

    .mag-site-nav__dropdown {
        position: static;
        display: none;
        min-width: 0;
        margin: 4px 0 8px;
        background: var(--mag-common-surface-soft);
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .mag-site-nav__dropdown.is-open {
        display: grid;
    }

    .mag-site-footer__top,
    .mag-site-footer__nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mag-site-footer__bottom {
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    .mag-site-header__inner,
    .mag-site-footer__inner {
        width: min(var(--mag-common-container), calc(100% - 28px));
    }

    .mag-site-header__top {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 10px;
        min-height: 76px;
        padding: 10px 0;
    }

    .mag-site-header__brand {
        gap: 10px;
        padding: 9px 11px 9px 9px;
        border-radius: 22px;
    }

    .mag-site-header__mark {
        width: 44px;
        height: 44px;
        padding: 5px;
        border-radius: 14px;
        font-size: 0.84rem;
    }

    .mag-site-header__brand-fallback {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 5px;
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.92));
        border: 1px solid rgba(255, 255, 255, 0.56);
        color: var(--mag-header-ink);
        font-size: 0.84rem;
        font-weight: 900;
        letter-spacing: -0.05em;
        line-height: 1;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2), 0 0 0 7px rgba(255, 255, 255, 0.1);
    }

    .mag-site-header__logo {
        border-radius: 8px;
    }

    .mag-site-header__brand-text strong {
        max-width: 165px;
        font-size: 1.02rem;
    }

    .mag-site-header__brand-text small {
        max-width: 165px;
        font-size: 0.84rem;
        font-weight: 680;
    }

    .mag-moment-selector__button {
        min-height: 42px;
        padding: 0 12px;
        gap: 7px;
    }

    .mag-moment-selector__button::before {
        width: 8px;
        height: 8px;
        box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.08);
    }

    .mag-moment-selector__label {
        max-width: 72px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mag-moment-selector__menu {
        min-width: min(270px, calc(100vw - 28px));
    }

    .mag-site-footer__top,
    .mag-site-footer__nav {
        grid-template-columns: 1fr;
    }

    .mag-site-footer__social {
        margin-top: 20px;
    }

    .mag-site-footer__social-link {
        width: 40px;
        height: 40px;
    }

    .mag-site-footer__social-icon {
        width: 20px;
        height: 20px;
    }

    .mag-site-footer__form {
        align-items: stretch;
        flex-direction: column;
        border-radius: var(--mag-common-radius-md);
    }

    .mag-site-footer__form input {
        min-height: 42px;
    }

    .mag-site-footer__form button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .mag-site-header__brand-text small {
        display: none;
    }

    .mag-site-header__brand-text strong {
        max-width: 118px;
    }

    .mag-moment-selector__label {
        max-width: 58px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .mag-site-header,
    .mag-site-header__toggle-line,
    .mag-site-header__bottom,
    .mag-site-nav,
    .mag-site-nav__link,
    .mag-site-nav__dropdown,
    .mag-moment-selector__button,
    .mag-moment-selector__menu,
    .mag-site-header__brand,
    .mag-site-header__logo,
    .mag-site-footer__social-link {
        transition: none !important;
    }
}

.mag-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 38px;
    color: var(--mag-common-muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

.mag-breadcrumb a {
    color: var(--mag-common-accent);
    font-weight: 700;
}

.mag-breadcrumb a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.mag-rubrique {
    color: #102033;
    background: #f7f9fc;
}

.mag-rubrique .mag-container {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
}

.mag-rubrique-page {
    padding: 2.5rem 0;
}

.mag-rubrique-hero {
    padding: 0 0 1.25rem;
}

.mag-section {
    padding: 1.25rem 0 2.5rem;
}

.mag-section--children {
    padding-top: 0;
}

.mag-rubrique-hero__grid,
.mag-rubrique-layout {
    display: grid;
    gap: 1.5rem;
}

.mag-rubrique-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
    align-items: start;
}

.mag-rubrique-main {
    min-width: 0;
}

.mag-rubrique-aside {
    position: static;
    top: auto;
    align-self: start;
}

.mag-rubrique-hero__grid {
    grid-template-columns: 1fr;
    align-items: start;
}

.mag-rubrique-hero__content h1 {
    margin: 0.35rem 0 1rem;
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    line-height: 1.05;
}

.mag-rubrique-hero__baseline,
.mag-rubrique-hero__description {
    max-width: 140ch;
    color: #45566d;
}

.mag-rubrique-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.mag-rubrique-hero__stats span,
.mag-rubrique-child-card__count,
.mag-card-meta,
.mag-pagination__current {
    font-size: 0.875rem;
    color: #66758a;
}

.mag-aside-card,
.mag-rubrique-child-card,
.mag-rubrique-card {
    background: #ffffff;
    border: 1px solid #e4eaf2;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(16, 32, 51, 0.05);
}

.mag-rubrique-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    background: #edf2f7;
}

.mag-rubrique-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mag-rubrique-card__body,
.mag-aside-card {
    padding: 1.25rem;
}

.mag-kicker {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 740;
    letter-spacing: 0.09em;
    line-height: 1.35;
    text-transform: uppercase;
}

.mag-section__header {
    margin-bottom: 1.25rem;
}

.mag-section__header h2,
.mag-aside-card h2,
.mag-rubrique-child-card h3,
.mag-rubrique-card h3,
.mag-latest-list h3,
.mag-aside-feature h3 {
    margin: 0;
    line-height: 1.2;
}

.mag-aside-card > h2 + .mag-aside-feature,
.mag-aside-card > h2 + .mag-related-list {
    margin-top: 1rem;
}

.mag-aside-feature {
    display: block;
    padding: 1rem;
    border: 1px solid #dde5ef;
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.mag-aside-feature:hover {
    border-color: #c8d5e5;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(16, 32, 51, 0.06);
}

.mag-aside-feature h3 {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.mag-aside-feature h3 a {
    display: block;
    color: #102033;
    font-weight: 500;
    text-decoration: none;
}

.mag-aside-feature h3 a::after {
    content: " →";
    color: #7a8798;
    font-weight: 900;
}

.mag-aside-feature h3 a:hover {
    color: var(--mag-common-accent);
    text-decoration: none;
}

.mag-aside-feature .mag-card-meta {
    margin: 0 0 0.45rem;
}

.mag-aside-feature p {
    color: #66758a;
    font-size: 0.92rem;
    line-height: 1.55;
}

.mag-aside-feature p:not(.mag-card-meta) {
    margin: 0.65rem 0 0;
}

.mag-rubrique-card h3 a,
.mag-latest-list h3 a {
    color: inherit;
    text-decoration: none;
}

.mag-rubrique-card h3 a:hover,
.mag-latest-list h3 a:hover {
    text-decoration: underline;
}

.mag-aside-feature p:last-child,
.mag-aside-card p:last-child,
.mag-rubrique-card__body p:last-child {
    margin-bottom: 0;
}

.mag-section__header--split {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
}

.mag-rubrique-child-grid,
.mag-rubrique-article-grid {
    display: grid;
    gap: 1rem;
}

.mag-rubrique-child-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.mag-rubrique-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mag-rubrique-child-card,
.mag-related-list a {
    display: block;
    padding: 1.1rem;
    color: inherit;
    text-decoration: none;
}

.mag-related-list,
.mag-latest-list {
    display: grid;
    gap: 0.85rem;
}

.mag-related-list a {
    border: 1px solid #dde5ef;
    border-radius: 14px;
    padding: 1rem;
    color: inherit;
    text-decoration: none;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.mag-related-list a:hover {
    border-color: #c8d5e5;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(16, 32, 51, 0.06);
}

.mag-related-list a > span::after {
    content: " →";
    color: #7a8798;
    font-weight: 900;
}

.mag-related-list small {
    display: block;
    margin-top: 0.35rem;
    color: #7a8798;
}

.mag-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.mag-pagination__link,
.mag-text-link,
.mag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 999px;
    text-decoration: none;
    padding: 0.75rem 1rem;
}

.mag-pagination__link,
.mag-text-link {
    border: 1px solid #d8e1ec;
    color: #102033;
    background: #fff;
}

.mag-btn--primary {
    background: #102033;
    color: #fff;
}

.mag-aside-card + .mag-aside-card {
    margin-top: 1rem;
}

.mag-empty-state {
    padding: 1.25rem;
    border: 1px dashed #d8e1ec;
    border-radius: 16px;
    background: #fff;
    color: #66758a;
}

.mag-rubrique__not-found {
    padding: 4rem 0;
}

@media (max-width: 960px) {
    .mag-rubrique-layout,
    .mag-rubrique-article-grid {
        grid-template-columns: 1fr;
    }

    .mag-rubrique-aside {
        position: static;
    }

    .mag-section__header--split {
        flex-direction: column;
        align-items: start;
    }
}

/* ==========================================================================
   Footer newsletter widget — structure stricte en 5 lignes pleine largeur
   1. Titre
   2. Email + bouton
   3. Essentiels : 2 par ligne
   4. Dossiers thématiques : 6 par ligne
   5. Consentement
   À placer EN FIN de magazine/css/common.css
   ========================================================================== */

/* Le footer top ne doit pas forcer la newsletter en colonne latérale */
.mag-site-footer__top {
    display: block !important;
    padding-bottom: 28px;
    border-bottom: 0;
}

.mag-site-footer__brand {
    max-width: 100%;
}

.mag-site-footer__brand p {
    max-width: 860px;
}

/* Conteneur principal newsletter : empilement vertical strict */
.mag-site-footer__newsletter {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: none !important;
    gap: 18px;
    margin: 38px 0 38px !important;
    padding: 26px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 18rem),
        rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--mag-common-radius-lg);
}

/* LIGNE 1 : titre pleine largeur */
.mag-site-footer__newsletter-content {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
}

.mag-site-footer__kicker {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.76rem;
    font-weight: 780;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mag-site-footer__newsletter h2 {
    width: 100%;
    max-width: none !important;
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    letter-spacing: -0.045em;
    line-height: 1.15;
}

/* Formulaire : toutes les zones sont empilées verticalement */
.mag-newsletter-widget.mag-site-footer__form {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: none !important;
    gap: 18px;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}

/* LIGNE 2 : email + bouton pleine largeur */
.mag-newsletter-widget__email-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: stretch;
    width: 100% !important;
    max-width: none !important;
    gap: 8px;
    padding: 7px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid transparent;
    border-radius: 999px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.mag-newsletter-widget__email-row input[type="email"] {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0 14px;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--mag-common-text);
}

.mag-newsletter-widget__email-row input[type="email"]::placeholder {
    color: rgba(21, 23, 26, 0.5);
}

.mag-newsletter-widget__email-row button {
    min-height: 42px;
    padding: 0 22px;
    background: var(--mag-common-accent);
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 760;
    white-space: nowrap;
}

.mag-newsletter-widget__email-row button:disabled {
    cursor: default;
    opacity: 0.78;
}

/* Conteneur des lignes de choix newsletter */
.mag-newsletter-widget__streams {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: none !important;
    gap: 18px;
}

/* États temporaires */
.mag-newsletter-widget__loading,
.mag-newsletter-widget__empty,
.mag-newsletter-widget__message {
    width: 100%;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.86rem;
    line-height: 1.5;
}

/* Chaque fieldset est une ligne pleine largeur */
.mag-newsletter-widget__group {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    min-inline-size: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

/* Titre de chaque groupe */
.mag-newsletter-widget__group legend {
    display: block;
    width: 100%;
    margin: 0 0 10px;
    padding: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.74rem;
    font-weight: 780;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* 
   LIGNE 3 : Les essentiels
   Le JS génère ce groupe en premier.
   Résultat : 2 cartes sur la même ligne, sur toute la largeur.
*/
.mag-newsletter-widget__group:nth-of-type(1) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
}

.mag-newsletter-widget__group:nth-of-type(1) legend {
    grid-column: 1 / -1;
}

/*
   LIGNE 4 : Dossiers thématiques
   Le JS génère ce groupe en deuxième.
   Résultat : 6 cartes sur la même ligne, sur toute la largeur.
*/
.mag-newsletter-widget__group:nth-of-type(2) {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 10px;
}

.mag-newsletter-widget__group:nth-of-type(2) legend {
    grid-column: 1 / -1;
}

/* Éventuels autres groupes : pleine largeur aussi */
.mag-newsletter-widget__group:nth-of-type(n + 3) {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px;
}

.mag-newsletter-widget__group:nth-of-type(n + 3) legend {
    grid-column: 1 / -1;
}

/* Carte d’un flux newsletter */
.mag-newsletter-widget__stream {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    width: 100%;
    min-width: 0;
    min-height: 100%;
    gap: 10px;
    padding: 11px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.mag-newsletter-widget__stream:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.mag-newsletter-widget__stream input[type="checkbox"],
.mag-newsletter-widget__consent input[type="checkbox"] {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    flex: 0 0 17px !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    accent-color: var(--mag-header-cyan);
    cursor: pointer;
}

.mag-newsletter-widget__stream-body {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.mag-newsletter-widget__stream-title {
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 760;
    line-height: 1.25;
}

.mag-newsletter-widget__stream-meta {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.74rem;
    font-weight: 690;
    line-height: 1.35;
}

.mag-newsletter-widget__stream-description {
    display: -webkit-box;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.74rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* LIGNE 5 : consentement pleine largeur */
.mag-newsletter-widget__consent {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr) !important;
    align-items: start;
    width: 100% !important;
    max-width: none !important;
    gap: 10px;
    padding: 11px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 0.78rem;
    line-height: 1.45;
}

/* États du widget */
.mag-newsletter-widget.is-error .mag-newsletter-widget__email-row,
.mag-newsletter-widget.is-error .mag-newsletter-widget__consent {
    border-color: rgba(255, 180, 180, 0.9);
}

.mag-newsletter-widget.is-success .mag-newsletter-widget__email-row {
    border-color: rgba(168, 230, 189, 0.95);
}

.mag-newsletter-widget__message {
    min-height: 1.2em;
}

.mag-newsletter-widget__message:empty {
    display: none;
}

.mag-newsletter-widget.is-error .mag-newsletter-widget__message {
    color: #ffd0d0;
}

.mag-newsletter-widget.is-success .mag-newsletter-widget__message {
    color: #b9f2ca;
}

.mag-newsletter-widget.is-loading .mag-newsletter-widget__message {
    color: rgba(255, 255, 255, 0.72);
}

/* Honeypot invisible */
.mag-newsletter-widget__honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 1080px) {
    .mag-newsletter-widget__group:nth-of-type(2) {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .mag-newsletter-widget__group:nth-of-type(n + 3) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .mag-site-footer__newsletter {
        padding: 22px;
        margin-bottom: 30px !important;
    }

    .mag-newsletter-widget__group:nth-of-type(1),
    .mag-newsletter-widget__group:nth-of-type(2),
    .mag-newsletter-widget__group:nth-of-type(n + 3) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 520px) {
    .mag-site-footer__newsletter {
        padding: 20px;
    }

    .mag-newsletter-widget__email-row {
        grid-template-columns: 1fr !important;
        border-radius: var(--mag-common-radius-md);
    }

    .mag-newsletter-widget__email-row button {
        width: 100%;
    }

    .mag-newsletter-widget__group:nth-of-type(1),
    .mag-newsletter-widget__group:nth-of-type(2),
    .mag-newsletter-widget__group:nth-of-type(n + 3) {
        grid-template-columns: 1fr !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mag-newsletter-widget__stream,
    .mag-newsletter-widget__email-row {
        transition: none !important;
    }
}

/* ==========================================================================
   Contenus HTML éditoriaux réutilisables : dossier, rubrique et moment
   ========================================================================== */

.mag-prose {
    color: #45566d;
    line-height: 1.72;
}

.mag-prose > *:first-child {
    margin-top: 0;
}

.mag-prose > *:last-child {
    margin-bottom: 0;
}

.mag-prose p {
    margin: 0 0 1rem;
}

.mag-prose h2,
.mag-prose h3,
.mag-prose h4 {
    margin: 1.7em 0 0.65em;
    color: #102033;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.mag-prose h2 {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.mag-prose h3 {
    font-size: clamp(1.08rem, 1.7vw, 1.3rem);
}

.mag-prose h4 {
    font-size: 1rem;
}

.mag-prose ul,
.mag-prose ol {
    margin: 0 0 1rem;
    padding-left: 1.35rem;
}

.mag-prose li {
    margin: 0.4rem 0;
}

.mag-prose blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.15rem;
    border-left: 4px solid var(--mag-common-accent);
    border-radius: 0 var(--mag-common-radius-sm) var(--mag-common-radius-sm) 0;
    background: var(--mag-common-accent-soft);
    color: #102033;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.65;
}

.mag-prose a {
    color: var(--mag-common-accent);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.mag-prose hr {
    height: 1px;
    margin: 1.8rem 0;
    border: 0;
    background: #d8e1ec;
}

.mag-content-cover {
    overflow: hidden;
    margin: 0;
    background: #ffffff;
    border: 1px solid #e4eaf2;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(16, 32, 51, 0.05);
}

.mag-content-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.mag-content-cover figcaption {
    padding: 0.85rem 1.1rem;
    color: #66758a;
    font-size: 0.875rem;
    line-height: 1.5;
}

.mag-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.mag-reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .mag-reveal {
        opacity: 1;
        transform: none;
        transition: none !important;
    }
}