/* Importation de la police Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

body {
  font-family: var(--font-body);
  color: #333;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}

/* --- Header / Navbar --- */
.navbar {
  background-color: var(--sfs-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 1rem 0;
}
.navbar-brand img {
  width: 300px;
  height: 50px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.footer-logo {
  width: 300px;
  height: 68px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin-bottom: 20px;
  padding: 6px 10px;
  box-sizing: border-box;
  background-color: var(--sfs-white);
}

@media (max-width: 576px) {
  .navbar-brand img,
  .footer-logo {
    width: 240px;
    height: 54px;
  }
}
.nav-link {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--sfs-navy) !important;
  margin: 0 10px;
  transition: color 0.3s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--sfs-cyan) !important;
}

/* --- Boutons --- */
.btn-sfs-primary {
  background-color: var(--sfs-navy);
  color: var(--sfs-white);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 10px 25px;
  border-radius: 5px;
  transition: all 0.3s ease;
}
.btn-sfs-primary:hover {
  background-color: var(--sfs-cyan);
  color: var(--sfs-white);
}

.btn-sfs-outline {
  border: 2px solid var(--sfs-white);
  color: var(--sfs-white);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 10px 25px;
  border-radius: 5px;
  transition: all 0.3s ease;
}
.btn-sfs-outline:hover {
  background-color: var(--sfs-white);
  color: var(--sfs-navy);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--sfs-navy) 0%, var(--sfs-dark) 100%);
  color: var(--sfs-white);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.hero h1 span {
  color: var(--sfs-cyan);
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

/* --- Cartes Expertises --- */
.expertise-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  padding: 2rem;
  background: var(--sfs-white);
  border-top: 4px solid var(--sfs-cyan);
}
.expertise-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.expertise-icon {
  font-size: 2.5rem;
  color: var(--sfs-navy);
  margin-bottom: 1rem;
}

/* --- Secteurs --- */
.secteurs-section {
  background-color: var(--sfs-light);
  padding: var(--spacing-lg) 0;
}
.secteur-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.secteur-item i {
  color: var(--sfs-cyan);
  margin-right: 10px;
  font-size: 1.2rem;
}

/* --- Footer --- */
footer {
  background-color: var(--sfs-dark);
  color: var(--sfs-white);
  padding: 60px 0 20px;
}
footer a {
  color: var(--sfs-cyan);
  text-decoration: none;
}
footer a:hover {
  color: var(--sfs-white);
}

/* --- Hero avec arrière-plan défilant --- */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Animation de fondu fluide */
}

.hero-bg.active {
    opacity: 1;
}

/* Superposition bleue (Overlay) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 56, 222, 0.35) 0%, rgba(0, 26, 77, 0.58) 100%);
    z-index: 1;
}

/* Curseur clignotant de l'animation de texte */
.cursor {
    animation: blink 1s infinite;
    color: var(--sfs-cyan);
    font-weight: 300;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Vérification de l'arrière-plan (à garder) */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    filter: none;
    transform: scale(1.02);
}

.hero-bg.active {
    opacity: 1;
}
/* Animations d'entree et au defilement */
.footer-logo {
  width: 100%;
  max-width: 100%;
  height: 110px;
  object-fit: cover;
  object-position: center 49%;
}

@media (max-width: 576px) {
  .footer-logo {
    width: 100%;
    height: 110px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  body.sfs-motion-ready .navbar {
    animation: sfs-nav-enter 650ms ease-out both;
  }

  body.sfs-motion-ready .hero h1,
  body.sfs-motion-ready .hero p,
  body.sfs-motion-ready .hero .btn {
    animation: sfs-content-enter 900ms cubic-bezier(.2,.75,.25,1) both;
  }

  body.sfs-motion-ready .hero p { animation-delay: 160ms; }
  body.sfs-motion-ready .hero .btn { animation-delay: 300ms; }

  .sfs-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 750ms ease, transform 750ms cubic-bezier(.2,.75,.25,1);
  }

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

  .sfs-stagger > .sfs-reveal {
    transition-delay: var(--sfs-delay, 0ms);
  }

  @keyframes sfs-nav-enter {
    from { opacity: 0; transform: translateY(-14px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes sfs-content-enter {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Logo de footer transparent, sans cadre blanc */
.footer-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 110px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 20px;
  padding: 0;
  box-sizing: border-box;
  background-color: transparent;
}

@media (max-width: 576px) {
  .footer-logo {
    width: 100%;
    height: 90px;
  }
}

/* Taille harmonisee et reduite du logotype dans tous les pieds de page */
.footer-logo {
  width: 100%;
  max-width: 360px;
  height: 84px;
  object-fit: contain;
  object-position: left center;
  padding: 0;
  background-color: transparent;
}

@media (max-width: 576px) {
  .footer-logo {
    width: 100%;
    max-width: 320px;
    height: 74px;
  }
}


/* Reserve la place du texte anime pour eviter les sauts visuels. */
.hero #typewriter {
  display: inline-block;
  min-width: 8.5em;
  min-height: 1em;
}

