/* ----------------------------------------
   Base / Police / Couleurs
---------------------------------------- */
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  background-color: #3a3a3a;
  color: #f7f7f7;
  line-height: 1.6;
}

.container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ----------------------------------------
   Header
---------------------------------------- */
header {
  background-color: #3a3a3a;
  padding: 6px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo img {
  height: 90px;
  width: auto;
  display: block;
}

/* Menu Desktop */
nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: #c19c00;
  color: #3a3a3a;
}

/* Menu Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background-color: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

#nav-menu {
  transition: max-height 0.3s ease-out;
}

/* Menu mobile */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    background-color: #3a3a3a;
    position: absolute;
    top: 85px;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    border-top: 2px solid #c19c00;
    z-index: 9999; /* <-- ajouté pour que le menu soit au-dessus de l'image */
  }
  #nav-menu.open ul {
    max-height: 500px;
    padding: 15px 0;
  }
  .hamburger { display: flex; }
  .top-header { flex-direction: row; gap: 15px; }
}

/* ----------------------------------------
   Hero Section (Interventions)
---------------------------------------- */
.interventions-hero {
  position: relative;
  text-align: center;
  padding: 50px 20px;
  background-color: #3a3a3a;
  background-blend-mode: overlay;
  border-radius: 0 0 15px 15px;
  color: #c19c00;
  background-size: cover; /* <-- modifié pour correspondre à la page formation */
  background-position: center;
  background-repeat: no-repeat;
  background-image: url('images/formation.jpg');
}

.interventions-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
  font-weight: 700;
  color: #f7f7f7;
}

.interventions-hero h1 span {
  color: #c19c00;
}

.interventions-hero p {
  font-size: 1.3rem;
  margin-bottom: 25px;
  color: #f7f7f7;
}

.btn-contact {
  background-color: #c19c00;
  color: #3a3a3a;
  padding: 14px 32px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s, transform 0.2s;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(193,156,0,0.5);
}

.btn-contact:hover {
  background-color: #a58500;
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(165,133,0.7);
}

/* ----------------------------------------
   Main Sections
---------------------------------------- */
main {
  padding: 60px 0;
  background-color: #4a4a4a;
  border-radius: 15px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.3);
}

/* Intro Section */
.intro.title-yellow h3 { color: #c19c00; }
.intro p, .intro ul { max-width: 900px; margin: 0 auto; text-align: center; }
.intro ul { padding: 0; list-style: disc; margin-top: 15px; }

.center-text {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, #FFD700, #c19c00, #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: gradientMove 3s linear infinite;
  text-align: center;
}

@keyframes gradientMove {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 0%; }
}

/* ----------------------------------------
   Cards Section (Interventions)
---------------------------------------- */
.interventions-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.interventions-cards .card {
  position: relative;
  background-color: #3a3a3a;
  border-radius: 15px;
  overflow: hidden;
  text-decoration: none;
  color: #c19c00;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
  flex: 0 0 32%;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.interventions-cards .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.7);
}

.interventions-cards .card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-bottom: 3px solid #c19c00;
}

.interventions-cards .card p:first-of-type {
  padding: 12px 10px;
  font-weight: 600;
  font-size: 1.3rem;
  margin: 0 auto;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Bouton "Plus d'info" */
.card-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 20px);
  padding: 10px 20px;
  background-color: rgba(193, 156, 0, 0.9);
  color: #3a3a3a;
  font-weight: 700;
  border-radius: 20px;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.card:hover .card-btn {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

/* ----------------------------------------
   Section "Particuliers, nous vous proposons"
---------------------------------------- */
.interventions-why {
  max-width: 900px;
  margin: 60px auto;
}

.interventions-why h2 {
  color: #c19c00;
  font-size: 2rem;
  margin-bottom: 35px;
  font-weight: 700;
  text-align: center;
}

.interventions-why ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.interventions-why ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
}

.interventions-why ul li .icon {
  font-size: 1.6rem;
  color: #c19c00;
  flex-shrink: 0;
  margin-top: 4px;
}

.interventions-why ul li div {
  flex: 1;
}

.interventions-why ul li p {
  margin: 0 0 6px 0;
  font-size: 1.1rem;
  color: #f7f7f7;
  font-weight: 600;
  line-height: 1.4;
}

/* ----------------------------------------
   Contact Section
---------------------------------------- */
.contact-cta {
  background-color: #3a3a3a;
  padding: 60px 30px;
  text-align: center;
  border-radius: 15px;
  margin: 60px auto;
  max-width: 700px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.contact-cta h2 { color: #c19c00; font-size: 2rem; margin-bottom: 25px; font-weight: 700; }
.contact-cta p { font-size: 1.15rem; margin-bottom: 25px; color: #f7f7f7; }

.contact-info { font-weight: 700; color: #c19c00; font-size: 1.1rem; margin-top: 10px; }

/* ----------------------------------------
   Footer
---------------------------------------- */
footer {
  background-color: #3a3a3a;
  color: #c19c00;
  text-align: center;
  padding: 20px 0;
  font-size: 0.95rem;
  font-weight: 700;
}

footer a { color: #c19c00; text-decoration: none; font-weight: 600; }
footer a:hover { text-decoration: underline; }

/* ----------------------------------------
   Responsive
---------------------------------------- */
@media (max-width: 768px) {
  .interventions-hero { padding: 40px 20px; border-radius: 0 0 10px 10px; }
  .interventions-hero h1 { font-size: 2.2rem; }
  .interventions-hero p { font-size: 1.1rem; }
  .interventions-cards { flex-direction: column; align-items: center; }
  .interventions-why { text-align: center; }
  .contact-cta { padding: 40px 20px; max-width: 100%; }
}

@media (max-width: 480px) {
  footer p { word-break: break-word; text-align: center; padding: 0 10px; }
}