/* ============================================================
   Encas Créole 83 — Page Notre Histoire
   ============================================================ */

/* ── HEADER ──────────────────────────────────────────────────── */
.hist-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--encre);
  border-bottom: 3px solid rgba(255,255,255,0.08);
}

.hist-header-inner {
  max-width: var(--cont-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hist-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  text-decoration: none;
}

.hist-cta-header {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--piment);
  color: #fff;
  border-radius: var(--rayon-sm);
  font-family: var(--f-body);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--tr-vite), background var(--tr-vite);
}
.hist-cta-header:hover { background: #cc2f1f; transform: translateY(-1px); }

/* ── HERO ─────────────────────────────────────────────────────── */
.hist-hero {
  background: var(--encre);
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px var(--gutter) 72px;
  position: relative;
  overflow: hidden;
}

.hist-hero::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--soleil) 0%, transparent 70%);
  opacity: 0.07;
  top: -150px; right: -100px;
  pointer-events: none;
}
.hist-hero::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--canne) 0%, transparent 70%);
  opacity: 0.06;
  bottom: -80px; left: -80px;
  pointer-events: none;
}

.hist-hero-deco {
  font-size: 3rem;
  margin-bottom: 16px;
  position: relative;
  animation: balancement 3s ease-in-out infinite;
}

@keyframes balancement {
  0%, 100% { transform: rotate(-4deg); }
  50%       { transform: rotate(4deg); }
}

.hist-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--soleil);
  opacity: 0.75;
  margin-bottom: 20px;
  position: relative;
}

.hist-titre {
  font-family: var(--f-display);
  font-size: clamp(3.5rem, 14vw, 7rem);
  line-height: 0.88;
  color: var(--papier);
  margin-bottom: 24px;
  position: relative;
}

.hist-titre-accent {
  color: var(--soleil);
  display: block;
}

.hist-sous-titre {
  font-size: clamp(1rem, 3vw, 1.15rem);
  color: var(--papier);
  opacity: 0.6;
  max-width: 440px;
  line-height: 1.6;
  font-weight: 500;
  position: relative;
}

/* ── CHAPITRES ────────────────────────────────────────────────── */
.hist-chapitre {
  padding: 72px var(--gutter);
}

.hist-chapitre.bg-sombre {
  background: var(--encre);
  color: var(--papier);
}

.hist-chapitre.bg-clair {
  background: var(--papier-2);
  color: var(--encre);
}

.hist-inner {
  max-width: var(--cont-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px 48px;
  align-items: start;
}

.hist-numero {
  font-family: var(--f-display);
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 1;
  color: var(--soleil);
  opacity: 0.15;
  user-select: none;
  min-width: 80px;
  text-align: right;
  padding-top: 6px;
}

.hist-chapitre.bg-clair .hist-numero { color: var(--encre); }

.hist-contenu { min-width: 0; }

.hist-ch-titre {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--soleil);
  margin-bottom: 20px;
  line-height: 1.1;
}

.hist-chapitre.bg-clair .hist-ch-titre {
  color: var(--piment);
}

.hist-ch-texte {
  font-size: 1rem;
  line-height: 1.75;
  opacity: 0.82;
  margin-bottom: 18px;
}
.hist-ch-texte strong { opacity: 1; }

.hist-quote {
  border-left: 4px solid var(--soleil);
  padding: 16px 20px;
  margin: 28px 0;
  font-family: var(--f-display);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--papier);
  opacity: 0.85;
  line-height: 1.5;
  background: rgba(255,210,63,0.06);
  border-radius: 0 var(--rayon-sm) var(--rayon-sm) 0;
}

/* ── DEUX STYLES ─────────────────────────────────────────────── */
.hist-deux-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.hist-style-card {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--rayon);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hist-chapitre.bg-clair .hist-style-card {
  background: var(--papier);
  border: var(--bord);
  box-shadow: var(--ombre-sm);
}

.hist-antilles { border-color: rgba(255,210,63,0.3) !important; }
.hist-cajun    { border-color: rgba(230,62,44,0.3) !important; }

.hist-style-emoji { font-size: 2rem; display: block; }

.hist-style-card strong {
  font-family: var(--f-display);
  font-size: 1rem;
  color: var(--encre);
}

.hist-chapitre.bg-sombre .hist-style-card strong { color: var(--soleil); }
.hist-cajun strong { color: var(--piment) !important; }

.hist-style-card p {
  font-size: 0.82rem;
  opacity: 0.65;
  line-height: 1.5;
  color: var(--encre);
}

.hist-chapitre.bg-sombre .hist-style-card p { color: var(--papier); }

/* ── STATS ───────────────────────────────────────────────────── */
.hist-stat-row {
  display: flex;
  gap: 0;
  margin-top: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--rayon);
  overflow: hidden;
}

.hist-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 12px;
  border-right: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.hist-stat:last-child { border-right: none; }

.hist-stat-n {
  font-family: var(--f-display);
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--soleil);
  line-height: 1;
}

.hist-stat-l {
  font-size: 0.75rem;
  opacity: 0.55;
  margin-top: 6px;
  line-height: 1.3;
  max-width: 80px;
}

/* ── VALEURS ─────────────────────────────────────────────────── */
.hist-valeurs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.hist-valeurs li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--papier);
  border: var(--bord);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-sm);
  padding: 18px 20px;
}

.hist-val-icone {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.hist-valeurs li strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--encre);
  margin-bottom: 4px;
}

.hist-valeurs li p {
  font-size: 0.85rem;
  opacity: 0.65;
  line-height: 1.5;
  color: var(--encre);
}

/* ── CTA FINAL ───────────────────────────────────────────────── */
.hist-cta-section {
  text-align: center;
  padding: 80px var(--gutter);
  background: var(--encre);
  border-top: var(--bord);
}

.hist-cta-titre {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  color: var(--papier);
  margin-bottom: 32px;
  line-height: 1.2;
}

.hist-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 44px;
  background: var(--piment);
  color: #fff;
  border: 3px solid var(--piment);
  border-radius: var(--rayon-sm);
  font-family: var(--f-body);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 6px 6px 0 rgba(255,210,63,0.25);
  transition: transform var(--tr-vite), box-shadow var(--tr-vite);
}
.hist-btn-cta:hover  { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 rgba(255,210,63,.25); }
.hist-btn-cta:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(255,210,63,.2); }

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--encre);
  color: var(--papier);
  text-align: center;
  padding: 36px var(--gutter);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}

.footer-mentions {
  font-size: 0.75rem;
  opacity: 0.35;
  margin-top: 6px;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hist-inner {
    grid-template-columns: 1fr;
    gap: 0 0;
  }
  .hist-numero {
    font-size: 2.5rem;
    text-align: left;
    min-width: unset;
    margin-bottom: -8px;
  }
  .hist-deux-cols { grid-template-columns: 1fr; }
  .hist-stat-row  { flex-direction: column; }
  .hist-stat      { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .hist-stat:last-child { border-bottom: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hist-hero-deco { animation: none; }
  .hist-btn-cta, .hist-cta-header { transition: none; }
}
