/* RDG Events : habillage de /events/ et des pages d'événements (charte RDG Events).
   Copié dans public/assets/ par outils/vitrine.py. Polices hébergées sur le site (CSP). */
@font-face { font-family: "Fraunces RDG"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/fraunces-500.woff") format("woff"); }
@font-face { font-family: "Fraunces RDG"; font-weight: 400; font-style: italic; font-display: swap; src: url("/assets/fonts/fraunces-italic-400.woff") format("woff"); }
@font-face { font-family: "Jost RDG"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/jost-400.woff") format("woff"); }
@font-face { font-family: "Jost RDG"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/jost-500.woff") format("woff"); }

body.rdg {
  --g: #8C2332; --c: #F6EFE6; --o: #5C3A2C; --p: #D8C4A6; --b: #211817;
  --serif: "Fraunces RDG", Georgia, serif;
  --font: "Jost RDG", "Helvetica Neue", Arial, sans-serif;
  --sans: "Jost RDG", "Helvetica Neue", Arial, sans-serif;
  --bg: var(--c); --fg: var(--b); --muted: #7a655a; --line: #e4d8c8;
  background: var(--c); color: var(--b); font: 400 17px/1.6 var(--sans);
}
body.rdg ::selection { background: var(--g); color: var(--c); }
body.rdg h1, body.rdg h2, body.rdg h3 { font-family: var(--serif); font-weight: 500; text-transform: none; letter-spacing: -.01em; }
body.rdg em { font-style: italic; font-weight: 400; }

/* En-tête */
.rdg .rdg-header { background: rgba(246,239,230,.94); padding-top: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.rdg-logo { display: block; line-height: 0; }
.rdg-logo img { height: 92px; width: auto; }
.rdg .site-header nav { align-items: center; }
.rdg .site-header nav a, .rdg .lang-switch { font: 500 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--b); }
.rdg .site-header nav a:hover { color: var(--g); text-decoration: none; }
.rdg .site-header nav a.rdg-nav-cta { background: var(--g); color: var(--c); padding: 11px 18px; border-radius: 999px; }
.rdg .site-header nav a.rdg-nav-cta:hover { background: var(--o); color: var(--c); }

/* Éléments communs */
.rdg-k { font: 500 .78rem/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--g); margin-bottom: 14px; }
.rdg-btn { display: inline-block; font: 500 .82rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; background: var(--g); color: var(--c); border: 1.5px solid var(--g); padding: 16px 26px; border-radius: 999px; cursor: pointer; }
.rdg-btn:hover { background: var(--o); border-color: var(--o); }
.rdg-btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.rdg-btn-ghost:hover { background: var(--c); color: var(--g); border-color: var(--c); }
.rdg-btn:disabled { opacity: .45; cursor: default; }
.rdg-lien { color: var(--g); text-decoration: none; border-bottom: 1px solid currentColor; }
.rdg-arch { width: 100%; height: auto; object-fit: cover; border-radius: 999px 999px 0 0; aspect-ratio: 2 / 3; }
.rdg-lumiere { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--p); margin: 0 auto 16px; }
.rdg-section { padding: clamp(64px, 11vh, 120px) var(--gutter); }
.rdg-section h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.05; margin-bottom: 22px; max-width: 18ch; }
.rdg-intro { max-width: 60ch; font-size: 1.08rem; color: #4a3a33; margin-bottom: 40px; }

/* Ouverture */
.rdg-hero {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(32px, 6vw, 96px);
  padding: clamp(56px, 10vh, 110px) var(--gutter) clamp(64px, 10vh, 120px);
  background: var(--g) url("/assets/echos.svg") no-repeat 112% 100% / auto 118%; color: var(--c);
  min-height: min(88vh, 820px);
}
/* Incrustation très légère (photo des tefillin) dans la moitié gauche du bandeau */
.rdg-hero { position: relative; isolation: isolate; }
.rdg-hero::before {
  content: ""; position: absolute; inset: 0 40% 0 0; z-index: -1; pointer-events: none;
  background: url("/images/tefillin-yossi-nisenbaum-uibkxbxab2/mred-03647-1600.jpg") center / cover no-repeat;
  opacity: .09; mix-blend-mode: luminosity;
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent); mask-image: linear-gradient(90deg, #000 45%, transparent);
}
.rdg-hero .rdg-k { color: var(--p); }
.rdg-hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 1.02; }
.rdg-hero h1 em { color: var(--p); }
.rdg-lead { margin-top: 26px; max-width: 46ch; font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: #f1e3d6; }
.rdg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.rdg-hero .rdg-btn:not(.rdg-btn-ghost) { background: var(--c); color: var(--g); border-color: var(--c); }
.rdg-hero .rdg-btn:not(.rdg-btn-ghost):hover { background: var(--p); border-color: var(--p); }
.rdg-hero-fig { max-width: 440px; justify-self: center; width: 100%; }
.rdg-hero-fig .rdg-arch { outline: 1.5px solid var(--p); outline-offset: 10px; }

/* Galerie (grille gérée par choisir-accueil.ps1) */
.rdg .series-grid a { background: var(--o); }

/* Prestations */
.rdg-prest { background: #efe4d6; }
.rdg-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 16px; }
.rdg-card { background: var(--c); padding: 30px 26px 32px; border-radius: 120px 120px 6px 6px; text-align: center; }
.rdg-ico { width: 74px; height: 74px; margin: 8px auto 18px; display: block; }
.rdg-card h3 { font-size: 1.35rem; line-height: 1.15; margin-bottom: 12px; color: var(--g); }
.rdg-card p { font-size: .96rem; color: #4a3a33; }
.rdg-arches { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); margin: clamp(48px, 8vh, 80px) auto 0; max-width: 980px; }
.rdg-note { text-align: center; font: italic 400 clamp(1.15rem, 2vw, 1.5rem)/1.4 var(--serif); color: var(--o); max-width: 40ch; margin: 44px auto 0; }

/* Communauté : mosaïque (photos des soirées Chabad et pizza) */
.rdg-mosaique { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 17vw, 250px); grid-auto-flow: dense; gap: 10px; }
.rdg-m { margin: 0; overflow: hidden; background: var(--o); }
.rdg-m img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.rdg-m-big { grid-column: span 2; grid-row: span 2; border-radius: 999px 999px 0 0; }
.rdg-m-tall { grid-row: span 2; }
.rdg-m-wide { grid-column: span 2; }

/* Déroulé */
.rdg-deroule { background: var(--o) url("/assets/treillis.svg") repeat 0 0 / 72px; color: var(--c); position: relative; isolation: isolate; }
.rdg-deroule::before { content: ""; position: absolute; inset: 0; background: rgba(92,58,44,.88); z-index: -1; }
.rdg-deroule .rdg-k { color: var(--p); }
.rdg-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 18px; }
.rdg-steps li { background: rgba(33,24,23,.35); border: 1px solid rgba(216,196,166,.45); padding: 30px 28px; border-radius: 6px; }
.rdg-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--p); color: var(--o); font: 500 1.2rem/1 var(--serif); margin-bottom: 18px; }
.rdg-steps h3 { font-size: 1.45rem; margin-bottom: 10px; }
.rdg-steps p { color: #eadccd; font-size: .98rem; }

/* À propos */
.rdg-apropos { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; background: var(--g); color: var(--c); }
.rdg-apropos .rdg-k { color: var(--p); }
.rdg-apropos p { max-width: 58ch; margin-bottom: 14px; color: #f1e3d6; }
.rdg-apropos .rdg-lien { color: var(--c); }
.rdg-apropos-logo { width: clamp(100px, 13vw, 150px); height: auto; margin-left: clamp(0px, 4vw, 60px); }

/* Contact */
.rdg .contact-form label { font: 500 .8rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--o); }
.rdg .contact-form input, .rdg .contact-form select, .rdg .contact-form textarea { background: #fffaf4; border: 1px solid #d9c9b4; border-radius: 6px; font: 400 1rem/1.4 var(--sans); color: var(--b); letter-spacing: 0; text-transform: none; }
.rdg .contact-form input:focus, .rdg .contact-form select:focus, .rdg .contact-form textarea:focus { outline: 2px solid var(--g); outline-offset: 1px; }
.rdg .cf-consent { color: var(--muted); font-size: .88rem; }
.rdg .contact-links a { font: italic 400 clamp(1.3rem, 2.6vw, 1.8rem)/1.3 var(--serif); color: var(--g); text-decoration-thickness: 1px; }

/* Pied de page */
.rdg .rdg-footer { background: var(--b); color: #cdbba5; align-items: center; gap: 20px 32px; padding: 40px var(--gutter); font-weight: 400; }
.rdg-footer-logo { width: 42px; height: auto; }
.rdg-footer-txt { flex: 1; min-width: 240px; }
.rdg-footer-txt p + p { margin-top: 4px; }
.rdg .rdg-footer a { color: var(--c); }
.rdg .footer-links a:hover { color: var(--p); }

/* Pages d'événements */
.rdg .reportage h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); line-height: 1.02; letter-spacing: -.015em; max-width: 20ch; color: var(--g); }
.rdg .crumbs, .rdg .reportage-meta { font: 500 .8rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rdg .crumbs a { color: var(--g); font-weight: 500; }
.rdg .reportage-meta { margin-top: 20px; }
.rdg .reportage-intro { font-size: 1.12rem; color: #4a3a33; }

/* Plein écran */
.rdg .lightbox { background: rgba(246,239,230,.98); color: var(--b); }
.rdg .lb-close, .rdg .lb-nav { font-family: var(--serif); font-weight: 500; color: var(--g); }
.rdg .lightbox figcaption { color: var(--o); }

@media (max-width: 1000px) {
  .rdg-cards { grid-template-columns: repeat(2, 1fr); }
  .rdg-steps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .rdg-logo img { height: 64px; }
  .rdg .site-header nav a:not(.rdg-nav-cta):not(.lang-switch) { display: none; }
  .rdg-hero { grid-template-columns: 1fr; min-height: 0; background-size: auto 70%; }
  .rdg-hero::before { inset: 0 0 45% 0; -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent); mask-image: linear-gradient(180deg, #000 50%, transparent); }
  .rdg-hero-fig { max-width: 280px; }
  .rdg-cards { grid-template-columns: 1fr; }
  .rdg-mosaique { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 6px; }
  .rdg-arches { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .rdg-apropos { grid-template-columns: 1fr; }
  .rdg-apropos-logo { margin: 0; width: 90px; }
}
