/* ============================================================
   Torah-Box — Page « À propos »
   ------------------------------------------------------------
   Toutes les règles sont scopées sous .tba-page et préfixées
   « tba- » afin d'éviter toute collision avec Bootstrap et les
   styles existants du template (header / footer).

   NB : les polices sont chargées via @import ci-dessous.
   Pour de meilleures performances, vous pouvez déplacer ce
   chargement dans le <head> du template :
   <link href="https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@500;700;900&family=Assistant:wght@400;600;700&display=swap" rel="stylesheet">
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@500;700;900&family=Assistant:wght@400;600;700&display=swap');

.tba-page {
  /* -- Jetons de design ------------------------------------ */
  --tba-orange:      #F29C1F;  /* orange Torah-Box */
  --tba-orange-deep: #C97C08;
  --tba-ink:         #241B12;  /* brun très sombre */
  --tba-ink-soft:    #55462F;
  --tba-paper:       #FBF6EC;  /* parchemin clair */
  --tba-sand:        #F0E4CB;
  --tba-line:        rgba(36, 27, 18, .12);
  --tba-radius:      10px;
  --tba-font-display: 'Frank Ruhl Libre', Georgia, serif;
  --tba-font-body:    'Assistant', 'Segoe UI', Arial, sans-serif;

  font-family: var(--tba-font-body);
  color: var(--tba-ink);
  background: var(--tba-paper);
  line-height: 1.65;
  font-size: 1.0625rem; /* 17px */
  overflow-x: hidden;
}

/* Neutralisation douce des marges Bootstrap sur nos éléments */
.tba-page h1, .tba-page h2, .tba-page h3, .tba-page p,
.tba-page ul, .tba-page figure {
  margin: 0;
  padding: 0;
}
.tba-page ul { list-style: none; }
.tba-page img { max-width: 100%; height: auto; display: block; }
.tba-page a { text-decoration: none; }

/* -- Conteneur --------------------------------------------- */
.tba-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -- Surtitre « boîte » (rappel du logo) -------------------- */
.tba-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tba-orange-deep);
}
.tba-eyebrow::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--tba-orange);
  box-shadow: inset 0 -4px 0 rgba(255, 255, 255, .55); /* le « rouleau » blanc du logo */
  flex: 0 0 auto;
}
.tba-hero .tba-eyebrow { color: var(--tba-orange); }

/* ============================================================
   1. HERO
   ============================================================ */
.tba-hero {
  position: relative;
  background: var(--tba-ink);
  color: #fff;
  isolation: isolate;
}
.tba-hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.tba-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: .38;
}
.tba-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(36, 27, 18, .55) 0%,
    rgba(36, 27, 18, .35) 45%,
    rgba(36, 27, 18, .92) 100%);
}
.tba-hero-inner {
  padding: 96px 0 72px;
  max-width: 720px;
}
.tba-hero h1 {
  font-family: var(--tba-font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  line-height: 1.08;
  margin: 18px 0 20px;
}
.tba-hero h1 em {
  font-style: normal;
  color: var(--tba-orange);
}
.tba-hero-lead {
  font-size: 1.1875rem;
  max-width: 560px;
  color: rgba(255, 255, 255, .88);
}

/* -- Bandeau de repères ------------------------------------ */
.tba-facts {
  border-top: 1px solid rgba(255, 255, 255, .18);
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.tba-fact {
  padding: 20px 18px 24px 0;
}
.tba-fact + .tba-fact { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.18); }
.tba-fact strong {
  display: block;
  font-family: var(--tba-font-display);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--tba-orange);
}
.tba-fact span {
  font-size: .875rem;
  color: rgba(255, 255, 255, .75);
}

/* ============================================================
   2. QUI NOUS SOMMES
   ============================================================ */
.tba-section { padding: 80px 0; }

.tba-who {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
}
.tba-section h2 {
  font-family: var(--tba-font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.4vw, 2.375rem);
  line-height: 1.15;
  margin: 14px 0 22px;
}
.tba-section p + p { margin-top: 16px; }
.tba-muted { color: var(--tba-ink-soft); }

.tba-photo-frame {
  position: relative;
  border-radius: var(--tba-radius);
}
.tba-photo-frame::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  background: var(--tba-sand);
  border-radius: var(--tba-radius);
  z-index: 0;
}
.tba-photo-frame img {
  position: relative;
  z-index: 1;
  border-radius: var(--tba-radius);
  box-shadow: 0 18px 40px -18px rgba(36, 27, 18, .45);
}
.tba-caption {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  font-size: .875rem;
  color: var(--tba-ink-soft);
}
.tba-caption::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--tba-orange);
  vertical-align: middle;
  margin-right: 10px;
}

/* ============================================================
   3. MISSION — bande « rouleau » (élément signature)
   ============================================================ */
.tba-mission {
  padding: 40px 0 56px;
}
.tba-scroll-band {
  position: relative;
  background: #fff;
  border: 1px solid var(--tba-line);
  border-radius: 6px;
  padding: 56px clamp(32px, 8vw, 96px);
  text-align: center;
  box-shadow: 0 24px 50px -30px rgba(36, 27, 18, .35);
}
/* Les deux « rouleaux » verticaux aux extrémités */
.tba-scroll-band::before,
.tba-scroll-band::after {
  content: "";
  position: absolute;
  top: -14px;
  bottom: -14px;
  width: 18px;
  border-radius: 10px;
  background: linear-gradient(90deg, #E4D3AF, #F6ECD6 45%, #CBB488);
  border: 1px solid rgba(36, 27, 18, .18);
}
.tba-scroll-band::before { left: -9px; }
.tba-scroll-band::after  { right: -9px; }

.tba-scroll-band h2 { margin-top: 12px; }
.tba-mission-quote {
  font-family: var(--tba-font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.625rem);
  line-height: 1.5;
  max-width: 760px;
  margin: 0 auto;
  color: var(--tba-ink);
}
.tba-mission-quote strong {
  font-weight: 700;
  box-shadow: inset 0 -0.45em 0 rgba(242, 156, 31, .28);
}

/* ============================================================
   4. CE QUE NOUS FAISONS
   ============================================================ */
.tba-do { background: #fff; border-top: 1px solid var(--tba-line); }

.tba-do-head { max-width: 640px; margin-bottom: 56px; }

.tba-do-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.tba-do-row + .tba-do-row { margin-top: 88px; }

.tba-do h3 {
  font-family: var(--tba-font-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 10px 0 14px;
}

/* Puces de canaux de diffusion */
.tba-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.tba-chips li {
  font-size: .875rem;
  font-weight: 600;
  padding: 7px 14px;
  border: 1px solid var(--tba-line);
  border-radius: 999px;
  background: var(--tba-paper);
  color: var(--tba-ink-soft);
}

/* Panneau « studio » pour le bloc diffusion */
.tba-panel {
  background: var(--tba-ink);
  color: #fff;
  border-radius: var(--tba-radius);
  padding: 40px 36px;
  box-shadow: 0 18px 40px -18px rgba(36, 27, 18, .45);
}
.tba-panel-word {
  font-family: var(--tba-font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.25;
  color: rgba(255, 255, 255, .35);
}
.tba-panel-word em {
  font-style: normal;
  color: var(--tba-orange);
}
.tba-panel-note {
  margin-top: 18px;
  font-size: .9375rem;
  color: rgba(255, 255, 255, .78);
}

/* Duo de photos actions sociales */
.tba-duo {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 16px;
  align-items: stretch;
}
.tba-duo figure { margin: 0; position: relative; }
.tba-duo img {
  border-radius: var(--tba-radius);
  height: 100%;
  object-fit: cover;
  box-shadow: 0 18px 40px -20px rgba(36, 27, 18, .45);
}
.tba-duo figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: .78125rem;
  font-weight: 600;
  color: #fff;
  background: rgba(36, 27, 18, .72);
  padding: 5px 12px;
  border-radius: 999px;
}

/* Liste d'actions */
.tba-list {
  list-style: none;
  margin-top: 20px;
  display: grid;
  gap: 12px;
}
.tba-list li {
  position: relative;
  padding-left: 26px;
}
.tba-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--tba-orange);
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .55);
}

/* ============================================================
   5. DONS — association à but non lucratif
   ============================================================ */
.tba-give {
  background: var(--tba-sand);
  border-top: 1px solid var(--tba-line);
}
.tba-give-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}
.tba-give-figure {
  text-align: center;
  background: #fff;
  border: 1px solid var(--tba-line);
  border-radius: var(--tba-radius);
  padding: 40px 28px;
  box-shadow: 0 18px 40px -22px rgba(36, 27, 18, .4);
}
.tba-give-figure strong {
  display: block;
  font-family: var(--tba-font-display);
  font-weight: 900;
  font-size: clamp(3.2rem, 7vw, 4.5rem);
  line-height: 1;
  color: var(--tba-orange-deep);
}
.tba-give-figure span {
  display: block;
  margin-top: 10px;
  font-size: .9375rem;
  color: var(--tba-ink-soft);
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
}

.tba-btn {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--tba-orange);
  color: var(--tba-ink);
  font-weight: 700;
  font-size: 1rem;
  transition: background-color .2s ease, transform .2s ease;
}
.tba-btn:hover,
.tba-btn:focus {
  background: var(--tba-orange-deep);
  color: #fff;
  text-decoration: none;
}
.tba-btn:focus-visible {
  outline: 3px solid var(--tba-ink);
  outline-offset: 3px;
}

/* ============================================================
   Apparitions au défilement (pilotées par a-propos.js)
   ============================================================ */
.tba-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.tba-reveal.tba-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .tba-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .tba-who,
  .tba-do-row,
  .tba-give-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .tba-do-row + .tba-do-row { margin-top: 64px; }
  .tba-do-row.tba-flip .tba-do-media { order: -1; } /* garde l'image au-dessus */
  .tba-facts { grid-template-columns: repeat(2, 1fr); }
  .tba-fact:nth-child(odd) { padding-left: 0; border-left: none; }
  .tba-photo-frame::before { inset: 12px -12px -12px 12px; }
}
@media (max-width: 560px) {
  .tba-hero-inner { padding: 72px 0 48px; }
  .tba-section { padding: 56px 0; }
  .tba-facts { grid-template-columns: 1fr 1fr; }
  .tba-duo { grid-template-columns: 1fr; }
  .tba-scroll-band { padding: 40px 26px; }
  .tba-scroll-band::before { left: -6px; width: 12px; }
  .tba-scroll-band::after { right: -6px; width: 12px; }
}
