/* ============================================================
   CROIS.CSS — Styles spécifiques à crois.html (« Ce en quoi je crois »)
   Page hors des sept facettes : couleur or, comme l'accueil
   ============================================================ */

body.page-crois {
  --couleur-active: var(--or-vif);
  --noir-surface: #241d12;
}

/* Badge et boutons or renforcés, comme sur l'accueil */
body.page-crois .badge-or {
  background: rgba(144, 120, 54, 0.16);
  opacity: 1;
  font-weight: 700;
}

body.page-crois .btn-or {
  color: var(--noir-profond);
  font-weight: 600;
  background: linear-gradient(135deg,
    var(--or-discret) 0%,
    var(--or-vif) 22%,
    var(--or-pale) 45%,
    var(--blanc-ivoire) 55%,
    var(--or-pale) 65%,
    var(--or-vif) 85%,
    var(--or-discret) 100%
  );
  background-size: 200% 200%;
  border: none;
  box-shadow: 0 4px 22px rgba(144, 120, 54, 0.4);
  animation: scintillement-or 4s ease-in-out infinite;
}

body.page-crois .btn-or:hover {
  color: var(--noir-profond);
  box-shadow: 0 6px 30px rgba(144, 120, 54, 0.55);
}

body.page-crois .ornement-symbole {
  background: var(--degrade-or);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: scintillement-or 4s ease-in-out infinite;
}

/* ============================================================
   HERO — la lanterne au bord de l'étang
   ============================================================ */
.hero-crois {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--noir-profond);
}

.hero-crois-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-crois-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* La lanterne est à droite de l'image : on garde ce côté visible */
  object-position: 70% center;
  display: block;
}

/* Assombrit la gauche (texte) et le bas, laisse la flamme briller */
.hero-crois-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10,8,4,0.85) 0%, rgba(10,8,4,0.45) 40%, transparent 65%),
    linear-gradient(to bottom, rgba(10,8,4,0.35) 0%, transparent 25%, rgba(10,8,4,0.2) 70%, rgba(10,8,4,0.9) 100%);
}

.hero-crois-contenu {
  position: relative;
  z-index: 2;
  padding: 64px var(--espace-md) var(--espace-xl);
  max-width: var(--max-large);
  width: 100%;
  margin: 0 auto;
  text-align: left;
}

.hero-crois-contenu h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin: var(--espace-sm) 0 var(--espace-md);
  line-height: 1.05;
  max-width: 640px;
  background: var(--degrade-or-clair);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: scintillement-or 4s ease-in-out infinite;
}

.hero-crois-intro {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--gris-clair);
  font-weight: 300;
  line-height: 1.75;
  max-width: 480px;
  margin: 0;
}

/* ============================================================
   TEXTES — un bloc par croyance
   ============================================================ */
.croyance-grille {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--espace-lg);
  align-items: start;
}

/* Le titre reste visible pendant la lecture (desktop) */
.croyance-entete {
  position: sticky;
  top: calc(64px + var(--espace-md));
}

.croyance-entete h2 {
  line-height: 1.15;
}

.croyance-texte {
  max-width: 62ch;
}

.croyance-texte p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: var(--espace-sm);
}

.croyance-ouverture {
  font-family: var(--font-titre);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.4rem) !important;
  line-height: 1.55 !important;
  color: var(--or-pale);
}

.croyance-texte h3 {
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--or-vif);
  margin: var(--espace-lg) 0 var(--espace-sm);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.croyance-texte h3::before {
  content: '✦';
  font-size: 0.8rem;
  color: var(--or-discret);
}

/* Phrase-clé mise en relief */
.croyance-accent {
  font-family: var(--font-titre);
  font-style: italic;
  color: var(--or-pale);
  border-left: 2px solid var(--or-discret);
  padding-left: var(--espace-md);
  margin: var(--espace-md) 0 !important;
}

/* ============================================================
   MAIN TENDUE
   ============================================================ */
/* Le texte et la main tendue restent proches : un seul ornement les sépare */
section.croyance {
  padding-bottom: var(--espace-md);
}

.crois-cta {
  padding: 0 0 var(--espace-lg);
}

.crois-cta .ornement {
  margin-top: 0;
}

.crois-main-tendue {
  font-family: var(--font-titre);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--or-pale);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .croyance-grille {
    grid-template-columns: 1fr;
    gap: var(--espace-md);
  }
  .croyance-entete {
    position: static;
  }
}

@media (max-width: 768px) {
  .hero-crois {
    min-height: 80vh;
  }
  /* Sur mobile, l'assombrissement se fait surtout en bas, sous le texte */
  .hero-crois-overlay {
    background: linear-gradient(to bottom,
      rgba(10,8,4,0.2) 0%, rgba(10,8,4,0.1) 35%,
      rgba(10,8,4,0.8) 70%, rgba(10,8,4,1) 100%);
  }
  .hero-crois-contenu {
    padding: var(--espace-md) var(--espace-sm) var(--espace-lg);
  }
  /* Pas d'animation sur le titre en dégradé (artefact sur certains mobiles) */
  .hero-crois-contenu h1 {
    animation: none;
  }
}
