/**
 * SMEL — Styles personnalisés (complément à Tailwind)
 * Charte : fond crème, accents rouge/vert libanais, texte bleu nuit.
 */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@500;600;700&display=swap");

html {
  scroll-behavior: smooth;
}

:root {
  --color-cream: #faf9f7;
  --color-navy: #0c1929;
  --color-red: #b91c1c;
  --color-green: #14532d;
  --color-muted: #64748b;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background-color: var(--color-cream);
  color: var(--color-navy);
  -webkit-font-smoothing: antialiased;
}

.font-display {
  font-family: "Montserrat", "Inter", system-ui, sans-serif;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}
.reveal-delay-2 {
  transition-delay: 0.16s;
}
.reveal-delay-3 {
  transition-delay: 0.24s;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.15s ease-in-out;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-heading {
  text-shadow:
    0 2px 28px rgba(12, 25, 41, 0.65),
    0 1px 3px rgba(12, 25, 41, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-slide {
    transition: none;
  }
}

.link-underline {
  position: relative;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
}
.link-underline:hover::after {
  width: 100%;
}

#site-header {
  isolation: isolate;
}

#site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 0;
  height: 8rem;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(12, 25, 41, 0.58) 0%,
    rgba(12, 25, 41, 0.42) 32%,
    rgba(12, 25, 41, 0.22) 62%,
    rgba(12, 25, 41, 0.06) 88%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

#site-header.bg-transparent::before {
  opacity: 1;
}

#site-header.bg-transparent .header-tagline {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.28) !important;
}

#site-header:not(.bg-transparent) .header-tagline {
  color: rgba(12, 25, 41, 0.88);
  text-shadow: none;
  border-color: rgba(12, 25, 41, 0.12) !important;
}

#site-header.bg-transparent .nav-desktop > li > a.link-underline {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

#site-header.bg-transparent .nav-desktop > li > a.link-underline:hover {
  color: #fecaca;
}

#site-header:not(.bg-transparent) .nav-desktop > li > a.link-underline {
  color: rgba(12, 25, 41, 0.9);
  text-shadow: none;
}

#site-header:not(.bg-transparent) .nav-desktop > li > a.link-underline:hover {
  color: var(--color-red);
}

#site-header.bg-transparent #menu-toggle {
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(0, 0, 0, 0.28);
  color: #fff;
}

#site-header:not(.bg-transparent) #menu-toggle {
  border-color: rgba(12, 25, 41, 0.12);
  background-color: rgba(255, 255, 255, 0.78);
  color: var(--color-navy);
}

#site-header.bg-transparent #logo-fallback:not(.hidden) {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

#site-header:not(.bg-transparent) #logo-fallback:not(.hidden) {
  color: var(--color-navy);
  text-shadow: none;
}

.logo-header-white {
  margin: 0;
  padding: 0;
  outline: none;
  box-shadow: none;
}

#site-header.bg-transparent .logo-header-white {
  filter: none;
}

#site-header:not(.bg-transparent) .logo-header-white {
  filter: invert(1);
}
