
/* Bouton retour en haut */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background 0.3s;
}
.back-to-top:hover {
  background: #7a4e4e;
}
  /* SECTION CONTACT centrée */
  
  #accueil {
    padding-top: 100px;
    padding-bottom: 10px;
  }
  .bloc-texte {
  max-height: 1000px;   /* limite la hauteur */
  max-width: 1000px;    /* limite la largeur */
  overflow-y: auto;    /* ajoute un ascenseur vertical si trop long */
  overflow-x: hidden;  /* évite de scroller horizontalement */
  padding: 10px;
  border: 1px solid #ccc; /* optionnel : pour bien voir la zone */
}
  #contact {
  text-align: left;
  }
  .NousContacter p {
    text-align: left;
  }
  #qui-sommes-nous {
    margin-bottom: 10px;
  }
/* on cache le sous-menu par défaut */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 1000;
  background: #f9f9f9;
  min-width: 160px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 0;
  margin: 0;
  list-style: none;
}

.dropdown-menu li a {
  display: block;
  padding: 10px;
  color: black;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background: #666;
}
.menutop2 a:hover{
  background: orange;
}


/* ici on affiche le sous-menu quand on survole le parent */
.menutop-accueil:hover .dropdown-menu {
  display: block;
  position: absolute;
  background-color:#666;
}
.menutop-accueil{
  position: relative;
}
/* Flèche ▼ à droite de "Accueil" */
.menutop-accueil > a::after {
  content: " ▼";
  font-size: 0.7em;
  margin-left: 5px;
  display: inline-block;
  transition: transform 0.3s ease;
}
/* Sous-menu de niveau 3 : aligné à droite */
.dropdown-menu li{
  position: relative;
}
.dropdown-menu li ul {
  display: none;               /* masqué par défaut */
  position: absolute;          /* indispensable */
  top: 0;
  left: 100%;                  /* se colle à droite du parent */
  background-color: #666;

  min-width: 150px;
}
/* Affichage au survol */
.dropdown-menu li:hover > ul {
  display: block;
}

#contact p {
  margin: 8px 0;
}
body {
  margin: 0;
  font-family: Helvetica, sans-serif;
  color: #333;
  line-height: 1.6;
  /*  font-family: 'Lato', sans-serif;*/
    

    /*background-image: url('); /* chemin vers ton image */
  background-size: cover;    /* l’image couvre tout l’écran */
  background-repeat: no-repeat; /* empêche la répétition */
  background-position: center center; /* centre l’image */
}
header {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* logo collé à gauche */
  padding: 10px 10px;
  background-color:#0f172a;
  position: sticky;
  top: 0px;
  height: 65px;
  z-index: 1000;
}
/* logo acdc */
.capitol {
  position: relative;
  background-image: url("capitol.jpg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 1000px;
  opacity: 0.8;
}

.capitol img {
  position: absolute;     /* se place par rapport à .capitol */
  top: 20px;              /* distance fixe depuis le haut */
  left: 50%;              /* point de référence au milieu */
  transform: translateX(-50%); /* recentre parfaitement */
  max-height: 250px;
  width: auto;
}

/* Responsive tablettes */
@media (max-width: 768px) {
  .capitol {
    height: 600px; /* réduit la hauteur du fond */
  }
  .capitol img {
    top: 18%;          /* ajuste la position */
    max-height: 150px; /* logo plus petit */
  }
}

/* Responsive mobiles */
@media (max-width: 480px) {
  .capitol {
    height: 400px;
  }
  .capitol img {
    top: 15%;          /* encore plus haut pour rester centré */
    max-height: 120px; /* logo adapté aux petits écrans */
  }
}

/* Responsive : très petits écrans ≤ 480px *
@media (max-width: 480px) {
  .capitol {
    height: 400px;
  }

  .capitol img {
    max-height: 120px;
    margin-top: 15px;
  }
}*/
header img {
  max-height: 160px;
  margin-right: 40px;
}
nav {
  margin: 0 auto; /* centre le menu horizontalement dans l'espace restant */
}

nav ul {
  display: flex;
  list-style: none;
  gap: 35px; /* espace entre les liens */
  padding: 0;
  margin: 0;
}

nav a {
  text-decoration: none;
  color:#aaa;
  font-weight: 20;
  font-size: 20px;
  font-family: 'lato';
}

nav a:hover {
  color: white;
}
/* travail sur nous conter */
li a.contact-link {
  position: relative;
  display: inline-block;
  font-weight: 100;
}

li a.contact-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px; /* espace sous le texte */
  width: 140px;
  height: 6px;
  background: transparent;
  border-bottom: 2px solid white; /* couleur blanche */
  border-radius: 50%;
  transform: translateX(-50%);
}
nav a:hover::after{
  border-bottom: 2px solid #7a4e4e; /* couleur braun */
  
}
p{
  font-size: 20px;
}
/*---*/

.main {
  background-image: url('ACDC_PAT/site_web/image/capitol.jpg');
  background-size: cover;        /* couvre toute la largeur et hauteur */
  background-position: center;   /* centre l’image */
  background-repeat: no-repeat;  /* pas de répétition */
  width: 100%;                   /* largeur totale */
  min-height: 400px;             /* hauteur minimum, à ajuster */
}

main {
  padding: 40px  20px;
  max-width: 1000px;
  margin: auto;      
}

.menutop{
  position: relative;
}
.menutop a, .dropdown-menu a,.dropdown a{
  text-align: center;
  font-family: raleway,Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; 
}

ul{
  text-align: center;
}

section {
  margin-bottom: 60px;
}

.legal {
  margin-top: 20px;
  font-size: 0.9em;
  color: #666;
}

.capitol .menu {
  position: absolute;
  top: 240px; 
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.capitol .menu ul {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.capitol .menu li {
  list-style: none;
  position: relative;
}

.capitol .menu li:not(:last-child)::after {
  content: "|";                     /* ajoute le séparateur */
  color: rgb(80, 53, 3);                     /* couleur du séparateur */
  margin-left: 20px;                 /* espace avant/après */
  font-size: 30px;
  font-weight: bold;
}

.capitol .menu a {
  text-decoration: none;
  font-weight: 50;
  font-size: 30px;
  color: white;
  transition: color 0.3s;
}
.capitol .menu a:hover {
  color: orange;
}
/* menu options sur les opérations */
section {
  padding: 80px 20px;      /* espace intérieur */
  max-width: 1000px; 
}

section h2 {
  color: #7a4e4e;
  margin-bottom: 20px;
}
.img-moi{
  display: flex;
  max-height: 1560px;
  height: 540px;
  margin: 0;
  gap: 60px;

}
.img-moi .orange-link{
  color: orange;        /* couleur du texte */
  text-decoration: none; /* enlève le soulignement */
  font-weight: bold;     /* optionnel : pour le rendre plus visible */
}
section .img-moi p{
text-align: justify;
font-size: 15px;
}
#qui-sommes-nous ul {
  text-align: left;   /* aligne à gauche */
  margin-left: 20px;  /* ajoute un retrait */
}

footer {
  background:#0F172A;
  border-top: 2px solid #ddd;
  padding: 5px 10px;
  text-align: center;
  
    /*margin-bottom:200px;*/
}

footer img {
  max-height: 180px;
  position: relative;
  height: 240px;

}
    
footer p {
  margin: 5px,0;
  text-decoration: none;
  color: white;
}
  
footer a {
  color: rgb(163, 22, 22);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px)
{
  .form-row {
    flex-direction: column;
  }
}

/*  expertise */
    #expert section {
      margin: 0;
      font-family: 'Raleway', sans-serif;
      background: #000;
      color: #fff;
      margin-top: 50px;
     
    }
    .expertises {
      text-align: center;
      padding: 60px 20px;
      width: 100%;
    }

    .expertises h2 {
      font-size: 36px;
      font-weight: 400;
      margin-bottom: 50px;
      letter-spacing: 2px;
    }

    .expertise img {
      width: 80px;
      height: 80px;
      margin-bottom: 20px;
    }

    .expertise h3 {
      color: #ff8c00; /* Orange */
      font-size: 20px;
      margin-bottom: 15px;
    }

    .expertise p {
      font-size: 15px;
      line-height: 1.5;
      color: #ddd;
    }

    .expertise p em {
      color: #aaa;
    }

    /* Responsive */
    @media (max-width: 900px) {
      .expertises h2 {
        font-size: 28px;
      }
      .expertise-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
      }
    }
