/* ================================================================
   Gorée Section Titles — frontend.css v1.0.0
   Palette : Bleu #1B4FA8 | Marine #0D2E6E | Or #C9951A | Rouge #C8102E
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Source+Sans+3:wght@300;400;600&display=swap');

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --gost-primary:  #1B4FA8;
  --gost-dark:     #0D2E6E;
  --gost-gold:     #C9951A;
  --gost-gold-lt:  #E8B84B;
  --gost-red:      #C8102E;
  --gost-sable:    #F7F2E8;
  --gost-border:   #ddd;
  --gost-muted:    #666;
  --gost-t:        .3s ease;
}

/* ════════════════════════════════════════════════════════════════
   STRUCTURE DE BASE
   ════════════════════════════════════════════════════════════════ */
.gost-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* Centrage du contenu quand le bg est pleine largeur */
.gost-inner.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 2;
}

/* Sans container (align=center, preset=transparent) */
.gost-inner:not(.container) {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

/* Alignements */
.gost-align-left   .gost-inner.container { text-align: left; }
.gost-align-center .gost-inner           { text-align: center; }
.gost-align-right  .gost-inner.container { text-align: right; }

/* ════════════════════════════════════════════════════════════════
   RADIAL GLOW  (simulation .page-hero::before du thème)
   ════════════════════════════════════════════════════════════════ */
.gost-radial {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════
   BORDURE OR EN HAUT (4px — identique au thème)
   ════════════════════════════════════════════════════════════════ */
.gost-has-bordure-or {
  border-top: 4px solid var(--gost-gold);
}

/* ════════════════════════════════════════════════════════════════
   TAG / ÉTIQUETTE
   ════════════════════════════════════════════════════════════════ */
.gost-tag {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gost-align-center .gost-tag { justify-content: center; }
.gost-align-right  .gost-tag { justify-content: flex-end; }

.gost-tag i {
  font-size: .85rem;
}

/* ════════════════════════════════════════════════════════════════
   TITRE PRINCIPAL
   ════════════════════════════════════════════════════════════════ */
.gost-titre {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -.01em;
}

/* ════════════════════════════════════════════════════════════════
   DIVIDER OR (trait décoratif sous le titre)
   ════════════════════════════════════════════════════════════════ */
.gost-divider {
  width: 48px;
  height: 3px;
  background: var(--gost-gold);
  border-radius: 2px;
  margin: 16px 0 18px;
}
.gost-align-center .gost-divider { margin-left: auto; margin-right: auto; }
.gost-align-right  .gost-divider { margin-left: auto; }

/* Masquer le divider si pas de contenu sous le titre */
.gost-wrap:not(:has(.gost-soustitre)):not(:has(.gost-content)) .gost-divider {
  margin-bottom: 0;
}

/* ════════════════════════════════════════════════════════════════
   SOUS-TITRE
   ════════════════════════════════════════════════════════════════ */
.gost-soustitre {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  margin: 0;
  max-width: 640px;
}
.gost-align-center .gost-soustitre { margin-left: auto; margin-right: auto; }
.gost-align-right  .gost-soustitre { margin-left: auto; }

/* ════════════════════════════════════════════════════════════════
   CONTENU IMBRIQUÉ
   ════════════════════════════════════════════════════════════════ */
.gost-content {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: .95rem;
  line-height: 1.7;
  margin-top: 14px;
}

/* ════════════════════════════════════════════════════════════════
   BOUTON CTA
   ════════════════════════════════════════════════════════════════ */
.gost-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
  transition: opacity var(--gost-t), gap var(--gost-t);
}
.gost-cta:hover { opacity: .8; gap: 10px; }

/* ════════════════════════════════════════════════════════════════
   PRESET : PAGE_HERO  ←  défaut, calque identique au thème
   ════════════════════════════════════════════════════════════════ */
.gost-preset-page_hero {
  background: linear-gradient(135deg, #0D2E6E 0%, #1B4FA8 100%);
  color: #fff;
}
/* Le radial glow est géré inline via .gost-radial */

/* ════════════════════════════════════════════════════════════════
   PRESET : STANDARD
   ════════════════════════════════════════════════════════════════ */
.gost-preset-standard {
  background: #ffffff;
}

/* ════════════════════════════════════════════════════════════════
   PRESET : SOMBRE
   ════════════════════════════════════════════════════════════════ */
.gost-preset-sombre {
  background: #0D2E6E;
  color: #fff;
}

/* ════════════════════════════════════════════════════════════════
   PRESET : SABLE
   ════════════════════════════════════════════════════════════════ */
.gost-preset-sable {
  background: #F7F2E8;
}

/* ════════════════════════════════════════════════════════════════
   PRESET : TRANSPARENT
   ════════════════════════════════════════════════════════════════ */
.gost-preset-transparent {
  background: transparent;
}

/* ════════════════════════════════════════════════════════════════
   ANIMATIONS — déclenchées via IntersectionObserver (JS inline)
   ════════════════════════════════════════════════════════════════ */

/* État initial invisible */
[class*='gost-anim-'] .gost-tag,
[class*='gost-anim-'] .gost-titre,
[class*='gost-anim-'] .gost-divider,
[class*='gost-anim-'] .gost-soustitre,
[class*='gost-anim-'] .gost-content,
[class*='gost-anim-'] .gost-cta {
  opacity: 0;
}

/* Visibles après déclenchement */
.gost-animated .gost-tag,
.gost-animated .gost-titre,
.gost-animated .gost-divider,
.gost-animated .gost-soustitre,
.gost-animated .gost-content,
.gost-animated .gost-cta {
  opacity: 1;
}

/* Délais en cascade */
.gost-animated .gost-tag      { transition-delay: 0ms; }
.gost-animated .gost-titre    { transition-delay: 80ms; }
.gost-animated .gost-divider  { transition-delay: 180ms; }
.gost-animated .gost-soustitre{ transition-delay: 260ms; }
.gost-animated .gost-content  { transition-delay: 340ms; }
.gost-animated .gost-cta      { transition-delay: 400ms; }

/* ── fade_up ── */
.gost-anim-fade_up .gost-tag,
.gost-anim-fade_up .gost-titre,
.gost-anim-fade_up .gost-divider,
.gost-anim-fade_up .gost-soustitre,
.gost-anim-fade_up .gost-content,
.gost-anim-fade_up .gost-cta {
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.gost-anim-fade_up.gost-animated .gost-tag,
.gost-anim-fade_up.gost-animated .gost-titre,
.gost-anim-fade_up.gost-animated .gost-divider,
.gost-anim-fade_up.gost-animated .gost-soustitre,
.gost-anim-fade_up.gost-animated .gost-content,
.gost-anim-fade_up.gost-animated .gost-cta {
  transform: translateY(0);
}

/* ── fade_in ── */
.gost-anim-fade_in .gost-tag,
.gost-anim-fade_in .gost-titre,
.gost-anim-fade_in .gost-divider,
.gost-anim-fade_in .gost-soustitre,
.gost-anim-fade_in .gost-content,
.gost-anim-fade_in .gost-cta {
  transition: opacity .65s ease;
}

/* ── slide_left ── */
.gost-anim-slide_left .gost-tag,
.gost-anim-slide_left .gost-titre,
.gost-anim-slide_left .gost-divider,
.gost-anim-slide_left .gost-soustitre,
.gost-anim-slide_left .gost-content,
.gost-anim-slide_left .gost-cta {
  transform: translateX(-32px);
  transition: opacity .55s ease, transform .55s ease;
}
.gost-anim-slide_left.gost-animated .gost-tag,
.gost-anim-slide_left.gost-animated .gost-titre,
.gost-anim-slide_left.gost-animated .gost-divider,
.gost-anim-slide_left.gost-animated .gost-soustitre,
.gost-anim-slide_left.gost-animated .gost-content,
.gost-anim-slide_left.gost-animated .gost-cta {
  transform: translateX(0);
}

/* ── zoom_in ── */
.gost-anim-zoom_in .gost-tag,
.gost-anim-zoom_in .gost-titre,
.gost-anim-zoom_in .gost-divider,
.gost-anim-zoom_in .gost-soustitre,
.gost-anim-zoom_in .gost-content,
.gost-anim-zoom_in .gost-cta {
  transform: scale(0.96);
  transition: opacity .55s ease, transform .55s ease;
}
.gost-anim-zoom_in.gost-animated .gost-tag,
.gost-anim-zoom_in.gost-animated .gost-titre,
.gost-anim-zoom_in.gost-animated .gost-divider,
.gost-anim-zoom_in.gost-animated .gost-soustitre,
.gost-anim-zoom_in.gost-animated .gost-content,
.gost-anim-zoom_in.gost-animated .gost-cta {
  transform: scale(1);
}

/* ── Accessibilité : respect reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  [class*='gost-anim-'] .gost-tag,
  [class*='gost-anim-'] .gost-titre,
  [class*='gost-anim-'] .gost-divider,
  [class*='gost-anim-'] .gost-soustitre,
  [class*='gost-anim-'] .gost-content,
  [class*='gost-anim-'] .gost-cta {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .gost-inner.container,
  .gost-inner:not(.container) {
    padding-left: 16px;
    padding-right: 16px;
  }
  .gost-soustitre { max-width: 100%; }
  .gost-titre     { letter-spacing: 0; }
}
