/* Généré depuis Figma Core (src/theme/tokens.generated.ts). */
@property --bg-page{syntax:'<color>';inherits:true;initial-value:#fafcff}
@property --bg-surface{syntax:'<color>';inherits:true;initial-value:#ffffff}
@property --bg-raised{syntax:'<color>';inherits:true;initial-value:#ffffff}
@property --bg-muted{syntax:'<color>';inherits:true;initial-value:#eef2fa}
@property --bg-muted-strong{syntax:'<color>';inherits:true;initial-value:#dfe5f2}
@property --bg-parchment{syntax:'<color>';inherits:true;initial-value:#fff2ca}
@property --bg-inverse{syntax:'<color>';inherits:true;initial-value:#0f192e}
@property --bg-glass{syntax:'<color>';inherits:true;initial-value:rgba(255, 255, 255, 0.8)}
@property --bg-brand-default{syntax:'<color>';inherits:true;initial-value:#2457e6}
@property --bg-brand-hover{syntax:'<color>';inherits:true;initial-value:#1b47c3}
@property --bg-brand-pressed{syntax:'<color>';inherits:true;initial-value:#163a9f}
@property --bg-brand-strong{syntax:'<color>';inherits:true;initial-value:#0c2051}
@property --bg-brand-subtle{syntax:'<color>';inherits:true;initial-value:#f0f5ff}
@property --bg-accent-default{syntax:'<color>';inherits:true;initial-value:#ffc837}
@property --bg-accent-hover{syntax:'<color>';inherits:true;initial-value:#f4b306}
@property --bg-accent-pressed{syntax:'<color>';inherits:true;initial-value:#da9704}
@property --bg-accent-subtle{syntax:'<color>';inherits:true;initial-value:#fffbec}
@property --bg-success-default{syntax:'<color>';inherits:true;initial-value:#007e38}
@property --bg-success-subtle{syntax:'<color>';inherits:true;initial-value:#f1f7f0}
@property --bg-danger-default{syntax:'<color>';inherits:true;initial-value:#c4002b}
@property --bg-danger-hover{syntax:'<color>';inherits:true;initial-value:#a40323}
@property --bg-danger-pressed{syntax:'<color>';inherits:true;initial-value:#87021b}
@property --bg-danger-subtle{syntax:'<color>';inherits:true;initial-value:#fff2f0}
@property --bg-warning-default{syntax:'<color>';inherits:true;initial-value:#fd9023}
@property --bg-warning-subtle{syntax:'<color>';inherits:true;initial-value:#fef6ef}
@property --overlay-scrim{syntax:'<color>';inherits:true;initial-value:rgba(5, 11, 28, 0.5)}
@property --overlay-hover{syntax:'<color>';inherits:true;initial-value:rgba(5, 11, 28, 0.04)}
@property --overlay-pressed{syntax:'<color>';inherits:true;initial-value:rgba(5, 11, 28, 0.08)}
@property --text-default{syntax:'<color>';inherits:true;initial-value:#0f192e}
@property --text-secondary{syntax:'<color>';inherits:true;initial-value:#485672}
@property --text-muted{syntax:'<color>';inherits:true;initial-value:#667591}
@property --text-disabled{syntax:'<color>';inherits:true;initial-value:#95a1bb}
@property --text-inverse{syntax:'<color>';inherits:true;initial-value:#f5f8fd}
@property --text-on-fill{syntax:'<color>';inherits:true;initial-value:#ffffff}
@property --text-on-fill-muted{syntax:'<color>';inherits:true;initial-value:rgba(255, 255, 255, 0.8)}
@property --text-on-fill-accent{syntax:'<color>';inherits:true;initial-value:#ffe6a1}
@property --text-on-accent{syntax:'<color>';inherits:true;initial-value:#050b1c}
@property --text-brand{syntax:'<color>';inherits:true;initial-value:#2457e6}
@property --text-accent{syntax:'<color>';inherits:true;initial-value:#975c06}
@property --text-success{syntax:'<color>';inherits:true;initial-value:#03692e}
@property --text-danger{syntax:'<color>';inherits:true;initial-value:#c4002b}
@property --icon-default{syntax:'<color>';inherits:true;initial-value:#485672}
@property --icon-muted{syntax:'<color>';inherits:true;initial-value:#667591}
@property --icon-disabled{syntax:'<color>';inherits:true;initial-value:#c9d2e3}
@property --icon-on-fill{syntax:'<color>';inherits:true;initial-value:#ffffff}
@property --icon-tint{syntax:'<color>';inherits:true;initial-value:#eef2fa}
@property --icon-tint-brand{syntax:'<color>';inherits:true;initial-value:#e0eaff}
@property --icon-brand{syntax:'<color>';inherits:true;initial-value:#2457e6}
@property --icon-accent{syntax:'<color>';inherits:true;initial-value:#b87803}
@property --icon-success{syntax:'<color>';inherits:true;initial-value:#007e38}
@property --icon-danger{syntax:'<color>';inherits:true;initial-value:#c4002b}
@property --icon-warning{syntax:'<color>';inherits:true;initial-value:#fd9023}
@property --border-default{syntax:'<color>';inherits:true;initial-value:#dfe5f2}
@property --border-subtle{syntax:'<color>';inherits:true;initial-value:#eef2fa}
@property --border-strong{syntax:'<color>';inherits:true;initial-value:#c9d2e3}
@property --border-input{syntax:'<color>';inherits:true;initial-value:#667591}
@property --border-brand{syntax:'<color>';inherits:true;initial-value:#2457e6}
@property --border-accent{syntax:'<color>';inherits:true;initial-value:#ffc837}
@property --border-accent-strong{syntax:'<color>';inherits:true;initial-value:#b87803}
@property --border-danger{syntax:'<color>';inherits:true;initial-value:#c4002b}
@property --border-success-subtle{syntax:'<color>';inherits:true;initial-value:#c7e2c8}
@property --border-danger-subtle{syntax:'<color>';inherits:true;initial-value:#fecbc5}
@property --border-warning-subtle{syntax:'<color>';inherits:true;initial-value:#ffdabb}
@property --border-on-image{syntax:'<color>';inherits:true;initial-value:rgba(255, 255, 255, 0.16)}
@property --focus-ring{syntax:'<color>';inherits:true;initial-value:#2457e6}
@property --shadow-default{syntax:'<color>';inherits:true;initial-value:rgba(12, 32, 81, 0.1)}
@property --shadow-strong{syntax:'<color>';inherits:true;initial-value:rgba(12, 32, 81, 0.18)}
@property --shadow-inset{syntax:'<color>';inherits:true;initial-value:rgba(0, 0, 0, 0.25)}
@property --category-houmach-bg{syntax:'<color>';inherits:true;initial-value:#2457e6}
@property --category-houmach-bg-strong{syntax:'<color>';inherits:true;initial-value:#163a9f}
@property --category-houmach-bg-subtle{syntax:'<color>';inherits:true;initial-value:#f0f5ff}
@property --category-houmach-text{syntax:'<color>';inherits:true;initial-value:#2457e6}
@property --category-tehilim-bg{syntax:'<color>';inherits:true;initial-value:#5b1bb0}
@property --category-tehilim-bg-strong{syntax:'<color>';inherits:true;initial-value:#4d1d93}
@property --category-tehilim-bg-subtle{syntax:'<color>';inherits:true;initial-value:#f5f3fe}
@property --category-tehilim-text{syntax:'<color>';inherits:true;initial-value:#5b1bb0}
@property --category-tanya-bg{syntax:'<color>';inherits:true;initial-value:#3f2fd1}
@property --category-tanya-bg-strong{syntax:'<color>';inherits:true;initial-value:#3329aa}
@property --category-tanya-bg-subtle{syntax:'<color>';inherits:true;initial-value:#f3f5fe}
@property --category-tanya-text{syntax:'<color>';inherits:true;initial-value:#3f2fd1}
@property --category-guemara-bg{syntax:'<color>';inherits:true;initial-value:#a64b1a}
@property --category-guemara-bg-strong{syntax:'<color>';inherits:true;initial-value:#713012}
@property --category-guemara-bg-subtle{syntax:'<color>';inherits:true;initial-value:#faf4ef}
@property --category-guemara-text{syntax:'<color>';inherits:true;initial-value:#a64b1a}
@property --category-halakha-bg{syntax:'<color>';inherits:true;initial-value:#006770}
@property --category-halakha-bg-strong{syntax:'<color>';inherits:true;initial-value:#005057}
@property --category-halakha-bg-subtle{syntax:'<color>';inherits:true;initial-value:#f0f6f6}
@property --category-halakha-text{syntax:'<color>';inherits:true;initial-value:#006770}
@property --highlight-inset{syntax:'<color>';inherits:true;initial-value:rgba(255, 255, 255, 0.22)}
:root{--p-base-white:#ffffff;--p-base-black:#000000;--p-neutral-25:#fafcff;--p-neutral-50:#f5f8fd;--p-neutral-100:#eef2fa;--p-neutral-200:#dfe5f2;--p-neutral-300:#c9d2e3;--p-neutral-400:#95a1bb;--p-neutral-500:#667591;--p-neutral-600:#485672;--p-neutral-700:#33415d;--p-neutral-800:#1f2b44;--p-neutral-850:#162138;--p-neutral-900:#0f192e;--p-neutral-925:#091225;--p-neutral-950:#050b1c;--p-blue-50:#f0f5ff;--p-blue-100:#e0eaff;--p-blue-200:#c8dafe;--p-blue-300:#a3c1fe;--p-blue-400:#749ffe;--p-blue-500:#457bfe;--p-blue-600:#2457e6;--p-blue-700:#1b47c3;--p-blue-800:#163a9f;--p-blue-900:#14307b;--p-blue-950:#0c2051;--p-yellow-50:#fffbec;--p-yellow-100:#fff2ca;--p-yellow-200:#ffe6a1;--p-yellow-300:#ffc837;--p-yellow-400:#f4b306;--p-yellow-500:#da9704;--p-yellow-600:#b87803;--p-yellow-700:#975c06;--p-yellow-800:#7a480f;--p-yellow-900:#643910;--p-yellow-950:#3d1f06;--p-violet-50:#f5f3fe;--p-violet-100:#ebe6ff;--p-violet-200:#dbd2fe;--p-violet-300:#c5b4fe;--p-violet-400:#ab8aff;--p-violet-500:#935efa;--p-violet-600:#732fd7;--p-violet-700:#5b1bb0;--p-violet-800:#4d1d93;--p-violet-900:#3f2076;--p-violet-950:#29164e;--p-indigo-50:#f3f5fe;--p-indigo-100:#e4e9fe;--p-indigo-200:#cfd7fe;--p-indigo-300:#b0bcff;--p-indigo-400:#8a98ff;--p-indigo-500:#6971fe;--p-indigo-600:#4d3ef7;--p-indigo-700:#3f2fd1;--p-indigo-800:#3329aa;--p-indigo-900:#282584;--p-indigo-950:#191958;--p-teal-50:#f0f6f6;--p-teal-100:#e0eded;--p-teal-200:#c7dfe0;--p-teal-300:#a1cacc;--p-teal-400:#6fafb4;--p-teal-500:#4099a1;--p-teal-600:#14808a;--p-teal-700:#006770;--p-teal-800:#005057;--p-teal-900:#0b4045;--p-teal-950:#092a2d;--p-rust-50:#faf4ef;--p-rust-100:#f5e7dd;--p-rust-200:#eed4c3;--p-rust-300:#e4b69b;--p-rust-400:#d59069;--p-rust-500:#c36b3c;--p-rust-600:#a64b1a;--p-rust-700:#8c3c13;--p-rust-800:#713012;--p-rust-900:#592813;--p-rust-950:#3b1a0d;--p-red-50:#fff2f0;--p-red-100:#fee3df;--p-red-200:#fecbc5;--p-red-300:#ffa69e;--p-red-400:#f9726e;--p-red-500:#ea3743;--p-red-600:#c4002b;--p-red-700:#a40323;--p-red-800:#87021b;--p-red-900:#6d0415;--p-red-950:#48070e;--p-green-50:#f1f7f0;--p-green-100:#e0efe0;--p-green-200:#c7e2c8;--p-green-300:#9fcfa3;--p-green-400:#6ab876;--p-green-500:#299e4d;--p-green-600:#007e38;--p-green-700:#03692e;--p-green-800:#015624;--p-green-900:#00451b;--p-green-950:#022d11;--p-orange-50:#fef6ef;--p-orange-100:#feecdc;--p-orange-200:#ffdabb;--p-orange-300:#ffbb84;--p-orange-400:#fd9023;--p-orange-500:#dc7607;--p-orange-600:#b05a02;--p-orange-700:#944804;--p-orange-800:#7a3700;--p-orange-900:#622a02;--p-orange-950:#431800;--bg-page:#fafcff;--bg-surface:#ffffff;--bg-raised:#ffffff;--bg-muted:#eef2fa;--bg-muted-strong:#dfe5f2;--bg-parchment:#fff2ca;--bg-inverse:#0f192e;--bg-glass:rgba(255, 255, 255, 0.8);--bg-brand-default:#2457e6;--bg-brand-hover:#1b47c3;--bg-brand-pressed:#163a9f;--bg-brand-strong:#0c2051;--bg-brand-subtle:#f0f5ff;--bg-accent-default:#ffc837;--bg-accent-hover:#f4b306;--bg-accent-pressed:#da9704;--bg-accent-subtle:#fffbec;--bg-success-default:#007e38;--bg-success-subtle:#f1f7f0;--bg-danger-default:#c4002b;--bg-danger-hover:#a40323;--bg-danger-pressed:#87021b;--bg-danger-subtle:#fff2f0;--bg-warning-default:#fd9023;--bg-warning-subtle:#fef6ef;--overlay-scrim:rgba(5, 11, 28, 0.5);--overlay-hover:rgba(5, 11, 28, 0.04);--overlay-pressed:rgba(5, 11, 28, 0.08);--text-default:#0f192e;--text-secondary:#485672;--text-muted:#667591;--text-disabled:#95a1bb;--text-inverse:#f5f8fd;--text-on-fill:#ffffff;--text-on-fill-muted:rgba(255, 255, 255, 0.8);--text-on-fill-accent:#ffe6a1;--text-on-accent:#050b1c;--text-brand:#2457e6;--text-accent:#975c06;--text-success:#03692e;--text-danger:#c4002b;--icon-default:#485672;--icon-muted:#667591;--icon-disabled:#c9d2e3;--icon-on-fill:#ffffff;--icon-tint:#eef2fa;--icon-tint-brand:#e0eaff;--icon-brand:#2457e6;--icon-accent:#b87803;--icon-success:#007e38;--icon-danger:#c4002b;--icon-warning:#fd9023;--border-default:#dfe5f2;--border-subtle:#eef2fa;--border-strong:#c9d2e3;--border-input:#667591;--border-brand:#2457e6;--border-accent:#ffc837;--border-accent-strong:#b87803;--border-danger:#c4002b;--border-success-subtle:#c7e2c8;--border-danger-subtle:#fecbc5;--border-warning-subtle:#ffdabb;--border-on-image:rgba(255, 255, 255, 0.16);--focus-ring:#2457e6;--shadow-default:rgba(12, 32, 81, 0.1);--shadow-strong:rgba(12, 32, 81, 0.18);--shadow-inset:rgba(0, 0, 0, 0.25);--category-houmach-bg:#2457e6;--category-houmach-bg-strong:#163a9f;--category-houmach-bg-subtle:#f0f5ff;--category-houmach-text:#2457e6;--category-tehilim-bg:#5b1bb0;--category-tehilim-bg-strong:#4d1d93;--category-tehilim-bg-subtle:#f5f3fe;--category-tehilim-text:#5b1bb0;--category-tanya-bg:#3f2fd1;--category-tanya-bg-strong:#3329aa;--category-tanya-bg-subtle:#f3f5fe;--category-tanya-text:#3f2fd1;--category-guemara-bg:#a64b1a;--category-guemara-bg-strong:#713012;--category-guemara-bg-subtle:#faf4ef;--category-guemara-text:#a64b1a;--category-halakha-bg:#006770;--category-halakha-bg-strong:#005057;--category-halakha-bg-subtle:#f0f6f6;--category-halakha-text:#006770;--highlight-inset:rgba(255, 255, 255, 0.22);color-scheme:light}
@media (prefers-color-scheme:dark){:root:not([data-theme]){--bg-page:#050b1c;--bg-surface:#0f192e;--bg-raised:#1f2b44;--bg-muted:#162138;--bg-muted-strong:#1f2b44;--bg-parchment:#3d1f06;--bg-inverse:#f5f8fd;--bg-glass:rgba(5, 11, 28, 0.72);--bg-brand-default:#2457e6;--bg-brand-hover:#457bfe;--bg-brand-pressed:#1b47c3;--bg-brand-strong:#14307b;--bg-brand-subtle:#0c2051;--bg-accent-default:#ffc837;--bg-accent-hover:#ffe6a1;--bg-accent-pressed:#f4b306;--bg-accent-subtle:#3d1f06;--bg-success-default:#007e38;--bg-success-subtle:#022d11;--bg-danger-default:#c4002b;--bg-danger-hover:#ea3743;--bg-danger-pressed:#a40323;--bg-danger-subtle:#48070e;--bg-warning-default:#fd9023;--bg-warning-subtle:#431800;--overlay-scrim:rgba(5, 11, 28, 0.7);--overlay-hover:rgba(255, 255, 255, 0.06);--overlay-pressed:rgba(255, 255, 255, 0.12);--text-default:#f5f8fd;--text-secondary:#c9d2e3;--text-muted:#95a1bb;--text-disabled:#485672;--text-inverse:#050b1c;--text-on-fill:#ffffff;--text-on-fill-muted:rgba(255, 255, 255, 0.8);--text-on-fill-accent:#ffe6a1;--text-on-accent:#050b1c;--text-brand:#749ffe;--text-accent:#ffc837;--text-success:#6ab876;--text-danger:#f9726e;--icon-default:#c9d2e3;--icon-muted:#667591;--icon-disabled:#33415d;--icon-on-fill:#ffffff;--icon-tint:#1f2b44;--icon-tint-brand:#14307b;--icon-brand:#749ffe;--icon-accent:#ffc837;--icon-success:#6ab876;--icon-danger:#f9726e;--icon-warning:#fd9023;--border-default:#1f2b44;--border-subtle:#162138;--border-strong:#33415d;--border-input:#667591;--border-brand:#749ffe;--border-accent:#ffc837;--border-accent-strong:#f4b306;--border-danger:#f9726e;--border-success-subtle:#015624;--border-danger-subtle:#87021b;--border-warning-subtle:#7a3700;--border-on-image:rgba(255, 255, 255, 0.12);--focus-ring:#749ffe;--shadow-default:rgba(0, 0, 0, 0.4);--shadow-strong:rgba(0, 0, 0, 0.6);--shadow-inset:rgba(0, 0, 0, 0.25);--category-houmach-bg:#2457e6;--category-houmach-bg-strong:#163a9f;--category-houmach-bg-subtle:#0c2051;--category-houmach-text:#749ffe;--category-tehilim-bg:#5b1bb0;--category-tehilim-bg-strong:#4d1d93;--category-tehilim-bg-subtle:#29164e;--category-tehilim-text:#c5b4fe;--category-tanya-bg:#3f2fd1;--category-tanya-bg-strong:#3329aa;--category-tanya-bg-subtle:#191958;--category-tanya-text:#cfd7fe;--category-guemara-bg:#a64b1a;--category-guemara-bg-strong:#713012;--category-guemara-bg-subtle:#3b1a0d;--category-guemara-text:#e4b69b;--category-halakha-bg:#006770;--category-halakha-bg-strong:#005057;--category-halakha-bg-subtle:#092a2d;--category-halakha-text:#a1cacc;--highlight-inset:rgba(255, 255, 255, 0.22);color-scheme:dark}}
:root[data-theme='dark']{--bg-page:#050b1c;--bg-surface:#0f192e;--bg-raised:#1f2b44;--bg-muted:#162138;--bg-muted-strong:#1f2b44;--bg-parchment:#3d1f06;--bg-inverse:#f5f8fd;--bg-glass:rgba(5, 11, 28, 0.72);--bg-brand-default:#2457e6;--bg-brand-hover:#457bfe;--bg-brand-pressed:#1b47c3;--bg-brand-strong:#14307b;--bg-brand-subtle:#0c2051;--bg-accent-default:#ffc837;--bg-accent-hover:#ffe6a1;--bg-accent-pressed:#f4b306;--bg-accent-subtle:#3d1f06;--bg-success-default:#007e38;--bg-success-subtle:#022d11;--bg-danger-default:#c4002b;--bg-danger-hover:#ea3743;--bg-danger-pressed:#a40323;--bg-danger-subtle:#48070e;--bg-warning-default:#fd9023;--bg-warning-subtle:#431800;--overlay-scrim:rgba(5, 11, 28, 0.7);--overlay-hover:rgba(255, 255, 255, 0.06);--overlay-pressed:rgba(255, 255, 255, 0.12);--text-default:#f5f8fd;--text-secondary:#c9d2e3;--text-muted:#95a1bb;--text-disabled:#485672;--text-inverse:#050b1c;--text-on-fill:#ffffff;--text-on-fill-muted:rgba(255, 255, 255, 0.8);--text-on-fill-accent:#ffe6a1;--text-on-accent:#050b1c;--text-brand:#749ffe;--text-accent:#ffc837;--text-success:#6ab876;--text-danger:#f9726e;--icon-default:#c9d2e3;--icon-muted:#667591;--icon-disabled:#33415d;--icon-on-fill:#ffffff;--icon-tint:#1f2b44;--icon-tint-brand:#14307b;--icon-brand:#749ffe;--icon-accent:#ffc837;--icon-success:#6ab876;--icon-danger:#f9726e;--icon-warning:#fd9023;--border-default:#1f2b44;--border-subtle:#162138;--border-strong:#33415d;--border-input:#667591;--border-brand:#749ffe;--border-accent:#ffc837;--border-accent-strong:#f4b306;--border-danger:#f9726e;--border-success-subtle:#015624;--border-danger-subtle:#87021b;--border-warning-subtle:#7a3700;--border-on-image:rgba(255, 255, 255, 0.12);--focus-ring:#749ffe;--shadow-default:rgba(0, 0, 0, 0.4);--shadow-strong:rgba(0, 0, 0, 0.6);--shadow-inset:rgba(0, 0, 0, 0.25);--category-houmach-bg:#2457e6;--category-houmach-bg-strong:#163a9f;--category-houmach-bg-subtle:#0c2051;--category-houmach-text:#749ffe;--category-tehilim-bg:#5b1bb0;--category-tehilim-bg-strong:#4d1d93;--category-tehilim-bg-subtle:#29164e;--category-tehilim-text:#c5b4fe;--category-tanya-bg:#3f2fd1;--category-tanya-bg-strong:#3329aa;--category-tanya-bg-subtle:#191958;--category-tanya-text:#cfd7fe;--category-guemara-bg:#a64b1a;--category-guemara-bg-strong:#713012;--category-guemara-bg-subtle:#3b1a0d;--category-guemara-text:#e4b69b;--category-halakha-bg:#006770;--category-halakha-bg-strong:#005057;--category-halakha-bg-subtle:#092a2d;--category-halakha-text:#a1cacc;--highlight-inset:rgba(255, 255, 255, 0.22);color-scheme:dark}
/* Kavata : base commune. Couleurs : Core. Polices : Outfit et Noto Serif Hebrew. */
@font-face {
  font-family: Outfit;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/font/Outfit_400Regular.ttf) format('truetype');
}
@font-face {
  font-family: Outfit;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/font/Outfit_500Medium.ttf) format('truetype');
}
@font-face {
  font-family: Outfit;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/font/Outfit_600SemiBold.ttf) format('truetype');
}
@font-face {
  font-family: Outfit;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/font/Outfit_700Bold.ttf) format('truetype');
}
@font-face {
  font-family: 'Noto Serif Hebrew';
  font-weight: 500;
  font-display: swap;
  src: url(/assets/font/NotoSerifHebrew_500Medium.ttf) format('truetype');
}
@font-face {
  font-family: 'Noto Serif Hebrew';
  font-weight: 600;
  font-display: swap;
  src: url(/assets/font/NotoSerifHebrew_600SemiBold.ttf) format('truetype');
}

:root {
  --gutter: 20px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: linear(
    0,
    0.009,
    0.035 2.1%,
    0.141 4.4%,
    0.723 12.9%,
    0.938 16.7%,
    1.017,
    1.077 20.4%,
    1.121,
    1.149 24.3%,
    1.159,
    1.163 27%,
    1.154,
    1.129 32.8%,
    1.051 39.6%,
    1.017 43.1%,
    0.991,
    0.977 51%,
    0.974 53.8%,
    0.975 57.1%,
    0.997 69.8%,
    1.003 76.9%,
    1
  );
  --ribbon: linear-gradient(90deg, #a8102c, #e2324c 48%, #a8102c);
}
@media (min-width: 900px) {
  :root {
    --gutter: 40px;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--bg-page);
}
body {
  font:
    400 18px/28px Outfit,
    system-ui,
    sans-serif;
  color: var(--text-default);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img,
svg {
  display: block;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--p-yellow-300);
  color: #050b1c;
}
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Bascule clair / sombre : toutes les couleurs glissent ensemble. */
:root.theming,
:root.theming * {
  transition: none;
}
:root.theme-fade {
  transition:
    --bg-page 0.6s,
    --bg-surface 0.6s,
    --bg-muted 0.6s,
    --bg-muted-strong 0.6s,
    --bg-brand-subtle 0.6s,
    --bg-glass 0.6s,
    --bg-parchment 0.6s,
    --text-default 0.6s,
    --text-secondary 0.6s,
    --text-muted 0.6s,
    --text-brand 0.6s,
    --text-accent 0.6s,
    --border-default 0.6s,
    --border-subtle 0.6s,
    --icon-brand 0.6s,
    --icon-default 0.6s;
}
::view-transition {
  pointer-events: none;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) {
  z-index: 1;
}
::view-transition-new(root) {
  z-index: 2;
}
img.dark {
  opacity: 0;
}
:root[data-theme='dark'] img.dark {
  opacity: 1;
}
:root[data-theme='dark'] img.light {
  opacity: 0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) img.dark {
    opacity: 1;
  }
  :root:not([data-theme]) img.light {
    opacity: 0;
  }
}

.wrap {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.he {
  font-family: 'Noto Serif Hebrew', serif;
  font-weight: 500;
  direction: rtl;
  unicode-bidi: isolate;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed;
  inset-inline-start: 16px;
  top: -80px;
  z-index: 100;
  background: var(--bg-brand-default);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
}
.skip:focus {
  top: 16px;
}

h1,
h2 {
  font-weight: 700;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(44px, 6.1vw, 88px);
  line-height: 1;
}
h2 {
  font-size: clamp(36px, 4.3vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.028em;
}
h1 em,
h2 em {
  font-style: normal;
  color: var(--text-brand);
}
.lead {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.52;
  color: var(--text-secondary);
  text-wrap: pretty;
}
.lead b,
.set b {
  color: var(--text-default);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.section-head {
  display: grid;
  gap: 20px;
}
.section-head .lead {
  max-width: 46ch;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 12px;
  background: var(--bg-brand-default);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition:
    background-color 0.2s,
    transform 0.25s var(--ease-out),
    box-shadow 0.25s;
  box-shadow: 0 1px 2px var(--shadow-default);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.38) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
}
.btn:hover {
  background: var(--bg-brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(36, 87, 230, 0.32);
}
.btn:hover::before {
  transform: translateX(120%);
  transition: transform 0.7s var(--ease-out);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 15px;
  white-space: nowrap;
}
.btn-gold {
  background: var(--bg-accent-default);
  color: #050b1c;
}
.btn-gold:hover {
  background: var(--p-yellow-200);
  box-shadow: 0 12px 28px rgba(255, 200, 55, 0.35);
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-brand);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s;
}
.more svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s var(--ease-out);
}
.more:hover {
  text-decoration-color: currentColor;
}
.more:hover svg {
  transform: translateX(4px);
}
[dir='rtl'] .more svg {
  scale: -1 1;
}
.rule {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 220px;
}
.rule::before,
.rule::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: var(--p-yellow-300);
}
.rule i {
  width: 9px;
  height: 9px;
  background: var(--p-yellow-300);
  transform: rotate(45deg);
}

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border-subtle);
  opacity: 0;
  transition: opacity 0.3s;
}
.site-header.is-stuck::before {
  opacity: 1;
}
.site-header .wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.025em;
  text-decoration: none;
  color: var(--text-default);
}
.brand img {
  border-radius: 10px;
  transition: transform 0.5s var(--spring);
}
.brand:hover img {
  transform: rotate(-6deg) scale(1.06);
}
.brand .he {
  font-size: 20px;
  color: var(--text-accent);
  letter-spacing: 0;
}
.site-nav {
  margin-inline-start: auto;
  display: flex;
  gap: 4px;
  font-size: 16px;
  font-weight: 500;
}
.site-nav a {
  position: relative;
  text-decoration: none;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 8px;
  transition:
    color 0.2s,
    background-color 0.2s;
}
.site-nav a:hover {
  color: var(--text-default);
  background: var(--overlay-hover);
}
.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  border-radius: 12px;
  color: var(--icon-default);
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.2s;
}
.theme-toggle:hover {
  background: var(--overlay-hover);
}
.theme-toggle svg {
  grid-area: 1 / 1;
  transition:
    transform 0.6s var(--ease-out),
    opacity 0.3s;
}
.theme-toggle .i-sun {
  transform: translateY(36px) rotate(90deg);
  opacity: 0;
}
:root[data-theme='dark'] .theme-toggle .i-sun {
  transform: none;
  opacity: 1;
}
:root[data-theme='dark'] .theme-toggle .i-moon {
  transform: translateY(-36px) rotate(-60deg);
  opacity: 0;
}
@media (max-width: 899px) {
  .site-nav {
    display: none;
  }
  .theme-toggle {
    order: 3;
  }
  .site-header .wrap {
    height: 64px;
    gap: 8px;
  }
  .header-cta {
    margin-inline-start: auto;
    padding: 0 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.25s,
      transform 0.3s var(--ease-out),
      visibility 0.25s;
  }
  .is-stuck .header-cta,
  .text .header-cta {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}
/* Le marque-page du logo, qui descend avec la lecture. */
.ribbon-progress {
  position: absolute;
  top: 100%;
  inset-inline-end: 28px;
  width: 18px;
  height: calc(20px + var(--read, 0) * 130px);
  background: var(--ribbon);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 9px), 0 100%);
  pointer-events: none;
  display: none;
  filter: drop-shadow(0 4px 6px var(--shadow-strong));
}
@media (min-width: 1360px) {
  .ribbon-progress {
    display: block;
  }
  .text .ribbon-progress {
    display: none;
  }
}

/* Téléphone */
.phone {
  --w: 320px;
  position: relative;
  width: var(--w);
  border-radius: calc(var(--w) * 0.155);
  padding: calc(var(--w) * 0.028);
  background: #050b1c;
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.16),
    0 0 0 1px rgba(5, 11, 28, 0.2),
    0 40px 80px -10px var(--shadow-strong),
    0 12px 30px var(--shadow-default);
}
:root[data-theme='dark'] .phone {
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 40px 90px -10px rgba(0, 0, 0, 0.8);
}
.screen {
  position: relative;
  aspect-ratio: 390 / 844;
  border-radius: calc(var(--w) * 0.128);
  overflow: hidden;
  background: var(--bg-page);
  isolation: isolate;
}
.views {
  position: absolute;
  inset: 0;
  top: calc(var(--w) * 0.1065);
}
.view {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(26px) scale(0.985);
  transition:
    opacity 0.45s,
    transform 0.7s var(--ease-out);
}
.view.is-active {
  opacity: 1;
  transform: none;
}
.view-scroll {
  position: relative;
}
.view img {
  width: 100%;
}
.view img.dark {
  position: absolute;
  inset: 0;
}
.statusbar {
  position: absolute;
  inset: 0 0 auto;
  height: calc(var(--w) * 0.1085);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--w) * 0.02) calc(var(--w) * 0.075) 0;
  font-weight: 600;
  font-size: calc(var(--w) * 0.042);
  line-height: 1;
  color: var(--text-default);
}
.statusbar::before,
.statusbar::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bar-light) 0 0 / 100% 100%;
}
.statusbar::after {
  background-image: var(--bar-dark);
  opacity: 0;
}
:root[data-theme='dark'] .statusbar::after {
  opacity: 1;
}
.statusbar i {
  position: absolute;
  left: 50%;
  margin-left: calc(var(--w) * -0.135);
  width: calc(var(--w) * 0.27);
  height: calc(var(--w) * 0.075);
  border-radius: 99px;
  background: #050b1c;
}
.statusbar b {
  width: calc(var(--w) * 0.062);
  height: calc(var(--w) * 0.03);
  border-radius: 3px;
  background: currentColor;
}
.tabbar {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
}
.tabbar img {
  width: 100%;
}
.tabbar img.dark {
  position: absolute;
  inset: 0;
}
[data-tilt] {
  transform-style: preserve-3d;
  perspective: 1200px;
}
[data-tilt] .phone {
  transform: rotateX(calc(var(--ty, 0) * -5deg)) rotateY(calc(var(--tx, 0) * 7deg));
  transition: transform 0.25s ease-out;
}
:root.theme-fade .view img,
:root.theme-fade .tabbar img,
:root.theme-fade .statusbar::after {
  transition: opacity 0.5s;
}

/* Apparitions */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.js [data-split] .w {
  display: inline-block;
  overflow: clip;
  overflow-clip-margin: 0.12em;
  vertical-align: top;
  padding-block: 0.2em 0.14em;
  margin-block: -0.2em -0.14em;
}
.js [data-split] .w > span {
  display: inline-block;
  transform: translateY(115%) rotate(4deg);
  transform-origin: 0 100%;
  transition: transform 0.95s var(--ease-out);
  transition-delay: calc(var(--n) * 55ms);
}
.js [data-split].is-in .w > span {
  transform: none;
}
.sparkle {
  width: 24px;
  height: 24px;
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.6) rotate(0);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(45deg);
  }
}
.stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.stars i {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle var(--t) ease-in-out var(--d) infinite;
}
.stars .sparkle {
  position: absolute;
  animation: twinkle var(--t) ease-in-out var(--d) infinite;
}

/* Pied de page */
.site-footer {
  border-top: 1px solid var(--border-default);
  padding: 56px 0 40px;
  position: relative;
  background: var(--bg-page);
}
.site-footer .wrap {
  display: grid;
  gap: 32px;
}
.footer-brand p {
  margin-top: 12px;
  color: var(--text-secondary);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-size: 16px;
}
.site-footer nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 0;
}
.site-footer nav a:hover,
.site-footer nav a[aria-current] {
  color: var(--text-brand);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-note {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
}
@media (min-width: 900px) {
  .site-footer .wrap {
    grid-template-columns: 1fr auto;
  }
  .footer-note {
    grid-column: 1 / -1;
  }
  .site-footer nav {
    align-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal],
  .js [data-split] .w > span {
    opacity: 1;
    transform: none;
  }
}

/* Économie : rien ne tourne hors de l'écran, ni les étoiles en plein jour. */
.is-off *,
.is-off *::before,
.is-off *::after,
.hero:not(.is-night) .stars *,
.final:not(.is-night) .stars * {
  animation-play-state: paused !important;
}
.sky {
  contain: paint;
}

/* Héros : le ciel, l'arc du soleil et le téléphone */
.hero {
  position: relative;
  margin-top: -72px;
  padding-top: 104px;
  text-align: center;
  overflow: clip;
  isolation: isolate;
}
@media (max-width: 899px) {
  .hero {
    margin-top: -64px;
    padding-top: 84px;
  }
}
.sky,
.sky > i {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.sky > i {
  opacity: 0;
}
/* Chaque moment du jour a son voile, dosé par l'heure choisie. --sx, --sy : place du soleil. */
.sky-dawn {
  opacity: var(--dawn, 0) !important;
  background:
    radial-gradient(
      560px 460px at var(--sx, 20%) var(--sy, 70%),
      color-mix(in srgb, var(--p-yellow-200) 62%, transparent),
      transparent 72%
    ),
    radial-gradient(
      900px 420px at var(--sx, 20%) 100%,
      color-mix(in srgb, var(--p-orange-300) 30%, transparent),
      transparent 70%
    );
}
.sky-day {
  opacity: var(--day, 1) !important;
  background:
    radial-gradient(
      760px 620px at 50% 72%,
      color-mix(in srgb, var(--p-blue-500) 26%, transparent),
      transparent 72%
    ),
    radial-gradient(
      620px 460px at 92% 12%,
      color-mix(in srgb, var(--p-blue-400) 20%, transparent),
      transparent 72%
    ),
    radial-gradient(
      360px 320px at var(--sx, 50%) var(--sy, 40%),
      color-mix(in srgb, var(--p-yellow-200) 65%, transparent),
      transparent 72%
    );
}
.sky-dusk {
  opacity: var(--dusk, 0) !important;
  background:
    radial-gradient(
      640px 520px at var(--sx, 80%) var(--sy, 70%),
      color-mix(in srgb, var(--p-orange-400) 66%, transparent),
      transparent 72%
    ),
    radial-gradient(
      1100px 560px at 70% 100%,
      color-mix(in srgb, var(--p-violet-400) 46%, transparent),
      transparent 72%
    ),
    radial-gradient(
      800px 520px at 12% 40%,
      color-mix(in srgb, var(--p-indigo-400) 22%, transparent),
      transparent 72%
    );
}
.sky-night {
  opacity: var(--night, 0) !important;
  background:
    radial-gradient(
      620px 520px at var(--sx, 80%) var(--sy, 60%),
      color-mix(in srgb, var(--p-blue-500) 44%, transparent),
      transparent 72%
    ),
    radial-gradient(
      1000px 640px at 45% 90%,
      color-mix(in srgb, var(--p-blue-700) 52%, transparent),
      transparent 74%
    ),
    radial-gradient(
      760px 460px at 10% 0%,
      color-mix(in srgb, var(--p-violet-700) 30%, transparent),
      transparent 72%
    );
}
.sky > .stars {
  opacity: var(--night, 0);
  transition: opacity 0.8s;
  -webkit-mask: linear-gradient(#000 55%, transparent 92%);
  mask: linear-gradient(#000 55%, transparent 92%);
}
.hero-text {
  position: relative;
  z-index: 3;
}
.hero .lead {
  max-width: 40ch;
  margin: 24px auto 0;
}
.cta {
  display: flex;
  gap: 14px 24px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 30px;
}
.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 17px;
  color: var(--text-secondary);
}
.soon i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--p-yellow-300);
  animation: beat 2.2s ease-out infinite;
}
@keyframes beat {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--p-yellow-300) 70%, transparent);
  }
  80%,
  100% {
    box-shadow: 0 0 0 12px transparent;
  }
}

.arc {
  position: relative;
  width: min(1240px, 100%);
  height: 620px;
  margin: 14px auto 0;
  touch-action: pan-y;
}
.arc-line {
  transform: translateZ(0);
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.arc-line path {
  fill: none;
  stroke-linecap: round;
}
.arc-dots {
  stroke: var(--text-muted);
  opacity: 0.75;
  stroke-width: 4;
  stroke-dasharray: 0.1 14;
}
.arc-done {
  stroke: var(--p-yellow-300);
  stroke-width: 4;
}
.arc-hit {
  stroke: transparent;
  stroke-width: 54;
  cursor: pointer;
  pointer-events: stroke;
}
.arc-end {
  position: absolute;
  transform: translateX(-50%);
  font-size: 15px;
  line-height: 20px;
  color: var(--text-muted);
}
.sun-handle {
  position: absolute;
  z-index: 5;
  left: 0;
  top: 0;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}
.sun-handle:active {
  cursor: grabbing;
}
.sun-handle > svg {
  position: absolute;
  inset: 8px;
  width: 76px;
  height: 76px;
  transition:
    transform 0.7s var(--spring),
    opacity 0.25s;
  filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--p-yellow-400) 40%, transparent));
}
.sun-handle:hover > svg {
  scale: 1.07;
}
.sun-handle:active > svg {
  scale: 1.14;
}
.sun-rays {
  transform-origin: 36px 36px;
  animation: spin 24s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.sun-handle .moon {
  transform: rotate(-120deg) scale(0.2);
  opacity: 0;
}
.is-night .sun-handle .sun {
  transform: rotate(120deg) scale(0.2);
  opacity: 0;
}
.is-night .sun-handle .moon {
  transform: none;
  opacity: 1;
}
.pulse {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  pointer-events: none;
}
.hero:not(.is-touched) .pulse {
  animation: beat 1.9s ease-out 2.4s infinite;
}
.arc-time {
  position: absolute;
  z-index: 5;
  left: 0;
  top: 0;
  font-weight: 700;
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  translate: -50% 0;
  pointer-events: none;
}
.arc-hint {
  position: absolute;
  z-index: 5;
  left: 0;
  top: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  text-align: start;
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text-secondary);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.hint-short {
  display: none;
}
.arc-hint b {
  display: block;
  font-weight: 500;
}
.hint-night,
.is-night .hint-day {
  display: none !important;
}
.is-night .hint-night {
  display: block !important;
}
.arc-hint.is-left {
  flex-direction: row-reverse;
  text-align: end;
}
.arc-hint.is-left svg {
  scale: -1 1;
}
.arc-hint svg {
  animation: nudge 1.5s ease-in-out infinite;
}
@keyframes nudge {
  50% {
    transform: translateX(-6px);
  }
}
.is-ready .arc-hint {
  opacity: 1;
}
.is-touched .arc-hint {
  opacity: 0;
}
.hero-phone {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 132px;
  width: 336px;
  margin-left: -168px;
}
.hero-phone .phone {
  --w: 336px;
}
.js .hero-phone {
  transform: translateY(160px);
  opacity: 0;
  transition:
    transform 1.3s var(--ease-out) 0.25s,
    opacity 0.6s 0.25s;
}
.js .is-ready-phone .hero-phone {
  transform: none;
  opacity: 1;
}
.phone-home .view-scroll {
  transform: translateY(calc(var(--scroll, 0) * -1px));
}
.notif {
  position: absolute;
  z-index: 4;
  left: calc(50% + 128px);
  top: 306px;
  width: 372px;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: start;
  padding: 14px 16px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-surface) 94%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-default);
  box-shadow: 0 20px 48px var(--shadow-strong);
  font-size: 15px;
  line-height: 20px;
  opacity: 0;
  transform: translateY(-16px) scale(0.9);
  transition:
    opacity 0.25s,
    transform 0.3s;
}
.notif img {
  border-radius: 10px;
  flex: none;
}
.notif div {
  flex: 1;
  min-width: 0;
}
.notif b,
.notif span {
  display: block;
}
.notif b {
  font-weight: 600;
}
.notif span {
  color: var(--text-secondary);
}
.notif time {
  align-self: start;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.notif.is-on {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.25s,
    transform 0.8s var(--spring);
}
.notif.is-on img {
  animation: ring 0.7s 0.15s ease-in-out;
}
@keyframes ring {
  20% {
    transform: rotate(-12deg);
  }
  45% {
    transform: rotate(10deg);
  }
  70% {
    transform: rotate(-6deg);
  }
}
.is-late .notif {
  left: auto;
  right: calc(50% + 128px);
}

@media (max-width: 1239px) {
  .arc {
    height: 690px;
    margin-top: 4px;
  }
  .sun-handle {
    width: 76px;
    height: 76px;
    margin: -38px 0 0 -38px;
  }
  .sun-handle > svg {
    width: 60px;
    height: 60px;
  }
  .arc-time {
    font-size: 40px;
    line-height: 44px;
    letter-spacing: -0.03em;
  }
  .arc-hint {
    left: 50% !important;
    top: 160px !important;
    transform: translateX(-50%) !important;
    font-size: 15px;
    white-space: nowrap;
  }
  .arc-hint svg {
    display: none;
  }
  .hint-long {
    display: none;
  }
  .arc-hint .hint-short {
    display: inline;
  }
  .hero-phone {
    top: 228px;
    width: 252px;
    margin-left: -126px;
  }
  .hero-phone .phone {
    --w: 252px;
  }
  .notif,
  .is-late .notif {
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    max-width: 400px;
    margin-inline: auto;
    top: 500px;
  }
  .hero h1 em {
    display: inline-block;
  }
}

/* ——— Les études : les couvertures s'empilent, comme sur l'accueil de l'app ——— */
.studies {
  position: relative;
  z-index: 4;
  background: var(--bg-page);
  border-top: 1px solid var(--border-subtle);
  padding-top: clamp(72px, 9vw, 128px);
}
.covers {
  padding-top: 56px;
  padding-bottom: clamp(80px, 10vw, 140px);
}
.cover-slot {
  position: sticky;
  top: calc(92px + var(--i) * 22px);
  padding-bottom: 32px;
  z-index: var(--i);
}
.cover {
  --c: var(--category-houmach-bg);
  --cs: var(--category-houmach-bg-strong);
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: min(560px, 68vh);
  color: #fff;
  background: var(--c);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  box-shadow:
    0 -12px 40px rgba(5, 11, 28, 0.18),
    0 24px 60px var(--shadow-default);
  transform: scale(calc(1 - var(--over, 0) * 0.055));
  transform-origin: 50% 0;
}
.cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #050b1c;
  opacity: calc(var(--over, 0) * 0.28);
  pointer-events: none;
}
.cover-tehilim {
  --c: var(--category-tehilim-bg);
  --cs: var(--category-tehilim-bg-strong);
}
.cover-tanya {
  --c: var(--category-tanya-bg);
  --cs: var(--category-tanya-bg-strong);
}
.cover-guemara {
  --c: var(--category-guemara-bg);
  --cs: var(--category-guemara-bg-strong);
}
.spine {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 36px;
  background: var(--cs);
  z-index: 1;
}
.spine b {
  position: absolute;
  inset-inline: 0;
  height: 9px;
  border: solid var(--p-yellow-300);
  border-width: 2px 0;
}
.spine b:first-child {
  top: 52px;
}
.spine b:last-child {
  bottom: 52px;
}
.frame {
  position: absolute;
  inset-block: 20px;
  inset-inline: 56px 20px;
  width: calc(100% - 76px);
  height: calc(100% - 40px);
  z-index: 1;
  overflow: visible;
  pointer-events: none;
}
.frame rect {
  x: 1px;
  y: 1px;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  rx: 12px;
  fill: none;
  stroke: var(--p-yellow-300);
  stroke-width: 2;
  stroke-dasharray: 1.02 1.02;
  stroke-dashoffset: 0;
}
.js .frame rect {
  stroke-dashoffset: 1.02;
  transition: stroke-dashoffset 2s var(--ease-out) 0.15s;
}
.js .is-in .frame rect {
  stroke-dashoffset: 0;
}
.cover-text {
  position: relative;
  z-index: 2;
  padding: 56px 0 56px 104px;
  max-width: 620px;
}
.cover h3 {
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.028em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 18px;
}
.cover h3 .he {
  color: var(--p-yellow-200);
  font-size: 0.72em;
  letter-spacing: 0;
}
.cover-text > p:not(.portion) {
  margin-top: 18px;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  max-width: 44ch;
  text-wrap: pretty;
}
.portion {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: 16px;
  line-height: 24px;
}
.portion span {
  color: rgba(255, 255, 255, 0.8);
}
.portion b {
  font-weight: 600;
  background: var(--p-yellow-300);
  color: #050b1c;
  border-radius: 8px;
  padding: 5px 12px;
}
.cover-books {
  position: absolute;
  z-index: 2;
  inset-block: 0;
  inset-inline: 50% 0;
}
.cover-books img {
  position: absolute;
  width: min(400px, 34vw);
  left: 50%;
  top: 50%;
  filter: drop-shadow(0 30px 34px rgba(5, 11, 28, 0.4));
  transform: translate(-50%, calc(-50% + (1 - var(--enter, 1)) * 220px))
    rotate(calc(9deg + (1 - var(--enter, 1)) * 26deg));
}
.books-3 img {
  width: min(290px, 25vw);
}
.books-3 img:nth-child(1) {
  transform: translate(
      calc(-50% - 130px * var(--enter, 1)),
      calc(-42% + (1 - var(--enter, 1)) * 220px)
    )
    rotate(calc(-12deg * var(--enter, 1)));
}
.books-3 img:nth-child(2) {
  transform: translate(
      calc(-50% + 130px * var(--enter, 1)),
      calc(-42% + (1 - var(--enter, 1)) * 220px)
    )
    rotate(calc(13deg * var(--enter, 1)));
}
.books-3 img:nth-child(3) {
  transform: translate(-50%, calc(-54% + (1 - var(--enter, 1)) * 220px)) rotate(0deg);
}
@media (max-width: 899px) {
  .cover-slot {
    top: calc(76px + var(--i) * 14px);
    padding-bottom: 24px;
  }
  .cover {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 540px;
  }
  .cover-text {
    padding: 40px 36px 0 60px;
  }
  .spine {
    width: 24px;
  }
  .spine b:first-child {
    top: 36px;
  }
  .spine b:last-child {
    bottom: 36px;
  }
  .frame {
    inset-block: 14px;
    inset-inline: 38px 14px;
    width: calc(100% - 52px);
    height: calc(100% - 28px);
  }
  .portion {
    margin-top: 18px;
  }
  .cover-guemara {
    min-height: 600px;
  }
  .portion {
    font-size: 15px;
  }
  .cover-books {
    inset: auto 0 0 24px;
    height: 230px;
  }
  .cover-books img {
    width: 190px;
    top: 60%;
  }
  .books-3 img {
    width: 136px;
    top: 52%;
  }
  .books-3 img:nth-child(1) {
    transform: translate(calc(-50% - 74px * var(--enter, 1)), -42%) rotate(-12deg);
  }
  .books-3 img:nth-child(2) {
    transform: translate(calc(-50% + 74px * var(--enter, 1)), -42%) rotate(13deg);
  }
}

/* ——— Cinq façons de lire ——— */
.reading {
  position: relative;
  padding: clamp(72px, 9vw, 128px) 0;
  background: var(--bg-muted);
  overflow: clip;
}
.reading-grid {
  display: grid;
  gap: 56px;
  align-items: center;
}
.modes {
  display: grid;
  gap: 4px;
  margin-top: 36px;
  max-width: 520px;
}
.mode {
  position: relative;
  display: grid;
  gap: 0;
  text-align: start;
  padding: 14px 20px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.3s;
}
.mode b {
  font-weight: 600;
  font-size: 22px;
  line-height: 30px;
  letter-spacing: -0.015em;
  color: var(--text-secondary);
  transition: color 0.3s;
}
.mode span {
  display: grid;
  grid-template-rows: 0fr;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 25px;
  transition:
    max-height 0.5s var(--ease-out),
    opacity 0.4s;
}
.mode i {
  position: absolute;
  inset-inline: 20px;
  bottom: 8px;
  height: 3px;
  border-radius: 2px;
  background: var(--border-default);
  opacity: 0;
  overflow: hidden;
}
.mode i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--p-yellow-300);
  border-radius: 2px;
  transform-origin: 0 50%;
  transform: scaleX(var(--t, 0));
}
[dir='rtl'] .mode i::after {
  transform-origin: 100% 50%;
}
.mode:hover b {
  color: var(--text-default);
}
.mode.is-active {
  background: var(--bg-surface);
  padding-bottom: 20px;
  box-shadow: 0 8px 28px var(--shadow-default);
}
.mode.is-active b {
  color: var(--text-brand);
}
.mode.is-active span {
  max-height: 60px;
  opacity: 1;
}
.mode.is-active i {
  opacity: 1;
}
.is-manual .mode i {
  display: none;
}
.is-manual .mode.is-active {
  padding-bottom: 14px;
}
.reading-phone {
  position: relative;
  justify-self: center;
}
.reading-phone .phone {
  --w: min(350px, 78vw);
}
.reading-phone .halo {
  position: absolute;
  inset: -14% -34%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--p-blue-500) 34%, transparent),
    transparent
  );
}
.reading .statusbar::before,
.reading .statusbar::after {
  transition: opacity 0.4s;
}
@media (min-width: 900px) {
  .reading-grid {
    grid-template-columns: 1.05fr 1fr;
  }
}
@media (max-width: 899px) {
  .mode b {
    font-size: 20px;
  }
}

/* ——— Le verset à régler ——— */
.verse {
  position: relative;
  padding: clamp(72px, 9vw, 136px) 0;
}
.verse-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.verse-controls .lead {
  margin-top: 20px;
}
.panel {
  margin-top: 32px;
  border: 1px solid var(--border-default);
  border-radius: 16px;
  background: var(--bg-surface);
  padding: 8px 24px;
  max-width: 460px;
}
.range,
.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  min-height: 60px;
  cursor: pointer;
  font-weight: 500;
}
.panel > * + * {
  border-top: 1px solid var(--border-subtle);
}
.range {
  display: grid;
  justify-content: stretch;
  gap: 10px;
  cursor: default;
}
.range-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.range-row b {
  font-size: 18px;
  color: var(--text-secondary);
}
.range-row .big {
  font-size: 32px;
}
input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 0;
  height: 28px;
  background: none;
  cursor: pointer;
}
input[type='range']::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    var(--bg-brand-default) var(--fill, 50%),
    var(--bg-muted-strong) var(--fill, 50%)
  );
}
input[type='range']::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    var(--bg-brand-default) var(--fill, 50%),
    var(--bg-muted-strong) var(--fill, 50%)
  );
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -11px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--bg-brand-default);
  box-shadow: 0 3px 10px var(--shadow-strong);
  transition: scale 0.2s;
}
input[type='range']::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--bg-brand-default);
}
input[type='range']:active::-webkit-slider-thumb {
  scale: 1.15;
}
.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.switch i {
  position: relative;
  flex: none;
  width: 52px;
  height: 32px;
  border-radius: 16px;
  background: var(--p-neutral-400);
  transition: background-color 0.25s;
}
.switch i::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(5, 11, 28, 0.25);
  transition:
    transform 0.5s var(--spring),
    width 0.2s;
}
.switch:active i::after {
  width: 31px;
}
.switch input:checked + i {
  background: var(--bg-brand-default);
}
.switch input:checked + i::after {
  transform: translateX(20px);
}
.switch:active input:checked + i::after {
  transform: translateX(15px);
}
.switch input:focus-visible + i {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}
.sheet {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: clamp(72px, 7vw, 96px) clamp(24px, 5vw, 72px) 40px;
  box-shadow: 0 30px 80px var(--shadow-default);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 480px;
  justify-content: center;
}
.sheet-ribbon {
  position: absolute;
  top: -10px;
  inset-inline-end: 44px;
  width: 34px;
  height: 112px;
  background: var(--ribbon);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 16px), 0 100%);
  transform-origin: 50% 0;
}
.js .sheet .sheet-ribbon {
  transform: scaleY(0);
  transition: transform 1.1s var(--spring) 0.35s;
}
.js .sheet.is-in .sheet-ribbon {
  transform: none;
}
.verse-he {
  position: relative;
  display: grid;
  width: 100%;
  text-align: center;
  font-size: min(var(--size, 46px), 11.5vw);
  line-height: 1.78;
  transition: font-size 0.18s ease-out;
  text-wrap: balance;
}
.verse-he > span:not(.sr) {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.35s;
}
.verse-he > span.is-on {
  opacity: 1;
}
.sheet .rule {
  margin: 24px 0;
}
.verse-tr {
  display: grid;
  grid-template-rows: 1fr;
  transition:
    grid-template-rows 0.5s var(--ease-out),
    opacity 0.35s;
  text-align: center;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 40ch;
}
.verse-tr p {
  overflow: hidden;
  min-height: 0;
}
.no-translation .verse-tr {
  grid-template-rows: 0fr;
  opacity: 0;
}
.sheet figcaption {
  margin-top: 28px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
  text-align: center;
}
@media (max-width: 899px) {
  .sheet {
    min-height: 400px;
  }
  .sheet-ribbon {
    width: 26px;
    height: 62px;
    inset-inline-end: 24px;
  }
}
@media (min-width: 900px) {
  .verse-grid {
    grid-template-columns: 1fr 1.35fr;
    gap: 72px;
  }
}

/* ——— Six jours, puis Chabbat ——— */
.shabbat {
  padding: 0 0 clamp(72px, 9vw, 136px);
}
.evening {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  color: #f5f8fd;
  background: #0c2051;
}
.evening-sky,
.evening-sky > * {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.es-day {
  background: linear-gradient(180deg, #1b47c3 0%, #457bfe 70%, #93b4ff 130%);
}
.es-dusk {
  opacity: clamp(0, calc((var(--p, 0) - 0.28) * 3), 1);
  background:
    radial-gradient(90% 70% at 72% 92%, rgba(253, 144, 35, 0.75), transparent 70%),
    linear-gradient(180deg, #29164e 0%, #5b1bb0 55%, #a6429a 100%);
}
.es-night {
  opacity: clamp(0, calc((var(--p, 0) - 0.62) * 3.2), 1);
  background:
    radial-gradient(70% 70% at 72% 60%, rgba(255, 200, 55, 0.26), transparent 70%),
    linear-gradient(180deg, #050b1c 0%, #0c2051 100%);
}
.evening-sky .stars {
  opacity: clamp(0, calc((var(--p, 0) - 0.66) * 4), 1);
}
.evening-in {
  display: grid;
  gap: 40px 56px;
  padding: clamp(40px, 6vw, 88px) clamp(24px, 6vw, 88px) clamp(32px, 4vw, 56px);
}
.evening h2 em {
  color: var(--p-yellow-200);
}
.evening-text > p {
  margin-top: 22px;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.52;
  color: rgba(255, 255, 255, 0.88);
  max-width: 46ch;
}
.evening-text > p b {
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}
.evening .small {
  font-size: 16px !important;
  color: rgba(255, 255, 255, 0.78) !important;
}
.times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 30px;
  max-width: 400px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.times > div {
  background: rgba(5, 11, 28, 0.34);
  padding: 14px 18px;
  display: grid;
  text-align: center;
}
.times-head {
  grid-column: 1 / -1;
  text-align: start !important;
}
.times-head b {
  font-weight: 600;
}
.times span {
  font-size: 15px;
  line-height: 22px;
  color: rgba(255, 255, 255, 0.8);
}
.times > div:not(.times-head) b {
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.evening-scene {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
}
.glow {
  position: absolute;
  width: 520px;
  max-width: 120%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(255, 220, 122, 0.55),
    rgba(255, 200, 55, 0.14) 55%,
    transparent
  );
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 1.2s,
    transform 1.6s var(--ease-out);
}
.is-lit .glow {
  opacity: 1;
  transform: none;
  animation: breathe 4s ease-in-out 1.6s infinite;
}
@keyframes breathe {
  50% {
    transform: scale(1.07);
    opacity: 0.82;
  }
}
.candlesticks {
  position: relative;
  width: min(380px, 84%);
  overflow: visible;
}
.candlesticks path,
.candlesticks circle {
  stroke: #749ffe;
  stroke-width: 5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.cs-gold {
  fill: var(--p-yellow-300);
}
.cs-wax {
  fill: var(--p-yellow-50);
}
.candlesticks .cs-shade {
  fill: #c8dafe;
  stroke: none;
  opacity: 0.75;
}
.cs-drip,
.cs-wick {
  fill: none;
}
.candlesticks .cs-drip {
  stroke-width: 4;
}
.candlesticks .flame path {
  stroke: none;
}
.candlesticks .flame-in {
  fill: var(--p-yellow-50);
}
.candle-body path {
  fill: rgba(255, 255, 255, 0.16);
}
.candle-body .line {
  fill: #f5f8fd;
}
.flame {
  fill: var(--p-yellow-300);
  transform-box: fill-box;
  transform-origin: 50% 100%;
  opacity: 0;
  transform: scale(0);
}
.is-lit .flame {
  opacity: 1;
  transform: none;
  transition:
    transform 0.9s var(--spring),
    opacity 0.3s;
  animation: flicker 2.6s ease-in-out 0.9s infinite;
}
.is-lit .f2 {
  transition-delay: 0.35s;
  animation-delay: 1.35s;
  animation-duration: 3.1s;
}
@keyframes flicker {
  0%,
  100% {
    transform: scale(1) skewX(0);
  }
  22% {
    transform: scale(0.95, 1.07) skewX(2deg);
  }
  48% {
    transform: scale(1.03, 0.95) skewX(-2deg);
  }
  74% {
    transform: scale(0.97, 1.04) skewX(1.5deg);
  }
}
.week {
  grid-column: 1 / -1;
  list-style: none;
  padding: 28px 0 0;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.week li {
  display: grid;
  justify-items: center;
  gap: 10px;
}
.week b {
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.ring {
  display: grid;
  place-items: center;
  width: clamp(40px, 5.4vw, 64px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.6);
  transition:
    background-color 0.35s,
    border-color 0.35s,
    color 0.35s;
}
.ring svg {
  width: 44%;
  height: auto;
}
.week li.is-on .ring {
  background: var(--p-yellow-300);
  border-color: var(--p-yellow-300);
  color: #050b1c;
  animation: pop 0.7s var(--spring);
}
.week li.is-on b {
  opacity: 1;
}
.week li.is-on .bell {
  animation: ring 0.8s 0.12s ease-in-out;
}
.bell {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
@keyframes pop {
  from {
    transform: scale(0.6);
  }
}
.week .rest.is-on .ring {
  background: transparent;
  border-color: rgba(255, 230, 161, 0.8);
  animation: none;
  box-shadow:
    0 0 0 6px rgba(255, 220, 122, 0.14),
    0 0 44px rgba(255, 200, 55, 0.5);
}
.rest .candles {
  overflow: visible;
}
.is-lit .rest b {
  color: var(--p-yellow-200);
}
@media (min-width: 900px) {
  .evening-in {
    grid-template-columns: 1.1fr 1fr;
  }
}
@media (max-width: 899px) {
  .evening-scene {
    min-height: 200px;
  }
  .week {
    gap: 4px;
  }
  .week b {
    font-size: 13px;
  }
  .shabbat > .wrap {
    padding-inline: 0;
  }
  .evening {
    border-radius: 0;
  }
}

/* ——— La question ——— */
.question {
  position: relative;
  padding: clamp(56px, 7vw, 104px) 0 clamp(96px, 12vw, 176px);
  text-align: center;
  overflow: clip;
}
.question .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.question-he {
  font-weight: 600;
  font-size: clamp(50px, 9.2vw, 140px);
  line-height: 1.32;
}
.question-he span {
  display: inline-block;
}
.js .question-he span {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(12px);
  transition:
    opacity 1s,
    transform 1.2s var(--ease-out),
    filter 1s;
  transition-delay: calc(var(--i) * 260ms);
}
.js .question.is-in .question-he span {
  opacity: 1;
  transform: none;
  filter: none;
}
.question .rule {
  margin: 28px 0 24px;
}
.js .question .rule {
  transform: scaleX(0);
  transition: transform 1.2s var(--ease-out) 0.8s;
}
.js .question.is-in .rule {
  transform: none;
}
.question-tr {
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.question-tr span {
  display: block;
  margin-top: 8px;
  font-size: 17px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-accent);
}
.question .lead {
  max-width: 54ch;
  margin: 26px 0 20px;
}
.question .lead .he {
  color: var(--text-brand);
}

/* ——— Gratuite ——— */
.free {
  position: relative;
  padding: 0 0 clamp(88px, 11vw, 160px);
  text-align: center;
}
.free .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.temple {
  position: relative;
  width: min(580px, 92vw);
  aspect-ratio: 350 / 275;
  margin-bottom: 32px;
}
.temple img {
  position: absolute;
}
.temple-base {
  inset: 0;
  width: 100%;
  animation: float 5s ease-in-out infinite;
}
:root.theme-fade .temple-base {
  transition: opacity 0.6s;
}
@keyframes float {
  50% {
    transform: translateY(-9px);
  }
}
.temple-glow {
  position: absolute;
  left: 50.3%;
  top: 33.5%;
  width: 74%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--p-yellow-300) 62%, transparent),
    color-mix(in srgb, var(--p-yellow-300) 20%, transparent) 50%,
    transparent
  );
  animation: breathe 3.6s ease-in-out infinite;
}
.js .temple .ray {
  opacity: 0;
  transform: translate(calc(var(--ux) * -60px), calc(var(--uy) * -60px)) scale(0.3);
}
.js .free.is-in .ray {
  animation:
    burst 0.9s var(--spring) calc(0.35s + var(--i) * 90ms) forwards,
    shine 2.8s ease-in-out calc(1.6s + var(--i) * 160ms) infinite;
}
@keyframes burst {
  30% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes shine {
  50% {
    translate: calc(var(--ux) * 5px) calc(var(--uy) * 5px);
    filter: brightness(1.08);
  }
}
.js .temple .temple-star {
  opacity: 0;
  transform: scale(0) rotate(-90deg);
}
.js .free.is-in .temple-star {
  animation:
    bloom 0.8s var(--spring) calc(1s + var(--i) * 170ms) forwards,
    glint 2.6s ease-in-out calc(2.2s + var(--i) * 400ms) infinite;
}
@keyframes bloom {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes glint {
  50% {
    scale: 0.72;
    rotate: 30deg;
  }
}
.free .lead {
  margin-top: 14px;
}
.facts {
  list-style: none;
  padding: 0;
  margin-top: 56px;
  width: 100%;
  display: grid;
  border-block: 1px solid var(--border-default);
  text-align: start;
}
.facts li {
  padding: 24px 0;
  display: grid;
  gap: 4px;
  align-content: start;
}
.facts li + li {
  border-top: 1px solid var(--border-default);
}
.facts b {
  font-weight: 600;
  font-size: 22px;
  line-height: 30px;
  letter-spacing: -0.015em;
}
.facts span {
  color: var(--text-secondary);
}
@media (min-width: 800px) {
  .facts {
    grid-template-columns: repeat(3, 1fr);
  }
  .facts li {
    padding: 32px;
  }
  .facts li:first-child {
    padding-inline-start: 0;
  }
  .facts li + li {
    border-top: 0;
    border-inline-start: 1px solid var(--border-default);
  }
}
.free-sources {
  margin-top: 32px;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  justify-content: center;
}

/* ——— Questions ——— */
.faq {
  background: var(--bg-muted);
  padding: clamp(72px, 9vw, 128px) 0;
}
.faq-grid {
  display: grid;
  gap: 32px;
}
details {
  border-bottom: 1px solid var(--border-strong);
}
details:first-child {
  border-top: 1px solid var(--border-strong);
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.35;
}
summary::-webkit-details-marker {
  display: none;
}
summary svg {
  flex: none;
  color: var(--text-brand);
  transition: transform 0.5s var(--spring);
}
details[open]:not(.is-closing) summary svg {
  transform: rotate(135deg);
}
.answer {
  overflow: hidden;
}
.answer p {
  padding: 0 48px 26px 0;
  color: var(--text-secondary);
  max-width: 60ch;
}
.answer a {
  color: var(--text-brand);
  text-underline-offset: 4px;
}
@media (min-width: 900px) {
  .faq-grid {
    grid-template-columns: 1fr 1.7fr;
    gap: 72px;
  }
  .faq h2 {
    position: sticky;
    top: 120px;
    align-self: start;
  }
}

/* ——— Fin ——— */
.final {
  position: relative;
  isolation: isolate;
  overflow: clip;
  text-align: center;
  padding: clamp(72px, 9vw, 120px) 0 0;
  min-height: 760px;
}
.final-orb {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 24px;
}
.final-orb > svg {
  position: absolute;
  inset: 0;
  transition:
    transform 0.9s var(--spring),
    opacity 0.4s;
  filter: drop-shadow(0 10px 30px color-mix(in srgb, var(--p-yellow-300) 50%, transparent));
}
.final-orb .moon {
  transform: rotate(-90deg) scale(0.2);
  opacity: 0;
}
.final.is-night .final-orb .sun {
  transform: rotate(90deg) scale(0.2);
  opacity: 0;
}
.final.is-night .final-orb .moon {
  transform: none;
  opacity: 1;
}
.final .set {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  font-size: 22px;
  line-height: 32px;
  color: var(--text-secondary);
}
.final .set b {
  color: var(--text-default);
  font-weight: 700;
}
.change {
  font-size: 16px;
  color: var(--text-brand);
  font-weight: 500;
  text-underline-offset: 4px;
  padding: 6px 0;
}
.final .lead {
  max-width: 44ch;
  margin: 24px auto 32px;
}
.final-books {
  position: relative;
  height: clamp(200px, 24vw, 320px);
  margin-top: 56px;
}
.final-books img {
  position: absolute;
  left: 50%;
  top: 0;
  width: clamp(170px, 21vw, 290px);
  filter: drop-shadow(0 -10px 30px var(--shadow-default));
  transform: translateX(calc(-50% + (var(--i) - 1) * 78%)) rotate(calc((var(--i) - 1) * 11deg))
    translateY(calc((var(--i) - 1) * (var(--i) - 1) * 34px));
  animation: sway 6s ease-in-out calc(var(--i) * -1.7s) infinite;
}
.final-books img:nth-child(2) {
  z-index: 1;
}
@keyframes sway {
  50% {
    translate: 0 -12px;
  }
}
.final > .sparkle {
  position: absolute;
  width: 34px;
  height: 34px;
  animation: twinkle 3s ease-in-out infinite;
}
.final > .sparkle:nth-of-type(1) {
  left: 14%;
  top: 34%;
}
.final > .sparkle:nth-of-type(2) {
  right: 16%;
  top: 22%;
  width: 24px;
  height: 24px;
  animation-delay: -1s;
}
.final > .sparkle:nth-of-type(3) {
  right: 24%;
  top: 56%;
  width: 20px;
  height: 20px;
  animation-delay: -2s;
}
@media (max-width: 759px) {
  .final > .sparkle:nth-of-type(1) {
    left: 8%;
    top: 12%;
  }
  .final > .sparkle:nth-of-type(2) {
    right: 10%;
    top: 8%;
  }
  .final > .sparkle:nth-of-type(3) {
    right: 14%;
    top: 24%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .js .temple .ray,
  .js .temple .temple-star {
    opacity: 1;
    transform: none;
  }
  .flame {
    opacity: 1;
    transform: none;
  }
  .stars .sparkle,
  .stars i {
    opacity: 0.7;
  }
}

.final h2 b {
  font-weight: inherit;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.final h2 em {
  display: block;
}

/* Pages de texte */
.doc {
  position: relative;
  margin-top: -72px;
  padding: calc(72px + clamp(48px, 8vw, 104px)) 0 120px;
  overflow: clip;
  min-height: 60vh;
}
.doc-halo {
  position: absolute;
  width: 900px;
  height: 640px;
  top: -380px;
  inset-inline-end: -220px;
  border-radius: 50%;
  background: var(--bg-brand-default);
  opacity: 0.16;
  filter: blur(110px);
  pointer-events: none;
}
.doc-in {
  position: relative;
}
.doc h1 {
  font-size: clamp(40px, 5.4vw, 72px);
}
.doc .lead {
  max-width: 60ch;
  margin-top: 24px;
}
.doc .lead a,
.prose a {
  color: var(--text-brand);
  text-underline-offset: 4px;
}
.draft {
  display: inline-block;
  margin-top: 24px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--bg-parchment);
  color: var(--text-accent);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
}
.prose {
  margin-top: 56px;
  max-width: 72ch;
}
.prose h2 {
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -0.015em;
  margin: 48px 0 12px;
}
.prose h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  margin: 28px 0 4px;
}
.prose p,
.prose li {
  color: var(--text-secondary);
}
.prose p + p {
  margin-top: 12px;
}
.prose ul {
  padding-inline-start: 20px;
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.prose strong {
  color: var(--text-default);
  font-weight: 600;
}
.prose .muted {
  color: var(--text-muted);
  font-size: 16px;
}
.prose mark {
  background: var(--bg-parchment);
  color: var(--text-accent);
  border-radius: 4px;
  padding: 1px 6px;
}
.sources {
  border-top: 1px solid var(--border-default);
  margin-top: 16px;
}
.sources > div {
  display: grid;
  gap: 2px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-default);
}
.sources b {
  font-weight: 600;
}
.sources span {
  color: var(--text-secondary);
}
.sources i {
  font-style: normal;
  font-size: 16px;
  color: var(--text-accent);
}
@media (min-width: 700px) {
  .sources > div {
    grid-template-columns: 1fr auto;
  }
  .sources span {
    grid-column: 1;
  }
  .sources i {
    grid-area: 1 / 2 / 3;
    align-self: center;
    text-align: end;
  }
}
.lost .doc-in {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding-top: 40px;
}
.lost .btn {
  margin-top: 24px;
}
.lost-ribbon {
  position: absolute;
  top: -104px;
  inset-inline-end: 12%;
  width: 56px;
  height: 320px;
  background: var(--ribbon);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 28px), 0 100%);
  animation: fall 1.2s var(--spring) both;
  transform-origin: 50% 0;
}
@keyframes fall {
  from {
    transform: translateY(-110%);
  }
}
