/* =========================================================================
   Mosquée Islah · Montreuil · feuille de style
   Système : minimalisme chaleureux, vert profond (identité de la façade
   et de Mawaqit #3e5a47) + or, motifs géométriques islamiques discrets.
   Typo : Cormorant Garamond (titres) · Inter (texte/UI) · Noto Naskh Arabic.
   ========================================================================= */

:root {
  /* Couleurs sémantiques (clair) */
  --color-primary: #1f4632;
  --color-primary-hover: #173826;
  --color-on-primary: #ffffff;
  --color-accent: #a16207;          /* or, AA sur blanc */
  --color-accent-soft: #d9b45a;     /* or clair, réservé aux fonds sombres */
  --color-on-accent: #1a1405;
  --color-background: #faf7f0;
  --color-surface: #ffffff;
  --color-tint: #f2ede1;
  --color-foreground: #17231c;
  --color-muted-foreground: #4a5a51;
  --color-border: #e3dccb;
  --color-ring: #a16207;
  --color-dark: #12241a;
  --color-dark-2: #183022;
  --color-on-dark: #f4f1e8;
  --color-on-dark-muted: #c9d2c8;
  --color-destructive: #b42318;

  /* Typo */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "Noto Naskh Arabic", "Amiri", serif;

  /* Espacements (densité aérée) */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(18 36 26 / .06), 0 1px 1px rgb(18 36 26 / .04);
  --shadow: 0 10px 30px -12px rgb(18 36 26 / .18), 0 2px 6px rgb(18 36 26 / .06);
  --shadow-lg: 0 30px 60px -20px rgb(0 0 0 / .45);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 150ms;
  --dur: 240ms;
  --dur-slow: 480ms;

  --header-h: 72px;
  --z-header: 40;
  --z-menu: 50;

  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23d9b45a' stroke-width='1'%3E%3Crect x='28' y='28' width='40' height='40'/%3E%3Crect x='28' y='28' width='40' height='40' transform='rotate(45 48 48)'/%3E%3Ccircle cx='48' cy='48' r='9'/%3E%3Cpath d='M0 0l20 20M96 0L76 20M0 96l20-20M96 96L76 76'/%3E%3C/g%3E%3C/svg%3E");

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #8cc7a3;
    --color-primary-hover: #a6d6b8;
    --color-on-primary: #0d1c14;
    --color-accent: #e0bc63;
    --color-on-accent: #1a1405;
    --color-background: #0d1712;
    --color-surface: #13221a;
    --color-tint: #101d16;
    --color-foreground: #ecf0ea;
    --color-muted-foreground: #a9b8ae;
    --color-border: #24382c;
    --color-ring: #e0bc63;
    --color-dark: #0a140f;
    --color-dark-2: #0f1d15;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
    --shadow: 0 10px 30px -12px rgb(0 0 0 / .6);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-foreground);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[lang="ar"] { font-family: var(--font-ar); }

:focus-visible { outline: 3px solid var(--color-ring); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--color-surface); color: var(--color-foreground);
  padding: 12px 18px; border-radius: var(--radius-sm); box-shadow: var(--shadow);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--space-4); }
@media (min-width: 768px) { .container { padding-inline: var(--space-6); } }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--color-primary); --btn-fg: var(--color-on-primary); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: .975rem; letter-spacing: .005em; text-decoration: none;
  cursor: pointer; touch-action: manipulation;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.btn:hover { box-shadow: var(--shadow); }
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .925rem; }
.btn--primary:hover { --btn-bg: var(--color-primary-hover); }
.btn--gold { --btn-bg: #d9b45a; --btn-fg: #1a1405; }
.btn--gold:hover { --btn-bg: #e6c674; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--color-primary); --btn-bd: currentColor; }
.btn--outline:hover { --btn-bg: var(--color-primary); --btn-fg: var(--color-on-primary); --btn-bd: var(--color-primary); }
.btn--ghost-light { --btn-bg: rgb(255 255 255 / .06); --btn-fg: #fff; --btn-bd: rgb(255 255 255 / .45); }
.btn--ghost-light:hover { --btn-bg: rgb(255 255 255 / .14); --btn-bd: #fff; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 999px; border: 1.5px solid var(--color-border); background: var(--color-surface);
  cursor: pointer; transition: border-color var(--dur-fast), background-color var(--dur-fast), transform var(--dur-fast);
}
.icon-btn:hover:not(:disabled) { border-color: var(--color-accent); }
.icon-btn:active:not(:disabled) { transform: scale(.94); }
.icon-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Bandeau flash ---------- */
.flash { background: var(--color-dark); color: var(--color-on-dark); font-size: .925rem; border-bottom: 1px solid rgb(217 180 90 / .25); }
.flash__inner { display: flex; gap: 12px; align-items: flex-start; padding-block: 10px; }
.flash .icon { color: #d9b45a; margin-top: 2px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--color-background) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner { display: flex; align-items: center; gap: var(--space-5); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; margin-right: auto; }
.brand__mark { width: 38px; height: 38px; color: var(--color-accent); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: .01em; color: var(--color-primary); }
.brand__ar { font-size: .95rem; color: var(--color-muted-foreground); }

.nav__list { display: flex; gap: 4px; }
.nav__list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-weight: 500; font-size: .95rem; text-decoration: none; color: var(--color-muted-foreground);
  border-radius: 999px; transition: color var(--dur-fast), background-color var(--dur-fast);
}
.nav__list a:hover { color: var(--color-foreground); background: var(--color-tint); }
.nav__list a[aria-current="true"] { color: var(--color-primary); background: var(--color-tint); }
.site-header__actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 999px;
  border: 1.5px solid var(--color-border); background: var(--color-surface); cursor: pointer;
  place-items: center;
}
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: var(--z-menu);
    background: var(--color-background); border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav__list { flex-direction: column; padding: 12px 16px 20px; gap: 2px; }
  .nav__list a { width: 100%; font-size: 1.05rem; padding: 0 16px; min-height: 52px; border-radius: 12px; }
}
@media (max-width: 479px) {
  .site-header__actions .btn span { display: none; }
  .site-header__actions .btn { width: 44px; padding: 0; }
  .brand__name { font-size: 1.25rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--color-on-dark); background: var(--color-dark); }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 85% 10%, rgb(217 180 90 / .16), transparent 55%),
    linear-gradient(100deg, rgb(10 22 15 / .96) 0%, rgb(14 31 21 / .9) 45%, rgb(14 31 21 / .72) 100%);
}
.hero__pattern {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--pattern); background-size: 96px 96px; opacity: .09;
  -webkit-mask-image: linear-gradient(to left, #000 10%, transparent 80%);
          mask-image: linear-gradient(to left, #000 10%, transparent 80%);
}
.hero__pattern--soft { opacity: .06; }
.hero__inner {
  display: grid; gap: var(--space-7); align-items: center;
  padding-block: var(--space-8) var(--space-8);
  min-height: min(760px, calc(100dvh - var(--header-h)));
}
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.15fr .85fr; padding-block: var(--space-9); }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: var(--space-3);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; flex: none; background: currentColor; transform: rotate(45deg); }
.eyebrow--light { color: #d9b45a; }
.hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3rem, 2rem + 5vw, 5.5rem); line-height: .98; letter-spacing: -.01em;
}
.hero__title-ar { display: block; width: fit-content; margin-top: 12px; font-size: .52em; color: #d9b45a; font-weight: 500; line-height: 1.6; }
.hero__lead { margin-top: var(--space-5); max-width: 58ch; font-size: 1.125rem; color: var(--color-on-dark-muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-6); }

/* Carte "prochaine prière" */
.next-card {
  position: relative; padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgb(255 255 255 / .1), rgb(255 255 255 / .04));
  border: 1px solid rgb(217 180 90 / .35);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.next-card::after {
  content: ""; position: absolute; inset: 8px; border-radius: calc(var(--radius-lg) - 8px);
  border: 1px solid rgb(217 180 90 / .14); pointer-events: none;
}
.next-card__date { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: .925rem; color: var(--color-on-dark-muted); }
.dot { width: 4px; height: 4px; border-radius: 50%; background: #d9b45a; }
.next-card__label { margin-top: var(--space-5); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #d9b45a; }
.next-card__prayer { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 6px; }
.next-card__name { font-family: var(--font-display); font-weight: 600; font-size: 2.6rem; line-height: 1.1; }
.next-card__ar { font-size: 1.6rem; color: #d9b45a; }
.next-card__time { margin-top: 4px; font-size: clamp(3.5rem, 2.5rem + 4vw, 5rem); font-weight: 600; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.next-card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid rgb(255 255 255 / .14); color: var(--color-on-dark-muted); }
.next-card__meta strong { color: #fff; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--space-8); }
@media (min-width: 768px) { .section { padding-block: var(--space-9); } }
.section--tint { background: var(--color-tint); }
.section--dark { background: var(--color-dark); color: var(--color-on-dark); overflow: hidden; isolation: isolate; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4) var(--space-6); margin-bottom: var(--space-7); }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section__head--center .section__lead { margin-inline: auto; }
.section__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3.25rem); line-height: 1.05; color: var(--color-primary); }
.section__title--light { color: #fff; }
.section__lead { margin-top: var(--space-4); max-width: 62ch; font-size: 1.075rem; color: var(--color-muted-foreground); }
.section__lead--light { color: var(--color-on-dark-muted); }
.note { margin-top: var(--space-5); font-size: .925rem; color: var(--color-muted-foreground); }
.muted { color: var(--color-muted-foreground); }

/* Indicateur de synchro */
.sync { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--color-muted-foreground); padding: 8px 14px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface); }
.sync__dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa59e; }
.sync.is-live .sync__dot { background: #2f9e5b; box-shadow: 0 0 0 0 rgb(47 158 91 / .5); animation: pulse 2.4s var(--ease-out) infinite; }
.sync.is-stale .sync__dot { background: #c27c0e; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(47 158 91 / .45); } 80%, 100% { box-shadow: 0 0 0 9px rgb(47 158 91 / 0); } }

/* ---------- Cartes de prière ---------- */
.prayers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
@media (min-width: 640px) { .prayers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); } }
@media (min-width: 1024px) { .prayers { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.prayer {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  min-height: 188px; padding: var(--space-5) var(--space-4);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur);
}
.prayer__icon { width: 26px; height: 26px; color: var(--color-accent); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.prayer__name { font-weight: 600; font-size: 1.025rem; }
.prayer__ar { align-self: flex-start; font-size: 1rem; color: var(--color-muted-foreground); line-height: 1.4; }
.prayer__time { margin-top: auto; font-size: 2rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.prayer__iqama { font-size: .875rem; color: var(--color-muted-foreground); font-variant-numeric: tabular-nums; }
.prayer__badge {
  position: absolute; top: 12px; right: 12px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; background: #d9b45a; color: #1a1405;
}
.prayer.is-past .prayer__time { color: var(--color-muted-foreground); }
.prayer.is-next {
  background: var(--color-dark); color: var(--color-on-dark); border-color: #d9b45a;
  box-shadow: 0 18px 40px -18px rgb(18 36 26 / .6), 0 0 0 1px #d9b45a inset;
  transform: translateY(-4px);
}
.prayer.is-next .prayer__ar, .prayer.is-next .prayer__iqama { color: var(--color-on-dark-muted); }
.prayer.is-next .prayer__icon { color: #d9b45a; }
.prayer--skeleton { background: linear-gradient(100deg, var(--color-surface) 30%, var(--color-tint) 50%, var(--color-surface) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.error-box { margin-top: var(--space-5); padding: var(--space-5); border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--color-destructive) 40%, transparent); background: color-mix(in srgb, var(--color-destructive) 7%, var(--color-surface)); }
.error-box__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-4); }

/* ---------- Vendredi ---------- */
.friday { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 1024px) { .friday { grid-template-columns: 1fr 1.1fr; } }
.friday__next { margin-top: var(--space-5); font-weight: 600; color: var(--color-primary); }
.friday__slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.slot {
  display: flex; flex-direction: column; gap: 6px; padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.slot::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #d9b45a, var(--color-accent)); }
.slot__label { font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted-foreground); }
.slot__time { font-family: var(--font-display); font-weight: 600; font-size: clamp(3rem, 2.4rem + 2.5vw, 4.25rem); line-height: 1; color: var(--color-primary); font-variant-numeric: tabular-nums lining-nums; }
.slot__time--sm { font-size: 2.25rem; }
.slot--soft { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; padding-block: var(--space-5); box-shadow: none; }
.slot--soft::before { display: none; }
.slot__hint { font-size: .875rem; color: var(--color-muted-foreground); }

/* ---------- Calendrier ---------- */
.month-nav { display: flex; align-items: center; gap: 12px; }
.month-nav__label { min-width: 11ch; text-align: center; font-weight: 600; font-size: 1.05rem; text-transform: capitalize; }
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); box-shadow: var(--shadow-sm); max-height: 640px; overscroll-behavior: contain; }
.cal { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; min-width: 560px; }
.cal th, .cal td { padding: 12px 14px; text-align: center; white-space: nowrap; }
.cal thead th { position: sticky; top: 0; z-index: 1; background: var(--color-tint); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted-foreground); border-bottom: 1px solid var(--color-border); }
.cal tbody th { text-align: left; font-weight: 500; }
.cal tbody tr + tr > * { border-top: 1px solid var(--color-border); }
.cal tbody tr:hover { background: var(--color-tint); }
.cal .is-friday th { color: var(--color-accent); font-weight: 600; }
.cal .is-today { background: var(--color-dark) !important; color: var(--color-on-dark); }
.cal .is-today th { color: #d9b45a; }
.cal__tag { display: inline-block; margin-left: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: #d9b45a; color: #1a1405; }

/* ---------- Projet ---------- */
.project { position: relative; display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 1024px) { .project { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
.project__media { position: relative; }
.project__media img { width: 100%; aspect-ratio: 1600 / 877; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid rgb(217 180 90 / .3); }
.project__credit { margin-top: 10px; font-size: .8rem; color: var(--color-on-dark-muted); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); margin: var(--space-6) 0 0; }
.stat { padding: var(--space-4); border-radius: var(--radius); background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1); }
.stat dt { font-size: .78rem; color: var(--color-on-dark-muted); letter-spacing: .02em; }
.stat dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: #d9b45a; line-height: 1.1; }
.steps { margin-top: var(--space-6); display: grid; gap: 12px; }
.step { display: flex; align-items: center; gap: 12px; color: var(--color-on-dark-muted); }
.step strong { color: #fff; font-weight: 600; }
.step__icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none; }
.step__icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.step--done .step__icon { background: #2f7a50; color: #fff; }
.step--current .step__icon { background: #d9b45a; color: #1a1405; }
.step--current .step__icon svg { fill: currentColor; }
.donate { margin-top: var(--space-6); padding: var(--space-5); border-radius: var(--radius-lg); background: rgb(217 180 90 / .08); border: 1px solid rgb(217 180 90 / .35); }
.donate__title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: #fff; }
.donate__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-4); }
.donate__alt { margin-top: var(--space-4); font-size: .95rem; color: var(--color-on-dark-muted); }
.donate__alt strong { color: #fff; font-weight: 600; }

/* ---------- Services ---------- */
.services { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.service {
  padding: var(--space-5); border-radius: var(--radius); background: var(--color-surface);
  border: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur);
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-border)); }
.service__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--color-tint); color: var(--color-accent); margin-bottom: var(--space-4); }
.service__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 1.075rem; font-weight: 600; }
.service p { margin-top: 6px; color: var(--color-muted-foreground); font-size: .95rem; }

/* ---------- Direct ---------- */
.live { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 1024px) { .live { grid-template-columns: .9fr 1.1fr; } }
.live__copy .btn { margin-top: var(--space-5); }
.live__player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.live__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live__poster { position: absolute; inset: 0; padding: 0; border: 0; cursor: pointer; background: #000; }
.live__poster img { width: 100%; height: 100%; object-fit: cover; opacity: .7; transition: opacity var(--dur), transform var(--dur-slow) var(--ease-out); }
.live__poster:hover img { opacity: .85; transform: scale(1.02); }
.live__play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: #d9b45a; color: #1a1405; box-shadow: 0 12px 30px rgb(0 0 0 / .4); transition: transform var(--dur) var(--ease-out); }
.live__poster:hover .live__play { transform: scale(1.06); }
.live__play svg { width: 34px; height: 34px; fill: currentColor; margin-left: 4px; }
.live__badge { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgb(0 0 0 / .6); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.live__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; }

/* ---------- Venir ---------- */
.visit { display: grid; gap: var(--space-5); }
@media (min-width: 1024px) { .visit { grid-template-columns: 1fr 1.15fr; align-items: stretch; } }
.visit__cards { display: grid; gap: var(--space-4); }
.info-card { display: flex; gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius); background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.info-card__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--color-tint); color: var(--color-accent); }
.info-card__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.info-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.info-card p + p { margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--color-border); font-size: .9rem; font-weight: 500; text-decoration: none; transition: border-color var(--dur-fast), background-color var(--dur-fast); }
.chip:hover { border-color: var(--color-accent); background: var(--color-tint); }
.map { position: relative; min-height: 340px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow); background: var(--color-tint); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__load { position: absolute; inset: 0; padding: 0; border: 0; cursor: pointer; background: none; }
.map__load img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.map__load:hover img { transform: scale(1.03); }
.map__cta { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--color-surface); color: var(--color-foreground); font-weight: 600; box-shadow: var(--shadow); white-space: nowrap; }

/* ---------- Contact ---------- */
.contacts { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); max-width: 920px; margin-inline: auto; }
@media (min-width: 640px) { .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-5); min-height: 88px; border-radius: var(--radius); background: var(--color-surface); border: 1px solid var(--color-border); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur), border-color var(--dur); }
.contact:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-border)); }
.contact__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--color-primary); color: var(--color-on-primary); }
.contact__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact__label { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted-foreground); font-weight: 600; }
.contact__value { display: block; font-weight: 600; overflow-wrap: break-word; }
.contact > span:last-child { min-width: 0; }

/* ---------- Pied de page ---------- */
.footer { background: var(--color-dark); color: var(--color-on-dark-muted); padding-block: var(--space-7); font-size: .95rem; }
.footer__inner { display: grid; gap: var(--space-4); }
.footer__brand { display: flex; gap: var(--space-4); align-items: flex-start; }
.footer__brand .brand__mark { color: #d9b45a; }
.footer__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: #fff; margin-bottom: 4px; }
.footer__small { font-size: .875rem; }
.footer a { color: #e6c674; }

/* ---------- Apparition au défilement ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .reveal-group > * { opacity: 0; transform: translateY(14px) scale(.98); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
  .js .reveal-group.is-visible > * { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .hero, .flash, #projet, #services, #direct, #infos, #contact, .footer { display: none !important; }
  .table-wrap { max-height: none; overflow: visible; box-shadow: none; }
}
