/* ═══════════════════════════════════════════════
   RITE BRITH ISRAËL — style.css
════════════════════════════════════════════════ */

:root {
  --or:         #C9A84C;
  --or-light:   #E8C96A;
  --or-dark:    #9A7535;
  --noir:       #080808;
  --noir-2:     #111111;
  --noir-3:     #1a1a1a;
  --blanc:      #F5F0E8;
  --gris:       #888;
  --font-titre: 'Cinzel Decorative', serif;
  --font-sous:  'Cinzel', serif;
  --font-corps: 'EB Garamond', serif;
  --rayon:      4px;
  --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--noir); color: var(--blanc); font-family: var(--font-corps); line-height: 1.7; overflow-x: hidden; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--or); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--or-light); }
ul { list-style: none; }

/* ─── NAVBAR ──────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 2rem;
  background: rgba(8,8,8,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(201,168,76,0.1); }
.navbar__brand   { display: flex; align-items: center; gap: 0.75rem; }
.navbar__logo    { width: 42px; height: 42px; object-fit: contain; border-radius: 50%; }
.navbar__logo[src=""] { display: none; }
.navbar__title   { display: flex; flex-direction: column; line-height: 1.2; }
.navbar__name    { font-family: var(--font-sous); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; color: var(--or); }
.navbar__hebrew  { font-size: 0.75rem; color: var(--or-dark); direction: rtl; }

.navbar__burger  { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; z-index: 1100; }
.navbar__burger span { display: block; width: 26px; height: 2px; background: var(--or); transition: transform 0.3s ease, opacity 0.3s ease; transform-origin: center; }
.navbar__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger.is-open span:nth-child(2) { opacity: 0; }
.navbar__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.navbar__menu ul { display: flex; align-items: center; gap: 0.25rem; }
.nav-link { font-family: var(--font-sous); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blanc); padding: 0.4rem 0.7rem; border-radius: var(--rayon); transition: color var(--transition), background var(--transition); }
.nav-link:hover      { color: var(--or); background: rgba(201,168,76,0.08); }
.nav-link--tuilage   { color: var(--or-dark); }
.nav-link--cta       { background: var(--or); color: var(--noir) !important; font-weight: 600; }
.nav-link--cta:hover { background: var(--or-light); color: var(--noir) !important; }

.navbar__overlay              { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 999; }
.navbar__overlay.is-visible   { display: block; }

@media (max-width: 900px) {
  .navbar__burger { display: flex; }
  .navbar__menu   { position: fixed; top: 0; right: -100%; width: min(80vw, 300px); height: 100dvh; background: var(--noir-2); border-left: 1px solid rgba(201,168,76,0.2); z-index: 1050; transition: right 0.35s cubic-bezier(0.4,0,0.2,1); padding-top: 5rem; }
  .navbar__menu.is-open { right: 0; }
  .navbar__menu ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 0 1.5rem; }
  .navbar__menu li { width: 100%; }
  .nav-link        { display: block; width: 100%; font-size: 0.85rem; padding: 0.85rem 0.5rem; border-bottom: 1px solid rgba(201,168,76,0.08); }
}

/* ─── HERO ────────────────────────────────────── */
.hero {
  min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 8rem 2rem 4rem;
  position: relative; overflow-x: hidden; overflow-y: visible;
  background: radial-gradient(ellipse at 50% 60%, #1a0a00 0%, #080808 70%);
  width: 100%; box-sizing: border-box;
}
.hero__stars { position: absolute; inset: 0; pointer-events: none; }
.star { position: absolute; background: #fff; border-radius: 50%; animation: twinkle var(--dur,3s) ease-in-out infinite; animation-delay: var(--delay,0s); }
@keyframes twinkle { 0%,100%{opacity:var(--op-min,.1)} 50%{opacity:var(--op-max,.8)} }

.hero__banner { position: absolute; top: 5.5rem; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.banner__text { display: inline-block; font-family: var(--font-sous); font-size: 0.72rem; letter-spacing: 0.25em; color: var(--or); border: 1px solid rgba(201,168,76,0.35); padding: 0.4rem 1.5rem; animation: fade-up 2s ease forwards; opacity: 0; }

.hero__seal     { margin-bottom: 2.5rem; animation: fade-up 1.5s ease forwards; opacity: 0; }
.hero__seal-img { width: 280px; height: 280px; object-fit: contain; border-radius: 0; filter: drop-shadow(0 0 40px rgba(201,168,76,0.5)); margin: 0 auto; display: block; }
.hero__seal-img[src=""] { display: none; }

.hero__title    { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; opacity: 0; animation: fade-up 1.8s ease forwards; animation-delay: 0.3s; }
.hero__title-fr { font-family: var(--font-titre); font-size: clamp(2rem,6vw,4rem); color: var(--or); letter-spacing: 0.04em; text-shadow: 0 0 40px rgba(201,168,76,0.3); }
.hero__title-he { font-family: var(--font-corps); font-size: clamp(1.2rem,3vw,1.8rem); color: var(--or-dark); }

.hero__subtitle { font-size: clamp(1rem,2vw,1.15rem); font-style: italic; color: var(--blanc); max-width: 600px; margin-bottom: 2.5rem; opacity: 0; animation: fade-up 1.8s ease forwards; animation-delay: 0.6s; line-height: 1.8; }
.hero__cta      { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; opacity: 0; animation: fade-up 1.8s ease forwards; animation-delay: 0.9s; }
.hero__ornament { margin-top: 3rem; display: flex; gap: 1rem; align-items: center; opacity: 0; animation: fade-up 1.8s ease forwards; animation-delay: 1.2s; }
.ornament__star    { color: var(--or); font-size: 1rem; }
.ornament__star--sm{ font-size: 0.6rem; color: var(--or-dark); }
@keyframes fade-up { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

/* ─── BUTTONS ─────────────────────────────────── */
.btn { font-family: var(--font-sous); font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; padding: 0.85rem 2rem; border-radius: var(--rayon); cursor: pointer; border: 2px solid transparent; transition: all var(--transition); display: inline-block; }
.btn--primary       { background: var(--or); color: var(--noir); border-color: var(--or); }
.btn--primary:hover { background: var(--or-light); border-color: var(--or-light); color: var(--noir); box-shadow: 0 0 20px rgba(201,168,76,0.4); }
.btn--outline       { background: transparent; color: var(--or); border-color: var(--or); }
.btn--outline:hover { background: rgba(201,168,76,0.1); color: var(--or-light); }
.btn--lg { padding: 1rem 2.5rem; font-size: 0.85rem; }
.btn--sm { padding: 0.5rem 1.2rem; font-size: 0.7rem; }

/* ─── SECTIONS ────────────────────────────────── */
.section              { padding: 5rem 2rem; }
.section--dark        { background: var(--noir-2); }
.section--gold-border { background: var(--noir); border-top: 1px solid rgba(201,168,76,0.2); border-bottom: 1px solid rgba(201,168,76,0.2); }
.section--tuilage     { background: var(--noir-3); }
.container            { max-width: 1100px; margin: 0 auto; }
.container--narrow    { max-width: 680px; margin: 0 auto; }
.section__title       { font-family: var(--font-sous); font-size: clamp(1.4rem,3vw,2rem); color: var(--or); text-align: center; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.75rem; }
.section__divider     { width: 80px; height: 1px; background: linear-gradient(to right, transparent, var(--or), transparent); margin: 0 auto 2.5rem; }
.section__intro       { text-align: center; font-size: 1.05rem; color: var(--blanc); max-width: 720px; margin: 0 auto 2.5rem; line-height: 1.8; }

/* ─── CARDS RITE ──────────────────────────────── */
.cards-grid  { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 1.5rem; }
.card        { background: rgba(201,168,76,0.04); border: 1px solid rgba(201,168,76,0.15); border-radius: 8px; padding: 2rem 1.5rem; text-align: center; transition: border-color var(--transition), transform var(--transition); }
.card:hover  { border-color: rgba(201,168,76,0.4); transform: translateY(-4px); }
.card__icon  { font-size: 2rem; color: var(--or); margin-bottom: 1rem; display: block; }
.card__title { font-family: var(--font-sous); font-size: 0.9rem; letter-spacing: 0.1em; color: var(--or); text-transform: uppercase; margin-bottom: 0.75rem; }
.card__text  { font-size: 0.95rem; color: #ccc; line-height: 1.7; }

/* ─── CHEFS DE L'ORDRE ────────────────────────── */
.chefs-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 1.5rem; }
.chef-card--sgc { grid-column: 1/-1; max-width: 300px; margin: 0 auto; }
.chef-card  { background: rgba(201,168,76,0.04); border: 1px solid rgba(201,168,76,0.15); border-radius: 8px; padding: 1.75rem 1.25rem; text-align: center; transition: border-color var(--transition), transform var(--transition); position: relative; }
.chef-card:hover    { border-color: rgba(201,168,76,0.35); transform: translateY(-3px); }
.chef-card--sgc     { border-color: rgba(201,168,76,0.4); }

.chef-card__photo-wrap { width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 1.25rem; position: relative; overflow: hidden; border: 2px solid rgba(201,168,76,0.35); }
.chef-card--sgc .chef-card__photo-wrap { width: 120px; height: 120px; border-color: var(--or); box-shadow: 0 0 20px rgba(201,168,76,0.3); }
.chef-card__photo { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.chef-card__photo[src=""] { display: none; }
.chef-card__photo-placeholder { position: absolute; inset: 0; background: var(--noir-3); display: flex; align-items: center; justify-content: center; font-family: var(--font-titre); font-size: 2rem; color: var(--or); }
.chef-card__photo:not([src=""]) + .chef-card__photo-placeholder { display: none; }

.chef-card__grade     { position: absolute; top: 0.75rem; right: 0.75rem; font-family: var(--font-sous); font-size: 0.65rem; letter-spacing: 0.1em; padding: 0.2rem 0.5rem; border-radius: 3px; }
.chef-card__grade--sgc{ background: var(--or); color: var(--noir); font-weight: 700; }
.chef-card__grade--gma{ background: rgba(201,168,76,0.15); color: var(--or); border: 1px solid rgba(201,168,76,0.3); }
.chef-card__grade--agm{ background: rgba(201,168,76,0.08); color: var(--or-dark); border: 1px solid rgba(201,168,76,0.2); }

.chef-card__nom   { font-family: var(--font-sous); font-size: 0.95rem; color: var(--or); letter-spacing: 0.06em; margin-bottom: 0.3rem; }
.chef-card--sgc .chef-card__nom { font-size: 1.1rem; }
.chef-card__titre { font-size: 0.8rem; color: #aaa; font-style: italic; margin-bottom: 0.25rem; line-height: 1.4; }
.chef-card__role  { font-family: var(--font-sous); font-size: 0.72rem; color: var(--or-dark); letter-spacing: 0.08em; text-transform: uppercase; }

/* ─── LIVRES ──────────────────────────────────── */
.books-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 2rem; }
.book-card  { display: flex; gap: 1.5rem; background: rgba(201,168,76,0.04); border: 1px solid rgba(201,168,76,0.15); border-radius: 8px; padding: 1.5rem; transition: border-color var(--transition); align-items: flex-start; }
.book-card:hover { border-color: rgba(201,168,76,0.35); }

.book-card__cover { flex-shrink: 0; width: 90px; height: 130px; position: relative; }
.book-card__img   { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; border: 1px solid rgba(201,168,76,0.3); }
.book-card__img[src=""] { display: none; }
.book-card__cover-placeholder { position: absolute; inset: 0; background: var(--or-dark); display: flex; align-items: center; justify-content: center; font-family: var(--font-titre); font-size: 2rem; color: var(--noir); border-radius: 4px; }
.book-card__img:not([src=""]) + .book-card__cover-placeholder { display: none; }

.book-card__info     { flex: 1; }
.book-card__title    { font-family: var(--font-sous); font-size: 0.95rem; color: var(--or); margin-bottom: 0.3rem; line-height: 1.3; }
.book-card__subtitle { font-size: 0.8rem; color: var(--gris); margin-bottom: 0.75rem; font-style: italic; }
.book-card__desc     { font-size: 0.9rem; color: #bbb; margin-bottom: 1rem; line-height: 1.6; }
.book-card__links    { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ─── TUILAGE ─────────────────────────────────── */
.tuilage__intro    { text-align: center; font-style: italic; color: #aaa; margin-bottom: 2rem; }
.tuilage__step     { text-align: center; }
.tuilage__step--hidden { display: none; }
.tuilage__question { font-family: var(--font-sous); font-size: 1.1rem; color: var(--or); letter-spacing: 0.1em; margin-bottom: 1.5rem; font-style: italic; }
.tuilage__input-group { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.tuilage__input   { background: rgba(201,168,76,0.06); border: 1px solid rgba(201,168,76,0.3); border-radius: var(--rayon); color: var(--blanc); font-family: var(--font-corps); font-size: 1rem; padding: 0.7rem 1.2rem; width: 280px; outline: none; transition: border-color var(--transition); }
.tuilage__input:focus { border-color: var(--or); }
.tuilage__input::placeholder { color: #555; }
.tuilage__feedback { margin-top: 0.75rem; font-size: 0.9rem; min-height: 1.4em; }
.tuilage__feedback--error { color: #e55; }
.tuilage__feedback--ok    { color: var(--or); }

.tuilage__success { padding: 2rem; border: 1px solid rgba(201,168,76,0.35); border-radius: 8px; background: rgba(201,168,76,0.05); display: inline-block; min-width: 280px; }
.tuilage__success-icon { font-size: 2.5rem; color: var(--or); display: block; margin-bottom: 1rem; }
.tuilage__success h3 { font-family: var(--font-sous); color: var(--or); letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.tuilage__success p  { color: #bbb; margin-bottom: 1.5rem; font-style: italic; }
.tuilage__docs { display: flex; flex-direction: column; gap: 0.75rem; align-items: center; }
.tuilage__fail { padding: 2rem; color: #999; }
.tuilage__fail-icon { font-size: 2rem; color: #e55; display: block; margin-bottom: 1rem; }
.tuilage__fail p    { margin-bottom: 1.5rem; }

/* ─── CONTACT ─────────────────────────────────── */
.contact-block { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; text-align: center; }
.contact-block__email { font-family: var(--font-sous); font-size: 1rem; color: var(--or); letter-spacing: 0.05em; padding: 0.75rem 2rem; border: 1px solid rgba(201,168,76,0.3); border-radius: var(--rayon); transition: all var(--transition); }
.contact-block__email:hover { background: rgba(201,168,76,0.08); border-color: var(--or); }

/* ─── FOOTER ──────────────────────────────────── */
.footer { background: var(--noir-2); border-top: 1px solid rgba(201,168,76,0.15); padding: 2.5rem 2rem; text-align: center; }
.footer__logo-text { font-family: var(--font-corps); font-size: 1.4rem; color: var(--or); direction: rtl; margin-bottom: 0.5rem; letter-spacing: 0.1em; }
.footer__line      { font-family: var(--font-sous); font-size: 0.78rem; color: var(--gris); letter-spacing: 0.1em; margin-bottom: 0.25rem; }
.footer__line--sm  { font-size: 0.7rem; color: #555; }

/* ─── SCROLL REVEAL ───────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 600px) {
  .hero { padding: 7rem 1.5rem 3rem; }
  .hero__seal-img { width: 160px; height: 160px; }
  .hero__cta      { flex-direction: column; align-items: center; }
  .section        { padding: 3.5rem 1.5rem; }
  .book-card      { flex-direction: column; }
  .book-card__cover { width: 100%; height: 180px; }
  .tuilage__input { width: 100%; max-width: 320px; }
  .banner__text   { font-size: 0.6rem; letter-spacing: 0.15em; }
  .chefs-grid     { grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); }
}

/* ─── ROUE BOUTON ──────────────────────────── */
.rite-roue-wrap { text-align: center; margin-top: 2.5rem; }
.rite-roue-wrap .btn { font-size: 0.9rem; padding: 1rem 2.5rem; letter-spacing: 0.12em; }

/* ─── LIGHTBOX CHEFS ──────────────────────── */
#chef-lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; }
.lb-overlay    { position: absolute; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(4px); }
.lb-box        { position: relative; z-index: 1; background: var(--noir-2); border: 1px solid rgba(201,168,76,0.3); border-radius: 12px; padding: 2rem; max-width: 420px; width: 90%; text-align: center; animation: fade-up 0.3s ease; }
.lb-close      { position: absolute; top: 0.75rem; right: 0.75rem; background: none; border: none; color: var(--gris); font-size: 1.2rem; cursor: pointer; transition: color 0.2s; }
.lb-close:hover{ color: var(--or); }
.lb-img        { width: 200px; height: 200px; object-fit: cover; object-position: top; border-radius: 50%; border: 3px solid var(--or); margin: 0 auto 1.5rem; display: block; filter: drop-shadow(0 0 20px rgba(201,168,76,0.3)); }
.lb-placeholder{ width: 200px; height: 200px; border-radius: 50%; background: var(--noir-3); display: flex; align-items: center; justify-content: center; font-family: var(--font-titre); font-size: 4rem; color: var(--or); margin: 0 auto 1.5rem; border: 3px solid var(--or); }
.lb-nom        { font-family: var(--font-sous); font-size: 1.2rem; color: var(--or); letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.lb-titre      { font-size: 0.9rem; color: #aaa; font-style: italic; margin-bottom: 0.4rem; }
.lb-role       { font-family: var(--font-sous); font-size: 0.78rem; color: var(--or-dark); text-transform: uppercase; letter-spacing: 0.1em; }

/* ─── PHOTO CADRAGE ───────────────────────── */
.chef-card__photo { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 50%; }

/* ─── LIGHTBOX LIVRE ──────────────────────── */
#book-lightbox       { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.lb-book-box         { position: relative; z-index: 1; background: var(--noir-2); border: 1px solid rgba(201,168,76,0.3); border-radius: 12px; padding: 2rem; max-width: 860px; width: 95%; text-align: center; animation: fade-up 0.3s ease; max-height: 90vh; overflow-y: auto; }
.lb-book-titre       { font-family: var(--font-sous); color: var(--or); font-size: 1rem; letter-spacing: 0.1em; margin-bottom: 1.5rem; }
.lb-book-pages       { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.lb-book-img         { height: 420px; width: auto; max-width: 300px; object-fit: contain; border-radius: 6px; box-shadow: 0 8px 40px rgba(0,0,0,0.5); cursor: zoom-in; transition: transform 0.2s; }
.lb-book-img:hover   { transform: scale(1.02); }
.lb-book-links       { display: flex; gap: 1rem; justify-content: center; }
@media (max-width: 600px) {
  .lb-book-img       { height: 280px; }
  .lb-book-pages     { gap: 1rem; }
}
