@import url("https://fonts.googleapis.com/css2?family=Kodchasan:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&family=Lexend:wght@100..900&family=Manrope:wght@200..800&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Kodchasan", sans-serif;
  background-size: cover;
  background-repeat: no-repeat;
  margin: 0;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between; /* bouton à droite, menu centré */
  padding: 12px 30px;
  width: 90%;
  margin: 25px auto 20px auto;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

header {
  height: 90vh;
  /* moins haut que 100vh */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* centrer verticalement */
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 50px;

  /* image de fond + overlay */
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("image/cytonn-photography-n95VMLxqM2I-unsplash.jpg") no-repeat center
      center/cover;
}

/* nav modernisé */
nav {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 50px;
  z-index: 1000;
}

.logo {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-image: url("image/Votre\ texte\ de\ paragraphe-min.png");
  background-size: cover;
  background-repeat: no-repeat;
  cursor: pointer;
}

.menu {
  list-style: none;
  display: flex;
  gap: 25px;
  justify-content: center; /* Ajoute cette ligne pour centrer le menu */
  align-items: center;
  flex: 1; /* le menu prend tout l'espace central */
}

.menu li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  padding: 8px 14px;
  transition: 0.3s ease;
}

.menu li a:hover {
  color: #fdd843;
}

/* bouton contact dans nav */
.bouton-1 {
  padding: 8px 18px;
  background-color: #fdd843;
  border-radius: 20px;
  cursor: pointer;
  color: #1e1e1e;
  font-weight: 600;
  transition: 0.3s;
  text-decoration: none;
  margin-left: auto; /* pousse le bouton à droite */
}

.bouton-1:hover {
  background-color: #e4c435;
}

/* titre */
header h1 {
  color: white;
  font-size: 55px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  margin-top: 100px;
  /* pour ne pas coller à la nav */
}

/* sous-titre */
header p {
  color: #fdd843;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 25px;
}

/* bouton CTA principal */
.bouton-2 {
  padding: 12px 24px;
  background-color: #fdd843;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  color: #1e1e1e;
  font-weight: 600;
  font-size: 16px;
  transition: 0.3s ease;
  text-decoration: none;
}

.bouton-2:hover {
  background-color: #e4c435;
  transform: translateY(-2px);
}

/* petit texte en bas */
.info-header {
  color: #ddd;
  font-size: 15px;
  margin-top: 20px;
  max-width: 600px;
}

.services {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 60px;
  background: #fff;
  border-radius: 10px;
  gap: 40px;
}

.services-left {
  flex: 1;
}

.services-left .tag {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid #999;
  border-radius: 20px;
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

.services-left h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #111;
}

.services-left p {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.services-left .btn {
  background: #b71c1c;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
}

.services-left .btn:hover {
  background: #e60303;
}

.services-right {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.service-card {
  background: #f5f7fa;
  padding: 25px;
  border-radius: 12px;
  transition: all 0.3s;
}

.service-card.active {
  background: #b71c1c;
  color: #fff;
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: inherit;
  opacity: 0.9;
}

.service-card .icon {
  font-size: 25px;
  display: block;
  margin-bottom: 10px;
}

.formations {
  padding: 60px;
  background: #f9f9f9;
  text-align: center;
}

.formations-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.formations-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 40px;
}

.formations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.formation-card {
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform 0.2s;
}

.formation-card:hover {
  transform: translateY(-5px);
}

.formation-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.formation-card p {
  font-size: 14px;
  color: #444;
  margin-bottom: 15px;
  line-height: 1.4;
}

/* --- Thèmes couleurs pour cohérence avec Services --- */
.formation-green {
  background: #dffceb;
  border-left: 6px solid #2e7d32;
}

.formation-yellow {
  background: #fff8e1;
  border-left: 6px solid #f9a825;
}

.formation-red {
  background: #ffebee;
  border-left: 6px solid #c62828;
}

.formation-white {
  background: #e1fbdc;
  border-left: 6px solid #103d2c;
}

.formation-blue {
  background: #e3f2fd;
  border-left: 6px solid #1565c0;
}

.formation-purple {
  background: #f3e5f5;
  border-left: 6px solid #6a1b9a;
}

.formation-orange {
  background: #fff3e0;
  border-left: 6px solid #ef6c00;
}

.formation-pink {
  background: #fce4ec;
  border-left: 6px solid #ad1457;
}

.pricing {
  padding: 70px 40px;
  background: #f9f9f9;
  text-align: center;
}

.pricing-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.pricing-subtitle {
  font-size: 16px;
  color: #555;
  margin-bottom: 50px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  justify-content: center;
}

.price-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.price-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.price-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.price {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #103d2c;
}

.price span {
  font-size: 14px;
  font-weight: 400;
  color: #777;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.price-card ul li {
  margin-bottom: 10px;
  font-size: 15px;
  color: #444;
}

.btn-price {
  display: inline-block;
  padding: 10px 20px;
  background: #fdd843;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-price:hover {
  background: #e0bb33;
}

/* Carte mise en avant */
.featured {
  border: 2px solid #fdd843;
  transform: scale(1.05);
}

.badge-pop {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #fdd843;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 50px;
}

footer {
  background: #331818;
  color: #fff;
  padding: 30px 0 20px 0;
  font-size: 16px;
  border-top: 3px solid #f52020;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
  flex-wrap: wrap;
  padding: 0 40px;
}

.footer-left {
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.logo-hipap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icone-hipap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-image: url("image/Votre\ texte\ de\ paragraphe-min.png");
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 2px solid #fdd843;
}

.name-logo {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.choisir-section {
  background: #b71c1c; /* rouge HIPAP */
  padding: 80px 20px;
  text-align: center;
  color: #fff;
}

.choisir-container {
  max-width: 1000px;
  margin: 0 auto;
}

.choisir-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 20px;
}

.choisir-text {
  font-size: 18px;
  line-height: 1.6;
  color: #f5f5f5;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.choisir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.choisir-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px 20px;
  border-radius: 15px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.choisir-item:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.2);
}

.choisir-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.choisir-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffd54f; /* jaune HIPAP */
}

.choisir-item p {
  font-size: 14px;
  color: #f0f0f0;
  line-height: 1.5;
}

footer h3 {
  font-size: 22px;
  margin-bottom: 15px;
  background-color: #1e1e1e;
  color: #ddd;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 15px;
}

.footer-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-socials a {
  margin: 0 10px;
  display: inline-block;
}

.footer-socials img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
}

.footer-menus {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-menu a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-menu a:hover {
  color: #fdd843;
}

.footer-menu h4 {
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  color: #fff;
  font-size: 15px;
  margin-bottom: 8px;
  font-weight: 400;
  cursor: pointer;
  transition: color 0.2s;
}

.footer-menu li:hover {
  color: #fdd843;
}

.crédit {
  text-align: center;
  font-size: 14px;
  color: #bbb;
  margin-top: 20px;
  font-weight: 300;
}

/* Menu burger */
.burger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.burger-menu span {
  width: 28px;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .burger-menu {
    display: flex;
  }

  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background: rgba(30, 30, 30, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 100px 30px 30px;
    gap: 0;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    transition: right 0.4s ease;
  }

  .menu.active {
    right: 0;
  }

  .menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .menu li a {
    display: block;
    padding: 18px 0;
    font-size: 18px;
  }

  .bouton-1 {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  /* Ajouter le lien Contact dans le menu mobile */
  .menu li:last-child {
    margin-top: 20px;
    border: none;
  }

  .menu li:last-child a {
    background-color: #fdd843;
    color: #1e1e1e;
    border-radius: 25px;
    text-align: center;
    padding: 12px 20px;
    font-weight: 600;
  }
}

/* === MEDIA QUERIES === */
@media screen and (max-width: 1200px) {
  .services {
    flex-direction: column;
    padding: 40px 20px;
  }

  .services-right {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
}
