/* Reset simple */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.6;
}

/* HEADER fixé et transparent au-dessus de la vidéo */
/* Header commun */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.3s ease;
}

/* Page d'accueil : header transparent au départ */
.header-home {
  background: rgba(255,255,255,0.1);
}

/* Autres pages : header opaque dès le chargement */
.header-inner {
  background: rgba(163, 161, 161, 0.95);
}

/* Styles au scroll (uniquement appliqués sur page home) */
.site-header.scrolled a {
  color: black;
}

.site-header.scrolled .nomlogo {
  color: black;
}

/* Le reste de ton CSS header ici... */


.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 8px;
}

.nomlogo {
  font-weight: bold;
  font-size: 1.2em;
  color: #fff; /* pour être visible sur la vidéo */
}

/* MENU par défaut */
.menu {
  display: flex;
}

.menu ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.menu a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.2s;
}

.menu a:hover {
  color: #007bff;
}

/* MENU BURGER à gauche */
.menu-toggle, .close-btn {
  display: none;
  font-size: 1.9em;
  cursor: pointer;
  color: #fff; /* pour être visible sur la vidéo */
}

/* HERO VIDÉO plein écran */
.hero-video {
  position: relative;
  width: 100%;
  height: 100vh; /* 100% de la hauteur de l’écran */
  overflow: hidden;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  z-index: -1;
}

.video-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.video-content h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.video-content p {
  font-size: 1.2em;
  max-width: 600px;
}

/* SECTIONS après la vidéo */
/* SECTIONS */
section {
  padding: 60px 5%;
}

section h2 {
  font-size: 2em;
  text-align: center;
  margin-bottom: 20px;
}

section h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
}

section p {
  max-width: 1000px;
  margin: 0 auto 20px;
  text-align: center;
}

/* À propos */
.apropos {
  background: #fff;
  border-radius: 8px;
  padding: 40px 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.apropos p {
  margin-bottom: 15px;
  font-size: 16px;
}

/* Nos services */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 7px; /* ajoute l’espacement horizontal ET vertical entre les colonnes et les lignes */
}

.service {
  background: #fff;
  border-radius: 8px;
  width: 300px;
  height: 400px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.service img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.service h3 {
  font-size: 18px;
  color: #004a87;
  margin: 15px 5px 10px;
  
}

.service p {
  font-size: 14px;
   margin: 0px 5px 10px;
  flex: 1;
  text-align: left;
}

.service-btn {
  background: #0067b8;
  color: #fff;
  text-align: center;
  margin: 0 15px 15px;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.service-btn:hover {
  background: #004a87;
}

/* Adaptations sur petits écrans */
@media (max-width: 600px) {
  .services-list {
    grid-template-columns: 1fr; /* une seule colonne */
    justify-items: center;
  }
  .service h3 {
    font-size: 16px;
    text-align: left;
  }
  .service p {
    font-size: 14px;
    text-align: left;
  }
  .service-btn {
    font-size: 14px;
    padding: 10px 10px;
    margin-bottom: 50px;
  }
}

.service-section {
  max-width: 900px;
  margin: 40px auto 40px auto; /* 100px en haut, 40px en bas */
  padding: 0px 20px;
  text-align: center;
}


/* Modale */
.modal {
  display: none; 
  position: fixed; 
  z-index: 999; 
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  overflow: auto;
}
.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.close {
  float: right;
  font-size: 26px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}
.close:hover {
  color: #000;
}
/* Responsive */
@media (max-width: 600px) {
  .service {
    width: 90%;
  }
  .modal-content {
    margin: 20% auto;
    padding: 15px;
  }
}

/* CTA */
.cta {
  background: #034185;
  color: #fff;
  text-align: center;
  padding: 50px 5%;
  border-radius: 12px;
}

.cta .btn {
  display: inline-block;
  background: #fff;
  color: #007bff;
  margin: 10px;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s;
}

.cta .btn:hover {
  background: #e0e0e0;
}

/* MENU RESPONSIVE burger à gauche */
@media (max-width: 1024px) {
  .menu {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.4); /* noir transparent */;
    height: 100%;
    width: 400px;
    flex-direction: column;
    padding: 60px 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    z-index: 1001;
  }

  .menu ul {
    flex-direction: column;
    gap: 15px;
  }

  .menu-toggle {
    display: block;
  }

  .close-btn {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
  }

  #overlay.active {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
  }
}

/* Contact section styling */
.contact-section {
  padding: 90px 20px;
  background: #f9f9f9;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-title {
  font-size: 28px;
  margin-bottom: 10px;
  color: #333;
  text-align: center;
}

.contact-subtitle {
  font-size: 16px;
  margin-bottom: 30px;
  color: #666;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #007BFF;
  outline: none;
}

.contact-form button {
  padding: 12px;
  background: #007BFF;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .contact-container {
    padding: 30px 20px;
  }

  .contact-title {
    font-size: 24px;
  }
}

/* Footer */
.site-footer {
  background: #ffffff;
  color: #000000;
  text-align: center;
  padding: 20px;
  font-size: 0.95em;
}

.site-footer a {
  color: #000000;
  text-decoration: underline;
}

.site-footer p {
  margin: 8px 0;
}

.site-footer .mentions {
  font-size: 0.85em;
}

/* Structure générale */
.about-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: "Segoe UI", Roboto, sans-serif;
  color: #333;
  line-height: 1.6;
}

/* Titres */
.about-section h2 {
  font-size: 28px;
  margin: 40px 0 20px;
  text-align: center;
  color: #1e4d91;
  position: relative;
}

.about-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #f04e30;
  margin: 8px auto 0;
  border-radius: 3px;
}

/* Textes */
.about-text {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: justify;
}

.about-text .intro {
  margin: 0 auto;
}

/* Containers */
.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}

.about-image {
  flex: 1 1 300px;
  text-align: center;
  padding: 10px;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.about-container .about-text {
  flex: 1 1 400px;
  padding: 10px 20px;
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #f04e30;
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
  margin-top: 10px;
}

.btn:hover {
  background-color: #d93e24;
}

/* Atouts */
.atouts {
  background: #f9fafb;
  padding: 40px 20px;
  border-radius: 12px;
  margin-top: 40px;
}

.atouts-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.atout {
  flex: 1 1 200px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.atout:hover {
  transform: translateY(-5px);
}

.atout i {
  font-size: 30px;
  color: #1e4d91;
  margin-bottom: 10px;
}

.atout h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

.atout p {
  font-size: 15px;
  color: #555;
}

/* CTA contact */
.contact-cta {
  text-align: center;
  margin: 40px 0 0;
}

/* Responsive */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
  }

  .about-container .about-text {
    text-align: center;
    padding: 10px;
  }

  .about-text {
    text-align: center;
  }
}

/* Connexion */
.login-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 90px 20px;
  min-height: 70vh;
  background: #f9fafb;
}

.login-container {
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.login-container h2 {
  color: #1e4d91;
  margin-bottom: 20px;
  font-size: 26px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: border 0.3s;
}

.form-group input:focus {
  border-color: #1e4d91;
  outline: none;
}

.login-info {
  margin-top: 15px;
  font-size: 14px;
  color: #555;
}

.login-info a {
  color: #f04e30;
  text-decoration: none;
  font-weight: 500;
}

.login-info a:hover {
  text-decoration: underline;
}

.forgot-password {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  text-align: right;
}

.forgot-password a {
  color: #1e4d91;
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}

.reset-info {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}


/* On réutilise .btn déjà défini */

