:root{
  --blue:#0c2f66;
  --blue2:#143f86;
  --yellow:#ffc400;
  --light:#f5f8fc;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Segoe UI,sans-serif;
}

body{
  background:white;
}

header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 40px;
  background:white;
  box-shadow:0 2px 10px rgba(0,0,0,.1);
}

.logo-zone img{
  height:70px;
}

.title-zone h1{
  color:var(--blue);
  font-size:30px;
}

.title-zone p{
  color:#666;
}

nav a{
  text-decoration:none;
  margin-left:20px;
  color:#222;
  font-weight:600;
}

nav .active{
  color:var(--yellow);
}

.topbar{
  background:var(--blue);
  padding:12px 30px;
  display:flex;
  justify-content:space-between;
  align-items:center; /* Aligne verticalement le téléphone et le bouton */
  color:white;
}

.topbar a{
  background:var(--yellow);
  padding:10px 20px;
  text-decoration:none;
  font-weight:bold;
  color:black;
  border-radius:5px;
  transition: background 0.3s;
}
.topbar a:hover {
  background: #e0ad00;
}

/* HERO OPTIMISÉ (Ajout d'un overlay pour la lisibilité du texte) */
.hero{
  display:grid;
  grid-template-columns:1fr 420px;
  padding:80px;
  background: linear-gradient(rgba(12, 47, 102, 0.7), rgba(12, 47, 102, 0.7)), url(images/hero.jpg) center/cover;
  gap: 40px;
  align-items: center;
}

.hero-left{
  color:white;
}

.hero-left h2{
  font-size:55px;
  margin-bottom: 20px;
}

.hero-left p {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.5;
}

.hero-left span{
  color:var(--yellow);
}

/* AJOUT : Styles des boutons du Hero qui manquaient */
.hero-buttons {
  display: flex;
  gap: 15px;
}

.btn-yellow, .btn-white {
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
}

.btn-yellow {
  background: var(--yellow);
  color: black;
}

.btn-white {
  background: white;
  color: var(--blue);
}

.btn-yellow:hover, .btn-white:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.hero-form{
  background:white;
  padding:30px;
  border-radius:15px;
  box-shadow:0 5px 30px rgba(0,0,0,.2);
}

.hero-form h3 {
  color: var(--blue);
  margin-bottom: 20px;
  font-size: 22px;
}

.hero-form input,
.lead input,
.contact-box input{
  width:100%;
  padding:12px;
  margin-bottom:15px;
  border:1px solid #ddd;
  border-radius:8px;
  font-size: 14px;
}

.row{
  display:flex;
  gap:10px;
}

button{
  background:var(--yellow);
  border:none;
  padding:15px;
  width:100%;
  font-weight:bold;
  border-radius:8px;
  cursor:pointer;
  font-size: 16px;
  transition: background 0.3s;
}

button:hover {
  background: #e0ad00;
}

.stats{
  display:flex;
  gap:20px;
  padding:50px;
  justify-content:center;
}

.card{
  background:white;
  padding:30px;
  border-radius:15px;
  box-shadow:0 5px 15px rgba(0,0,0,.1);
  text-align:center;
  width:250px;
}

.card h3{
  color:var(--blue);
  font-size:35px;
}

.carousel{
  max-width:1200px;
  height:500px;
  margin:30px auto;
  overflow:hidden;
  border-radius:15px;
  position: relative; /* Pour positionner les contrôles sur l'image */
}

.carousel img{
  width:100%;
  height:500px;
  object-fit:cover;
  display:none;
}

.carousel img.active{
  display:block;
}

/* AJOUT : Positionnement basique pour les flèches du carrousel */
.controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
  pointer-events: none;
}

.controls button {
  width: auto;
  padding: 10px 15px;
  background: rgba(0,0,0,0.5);
  color: white;
  pointer-events: auto;
}

.intro {
  text-align: center;
  padding: 60px 20px;
  background: var(--light);
}

.intro h2 {
  color: var(--blue);
  font-size: 32px;
  margin-bottom: 15px;
}

.lead{
  background:var(--blue);
  padding:60px;
  color:white;
  text-align: center;
}

.lead h2 {
  margin-bottom: 20px;
}

.lead form{
  background:white;
  padding:30px;
  max-width:900px;
  margin:auto;
  border-radius:15px;
  color: #222; /* Empêche le texte du formulaire d'être blanc */
  text-align: left;
}

footer{
  background:#082247;
  color:white;
  margin-top:50px;
}

.footer-grid{
  display:flex;
  justify-content:space-between;
  padding:50px;
}

.footer-logo{
  height:70px;
}

.footer-grid a{
  display:block;
  color:white;
  text-decoration:none;
  margin-top:10px;
}

.copyright{
  text-align:center;
  padding:20px;
  background:#061a35;
}

/* RESPONSIVE */
@media(max-width:900px){
  .hero{
    grid-template-columns:1fr;
    padding:30px;
  }
  .hero-left h2{
    font-size:35px;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .row{
    flex-direction:column;
    gap: 0;
  }
  .stats{
    flex-direction:column;
    align-items:center;
  }
  .footer-grid{
    flex-direction:column;
    gap:30px;
  }
  header{
    flex-direction:column;
    gap:15px;
    text-align:center;
  }
  .topbar{
    flex-direction:column;
    gap:10px;
    text-align: center;
  }
}

.contact-box h2 {
    color: var(--blue);
    margin-bottom: 25px;
    font-size: 24px;
    text-align: center;
}

/* Pour éviter que le bouton soit collé aux inputs */
.contact-box form button {
    margin-top: 10px;
}
