/* ----------------------------------------
   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;
}

@media (max-width: 768px) {
  /* Menu mobile */
  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;
  }

  #nav-menu.open ul {
    max-height: 500px;
    padding: 15px 0;
  }

  .hamburger { display: flex; }
  .top-header { flex-direction: row; gap: 15px; }

  /* Hero Formation */
  .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; }

  /* Cards Formation – même taille pour toutes les cards */
  .interventions-cards {
    flex-direction: column;
    align-items: center;
  }
  .interventions-cards .card {
    flex: 0 0 90%; /* toutes les cards prennent 90% de la largeur */
    max-width: 400px; /* limite la taille si écran large */
    margin-bottom: 25px; /* espace entre les cards */
  }

  .why-cards { flex-direction: column; align-items: center; gap: 25px; }

  /* Contact Section */
  .contact-cta { padding: 40px 20px; max-width: 100%; }

  /* Encadré conseil formation */
  .advice-box { padding: 20px 20px; max-width: 90%; }
  .advice-box h2 { font-size: 1.3rem; }
  .advice-box p { font-size: 1rem; }

  /* Statistiques – cercles alignés verticalement */
  @media (max-width: 480px) {
  .circle {
    --size: 120px;
  }
}
}
/* ----------------------------------------
   Hero Section (Formation)
---------------------------------------- */
.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-image: url('images/formation.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.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);
}

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

/* Intro section */
.intro p, .intro ul { max-width: 900px; margin: 0 auto; text-align: center; }
.intro ul { padding: 0; list-style: disc; margin-top: 15px; }

.intro-title {
  color: #c19c00;
  text-align: center;
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 25px;
}

.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-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.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;
}

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

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

.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;
}

/* ----------------------------------------
   Sections "Nos +" (Why Section)
---------------------------------------- */
.interventions-why {
  max-width: 900px;
  margin: 60px auto;
  text-align: left;
}

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

.why-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.why-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #424242;
  padding: 18px 25px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  min-width: 260px;
  max-width: 320px;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.6);
}

.why-card .icon {
  font-size: 1.8rem;
  color: #c19c00;
  flex-shrink: 0;
}

.why-card p {
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
  color: #f7f7f7;
}

/* ----------------------------------------
   Statistiques – Cercles de pourcentage
---------------------------------------- */
.stats-section {
  text-align: center;
  margin: 60px auto;
}

.stats-title {
  color: #c19c00;
  font-size: 2rem;
  margin-bottom: 40px;
  font-weight: 700;
}

.stats-circles {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
  gap: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.circle {
  --size: 160px;
  --thickness: 12px;
  --percent-current: 0;

  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: conic-gradient(
      #c19c00 calc(var(--percent-current) * 1%),
      #555 0
    );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  margin-bottom: 12px;
  transition: background 1.5s ease-out;
}

.circle::before {
  content: "";
  width: calc(var(--size) - var(--thickness) * 2);
  height: calc(var(--size) - var(--thickness) * 2);
  background-color: #3a3a3a;
  border-radius: 50%;
  position: absolute;
}

.circle span {
  position: relative;
  font-size: 2.2rem;
  font-weight: 700;
  color: #c19c00;
}

.stat p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #f7f7f7;
  text-align: center;
}

/* ----------------------------------------
   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, .contact-info { font-size: 1.15rem; margin-bottom: 25px; color: #f7f7f7; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 auto 30px auto;
  max-width: 600px;
}

.contact-form label { color: #c19c00; font-weight: 700; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  background-color: #f7f7f7;
  color: #3a3a3a;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.15);
  transition: box-shadow 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 6px 3px #c19c00;
}

.contact-form button {
  background-color: #c19c00;
  color: #3a3a3a;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(193,156,0,0.6);
  max-width: 200px;
  align-self: center;
}

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

/* ----------------------------------------
   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; }
  .why-cards { flex-direction: column; align-items: 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; }
}

@media (max-width: 1024px) {
  .stats-circles {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .stats-circles {
    flex-direction: column;
    gap: 35px;
  }

  .circle {
    --size: 140px;
  }
}

@media (max-width: 480px) {
  .circle {
    --size: 120px;
  }
}

/* ----------------------------------------
   Encadré conseil formation
---------------------------------------- */
.formation-advice {
  margin: 50px auto;
  display: flex;
  justify-content: center;
}

.advice-box {
  background-color: #424242;
  border-left: 6px solid #c19c00;
  border-radius: 12px;
  padding: 25px 30px;
  max-width: 650px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.advice-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.advice-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.advice-box h2 {
  font-size: 1.5rem;
  color: #c19c00;
  margin-bottom: 12px;
  font-weight: 700;
}

.advice-box p {
  font-size: 1.05rem;
  color: #f7f7f7;
  line-height: 1.5;
}

/* Responsive encadré */
@media (max-width: 768px) {
  .advice-box {
    padding: 20px 20px;
    max-width: 90%;
  }
  .advice-box h2 { font-size: 1.3rem; }
  .advice-box p { font-size: 1rem; }
}

@media (max-width: 480px) {
  .advice-box h2 { font-size: 1.2rem; }
  .advice-box p { font-size: 0.95rem; }
}