/* ================================================================
   SIAAR — Enhancements CSS
   Topbar, Logo, Social Links, Timeline
   ================================================================ */

/* ── Topbar / Announcement Bar ──────────────────────────────────
   DESKTOP : 1 ligne, 36px, texte centré
   MOBILE  : ticker défilant automatique, hauteur fixe 34px
   z-index : 1200 — au-dessus de tout
   ─────────────────────────────────────────────────────────────── */

/* Conteneur principal */
#announcement-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1200;
  background: linear-gradient(90deg, #2D7A2D 0%, #D4892A 35%, #2B4FAB 65%, #7B1F3A 100%);
  background-size: 300% 100%;
  animation: gradShift 8s ease infinite;
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  overflow: hidden;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* Layout desktop — flex centré */
#announcement-bar .ann-inner {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 0 5%;
}

/* Points clignotants */
#announcement-bar .ann-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  animation: blink 1.5s ease infinite;
  flex-shrink: 0;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }

/* Texte principal */
#announcement-bar .ann-text {
  white-space: nowrap;
}

/* Lien */
#announcement-bar a.ann-link {
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 3px;
  padding: 2px 10px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.25s;
}
#announcement-bar a.ann-link:hover {
  background: rgba(255,255,255,0.3);
}

/* ── MOBILE : ticker défilant ────────────────────────────────── */
/* ── MOBILE : layout [badge | ticker défilant | lien statique] ── */
@media (max-width: 768px) {

  /* Cache le layout desktop */
  #announcement-bar .ann-inner {
    display: none;
  }

  /* Conteneur mobile : flex row, overflow hidden sur la zone ticker */
  #announcement-bar .ann-ticker-wrap {
    display: flex;
    align-items: center;
    height: var(--topbar-h);
    width: 100%;
  }

  /* Badge statique GAUCHE */
  #announcement-bar .ann-ticker-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 100%;
    padding: 0 8px;
    background: rgba(0, 0, 0, 0.25);
    font-size: 0.52rem;
    letter-spacing: 0.12em;
    font-weight: 700;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }

  /* Zone centrale : overflow:hidden pour que le ticker reste dedans */
  #announcement-bar .ann-ticker-zone {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
  }

  /* Le track qui défile — texte dupliqué pour continuité */
  #announcement-bar .ann-ticker-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 0.6rem;
    letter-spacing: 0.07em;
    animation: tickerScroll 20s linear infinite;
    will-change: transform;
  }
  @keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  #announcement-bar .ann-ticker-track .t-item {
    padding: 0 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
  }
  #announcement-bar .ann-ticker-track .t-sep {
    color: rgba(255, 255, 255, 0.35);
    margin: 0 0.2rem;
  }

  /* Lien statique DROITE — TOUJOURS visible, ne défile pas */
  #announcement-bar .ann-ticker-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 100%;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s;
  }
  #announcement-bar .ann-ticker-link:hover {
    background: rgba(255, 255, 255, 0.25);
  }

  /* Cache les points desktop */
  #announcement-bar .ann-dot { display: none; }
}

/* Sur desktop, cache tout le bloc ticker mobile */
@media (min-width: 769px) {
  #announcement-bar .ann-ticker-wrap { display: none; }
}

/* ── Burger : TOUJOURS visible au-dessus de tout ────────────────
   Le burger est à l'intérieur du header (z-index 1100).
   Sur desktop la nav est visible, le burger est caché.
   Sur mobile le burger apparaît — il est dans le header (1100),
   sous la topbar (1200). C'est voulu : la topbar est 36px et
   le header commence à 36px donc il n'y a aucun chevauchement.
   ─────────────────────────────────────────────────────────────── */

/* ── Offset du contenu de page ──────────────────────────────────
   topbar (36px) + header (72px) = 108px de chrome fixe en haut
   ─────────────────────────────────────────────────────────────── */
body.has-banner .hero-page {
  padding-top: calc(var(--topbar-h) + var(--header-h) + 2.5rem);
}
/* Le hero pleine page d'accueil a son propre padding inline */

/* ── Logo image ──────────────────────────────────────────────── */
.logo-img {
  height: 48px;
  width: auto;
  display: block;
  /* Pas de filter — le logo est transparent PNG en couleurs naturelles */
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.6));
}
.logo-img-footer {
  height: 60px;
  width: auto;
  display: block;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.4));
}

/* ── Social links ────────────────────────────────────────────── */
.social-links-full {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.social-links-full a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: var(--cream);
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.3s var(--ease-expo);
  text-decoration: none;
}
.social-links-full a:hover {
  transform: translateY(-4px) scale(1.12);
}
.social-facebook:hover  { background: #1877F2; border-color: #1877F2; color: #fff; }
.social-instagram:hover {
  background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);
  border-color: transparent; color: #fff;
}
.social-twitter:hover   { background: #000; border-color: #000; color: #fff; }
.social-telegram:hover  { background: #0088cc; border-color: #0088cc; color: #fff; }
.social-youtube:hover   { background: #FF0000; border-color: #FF0000; color: #fff; }
.social-linkedin:hover  { background: #0077B5; border-color: #0077B5; color: #fff; }
.social-whatsapp:hover  { background: #25D366; border-color: #25D366; color: #fff; }

/* ── Timeline (page À Propos) ────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2.2rem;
}
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--green), var(--gold), var(--blue), var(--burgundy));
}
.timeline-item {
  position: relative;
  margin-bottom: 2.8rem;
}
.timeline-dot {
  position: absolute;
  left: -2.65rem; top: 5px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--dark);
  box-shadow: 0 0 0 3px rgba(212,137,42,0.2);
}
.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}
.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--cream);
}
.timeline-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}
