/* ============================================================
   Étudions la Bible — feuille de style partagée
   Palette : ciel indigo profond + rayons dorés
   ============================================================ */

:root {
  /* Palette « mer & lumière » — accordée à la photo du soleil perçant les nuages
     au-dessus de l'océan : ardoise marine, argent, or chaud, blancs aérés. */
  --indigo-deep: #16293a;   /* ardoise marine profonde (sections sombres) */
  --indigo: #21405a;        /* bleu ardoise (titres) */
  --indigo-soft: #34607f;   /* bleu mer plus clair (dégradés) */
  --gold: #e6b85c;
  --gold-soft: #f2d49a;
  --gold-warm: #c98f3f;
  --cream: #f7f4ee;
  --cream-dim: #cdd6db;     /* gris-bleu doux pour le texte sur fond sombre */
  --ink: #233240;          /* ardoise pour le texte courant */
  --paper: #f6f8f9;        /* blanc cassé frais */
  --paper-2: #eaf0f2;      /* gris-bleu pâle */
  --line: #dbe3e6;
  --shadow: rgba(22, 41, 58, 0.14);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1120px;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typographie ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: 0.2px; }
h2.section-title { font-size: clamp(2rem, 4vw, 3rem); color: var(--indigo); text-align: center; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-warm);
}

/* ============================================================
   En-tête / Navigation
   ============================================================ */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); }
.brand .mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--gold-soft), var(--gold-warm) 70%);
  box-shadow: 0 0 22px rgba(245, 196, 81, 0.6);
  flex: none;
}
.brand .name { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: 0.4px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  color: var(--cream); font-size: 0.95rem; font-weight: 500; letter-spacing: 0.3px;
  opacity: 0.85; transition: opacity .2s, color .2s;
}
.nav-links a:hover { opacity: 1; color: var(--gold-soft); }

/* internal pages get a solid header */
.site-header.solid { position: relative; background: var(--indigo-deep); }
.site-header.solid .brand,
.site-header.solid .nav-links a { color: var(--cream); }

/* ============================================================
   HERO — soleil perçant les nuages
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Photo du hero. L'ordre des couches compte (la 1re est au-dessus) :
       1) un voile dégradé pour la lisibilité du texte ;
       2) VOTRE image locale "assets/hero.jpg" — déposez-y votre photo et elle
          remplacera automatiquement celle d'en dessous, sans toucher au code ;
       3) photo de repli : « Sunlight beams through clouds over the ocean »,
          Hennie Stander / Unsplash (proche de votre image), visible tant que
          assets/hero.jpg n'existe pas. */
  background-image:
    linear-gradient(to bottom,
      rgba(20,38,54,0.30) 0%, rgba(20,38,54,0.04) 30%,
      rgba(20,38,54,0.06) 58%, rgba(20,38,54,0.38) 100%),
    url("assets/hero.jpg"),
    url("https://images.unsplash.com/photo-1742941771749-1b7e0bbcd7f8?q=80&w=2400&auto=format&fit=crop");
  background-size: cover, cover, cover;
  background-position: center 42%;
  background-repeat: no-repeat;
  background-color: var(--indigo-deep); /* repli ultime si rien ne charge */
}

/* Le hero affiche maintenant une vraie photo : on masque le décor dessiné
   (soleil, rayons et nuages SVG). Supprimez ces lignes pour les réafficher. */
.hero .sun,
.hero .rays,
.hero .clouds { display: none; }

/* glow of the sun */
.hero .sun {
  position: absolute;
  top: 12%; left: 50%;
  width: 220px; height: 220px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, #fff7e0 0%, var(--gold-soft) 30%, rgba(245,196,81,0.0) 70%);
  box-shadow: 0 0 120px 60px rgba(245, 196, 81, 0.45);
  filter: blur(2px);
  animation: sunPulse 7s ease-in-out infinite;
  z-index: 2;
}
@keyframes sunPulse {
  0%, 100% { opacity: 0.92; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;    transform: translateX(-50%) scale(1.05); }
}

/* light rays */
.hero .rays {
  position: absolute;
  top: -10%; left: 50%;
  width: 1400px; height: 1400px;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
  animation: raysTurn 90s linear infinite, raysBreathe 8s ease-in-out infinite;
  transform-origin: 50% 18%;
}
.hero .rays span {
  position: absolute;
  top: 18%; left: 50%;
  width: 120px; height: 900px;
  background: linear-gradient(to bottom, rgba(247, 217, 138, 0.55), rgba(247, 217, 138, 0));
  transform-origin: top center;
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0% 100%);
}
@keyframes raysTurn   { to { transform: translateX(-50%) rotate(360deg); } }
@keyframes raysBreathe{ 0%,100%{ opacity:.45 } 50%{ opacity:.65 } }

/* cloud layers */
.hero .clouds { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero .cloud {
  position: absolute;
  background: radial-gradient(closest-side, rgba(28, 38, 92, 0.95), rgba(20, 28, 74, 0.65) 70%, rgba(20,28,74,0));
  filter: blur(6px);
  border-radius: 50%;
}
.cloud.c1 { width: 620px; height: 220px; top: 20%; left: -6%;  animation: drift1 26s ease-in-out infinite; }
.cloud.c2 { width: 760px; height: 260px; top: 30%; right: -10%; animation: drift2 32s ease-in-out infinite; }
.cloud.c3 { width: 520px; height: 200px; top: 8%;  right: 12%;  opacity: .8; animation: drift1 30s ease-in-out infinite reverse; }
.cloud.c4 { width: 900px; height: 320px; bottom: -8%; left: 50%; transform: translateX(-50%);
            background: radial-gradient(closest-side, rgba(12, 18, 52, 1), rgba(12,18,52,0)); }
@keyframes drift1 { 0%,100%{ transform: translateX(0) } 50%{ transform: translateX(40px) } }
@keyframes drift2 { 0%,100%{ transform: translateX(0) } 50%{ transform: translateX(-46px) } }

/* bottom fade for legibility */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 32%;
  background: linear-gradient(to bottom, rgba(20,38,54,0), rgba(20,38,54,0.28) 92%);
  z-index: 4;
}

.hero-content {
  position: relative; z-index: 10;
  text-align: center;
  color: var(--cream);
  width: 100%;
  padding-top: 90px;
}
.hero-content .eyebrow { color: var(--gold-warm); display: inline-block; margin-bottom: 18px; text-shadow: 0 1px 16px rgba(20,38,54,0.6), 0 1px 3px rgba(20,38,54,0.5); }
.hero-content h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  color: #fff;
  text-shadow: 0 2px 30px rgba(20,38,54,0.55), 0 1px 4px rgba(20,38,54,0.45);
  margin-bottom: 18px;
}
.hero-content h1 .accent { color: var(--gold-soft); }
.hero-content .lead {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  max-width: 640px; margin: 0 auto 36px;
  color: #eef3f6;
  font-weight: 300;
  text-shadow: 0 1px 14px rgba(20,38,54,0.55);
}

.btn {
  display: inline-block;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 15px 34px; border-radius: 999px;
  cursor: pointer; border: none; transition: transform .2s, box-shadow .2s;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-warm));
  color: #3a2a06;
  box-shadow: 0 10px 30px rgba(233, 162, 59, 0.4);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(233, 162, 59, 0.55); }
.btn-ghost { background: transparent; color: var(--cream); border: 1.5px solid rgba(246,241,231,0.5); }
.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 10; color: var(--cream); opacity: .7; font-size: .8rem; letter-spacing: 2px;
  text-transform: uppercase; animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translateX(-50%) translateY(0) } 50%{ transform: translateX(-50%) translateY(8px) } }

/* ============================================================
   Sections de contenu
   ============================================================ */
section.block { padding: 96px 0; }
.intro { background: var(--paper); }
.intro .inner { max-width: 760px; margin: 0 auto; text-align: center; }
.intro p.verse {
  font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); font-style: italic;
  color: var(--indigo); line-height: 1.45; margin: 22px 0 14px;
}
.intro p.verse-ref { color: var(--gold-warm); font-weight: 600; letter-spacing: 1px; }
.intro p.body { color: #444; margin-top: 26px; }

/* études — grille */
.studies { background: var(--paper-2); }
.studies .head { text-align: center; margin-bottom: 54px; }
.studies .head p { color: #5a5a5a; margin-top: 12px; }
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px var(--shadow); }
.card .thumb {
  height: 168px; position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, #3a4aa0, var(--indigo-deep));
}
.card .thumb .glow {
  position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(247,217,138,.9), rgba(247,217,138,0) 70%);
}
.card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card .meta { font-size: .8rem; color: var(--gold-warm); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.card h3 { font-size: 1.5rem; color: var(--indigo); margin: 10px 0 12px; }
.card p { color: #555; font-size: .98rem; flex: 1; }
.card .more { margin-top: 18px; color: var(--gold-warm); font-weight: 600; font-size: .95rem; }
.card .more::after { content: " →"; }

/* auteur */
.author { background: var(--indigo-deep); color: var(--cream); }
.author .inner { max-width: 720px; margin: 0 auto; }
.author .portrait {
  width: 200px; height: 200px; border-radius: 50%; justify-self: center;
  background: radial-gradient(circle at 50% 35%, var(--indigo-soft), var(--indigo-deep));
  border: 2px solid rgba(245,196,81,0.4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 4rem; color: var(--gold-soft);
}
.author h2 { color: #fff; font-size: 2.2rem; margin-bottom: 8px; }
.author .role { color: var(--gold-soft); font-weight: 600; letter-spacing: 1px; margin-bottom: 18px; }
.author p { color: var(--cream-dim); font-weight: 300; }

/* ============================================================
   Page liste des études
   ============================================================ */
.page-hero {
  background: linear-gradient(160deg, var(--indigo-soft), var(--indigo-deep));
  color: var(--cream); text-align: center; padding: 84px 0 72px;
}
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.6rem); }
.page-hero p { color: var(--cream-dim); max-width: 620px; margin: 16px auto 0; font-weight: 300; }
.studies-list { padding: 72px 0 96px; background: var(--paper); }

/* ============================================================
   Page article
   ============================================================ */
.article-hero { background: var(--indigo-deep); color: var(--cream); padding: 96px 0 64px; text-align: center; }
.article-hero .eyebrow { color: var(--gold-soft); }
.article-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 820px; margin: 16px auto 18px; }
.article-hero .meta { color: var(--cream-dim); font-size: .95rem; letter-spacing: 1px; }
.article-body { padding: 64px 0 96px; background: var(--paper); }
.article-body .inner { max-width: 720px; margin: 0 auto; }
.article-body p { margin-bottom: 24px; color: #2e2e35; font-size: 1.12rem; }
.article-body h2 { color: var(--indigo); font-size: 1.9rem; margin: 40px 0 16px; }
.article-body h3 { color: var(--indigo); font-size: 1.4rem; margin: 30px 0 12px; }
.article-body blockquote {
  border-left: 4px solid var(--gold-warm); padding: 8px 0 8px 26px; margin: 30px 0;
  font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--indigo); line-height: 1.4;
}
.article-body blockquote .ref { display: block; font-family: var(--sans); font-style: normal; font-size: .85rem; color: var(--gold-warm); font-weight: 600; letter-spacing: 1px; margin-top: 10px; text-transform: uppercase; }
.back-link { display: inline-block; margin-bottom: 30px; color: var(--gold-warm); font-weight: 600; }
.back-link::before { content: "← "; }

/* Liste de références (concordance) dans une étude */
.article-body .ref-list { list-style: none; margin: 6px 0 30px; padding: 0; }
.article-body .ref-list li {
  padding: 12px 0; border-bottom: 1px solid var(--line);
  display: flex; gap: 16px; align-items: baseline;
}
.article-body .ref-list li:last-child { border-bottom: none; }
.article-body .ref-list .r {
  flex: none; min-width: 116px; color: var(--gold-warm); font-weight: 700;
  font-family: var(--sans); font-size: .92rem; letter-spacing: .3px;
}
.article-body .ref-list .t { color: #2e2e35; font-size: 1.06rem; line-height: 1.5; }
@media (max-width: 600px) {
  .article-body .ref-list li { flex-direction: column; gap: 2px; }
  .article-body .ref-list .r { min-width: 0; }
}

/* ============================================================
   Pied de page
   ============================================================ */
.site-footer { background: #070b22; color: var(--cream-dim); padding: 56px 0 36px; text-align: center; }
.site-footer .brand { justify-content: center; color: var(--cream); margin-bottom: 18px; }
.site-footer .links { display: flex; gap: 26px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.site-footer .links a { color: var(--cream-dim); font-size: .95rem; }
.site-footer .links a:hover { color: var(--gold-soft); }
.site-footer .fine { font-size: .82rem; opacity: .6; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 760px) {
  .nav-links { gap: 18px; }
  .nav-links a.hide-mobile { display: none; }
  .author .inner { grid-template-columns: 1fr; text-align: center; }
  .author .portrait { margin-bottom: 8px; }
  section.block { padding: 70px 0; }
}
