/* Classe utilitaire pour les titres display (Barlow Condensed 800) */
.title-display {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
}

/* Base styles */
body {
    line-height: 1.6;
    color: #4b5563;
}

.container {
    max-width: 1200px;
}

/* Custom animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Section spacing */
section {
    padding: 4rem 0;
}

/* Custom button styles */
.btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Responsive typography */
@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
        line-height: 1.2;
    }
}

/* Prevent horizontal weirdness */
html, body {
  width: 100%;
  overflow-x: hidden;
}

/* Make sure custom elements behave like blocks even before upgrade */
custom-header, custom-footer {
  display: block;
}

/* If your header is fixed/sticky, ensure it doesn't overlap */
:root {
  --header-height: 72px; /* adjust if your header is taller */
}

/* OPTIONAL: only if your header uses position: fixed or sticky */
body.has-fixed-header main {
  padding-top: var(--header-height);
}

/* =====================
   PAGE LOADER
   ===================== */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #020617; /* slate-950 */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-loader.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-monogram {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 5.5rem;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
  animation: loaderFadeUp 0.5s ease both;
}

.loader-name {
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  color: #94a3b8; /* slate-400 */
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.6rem;
  animation: loaderFadeUp 0.5s 0.1s ease both;
}

.loader-subtitle {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  color: #475569; /* slate-600 */
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
  animation: loaderFadeUp 0.5s 0.15s ease both;
}

.loader-bar {
  width: 100px;
  height: 2px;
  background: #1e293b; /* slate-800 */
  margin-top: 2rem;
  border-radius: 2px;
  overflow: hidden;
  animation: loaderFadeUp 0.5s 0.2s ease both;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #fbbf24, #1d4ed8); /* amber-400 → blue-700 */
  border-radius: 2px;
  animation: loaderProgress 1.1s 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loaderFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes loaderProgress {
  0%   { width: 0%; }
  65%  { width: 70%; }
  100% { width: 100%; }
}
