:root {
    /* Palette (approx) extraite visuellement de l'image */
    --blue-night: #0E1B2A;
    --blue-deep: #1B2F45;
    --gold-main: #F2C14E;
    --gold-dark: #C89B2C;
    --red-ruby: #8C1D18;

    --text-main: #F5F1E8;
    --text-soft: #E6DDC8;
    --text-muted: #B7C4D3;

    --border-gold: #7A5A2E;
    --bg-parchment: #EAD7B0;
    --shadow-dark: #08131F;

    /* UI tokens */
    --paper: rgba(255, 255, 255, 0.06);
    --paper2: rgba(255, 255, 255, 0.10);
    --danger: #ff6b6b;
    --shadow: 0 28px 70px rgba(8, 19, 31, 0.55);
    --site-header-height: 0px;

    --radius: 18px;
    --radius2: 26px;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    color: var(--text-main);
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    line-height: 1.62;

    /* Fond "bleu nuit texture" (degrade + bruit SVG en repetition) */
    background:
        radial-gradient(1200px 900px at 15% 10%, rgba(242, 193, 78, 0.12), transparent 60%),
        radial-gradient(900px 700px at 85% 25%, rgba(234, 215, 176, 0.08), transparent 55%),
        radial-gradient(900px 700px at 60% 90%, rgba(183, 196, 211, 0.10), transparent 60%),
        linear-gradient(180deg, var(--blue-deep) 0%, var(--blue-night) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
    background-blend-mode: screen, screen, screen, normal, overlay;
    background-attachment: fixed;
    overflow-x: hidden;
}

.acil-app,
.site-main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

a { color: var(--gold-main); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Screen reader only */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Typo "solennelle" pour les titres */
.t-serif {
    font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", Times, serif;
    letter-spacing: 0.02em;
}

.h1, .h2, .h3 { margin: 0; }
.h1 { font-size: clamp(30px, 3.8vw, 54px); }
.h2 { font-size: clamp(20px, 2.2vw, 28px); }
.h3 { font-size: 18px; }

.subtle { color: var(--text-muted); }

/* Layout */
.shell {
    width: min(1160px, calc(100% - 40px));
    margin: 30px auto 80px;
}

/* Site chrome */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 30;
    background: linear-gradient(180deg, rgba(14, 27, 42, 0.90), rgba(14, 27, 42, 0.60));
    border-bottom: 1px solid rgba(122, 90, 46, 0.28);
    backdrop-filter: blur(10px);
    isolation: isolate;
    /* Allow dropdowns (e.g. "Mon compte") to render outside the header. */
    overflow: visible;
}
.site-header > .shell {
    margin-top: 0;
    margin-bottom: 0;
}

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

/* "Jeu de lumiere" inspire des couleurs du logo (or/rouge) */
.site-header::before {
    background:
        radial-gradient(520px 260px at 18% 35%, rgba(242, 193, 78, 0.22), transparent 62%),
        radial-gradient(520px 260px at 42% 15%, rgba(255, 166, 77, 0.14), transparent 60%),
        radial-gradient(560px 320px at 72% 55%, rgba(211, 52, 52, 0.10), transparent 64%),
        radial-gradient(520px 300px at 88% 22%, rgba(242, 193, 78, 0.14), transparent 64%);
    filter: blur(0.2px);
    opacity: 0.95;
    animation: headerGlow 10s ease-in-out infinite;
}

.site-header::after {
    background:
        radial-gradient(420px 220px at 30% 65%, rgba(242, 193, 78, 0.08), transparent 62%),
        radial-gradient(520px 280px at 66% 30%, rgba(140, 29, 24, 0.10), transparent 66%);
    mix-blend-mode: screen;
    opacity: 0.85;
    animation: headerGlow2 14s ease-in-out infinite;
}

@keyframes headerGlow {
    0%   { transform: translate3d(0, 0, 0) scale(1); filter: blur(0.2px); }
    35%  { transform: translate3d(18px, -6px, 0) scale(1.02); filter: blur(0.4px); }
    70%  { transform: translate3d(-10px, 10px, 0) scale(1.01); filter: blur(0.25px); }
    100% { transform: translate3d(0, 0, 0) scale(1); filter: blur(0.2px); }
}

@keyframes headerGlow2 {
    0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.78; }
    45%  { transform: translate3d(-16px, 8px, 0) scale(1.03); opacity: 0.92; }
    100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.78; }
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(242, 193, 78, 0.35);
    background: rgba(14, 27, 42, 0.95);
    color: var(--text-main);
    z-index: 9999;
}
.skip-link:focus { left: 10px; }

.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 0;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-header__hebrew-date {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding: 8px 11px;
    border-radius: 12px;
    border: 1px solid rgba(122, 90, 46, 0.28);
    background: rgba(14, 27, 42, 0.45);
    color: var(--text-main);
    white-space: nowrap;
}

.site-header__hebrew-value {
    color: var(--gold-main);
    font-size: 13px;
    font-weight: 700;
}

.site-header__parasha-value {
    color: var(--text-soft);
    font-size: 12px;
    font-style: italic;
}

.site-header__parasha-book-value {
    color: var(--text-muted);
    font-size: 11px;
}

.site-header__navrow {
    position: relative;
    border-top: 1px solid rgba(122, 90, 46, 0.14);
    padding: 12px 0 16px;
    /* Allow dropdown menu to escape the nav row. */
    overflow: visible;
}
.site-header__navrow::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(14, 27, 42, 0.95), rgba(14, 27, 42, 0.0) 8%, rgba(14, 27, 42, 0.0) 92%, rgba(14, 27, 42, 0.95));
    opacity: 0.35;
}

.site-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--text-main);
    text-decoration: none;
    min-width: 0;
}

.site-brand__mark {
    width: 92px;
    height: 92px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
    box-shadow: none;
    flex: 0 0 auto;
    position: relative;
}

.site-brand__mark::before {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 22px;
    background:
        radial-gradient(38px 38px at 24% 22%, rgba(242, 193, 78, 0.55), transparent 70%),
        radial-gradient(44px 44px at 70% 28%, rgba(255, 166, 77, 0.35), transparent 72%),
        radial-gradient(48px 48px at 40% 74%, rgba(140, 29, 24, 0.26), transparent 72%),
        conic-gradient(from 210deg, rgba(242, 193, 78, 0.0), rgba(242, 193, 78, 0.42), rgba(140, 29, 24, 0.0), rgba(242, 193, 78, 0.0));
    filter: blur(8px);
    opacity: 0.95;
    z-index: -1;
    animation: logoHalo 8.5s ease-in-out infinite;
}

.site-brand__logo {
    width: 92px;
    height: 92px;
    object-fit: contain;
    border-radius: 14px;
    display: block;
    filter: drop-shadow(0 10px 18px rgba(8, 19, 31, 0.35));
    animation: logoPulse 6.5s ease-in-out infinite;
}

@keyframes logoHalo {
    0%   { transform: rotate(0deg) scale(1); opacity: 0.90; }
    45%  { transform: rotate(5deg) scale(1.03); opacity: 1; }
    100% { transform: rotate(0deg) scale(1); opacity: 0.90; }
}

@keyframes logoPulse {
    0%   { filter: drop-shadow(0 10px 18px rgba(8, 19, 31, 0.35)) drop-shadow(0 0 18px rgba(242, 193, 78, 0.12)); }
    50%  { filter: drop-shadow(0 10px 18px rgba(8, 19, 31, 0.35)) drop-shadow(0 0 26px rgba(242, 193, 78, 0.22)) drop-shadow(0 0 14px rgba(140, 29, 24, 0.14)); }
    100% { filter: drop-shadow(0 10px 18px rgba(8, 19, 31, 0.35)) drop-shadow(0 0 18px rgba(242, 193, 78, 0.12)); }
}

.site-brand__text { display: grid; gap: 3px; min-width: 0; }
.site-brand__name { font-size: 18px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-brand__name { font-size: 20px; }
.site-brand__tag { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.site-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow: visible;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(122, 90, 46, 0.28);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: 0 16px 32px rgba(8, 19, 31, 0.34);
    position: relative;
    z-index: 1;
}
.site-nav { position: relative; }
.site-nav::before {
    content: "";
    position: absolute;
    inset: -14px -12px;
    pointer-events: none;
    border-radius: 18px;
    background:
        radial-gradient(220px 90px at 18% 60%, rgba(242, 193, 78, 0.16), transparent 70%),
        radial-gradient(260px 110px at 72% 30%, rgba(140, 29, 24, 0.10), transparent 72%),
        radial-gradient(180px 90px at 92% 70%, rgba(255, 166, 77, 0.10), transparent 70%);
    filter: blur(10px);
    opacity: 0.45;
    z-index: -1;
    animation: navGlow 10s ease-in-out infinite;
}
.site-nav__link {
    position: relative;
    color: var(--text-soft);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(122, 90, 46, 0.30);
    background:
        linear-gradient(180deg, rgba(23, 43, 67, 0.82), rgba(15, 31, 49, 0.82));
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}
.site-nav__ico {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: -3px;
    margin-right: 8px;
    opacity: 0.96;
}
.site-nav__ico svg { width: 100%; height: 100%; display: block; }
.site-nav__label { display: inline-block; }
.site-nav__link--homeicon {
    min-width: 46px;
    justify-content: center;
    padding-left: 12px;
    padding-right: 12px;
}
.site-nav__link--homeicon .site-nav__ico {
    margin-right: 0;
    vertical-align: middle;
}

/* Dropdown support (kept for future use) */
.site-nav__dd {
    position: relative;
}
.site-nav__dd > summary {
    list-style: none;
    cursor: pointer;
}
.site-nav__dd > summary::-webkit-details-marker { display: none; }
.site-nav__dd > summary.site-nav__link {
    padding-right: 32px;
}
.site-nav__dd > summary.site-nav__link::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-62%) rotate(45deg);
    opacity: 0.8;
    transition: transform 140ms ease;
}
.site-nav__dd[open] > summary.site-nav__link::after {
    transform: translateY(-38%) rotate(225deg);
}
.site-nav__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 200px;
    border-radius: 14px;
    border: 1px solid rgba(122, 90, 46, 0.26);
    background: rgba(14, 27, 42, 0.96);
    box-shadow: 0 28px 70px rgba(8, 19, 31, 0.55);
    padding: 8px;
    z-index: 40;
}
.site-nav__menu--mega {
    right: auto;
    left: 0;
    min-width: 620px;
    max-width: min(90vw, 860px);
    display: grid;
    grid-template-columns: 1fr minmax(180px, 230px);
    gap: 14px;
    padding: 14px;
}
.site-nav__menuCols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.site-nav__menuCol {
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}
.site-nav__menuTitle {
    margin: 0 0 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--gold-main);
}
.site-nav__menuLink {
    display: block;
    padding: 10px 10px;
    border-radius: 12px;
    color: var(--text-main);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    font-size: 13px;
}
.site-nav__menuLink + .site-nav__menuLink { margin-top: 8px; }
.site-nav__menuLink:hover {
    border-color: rgba(242, 193, 78, 0.35);
    text-shadow: 0 0 14px rgba(242, 193, 78, 0.16);
}
.site-nav__feature {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(242, 193, 78, 0.26);
    background: linear-gradient(180deg, rgba(242, 193, 78, 0.10), rgba(255, 255, 255, 0.04));
}
.site-nav__featureImg {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(14, 27, 42, 0.6);
}
.site-nav__featureTitle {
    margin: 0;
    font-size: 13px;
    color: var(--text-main);
    font-weight: 700;
}
.site-nav__featureLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid rgba(242, 193, 78, 0.4);
    background: rgba(14, 27, 42, 0.78);
    color: var(--text-main);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}
.site-nav__featureLink:hover {
    border-color: rgba(242, 193, 78, 0.6);
    text-decoration: none;
}

.site-nav__link::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 14px;
    background:
        conic-gradient(from 210deg,
            rgba(242, 193, 78, 0.0),
            rgba(242, 193, 78, 0.42),
            rgba(140, 29, 24, 0.18),
            rgba(242, 193, 78, 0.0)
        );
    filter: blur(7px);
    opacity: 0;
    transition: opacity 180ms ease;
    z-index: -1;
}
.site-nav__link:hover {
    border-color: rgba(242, 193, 78, 0.58);
    color: var(--text-main);
    text-shadow: 0 0 14px rgba(242, 193, 78, 0.16);
    /* Prevent global `a:hover { text-decoration: underline; }` from underlining the icon gap. */
    text-decoration: none;
    transform: translateY(-1px);
    background:
        linear-gradient(180deg, rgba(31, 58, 88, 0.9), rgba(18, 38, 60, 0.9));
    box-shadow: 0 10px 24px rgba(8, 19, 31, 0.34);
}
.site-nav__link:hover .site-nav__label,
.site-nav__link:focus-visible .site-nav__label {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(242, 193, 78, 0.55);
}
.site-nav__link:hover::before { opacity: 0.95; }
.site-nav__link.is-active {
    border-color: rgba(242, 193, 78, 0.75);
    background:
        radial-gradient(250px 90px at 50% -20%, rgba(242, 193, 78, 0.22), transparent 60%),
        linear-gradient(180deg, rgba(45, 71, 101, 0.92), rgba(28, 51, 78, 0.92));
    color: var(--text-main);
    text-shadow: 0 0 18px rgba(242, 193, 78, 0.25);
    box-shadow: inset 0 0 0 1px rgba(242, 193, 78, 0.18);
}
.site-nav__link.is-active::before { opacity: 1; }

@keyframes navGlow {
    0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.62; }
    40%  { transform: translate3d(16px, -6px, 0) scale(1.02); opacity: 0.82; }
    75%  { transform: translate3d(-10px, 8px, 0) scale(1.01); opacity: 0.70; }
    100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.62; }
}

/* Mobile menu toggle */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-button {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(122, 90, 46, 0.22);
    background: rgba(255, 255, 255, 0.03);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}
.nav-button:hover {
    border-color: rgba(242, 193, 78, 0.36);
    background: rgba(242, 193, 78, 0.08);
    transform: translateY(-1px);
}
.nav-button__bars {
    width: 18px;
    height: 2px;
    background: var(--text-main);
    position: relative;
    display: block;
}
.nav-button__bars::before,
.nav-button__bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--text-main);
}
.nav-button__bars::before { top: -6px; }
.nav-button__bars::after { top: 6px; }
.nav-button__label {
    display: none;
}

.site-main { padding-top: calc(var(--site-header-height) + 18px); }

.site-footer {
    border-top: 1px solid rgba(122, 90, 46, 0.20);
    background: linear-gradient(180deg, rgba(8, 19, 31, 0.00), rgba(8, 19, 31, 0.35));
    padding: 34px 0 28px;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.site-footer__title { font-size: 16px; color: var(--gold-main); margin-bottom: 6px; }
.site-footer__text { color: var(--text-soft); font-size: 14px; }
.site-footer__muted { color: var(--text-muted); font-size: 13px; }
.site-footer__bottom { margin-top: 18px; text-align: center; }

.scroll-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(242, 193, 78, 0.44);
    background: linear-gradient(180deg, rgba(23, 43, 67, 0.94), rgba(14, 27, 42, 0.94));
    color: var(--gold-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(8, 19, 31, 0.42);
    cursor: pointer;
    z-index: 70;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.scroll-top svg {
    width: 20px;
    height: 20px;
    display: block;
}

.scroll-top:hover {
    border-color: rgba(242, 193, 78, 0.78);
    color: #ffe19f;
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Content blocks */
.section { margin-top: 32px; }
.section__header { margin-bottom: 18px; }

/* Auth/login page */
.auth-login {
    margin-top: 18px;
}
.auth-login__shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 18px;
    align-items: stretch;
}
.auth-login__intro,
.auth-login__formCard {
    min-height: 100%;
}
.auth-login__title {
    margin-top: 10px;
}
.auth-login__list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}
.auth-login__list li {
    display: grid;
    grid-template-columns: 10px 1fr;
    gap: 10px;
    align-items: start;
    color: var(--text-soft);
}
.auth-login__list li::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-top: 6px;
    background: rgba(242, 193, 78, 0.85);
    box-shadow: 0 8px 18px rgba(242, 193, 78, 0.2);
}
.auth-login__quicklinks {
    margin-top: 16px;
    display: grid;
    gap: 10px;
    max-width: 290px;
}
.auth-login__hint {
    margin: -2px 0 12px;
}
.auth-login__submit {
    margin-top: 4px;
}
.auth-login__alt {
    margin-top: 14px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(122, 90, 46, 0.30);
    background: rgba(255, 255, 255, 0.03);
    color: var(--gold-main);
}

.p { margin: 10px 0 0; color: var(--text-soft); }
.link { color: var(--gold-main); }

.card--soft { background: linear-gradient(180deg, rgba(234, 215, 176, 0.10), rgba(255, 255, 255, 0.05)); }
.card--lift { transition: transform 120ms ease, border-color 120ms ease, background 120ms ease; }
.card--lift:hover {
    transform: translateY(-2px);
    border-color: rgba(242, 193, 78, 0.30);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.06));
}

.section__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.section__grid--news { grid-template-columns: repeat(2, 1fr); }

/* Keep category cards visually aligned in all grids. */
.section__grid,
.section__grid--news,
.grid2,
.activities-grid {
    align-items: stretch;
}

.section__grid > .card,
.section__grid--news > .card,
.grid2 > .card,
.activities-grid > .card {
    width: 100%;
    height: 100%;
}

.homev3-card,
.activity-card {
    height: 100%;
}

/* Never allow horizontal overflow in front pages. */
.site-main .table,
.site-main .table__row,
.site-main table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.site-main .table__row > div,
.site-main td,
.site-main th {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.site-main [style*="overflow-x:auto"],
.site-main [style*="overflow-x: auto"] {
    overflow-x: hidden !important;
}

.hero-site {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 16px;
    align-items: stretch;
}
.hero-site__copy {
    border-radius: var(--radius2);
    border: 1px solid rgba(122, 90, 46, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.05));
    box-shadow: var(--shadow);
    padding: 26px 22px;
}

.hero-logo {
    width: min(550px, 80vw);
    max-height: 240px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 0 10px;
    filter: drop-shadow(0 16px 28px rgba(8, 19, 31, 0.45));
}
.hero-site__copy::before {
    content: "";
    display: block;
    height: 2px;
    width: 110px;
    border-radius: 99px;
    background: linear-gradient(90deg, rgba(242, 193, 78, 0.0), rgba(242, 193, 78, 0.95), rgba(200, 155, 44, 0.0));
    margin-bottom: 14px;
}
.hero-site__title { margin-top: 12px; }
.hero-site__lead { margin-top: 10px; color: var(--text-soft); font-size: 16px; }
.hero-site__cta { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-site__card { display: grid; }
.card__title { font-size: 16px; color: var(--gold-main); margin-bottom: 10px; }

.ruleline { display: grid; grid-template-columns: 10px 1fr; gap: 10px; align-items: start; padding: 6px 0; color: var(--text-soft); }
.ruleline__dot { width: 10px; height: 10px; border-radius: 999px; margin-top: 6px; background: rgba(242, 193, 78, 0.85); box-shadow: 0 10px 22px rgba(242, 193, 78, 0.18); }
.ruleline b { color: var(--text-main); }
.quote { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(122, 90, 46, 0.22); color: var(--gold-main); }

.newsmeta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(242, 193, 78, 0.30);
    background: rgba(242, 193, 78, 0.08);
    color: var(--text-main);
    font-size: 12px;
}
.pill--muted {
    border-color: rgba(122, 90, 46, 0.22);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
}
.pill--green {
    border-color: rgba(76, 175, 80, 0.40);
    background: rgba(76, 175, 80, 0.10);
    color: var(--text-main);
}
.pill--orange {
    border-color: rgba(255, 152, 0, 0.40);
    background: rgba(255, 152, 0, 0.10);
    color: var(--text-main);
}
.pill--red {
    border-color: rgba(255, 107, 107, 0.55);
    background: rgba(255, 107, 107, 0.12);
    color: var(--text-main);
}
.newsactions { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }

/* Home (no "encarts") */
.home-hero {
    margin: 18px auto 54px;
}

.home-hero__kicker {
    display: inline-block;
    color: var(--gold-main);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    font-size: 14px;
}

.home-hero__title {
    margin: 10px 0 0;
    font-size: clamp(32px, 4.2vw, 58px);
    line-height: 1.08;
}

.home-hero__lead {
    margin: 12px 0 0;
    color: var(--text-soft);
    font-size: 16px;
    max-width: 70ch;
}

.home-hero__cta {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.home-hero__notes {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(122, 90, 46, 0.20);
    max-width: 80ch;
}

.home-hero__notesTitle {
    color: var(--gold-main);
    font-size: 16px;
}

.home-notes {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--text-soft);
}
.home-notes li { margin: 6px 0; }
.home-notes b { color: var(--text-main); }

.home-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 12px 0;
    border-top: 1px solid rgba(122, 90, 46, 0.18);
    border-bottom: 1px solid rgba(122, 90, 46, 0.18);
}

.home-link {
    color: var(--text-main);
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 1px solid rgba(242, 193, 78, 0.25);
}
.home-link:hover {
    color: var(--gold-main);
    border-bottom-color: rgba(242, 193, 78, 0.62);
    text-decoration: none;
}

.home-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: start;
}

.home-column__header { margin-bottom: 10px; }
.home-column__kicker { color: var(--gold-main); }

.home-list {
    border-top: 1px solid rgba(122, 90, 46, 0.18);
}

.home-item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(122, 90, 46, 0.14);
}

.home-item__meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 12px;
}

.home-item__sep { opacity: 0.7; }

.home-item__title {
    margin: 6px 0 0;
    font-size: 18px;
}

.home-item__link {
    color: var(--text-main);
    text-decoration: none;
}
.home-item__link:hover { color: var(--gold-main); text-decoration: underline; }

.home-item__text {
    margin: 8px 0 0;
    color: var(--text-soft);
}

.home-more {
    display: inline-block;
    margin-top: 12px;
}

/* Home refonte */
.homev3-hero {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 18px;
    align-items: stretch;
}

.homev3-hero__content,
.homev3-hero__aside {
    border-radius: var(--radius2);
    border: 1px solid rgba(122, 90, 46, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.05));
    box-shadow: var(--shadow);
    padding: 28px 26px;
}

.homev3-hero__content--visual {
    position: relative;
    overflow: hidden;
}

.homev3-hero__content--visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(14, 27, 42, 0.72), rgba(14, 27, 42, 0.40)),
        url("/img/ui/leilouy.png") center/cover no-repeat;
    filter: saturate(0.95) contrast(1.05);
    opacity: 0.56;
    pointer-events: none;
}

.homev3-hero__content--visual > * {
    position: relative;
    z-index: 1;
}

.homev3-kicker {
    color: var(--gold-main);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    font-size: 13px;
}

.homev3-title {
    margin: 10px 0 0;
    font-size: clamp(34px, 4.5vw, 58px);
    line-height: 1.08;
}

.homev3-lead {
    margin: 12px 0 0;
    color: var(--text-soft);
    font-size: 17px;
    max-width: 72ch;
}

.homev3-cta {
    margin-top: 22px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.homev3-note__title {
    margin: 0;
    color: var(--gold-main);
    font-size: 18px;
}

.homev3-list {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--text-soft);
}

.homev3-list li { margin: 8px 0; }

.homev3-stats {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.homev3-stat {
    border-radius: 14px;
    border: 1px solid rgba(242, 193, 78, 0.24);
    background: rgba(8, 19, 31, 0.32);
    padding: 10px 10px;
    display: grid;
    gap: 2px;
}

.homev3-stat__num {
    font-size: 22px;
    font-weight: 800;
    color: var(--gold-main);
}

.homev3-stat__label {
    color: var(--text-muted);
    font-size: 12px;
}

.homev3-quick {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.homev3-quick__item {
    border-radius: 12px;
    border: 1px solid rgba(122, 90, 46, 0.24);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px 10px;
}

.homev3-quick__item:hover {
    color: var(--gold-main);
    border-color: rgba(242, 193, 78, 0.5);
    text-decoration: none;
}

.homev3-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.homev3-col__head { margin-bottom: 10px; }
.homev3-col__kicker { color: var(--gold-main); }

.homev3-cards {
    border-top: 1px solid rgba(122, 90, 46, 0.18);
}

.homev3-card {
    padding: 16px 0;
    border-bottom: 1px solid rgba(122, 90, 46, 0.14);
}

.homev3-card__media {
    border-radius: 12px;
    border: 1px solid rgba(122, 90, 46, 0.25);
    overflow: hidden;
    margin-bottom: 10px;
    height: 132px;
    background: rgba(14, 27, 42, 0.30);
}

.homev3-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.05) saturate(0.95);
}

.homev3-card__meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 12px;
}

.homev3-dot { opacity: 0.7; }

.homev3-card__title {
    margin: 6px 0 0;
    font-size: 18px;
}

.homev3-card__title a {
    color: var(--text-main);
    text-decoration: none;
}

.homev3-card__title a:hover {
    color: var(--gold-main);
    text-decoration: underline;
}

.homev3-card__text {
    margin: 8px 0 0;
    color: var(--text-soft);
}

.homev3-more {
    display: inline-block;
    margin-top: 12px;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.activity-card {
    display: grid;
    gap: 10px;
    align-content: start;
    min-height: 260px;
}

.activity-card__media {
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(122, 90, 46, 0.25);
    background: rgba(255, 255, 255, 0.04);
}

.activity-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.activity-card__head {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.activity-card__meta {
    display: grid;
    gap: 4px;
    color: var(--text-muted);
    font-size: 13px;
}

.activity-card__desc {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.45;
}

.alert { padding: 12px 12px; border-radius: 14px; border: 1px solid rgba(122, 90, 46, 0.22); background: rgba(255, 255, 255, 0.05); color: var(--text-soft); }
.alert--danger { border-color: rgba(255, 107, 107, 0.55); background: rgba(255, 107, 107, 0.10); color: var(--text-main); }
.alert--ok { border-color: rgba(242, 193, 78, 0.35); background: rgba(242, 193, 78, 0.08); color: var(--text-main); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px) { .grid2 { grid-template-columns: 1fr; } }

.prose { color: var(--text-soft); }
.prose .lead { color: var(--text-main); font-size: 16px; }

.table { display: grid; gap: 0; margin-top: 12px; border: 1px solid rgba(122, 90, 46, 0.22); border-radius: 14px; overflow: hidden; }
.table__row { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 10px; padding: 10px 12px; background: rgba(255, 255, 255, 0.03); border-top: 1px solid rgba(122, 90, 46, 0.14); }
.table__head { background: rgba(255, 255, 255, 0.05); color: var(--text-main); font-weight: 700; border-top: none; }
.table__row:not(.table__head) {
    transition: background 140ms ease, border-color 140ms ease;
}
.table__row:not(.table__head):hover {
    background: rgba(242, 193, 78, 0.06);
    border-top-color: rgba(242, 193, 78, 0.18);
}

@media (max-width: 980px) {
    .section__grid { grid-template-columns: 1fr; }
    .section__grid--news { grid-template-columns: 1fr; }
    .hero-site { grid-template-columns: 1fr; }
    .auth-login__shell { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .home-columns { grid-template-columns: 1fr; gap: 22px; }
    .homev3-hero { grid-template-columns: 1fr; }
    .homev3-grid { grid-template-columns: 1fr; gap: 20px; }
    .homev3-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .activities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .site-header__bar {
        align-items: center;
        flex-direction: column;
        gap: 8px;
    }
    .site-header__actions {
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .nav-button {
        display: inline-flex;
        gap: 8px;
        width: auto;
        min-width: 126px;
        padding: 0 14px;
    }
    .nav-button__label {
        display: inline-block;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.01em;
        text-transform: uppercase;
        color: var(--text-main);
    }
    .site-header__hebrew-date {
        padding: 6px 8px;
        gap: 1px;
        align-items: center;
        text-align: center;
    }
    .site-header__hebrew-value { font-size: 12px; }
    .site-header__parasha-value { font-size: 11px; }
    .site-header__parasha-book-value { font-size: 10px; }
    .site-brand {
        width: 100%;
        justify-content: center;
    }
    .site-brand__mark {
        margin-inline: auto;
    }
    .site-header__navrow {
        display: block;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: max-height 220ms ease, opacity 180ms ease, transform 180ms ease;
        border-top: 0;
        padding: 0;
    }
    .nav-toggle:checked ~ .site-header__navrow {
        max-height: none;
        overflow: visible;
        opacity: 1;
        transform: translateY(0);
        border-top: 1px solid rgba(122, 90, 46, 0.18);
        padding: 10px 0 12px;
    }
    .site-nav {
        width: 100%;
        padding: 10px;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow: visible;
        gap: 8px;
        flex-direction: column;
        align-items: stretch;
    }
    .site-nav__link {
        width: 100%;
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        font-size: 14px;
        padding: 10px 12px;
    }
    .site-nav__dd { width: 100%; }
    .site-nav__dd > summary.site-nav__link {
        width: 100%;
    }
    .site-nav__menu {
        position: static;
        margin-top: 8px;
        min-width: 100%;
        box-shadow: none;
    }
    .site-nav__menu--mega {
        display: block;
        max-width: 100%;
        padding: 10px;
    }
    .site-nav__menuCols {
        grid-template-columns: 1fr;
    }
    .site-nav__feature {
        margin-top: 10px;
    }

    /* Brand: hide long association text on mobile */
    .site-brand {
        align-items: center;
    }
    .site-brand__text {
        display: none;
    }
    .site-brand__mark,
    .site-brand__logo {
        width: 200px !important;
        height: 200px !important;
    }

    .scroll-top {
        right: 12px;
        bottom: 12px;
    }
}

/* Header/menu cleanup: keep logo/title + buttons, remove layered backgrounds behind menu */
.site-header::before,
.site-header::after,
.site-header__navrow::after,
.site-nav::before {
    display: none !important;
}

.site-header {
    background: linear-gradient(180deg, rgba(14, 27, 42, 0.90), rgba(14, 27, 42, 0.80));
}

.site-nav {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

@media (max-width: 390px) {
    .site-brand__mark,
    .site-brand__logo {
        width: 200px !important;
        height: 200px !important;
    }
    .site-nav__link, .site-nav__dd { width: 100%; }
    .homev3-quick { grid-template-columns: 1fr; }
    .homev3-stats { grid-template-columns: 1fr; }
    .activities-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .site-header::before,
    .site-header::after,
    .site-brand__mark::before,
    .site-brand__logo,
    .site-nav::before {
        animation: none !important;
    }
}

/* Header refresh: cleaner, more institutional navigation */
.site-brand__mark::before {
    display: none;
}
.site-brand__logo {
    width: 74px;
    height: 74px;
    animation: none;
    filter: drop-shadow(0 8px 16px rgba(8, 19, 31, 0.22));
}
.site-brand__name {
    font-size: 19px;
}
.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}
.site-nav__dd {
    position: relative;
}
.site-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 9px 13px;
    border-radius: 10px;
    border: 1px solid rgba(122, 90, 46, 0.22);
    background: rgba(17, 35, 54, 0.72);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    text-shadow: none;
    transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.site-nav__link::before {
    display: none;
}
.site-nav__link:hover,
.site-nav__dd[open] > .site-nav__link,
.site-nav__link:focus-visible {
    background: rgba(24, 48, 72, 0.95);
    border-color: rgba(242, 193, 78, 0.5);
    color: var(--text-main);
    text-decoration: none;
    transform: none;
    box-shadow: 0 8px 20px rgba(8, 19, 31, 0.26);
}
.site-nav__link:hover .site-nav__label,
.site-nav__link:focus-visible .site-nav__label {
    text-decoration: none;
}
.site-nav__link.is-active {
    background: rgba(33, 61, 87, 0.95);
    border-color: rgba(242, 193, 78, 0.7);
    box-shadow: inset 0 0 0 1px rgba(242, 193, 78, 0.2);
}
.site-nav__dd > summary.site-nav__link {
    padding-right: 30px;
}
.site-nav__dd > summary.site-nav__link::after {
    right: 12px;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}
.site-nav__menu {
    top: calc(100% + 8px);
    right: 0;
    min-width: 250px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(122, 90, 46, 0.26);
    background: rgba(12, 24, 37, 0.97);
    box-shadow: 0 16px 42px rgba(8, 19, 31, 0.45);
}
.site-nav__menu--mega {
    left: 0;
    right: auto;
    min-width: 700px;
    max-width: min(94vw, 980px);
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 12px;
    padding: 12px;
}
.site-nav__menuCols {
    gap: 10px;
}
.site-nav__menuCol {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
    padding: 8px;
}
.site-nav__menuTitle {
    margin: 0 0 7px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(242, 193, 78, 0.95);
}
.site-nav__menuLink {
    display: block;
    padding: 8px 9px;
    border-radius: 8px;
    border: 1px solid transparent;
    color: var(--text-main);
    font-size: 13px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
}
.site-nav__menuLink + .site-nav__menuLink {
    margin-top: 5px;
}
.site-nav__menuLink:hover {
    border-color: rgba(242, 193, 78, 0.35);
    background: rgba(242, 193, 78, 0.08);
    text-decoration: none;
    text-shadow: none;
}
.site-nav__subdd {
    margin-top: 6px;
}
.site-nav__subdd > summary {
    cursor: pointer;
    list-style: none;
}
.site-nav__subdd > summary::-webkit-details-marker {
    display: none;
}
.site-nav__subdd > summary.site-nav__menuLink {
    position: relative;
    padding-right: 26px;
}
.site-nav__subdd > summary.site-nav__menuLink::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-62%) rotate(45deg);
    opacity: 0.78;
}
.site-nav__subdd[open] > summary.site-nav__menuLink::after {
    transform: translateY(-38%) rotate(225deg);
}
.site-nav__submenu {
    margin-top: 6px;
    margin-left: 8px;
    padding-left: 10px;
    border-left: 1px solid rgba(242, 193, 78, 0.2);
    display: grid;
    gap: 5px;
}
.site-nav__feature {
    gap: 7px;
    padding: 9px;
    border-radius: 10px;
    border: 1px solid rgba(242, 193, 78, 0.22);
    background: linear-gradient(180deg, rgba(242, 193, 78, 0.08), rgba(255, 255, 255, 0.02));
}
.site-nav__featureImg {
    height: 100px;
    border-radius: 8px;
}
.site-nav__featureTitle {
    font-size: 12px;
}
.site-nav__featureLink {
    width: 100%;
    border-radius: 8px;
    padding: 8px 9px;
    font-size: 12px;
}

@media (max-width: 560px) {
    .site-brand__mark,
    .site-brand__logo {
        width: 200px !important;
        height: 200px !important;
    }
    .site-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 8px 0;
    }
    .site-nav__link {
        width: 100%;
        min-height: 42px;
        justify-content: flex-start;
    }
    .site-nav__dd {
        width: 100%;
    }
    .site-nav__menu {
        position: static;
        min-width: 100%;
        margin-top: 7px;
        box-shadow: none;
    }
    .site-nav__menu--mega {
        min-width: 100%;
        max-width: 100%;
        display: block;
    }
    .site-nav__menuCols {
        grid-template-columns: 1fr;
    }
    .site-nav__feature {
        margin-top: 8px;
    }
}

/* Card / "affiche" */
.poster {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

/* Encadrement dore */
.poster::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: calc(var(--radius2) - 10px);
    border: 2px solid rgba(122, 90, 46, 0.75);
    box-shadow:
        inset 0 0 0 1px rgba(242, 193, 78, 0.22),
        0 18px 55px rgba(242, 193, 78, 0.10);
    pointer-events: none;
}

/* Coins decoratifs type "etoile" (SVG en background) */
.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='92' height='92' viewBox='0 0 92 92'%3E%3Cg fill='none' stroke='%23F2C14E' stroke-width='3' stroke-linecap='round' opacity='.92'%3E%3Cpath d='M46 10 L62 38 L30 38 Z'/%3E%3Cpath d='M46 82 L62 54 L30 54 Z'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position:
        18px 18px,
        calc(100% - 110px) 18px,
        18px calc(100% - 110px),
        calc(100% - 110px) calc(100% - 110px);
    background-size: 86px 86px;
    filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35));
    pointer-events: none;
    opacity: 0.9;
}

.poster__inner {
    position: relative;
    padding: 46px 38px 38px;
}

.brand {
    display: flex;
    gap: 16px;
    align-items: center;
}

.brand__mark {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #1a1406;
    background: linear-gradient(180deg, rgba(242, 193, 78, 0.98), rgba(200, 155, 44, 0.98));
    box-shadow: 0 22px 48px rgba(242, 193, 78, 0.14);
}

.brand__name {
    font-size: 18px;
    margin-bottom: 2px;
}

.brand__tag {
    font-size: 13px;
    color: var(--text-muted);
}

.hero {
    text-align: center;
    margin-top: 26px;
}

.hero__title {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero__title strong {
    color: var(--gold-main);
    text-shadow: 0 12px 28px rgba(242, 193, 78, 0.18);
}

.hero__subtitle {
    margin-top: 12px;
    font-size: clamp(18px, 2vw, 24px);
    color: rgba(230, 221, 200, 0.95);
}

.grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
    margin-top: 28px;
}

.panel {
    background: linear-gradient(180deg, var(--paper2), var(--paper));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 18px 18px;
}

.panel__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.panel__title .icon {
    width: 24px;
    height: 24px;
    color: var(--gold-main);
    flex: 0 0 auto;
}

.list {
    margin: 0;
    padding-left: 18px;
    color: var(--ink);
}

.list li { margin: 6px 0; }

.bubble {
    position: relative;
    padding: 14px 14px;
    border-radius: 16px;
    background: rgba(234, 215, 176, 0.12);
    border: 1px solid rgba(242, 193, 78, 0.30);
    color: var(--text-main);
}
.bubble::after {
    content: "";
    position: absolute;
    left: 18px;
    bottom: -10px;
    width: 18px;
    height: 18px;
    background: rgba(234, 215, 176, 0.12);
    border-left: 1px solid rgba(242, 193, 78, 0.30);
    border-bottom: 1px solid rgba(242, 193, 78, 0.30);
    transform: rotate(45deg);
}

.callout {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.rule {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: start;
}

.rule__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.rule__icon svg {
    width: 22px;
    height: 22px;
    color: var(--gold-main);
}

.rule__text b { color: var(--gold-main); }

.footer {
    margin-top: 28px;
    text-align: center;
    color: var(--text-muted);
}

.footer__slogan {
    margin-top: 10px;
    font-size: clamp(18px, 2.2vw, 28px);
    color: rgba(242, 193, 78, 0.92);
}

/* Responsive */
@media (max-width: 860px) {
    .poster__inner { padding: 40px 22px 26px; }
    .grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .shell { width: min(1100px, calc(100% - 26px)); }
    .brand__mark { width: 56px; height: 56px; border-radius: 14px; }
    .brand__name { font-size: 16px; }
    .poster::before { inset: 12px; }
    .poster::after {
        background-size: 62px 62px;
        background-position:
            14px 14px,
            calc(100% - 78px) 14px,
            14px calc(100% - 78px),
            calc(100% - 78px) calc(100% - 78px);
    }
}

/* Locker reservation visual grid */
.casier-legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.casier-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-main);
    border-radius: 999px;
    padding: 6px 10px;
    border: 1px solid rgba(122, 90, 46, 0.32);
    background: rgba(18, 37, 58, 0.55);
}
.casier-legend__dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
}
.casier-legend__dot--free { background: rgba(111, 207, 151, 0.9); }
.casier-legend__dot--mine { background: rgba(242, 193, 78, 0.95); }
.casier-legend__dot--taken { background: rgba(170, 178, 189, 0.7); }
.casier-legend__item--free { border-color: rgba(111, 207, 151, 0.4); }
.casier-legend__item--mine { border-color: rgba(242, 193, 78, 0.45); }
.casier-legend__item--taken { border-color: rgba(170, 178, 189, 0.4); }

.casier-grid-wrap {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}
.casier-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
}
.casier-cell {
    border-radius: 6px;
    border: 1px solid rgba(122, 90, 46, 0.28);
    padding: 1px 2px;
    min-height: 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 1px;
    font-size: 7px;
    background: rgba(18, 37, 58, 0.75);
    color: var(--text-main);
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}
.casier-cell__line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1px;
}
.casier-cell__code { font-weight: 800; letter-spacing: 0.01em; font-size: 7px; }
.casier-cell__meta { display: none; }
.casier-cell__action {
    width: 8px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 8px;
    height: 8px;
    margin-left: auto;
    border-radius: 999px;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    text-align: center;
    padding: 0;
}
.casier-cell__actionIcon {
    width: 6px;
    height: 6px;
    display: block;
}

.casier-cell--free {
    background: rgba(18, 37, 58, 0.75);
    border-color: rgba(229, 192, 106, 0.65);
    color: var(--text-main);
}
.casier-cell--free .casier-cell__action {
    background: rgba(229, 192, 106, 0.18);
    border-color: rgba(229, 192, 106, 0.55);
    color: rgba(245, 241, 232, 0.95);
}
.casier-cell--mine {
    background: rgba(18, 37, 58, 0.75);
    border-color: rgba(242, 193, 78, 0.72);
    color: var(--text-main);
}
.casier-cell--mine .casier-cell__action {
    background: rgba(53, 100, 143, 0.20);
    border-color: rgba(170, 206, 237, 0.55);
    color: var(--text-main);
}
.casier-cell--taken {
    background: linear-gradient(180deg, rgba(118, 128, 143, 0.35), rgba(90, 100, 112, 0.35));
    border-color: rgba(160, 170, 182, 0.45);
    color: rgba(230, 238, 245, 0.9);
    cursor: not-allowed;
    opacity: 0.78;
}
.casier-cell--taken .casier-cell__action {
    background: rgba(107, 116, 129, 0.35);
    color: rgba(236, 243, 250, 0.75);
    border-color: rgba(180, 190, 200, 0.32);
}

.casier-cell:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(8, 19, 31, 0.35);
}
.casier-cell.is-selected {
    border-color: rgba(170, 206, 237, 0.9) !important;
    box-shadow: 0 0 0 2px rgba(170, 206, 237, 0.65), 0 14px 24px rgba(8, 19, 31, 0.35);
}
.casier-cell.is-selected .casier-cell__action {
    background: linear-gradient(180deg, rgba(53, 100, 143, 0.98), rgba(31, 67, 104, 0.98)) !important;
    border-color: rgba(170, 206, 237, 0.95) !important;
    color: #f5f1e8 !important;
}

@media (max-width: 680px) {
    .casier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Plaque preview */
.plaque-preview {
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin: 10px 0 16px;
}

.plaque-preview__img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid rgba(122, 90, 46, 0.35);
}

.plaque-preview__text {
    position: absolute;
    inset: 16% 11% 12% 11%;
    color: #1f1f1f;
    font-family: "Times New Roman", Georgia, serif;
    font-weight: 700;
    line-height: 1.28;
    font-size: clamp(14px, 2.2vw, 24px);
    text-align: center;
    white-space: pre-wrap;
    word-break: break-word;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Keep form styles for /login (admin access), shared with theme */
.shell--narrow {
    width: min(720px, calc(100% - 40px));
    margin: 48px auto 80px;
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(122, 90, 46, 0.26);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    backdrop-filter: blur(8px);
}
.card + .card { margin-top: 18px; }
.card--hero { padding: 26px; }

.h2 {
    margin: 0 0 14px;
    font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", Times, serif;
    letter-spacing: 0.02em;
}

.form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field__label { color: var(--text-muted); font-size: 13px; }
.field__input, .field__textarea, .field__select {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(8, 14, 22, 0.55);
    color: var(--text-main);
    padding: 12px 12px;
    outline: none;
}
.field__select,
select.field__select,
select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    padding-right: 12px !important;
    background-image: none !important;
}

/* Make the date/datetime picker icon visible on dark inputs (Chrome/Safari). */
.field__input[type="date"]::-webkit-calendar-picker-indicator,
.field__input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.9;
}
.field__input[type="date"]::-webkit-calendar-picker-indicator:hover,
.field__input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.btn {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    cursor: pointer;
    transition: transform 130ms ease, box-shadow 130ms ease, border-color 130ms ease, filter 130ms ease;
}
.btn--primary {
    background: linear-gradient(180deg, rgba(244, 221, 159, 0.95), rgba(229, 192, 106, 0.95));
    border-color: rgba(229, 192, 106, 0.55);
    color: #1a1406;
    font-weight: 700;
}
.btn:hover {
    transform: translateY(-1px) scale(1.02);
    filter: brightness(1.04);
    box-shadow: 0 10px 24px rgba(8, 19, 31, 0.35);
}

.icon {
    width: 18px;
    height: 18px;
    display: block;
}

.iconbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    cursor: pointer;
    text-decoration: none;
}
.iconbtn:hover {
    filter: brightness(1.05);
    box-shadow: 0 0 0 2px rgba(242, 193, 78, 0.12), 0 10px 22px rgba(8, 19, 31, 0.35);
}
.iconbtn--primary {
    background: linear-gradient(180deg, rgba(244, 221, 159, 0.95), rgba(229, 192, 106, 0.95));
    border-color: rgba(229, 192, 106, 0.55);
    color: #1a1406;
}
.iconbtn--danger {
    border-color: rgba(255, 107, 107, 0.35);
    background: rgba(255, 107, 107, 0.10);
}
.iconbtn--danger:hover {
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.12), 0 10px 22px rgba(8, 19, 31, 0.35);
}

.alert {
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 14px;
}
.alert--danger {
    border-color: rgba(255, 107, 107, 0.5);
    background: rgba(255, 107, 107, 0.12);
}
.alert--success {
    border-color: rgba(104, 211, 145, 0.35);
    background: rgba(104, 211, 145, 0.12);
}
.alert--info {
    border-color: rgba(183, 196, 211, 0.28);
    background: rgba(183, 196, 211, 0.10);
}

/* Simple global WYSIWYG */
.wysiwyg {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(8, 14, 22, 0.55);
    overflow: hidden;
}
.wysiwyg-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}
.wysiwyg-btn {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border-radius: 8px;
    min-width: 34px;
    height: 30px;
    padding: 0 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}
.wysiwyg-btn:hover {
    border-color: rgba(242, 193, 78, 0.48);
}
.wysiwyg-editor {
    min-height: 160px;
    padding: 12px;
    color: var(--text-main);
    outline: none;
}
.wysiwyg-editor:empty::before {
    content: "Saisissez votre texte...";
    color: var(--text-muted);
}

/* Reservation calendar */
.grid2 {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
}
@media (max-width: 860px) {
    .grid2 { grid-template-columns: 1fr; }
}

.rescal__head {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.rescal__title {
    text-align: center;
    font-size: 18px;
    letter-spacing: 0.02em;
}
.rescal__nav {
    justify-self: start;
    padding: 10px 12px;
}
.rescal__head .rescal__nav:last-child { justify-self: end; }

.rescal__grid {
    border-radius: 18px;
    border: 1px solid rgba(122, 90, 46, 0.22);
    background: rgba(8, 14, 22, 0.30);
    overflow: hidden;
}
.rescal__dowrow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.rescal__dow {
    padding: 10px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.rescal__cells {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}
.rescal__cell {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-main);
    cursor: pointer;
    padding: 10px 10px 12px;
    height: 56px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}
.rescal__cell:nth-child(7n) { border-right: 0; }
.rescal__cell:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(242, 193, 78, 0.12);
}
.rescal__cell.is-outmonth {
    opacity: 0.35;
}
.rescal__cell.is-busy {
    background:
        radial-gradient(120px 60px at 18% 20%, rgba(242, 193, 78, 0.12), transparent 70%),
        radial-gradient(160px 80px at 75% 70%, rgba(140, 29, 24, 0.10), transparent 70%);
}
.rescal__num {
    font-weight: 700;
    font-size: 13px;
}
.rescal__badge {
    display: inline-flex;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #1a1406;
    background: linear-gradient(180deg, rgba(244, 221, 159, 0.95), rgba(229, 192, 106, 0.95));
    border: 1px solid rgba(229, 192, 106, 0.55);
}

.rescal__legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 12px;
}
.rescal__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.rescal__dot--free { background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.18); }
.rescal__dot--busy { background: rgba(242, 193, 78, 0.55); border: 1px solid rgba(242, 193, 78, 0.55); }

.rescal__daylist {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.rescal__daytitle {
    font-size: 16px;
    margin: 0 0 10px;
}
.rescal__ev {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    margin-top: 8px;
}
.rescal__time {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 12px;
}
.rescal__evt {
    font-weight: 800;
    letter-spacing: 0.02em;
}

@media (max-width: 560px) {
    .shell--narrow { margin: 28px auto 56px; }
    .card { padding: 18px; }
}

/* Home (/): no header, no links, just a construction screen */
.page-construction {
    min-height: 100vh;
}
.construction {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 36px 18px;
}
.construction__inner {
    text-align: center;
    width: min(560px, 100%);
}
.construction__logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(8, 19, 31, 0.55));
}
.construction__kicker {
    margin-top: 16px;
    color: var(--text-muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 12px;
}
.construction__title {
    margin: 10px 0 0;
    font-size: clamp(34px, 4vw, 54px);
    letter-spacing: 0.02em;
}
.construction__text {
    margin: 10px 0 0;
}

/* Flat refresh: home/front header + menu */
body {
    background: #0f1e2d;
    background-image: none;
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: 0.01em;
}

.h1 {
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.15;
}

.h2 {
    font-size: clamp(21px, 2.1vw, 30px);
    line-height: 1.2;
}

.h3 {
    font-size: 18px;
    line-height: 1.25;
}

.p,
.subtle,
.field__label,
.site-header__hebrew-meta,
.site-nav__menuLink {
    font-size: 15px;
}

.site-header {
    background: #0f1e2d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: none;
}

.site-brand__mark::before,
.site-header::before,
.site-header::after,
.site-header__navrow::after,
.site-nav::before {
    display: none !important;
}

.site-header__hebrew-date {
    border: 0;
    background: transparent;
    padding: 0;
    gap: 4px;
    white-space: normal;
    align-items: flex-end;
    max-width: min(900px, 96vw);
}

.site-header__hebrew-value {
    display: block;
    font-size: 16px;
    line-height: 1.15;
    font-weight: 700;
}

.site-header__hebrew-meta {
    display: block;
    font-size: 12px;
    line-height: 1.25;
    color: var(--text-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-nav {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    gap: 14px;
}

.site-nav__link {
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 8px 0;
    min-height: auto;
    color: var(--text-soft);
    font-weight: 600;
    font-size: 15px;
    box-shadow: none;
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__dd[open] > summary.site-nav__link,
.site-nav__link.is-active {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--gold-main);
    text-decoration: none;
}

.site-nav__dd > summary.site-nav__link {
    padding-right: 16px;
}

.site-nav__dd > summary.site-nav__link::after {
    right: 2px;
}

.site-nav__menu {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #15283c;
    box-shadow: none;
}

.site-nav__menuLink {
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 8px 6px;
}

.site-nav__menuLink:hover {
    background: transparent;
    border: 0;
    color: var(--gold-main);
}

.card,
.hero-site__copy,
.homev3-hero__content,
.homev3-hero__aside,
.homev3-card,
.table,
.table__row {
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
    backdrop-filter: none;
}

.btn,
.iconbtn {
    background: #1b3148;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.btn--primary,
.iconbtn--primary {
    background: #d0aa58;
    color: #1a1406;
}

.home-front .site-brand__mark,
.home-front .site-brand__logo {
    width: 200px !important;
    height: 200px !important;
}

@media (max-width: 560px) {
    .site-header__bar {
        align-items: center;
        flex-direction: column;
        gap: 8px;
    }
    .site-header__actions {
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    .site-header__hebrew-date {
        align-items: center;
        text-align: center;
    }
    .site-header__hebrew-value {
        font-size: 14px;
    }
    .site-header__hebrew-meta {
        font-size: 12px;
        max-width: calc(100vw - 24px);
    }
    .site-nav {
        gap: 4px;
    }
    .site-nav__link {
        width: 100%;
        padding: 10px 0;
        font-size: 14px;
    }
}
