@font-face {
  font-family: Inter;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('fonts/source-serif-4-latin-wght-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans Hebrew';
  src: url('fonts/noto-sans-hebrew-hebrew-400-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #dbe5f4;
  --white: #fff;
  --text: #17243a;
  --muted: #39485b;
  --navy: #152e59;
  --blue: #255098;
  --tint: #d9e6fa;
  --secondary: #eaf1fc;
  --border: #9aafce;
  --gold: #e2a646;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font: 16px/1.58 Inter, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--text); }
main { min-height: 52vh; }
a { color: var(--blue); text-underline-offset: .19em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.wrap { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -12rem; z-index: 4; background: var(--white); padding: .8rem; }
.skip:focus { top: .75rem; }
.site-header { border-bottom: 3px solid var(--gold); background: linear-gradient(120deg, var(--navy) 25%, var(--blue)); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; padding: .55rem 0; }
.topbar a { color: var(--white); }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
.brand { text-decoration: none; font: 700 2rem/1 var(--serif); padding: .5rem 0; }
nav { display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; }
nav a { text-decoration: none; padding-block: .45rem; font-size: .93rem; }
nav a:hover, nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; }
h1, h2, h3, h4, h5 { font-family: var(--serif); line-height: 1.17; color: var(--navy); }
h1 { font-weight: 600; font-size: clamp(2.6rem, 7vw, 4.85rem); letter-spacing: -.042em; margin: 0; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 0 0 .8rem; }
h3 { font-size: 1.38rem; margin-top: 1.65rem; }
h4, h5 { font-size: 1.12rem; }
.page-head { padding: clamp(2rem, 5vw, 4rem) 0 1.6rem; max-width: 50rem; }
.page-head p { color: var(--muted); font-size: 1.13rem; margin: .9rem 0 0; max-width: 42rem; }
.page-head .button { margin-top: 1.3rem; }
.page-banner { position: relative; overflow: hidden; aspect-ratio: var(--crop-width) / var(--crop-height); border-radius: .35rem; margin-bottom: 1.5rem; }
.page-banner img {
  position: absolute;
  width: calc(177400% / var(--crop-width));
  height: auto;
  inset-inline-start: calc(-100% * var(--crop-x) / var(--crop-width));
  top: calc(-100% * var(--crop-y) / var(--crop-height));
}
.home-section { margin: 2.35rem 0; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0, 1fr)); gap: 1rem; }
.card { display: block; background: var(--white); border: 1px solid var(--border); padding: 1.1rem; border-radius: .35rem; text-decoration: none; }
.card h3 { margin: 0 0 .45rem; }
.card p { margin: 0; color: var(--muted); }
.card:hover { border-color: var(--navy); }
.card:hover h3 { text-decoration: underline; }
.panel { --panel-padding: clamp(1rem, 3vw, 1.6rem); background: var(--white); border: 1px solid var(--border); padding: var(--panel-padding); border-radius: .35rem; margin-bottom: 1rem; }
.today { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem 1rem; flex-wrap: wrap; border-left: 4px solid var(--gold); }
.today p { margin: 0; }
.today strong { font: 700 1.45rem var(--serif); color: var(--navy); }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 19rem),1fr)); gap: 1rem; align-items: start; }
.information-tools { align-items: stretch; grid-auto-rows: 1fr; }
.information-tools .panel { margin-bottom: 0; min-width: 0; }
#molad .month-year { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.article { max-width: 76ch; margin: 2.5rem auto; overflow-wrap: anywhere; }
.calculator-layout { display: grid; gap: clamp(1.25rem, 3vw, 2.75rem); align-items: start; }
.explanation-column .article { margin: 0 0 1.5rem; }
.explanation-column .article > :first-child { margin-top: 0; }
@media (min-width: 860px) {
  .calculator-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 13fr); }
}

.article p, .article ul, .article ol { margin: .75rem 0; }
.article h2 { margin-top: 1.55rem; }
.article th, .article td { border-bottom: 1px solid var(--border); padding: .45rem .65rem; text-align: start; }
.article .hebrew-month-table { font-size: .8rem; }
.article .hebrew-month-table :is(th, td) { padding: .3rem .32rem; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
label { display: inline-flex; flex-direction: column; gap: .35rem; vertical-align: middle; margin: .25rem .55rem .7rem 0; font-size: .94rem; }
label span, legend { font-weight: 600; }
label.check { display: flex; flex-direction: row; align-items: center; gap: .5rem; }
input, select, button { color: inherit; font: inherit; }
input:not([type="checkbox"]):not([type="radio"]), select { min-height: 2.6rem; padding: .4rem .55rem; border-radius: .25rem; border: 1px solid #718bb1; background: #fff; max-width: 100%; }
input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: var(--blue); }
fieldset { border: 1px solid var(--border); padding: .75rem; margin: .6rem 0; min-width: 0; }
button, .button { display: inline-block; background: var(--blue); border: 1px solid var(--blue); border-radius: .28rem; padding: .55rem .8rem; color: white; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { color: white; background: var(--navy); }
.calculator > button[type="submit"] { display: block; width: calc((100% + 2 * var(--panel-padding) + 2px) / 3); min-height: 2.75rem; margin: .55rem auto 0; padding-inline: .4rem; overflow-wrap: anywhere; }
.radio-choice { border-radius: .28rem; }
.radio-choice label { display: flex; flex-direction: row; align-items: center; gap: .7rem; min-height: 2.75rem; margin: 0; cursor: pointer; font-size: 1rem; }
.radio-choice input { flex: none; width: 1.5rem; height: 1.5rem; margin: 0; accent-color: var(--blue); }
.result:not(:empty) { margin-top: .9rem; }
.result-list { margin: 0; display: grid; grid-template-columns: minmax(8rem, 1fr) 2fr; gap: .45rem .9rem; }
.result-list dt, .result-list dd { padding: .32rem 0; margin: 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.result-list dt { font-weight: 650; }
.note { color: var(--muted); margin-bottom: 0; font-size: .9rem; }
.error { color: #96321e; }
.azkara-options { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: .65rem 1rem; }
.azkara-choice { flex: 1 1 11.5rem; margin: 0; border-radius: .28rem; }
.azkara-choice label { display: flex; flex-direction: row; align-items: center; gap: .45rem; min-height: 2rem; margin: 0; }
.azkara-choice input { accent-color: var(--blue); width: 1.1rem; height: 1.1rem; margin: 0; flex: none; }
.azkara-date { margin-block: .75rem; }
.date-fields { padding: 0; border: 0; }
.date-parts { display: grid; grid-template-columns: minmax(0, 4.2rem) minmax(0, 10rem) minmax(0, 6rem); gap: .55rem; }
.date-parts label { min-width: 0; margin-right: 0; }
.date-parts.month-year { grid-template-columns: minmax(0, 10rem) minmax(0, 6rem); }
.date-parts :is(input, select) { width: 100%; height: 2.6rem; }

.azkara-period { margin-block: .75rem; }
.azkara-period summary { cursor: pointer; color: var(--blue); }
.azkara-period fieldset { margin-top: .6rem; }
#fasts input[name="year"], .city-search input, .city-search button { height: 2.6rem; }
.city-picker { min-width: 0; }
.city-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .45rem; }
.city-search label { margin: 0; min-width: 0; }
.city-search input { width: 100%; }
.city-search button { padding-inline: .5rem; }
.city-picker .note { margin: .45rem 0; }
.city-picker .note:empty { display: none; }
.city-results { display: grid; gap: .25rem; list-style: none; padding: 0; margin: .45rem 0; }
.city-results button { width: 100%; text-align: left; }
.calendar-controls label { margin: 0; max-width: 100%; }
.calendar-location {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: clamp(1rem, 6vw, 5.5rem);
  align-items: center;
  width: min(100%, 57rem);
  margin: 1rem auto 0;
}
.calendar-region { margin: 0; color: var(--muted); font-size: .9rem; }
.calendar-region strong { display: block; color: var(--navy); }
.calendar-navigation {
  display: grid;
  grid-template-columns: minmax(5.5rem, 1fr) minmax(0, max-content) minmax(5.5rem, 1fr);
  align-items: center;
  column-gap: clamp(.6rem, 3vw, 3rem);
  margin: clamp(1.5rem, 6vw, 4.5rem) 0 .6rem;
  padding: 1rem .7rem;
  border-block: 1px solid var(--border);
}
.calendar-arrows { display: flex; align-items: center; }
.calendar-arrows:last-child { justify-content: flex-end; }
.calendar-arrows button {
  flex: 0 0 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: 700 2.35rem/1 var(--serif);
}
.calendar-arrows button:hover { color: var(--blue); background: var(--secondary); }
#month-status { margin: 0; text-align: center; text-transform: capitalize; font: 700 1.4rem/1.2 var(--serif); color: var(--navy); }

@media (max-width: 530px) {
  .calendar-location { grid-template-columns: 1fr; gap: .45rem; }
  .calendar-region strong { display: inline; }
  .calendar-navigation {
    grid-template-columns: minmax(4.5rem, 1fr) minmax(0, max-content) minmax(4.5rem, 1fr);
    column-gap: .45rem;
    padding: .65rem 0;
  }
  .calendar-arrows button { flex-basis: 2.25rem; font-size: 2rem; }
  #month-status { font-size: 1.17rem; }
}
#month-view {
  --event-festival: #f8e0a5;
  --event-fast: #e8d7f3;
  --event-new-month: #bfe7dd;
}
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.25rem;
  padding: 0;
  margin: .75rem .25rem 0;
  list-style: none;
  font-size: .875rem;
  color: var(--muted);
}
.calendar-legend li { display: flex; align-items: center; gap: .4rem; }
.legend-square { width: 1rem; height: 1rem; border: 1px solid var(--border); border-radius: .2rem; background: var(--event-fill); }
.month-grid { table-layout: fixed; }
.month-grid td, .month-grid th { padding: .22rem; text-align: center; }
.month-grid th { font-size: .82rem; }
.day { display: flex; background: var(--secondary); color: var(--text); border: 0; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: .15rem .42rem; width: 100%; min-height: 3rem; padding: .25rem; }

.day:not(.has-event):is(:hover, .selected-day) { background: var(--blue); color: var(--white); }
.hebrew-day { color: var(--muted); font-size: .78rem; }
.day:not(.has-event):is(:hover, .selected-day) .hebrew-day { color: var(--tint); }
.day.has-event { background: var(--event-fill); }
.day.has-event:hover { filter: brightness(.96); }
.day:focus-visible { outline: none; }
.day:focus-visible strong, .day.has-event.selected-day strong {
  text-decoration: underline;
  text-decoration-thickness: .13em;
  text-underline-offset: .2em;
}
.calendar-day { border-top: 1px solid var(--border); margin-top: 1rem; padding-top: 1rem; }
.calendar-day-heading { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; }
.calendar-day-heading h2 { flex: 1 1 14rem; margin: 0; }
.calendar-day-heading button { flex: none; margin-inline-start: auto; }
#calendar-day-events:not(:empty) { margin-top: .65rem; }
#calendar-day-events > dl:empty { display: none; }

.related { margin-bottom: 2rem; }
.site-footer { background: var(--navy); color: var(--white); padding: 1.8rem 0 1.1rem; margin-top: 3rem; }
.dedication { padding: .65rem 1rem; width: fit-content; max-width: 100%; margin-inline: auto; text-align: center; font-family: var(--serif); font-size: 1.08rem; }
.dedication p { margin: .15rem 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: .7rem 1.25rem; justify-content: center; padding-top: 1.1rem; }
.footer-links a { color: var(--white); font-size: .9rem; }
@media (max-width: 740px) {
  .topbar { align-items: start; flex-direction: column; gap: .15rem; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 490px) {
  .wrap { width: calc(100% - 1.5rem); }
  .cards { grid-template-columns: 1fr; }
  .panel { --panel-padding: .8rem; }
  .result-list { grid-template-columns: 1fr; gap: 0; }
  .result-list dt { border-bottom: 0; padding-bottom: 0; }
  .result-list dd { padding-top: 0; }
  .month-grid th, .month-grid td { padding: .1rem; }
  .day { align-items: center; flex-direction: column; gap: 0; min-height: 3.65rem; font-size: .85rem; }
  .hebrew-day { font-size: .72rem; }
}

.dedication [lang="he"] { font-family: "Noto Sans Hebrew", sans-serif; }

/* Écriture hébraïque du calendrier mensuel. */
.hebrew-day, .calendar-hebrew-title { font-family: "Noto Sans Hebrew", Arial, sans-serif; unicode-bidi: isolate; }
.calendar-hebrew-title { white-space: nowrap; }


/* Identité Kolashana : bandeau commun. */
.logo-strip {background:#fff; text-align:center; padding: 12px 16px; } .logo-strip img {display:block; width:min(420px,100%); height:auto; margin:auto;} .topbar {justify-content:center;} .topbar nav {justify-content:center;} @media(max-width:490px){.logo-strip img{width:min(280px,100%)} .topbar {align-items:center;}}
