:root {
  --primary: #0a1f44;
  --secondary: #d4af37;
  --text: #333;
  --white: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

.nav-links a {
  margin-left: 1.5rem;
  font-weight: 500;
  color: var(--primary);
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--secondary);
}

.hero {
  height: 127vh;
  background: linear-gradient(rgba(10, 31, 68, 0.5), rgba(10, 31, 68, 0.5)),
              url('images/FJH.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  color: var(--white);
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #0a1f44, #1e3a8a);
  color: white;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px #d4af37;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #1e3a8a, #0a1f44);
}

.btn2 {
  display: inline-block;
  position: relative;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #0a1f44, #1e3a8a);
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 50px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 10px 0;
  z-index: 1;
}

.btn2 .text {
  position: relative;
  z-index: 2;
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.btn2 .text-2 {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, 50%);
  opacity: 0;
}

.btn2:hover {
  box-shadow: 0 8px 18px #d4af37;
  transform: translateY(-2px);
}

.btn2:hover .text-1 {
  transform: translateY(-100%);
  opacity: 0;
}

.btn2:hover .text-2 {
  transform: translate(-50%, -50%);
  opacity: 1;
}

/* Images - Responsive zoom fix */
.grid-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 250px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .btn {
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
  }
  .btn2 {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
  }
  .navbar .container {
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
  }
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.1rem;
    margin-top: 0.1rem;
  }
  .nav-links a {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
  }
  .nav-links a i {
    font-size: 1rem;
  }
  .container1 {
    padding: 1.2rem;
  }
  .box-container1 a {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
  .grid-item img {
    max-height: 180px;
  }
}

/* Tu peux ajouter d'autres media queries si besoin pour les écrans <480px ou <360px */
