/* ===========================
   RESET ET TYPOGRAPHIE
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #1e1e1e;
  color: #f7f7f7;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* ===========================
   HEADER
=========================== */
header {
  background-color: #111;
  padding: 15px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 55px;
}

nav ul {
  display: flex;
  gap: 25px;
}

nav a {
  color: #f7f7f7;
  font-weight: 600;
  transition: 0.3s;
}

nav a:hover,
nav a.active {
  color: #c19c00;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
}

/* ===========================
   HERO
=========================== */
.hero {
  height: 300px;
  background: url('images/br.jpg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.6);
}

.hero-content {
  position: relative;
  color: #fff;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.2rem;
}

.btn-primary {
  display: inline-block;
  margin-top: 20px;
  background-color: #c19c00;
  color: #111;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 6px;
  transition: 0.3s;
}

.btn-primary:hover {
  background-color: #fff;
  color: #111;
}

/* ===========================
   FORMATION SECTION
=========================== */
.formation {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.4rem;
  color: #c19c00;
  margin-bottom: 60px;
}

.formation-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}

/* ---------------------------
   COLONNE GAUCHE CARDS
--------------------------- */
.card {
  background-color: #2a2a2a;
  padding: 35px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: none; /* suppression du liseré pour gauche */
}

.card h3 {
  margin-bottom: 20px;
  color: #c19c00;
}

.card ul {
  padding-left: 20px;
}

.card li {
  margin-bottom: 10px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}

/* validation card spécifique (plus de liseré) */
.highlight {
  border-left: none;
}

/* ---------------------------
   SIDEBAR DROITE
--------------------------- */
.formation-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 120px;
}

.sidebar-card {
  background-color: #2a2a2a;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 6px solid #c19c00; /* liseré jaune */
}

.sidebar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.sidebar-card span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #ccc;
  margin-bottom: 5px;
}

.sidebar-card strong {
  font-size: 1rem;
}

.sidebar-card p {
  margin-top: 5px;
  font-size: 0.85rem;
  color: #f7f7f7;
}

.sidebar-card.price {
  background-color: #111;
  color: #f7f7f7;
}

.sidebar-card.price span {
  color: #c19c00;
}

/* ---------------------------
   CONTACT
--------------------------- */
.contact {
  background-color: #111;
  color: #f7f7f7;
  padding: 70px 0;
  text-align: center;
}

.contact h2 {
  color: #c19c00;
  margin-bottom: 20px;
}

.contact p {
  margin-bottom: 20px;
}

.contact a.btn-primary {
  margin-bottom: 20px;
}

/* ---------------------------
   FOOTER
--------------------------- */
footer {
  background-color: #111;
  color: #aaa;
  text-align: center;
  padding: 25px 0;
  font-size: 0.9rem;
}

/* ===========================
   RESPONSIVE
=========================== */
@media(max-width:1024px) {
  .formation-grid {
    grid-template-columns: 1fr;
  }

  .formation-sidebar {
    position: relative;
    top: 0;
  }
}

@media(max-width:768px) {
  nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;           /* <-- ajouté */
    width: 100%;       /* <-- ajouté */
    background-color: #111;
    padding: 20px;
    z-index: 9999;     /* <-- ajouté */
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
  }

  .hamburger {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2rem;
  }
}