/* ================= INFOGRAPHIE PAGE PREMIUM ================= */

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  font-family: "Poppins", sans-serif;
  background: #07141a;
  color: white;
  overflow-x: hidden;
}

/* ================= HEADER ================= */

.header{
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;

  padding: 1rem 8%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  z-index: 1000;

  background: rgba(7,20,26,0.65);

  backdrop-filter: blur(18px);

  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo{
  width: 55px;
}

.navbar{
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar a{
  color: white;
  text-decoration: none;

  font-size: 0.95rem;
  font-weight: 500;

  transition: 0.3s ease;
}

.navbar a:hover{
  color: #ffcc00;
}

/* ================= HERO ================= */

.course-hero{
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 8rem 8% 5rem;

  position: relative;

  background:
  linear-gradient(
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.75)
  ),
  url("images/photographie-image.jpeg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.course-hero::before{
  content: '';

  position: absolute;
  inset: 0;

  background:
  linear-gradient(
    135deg,
    rgba(1,98,136,0.75),
    rgba(0,71,99,0.65),
    rgba(13,28,34,0.85)
  );
}

.hero-content{
  position: relative;
  z-index: 2;

  max-width: 1200px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ================= TEXT ================= */

.hero-text{
  animation: fadeUp 0.8s ease;
}

.hero-badge{
  display: inline-block;

  padding: 8px 18px;

  border-radius: 999px;

  background: rgba(255,204,0,0.15);

  border: 1px solid rgba(255,204,0,0.35);

  color: #ffcc00;

  font-size: 0.85rem;
  font-weight: 600;

  margin-bottom: 1.5rem;
}

.hero-text h1{
  font-size: 4rem;
  line-height: 1.1;

  margin-bottom: 1.5rem;

  color: white;
}

.hero-text h1 span{
  color: #ffcc00;
}

.hero-text p{
  color: rgba(255,255,255,0.78);

  line-height: 1.8;

  font-size: 1.05rem;

  margin-bottom: 2rem;
}

/* ================= BUTTONS ================= */

.hero-buttons{
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 15px 28px;

  border-radius: 14px;

  background: #ffcc00;

  color: #111;
  text-decoration: none;

  font-weight: 700;

  transition: 0.35s ease;

  box-shadow: 0 10px 30px rgba(255,204,0,0.25);
}

.btn-primary:hover{
  transform: translateY(-4px);

  box-shadow: 0 18px 40px rgba(255,204,0,0.35);
}

.btn-secondary{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 15px 28px;

  border-radius: 14px;

  border: 1px solid rgba(255,255,255,0.15);

  background: rgba(255,255,255,0.08);

  backdrop-filter: blur(12px);

  color: white;
  text-decoration: none;

  font-weight: 600;

  transition: 0.35s ease;
}

.btn-secondary:hover{
  transform: translateY(-4px);

  border-color: rgba(255,204,0,0.45);
}

/* ================= HERO CARD ================= */

.hero-card{
  position: relative;

  background: rgba(255,255,255,0.08);

  border: 1px solid rgba(255,255,255,0.12);

  border-radius: 28px;

  padding: 2rem;

  backdrop-filter: blur(22px);

  box-shadow:
  0 20px 60px rgba(0,0,0,0.35);

  animation: fadeUp 1s ease;
}

.hero-card img{
  width: 100%;
  border-radius: 20px;

  margin-bottom: 1.5rem;
}

.card-stats{
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.stat-box{
  flex: 1;

  text-align: center;

  padding: 1rem;

  border-radius: 18px;

  background: rgba(255,255,255,0.06);

  border: 1px solid rgba(255,255,255,0.08);
}

.stat-box h3{
  color: #ffcc00;
  font-size: 1.8rem;
}

.stat-box p{
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

/* ================= SECTION ================= */

.course-section{
  padding: 7rem 8%;
}

.section-title{
  text-align: center;

  margin-bottom: 4rem;
}

.section-title h2{
  font-size: 3rem;
  margin-bottom: 1rem;
}

.section-title h2 span{
  color: #ffcc00;
}

.section-title p{
  color: rgba(255,255,255,0.7);
}

/* ================= PREMIUM MODULES ================= */

.modules-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(320px,1fr));

  gap: 2rem;

  position: relative;
  z-index: 2;
}

/* CARD */
.module-card{
  position: relative;

  overflow: hidden;

  padding: 2.2rem;

  border-radius: 30px;

  background:
  linear-gradient(
    145deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.03)
  );

  border: 1px solid rgba(255,255,255,0.08);

  backdrop-filter: blur(18px);

  transition:
  transform 0.5s ease,
  border 0.5s ease,
  box-shadow 0.5s ease;

  box-shadow:
  0 10px 30px rgba(0,0,0,0.18);
}

/* LIGHT EFFECT */
.module-card::before{
  content: "";

  position: absolute;

  width: 220px;
  height: 220px;

  background:
  radial-gradient(
    circle,
    rgba(255,204,0,0.18),
    transparent 70%
  );

  top: -120px;
  right: -120px;

  opacity: 0;

  transition: 0.5s ease;
}

/* HOVER */
.module-card:hover{
  transform:
  translateY(-12px)
  scale(1.02);

  border-color:
  rgba(255,204,0,0.35);

  box-shadow:
  0 25px 60px rgba(0,0,0,0.35);
}

.module-card:hover::before{
  opacity: 1;
}

/* ICON */
.module-icon{
  position: relative;

  width: 78px;
  height: 78px;

  border-radius: 24px;

  display: flex;
  justify-content: center;
  align-items: center;

  margin-bottom: 1.8rem;

  background:
  linear-gradient(
    135deg,
    rgba(255,204,0,0.25),
    rgba(255,204,0,0.08)
  );

  border:
  1px solid rgba(255,204,0,0.2);

  transition: 0.5s ease;

  box-shadow:
  0 10px 30px rgba(255,204,0,0.15);
}

.module-card:hover .module-icon{
  transform:
  rotate(-6deg)
  scale(1.08);
}

/* ICON */
.module-icon i{
  font-size: 2.3rem;
  color: #ffcc00;
}

/* TITLE */
.module-card h3{
  font-size: 1.4rem;
  font-weight: 700;

  color: #ffffff;

  margin-bottom: 1rem;

  letter-spacing: 0.3px;
}

/* TEXT */
.module-card p{
  color: rgba(255,255,255,0.72);

  line-height: 1.9;

  font-size: 0.98rem;
}

/* TAGS */
.module-tags{
  display: flex;
  flex-wrap: wrap;

  gap: 10px;

  margin-top: 1.5rem;
}

.module-tags span{
  padding: 8px 14px;

  border-radius: 50px;

  background:
  rgba(255,255,255,0.06);

  border:
  1px solid rgba(255,255,255,0.08);

  color: rgba(255,255,255,0.75);

  font-size: 0.8rem;
}

/* BUTTON */
.btn-voir{
  margin-top: 1.8rem;

  width: 100%;

  padding: 14px 18px;

  border: none;
  border-radius: 16px;

  background:
  linear-gradient(
    135deg,
    #ffcc00,
    #ffd633
  );

  color: #04141d;

  font-weight: 700;
  font-size: 0.95rem;

  cursor: pointer;

  transition: 0.4s ease;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  box-shadow:
  0 15px 35px rgba(255,204,0,0.22);
}

.btn-voir:hover{
  transform:
  translateY(-4px);

  box-shadow:
  0 20px 45px rgba(255,204,0,0.35);
}

/* SECTION TITLE */
.premium-title h2{
  font-size: clamp(2.2rem,5vw,4rem);

  line-height: 1.1;

  margin-bottom: 1rem;
}

.premium-title h2 span{
  color: #ffcc00;
}

.premium-title p{
  max-width: 700px;

  margin: auto;

  color: rgba(255,255,255,0.72);

  line-height: 1.8;
}

/* BADGE */
.mini-badge{
  display: inline-block;

  margin-bottom: 1.5rem;

  padding: 10px 18px;

  border-radius: 50px;

  background:
  rgba(255,204,0,0.08);

  border:
  1px solid rgba(255,204,0,0.18);

  color: #ffcc00;

  font-size: 0.8rem;
  font-weight: 700;

  letter-spacing: 1px;
}

/* MOBILE */
@media(max-width:768px){

  .modules-grid{
    grid-template-columns: 1fr;
  }

  .module-card{
    padding: 1.8rem;
  }

  .premium-title h2{
    font-size: 2.3rem;
  }
}

/* ================= CTA ================= */

.cta-section{
  padding: 6rem 8%;
}

.cta-box{
  text-align: center;

  padding: 5rem 2rem;

  border-radius: 32px;

  background:
  linear-gradient(
    135deg,
    rgba(1,98,136,0.75),
    rgba(0,71,99,0.85)
  );

  border: 1px solid rgba(255,255,255,0.08);
}

.cta-box h2{
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cta-box p{
  color: rgba(255,255,255,0.75);

  margin-bottom: 2rem;
}

/* ================= FOOTER ================= */

footer{
  padding: 3rem 8%;

  text-align: center;

  border-top: 1px solid rgba(255,255,255,0.08);

  color: rgba(255,255,255,0.6);
}

/* ================= ANIMATION ================= */

@keyframes fadeUp{

from{
  opacity: 0;
  transform: translateY(40px);
}

to{
  opacity: 1;
  transform: translateY(0);
}

}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px){

.hero-content{
  grid-template-columns: 1fr;
}

.hero-text h1{
  font-size: 3rem;
}

}

@media (max-width: 768px){

.header{
  padding: 1rem 5%;
}

.course-hero{
  padding: 7rem 5% 4rem;
}

.course-section,
.cta-section{
  padding: 5rem 5%;
}

.hero-text h1{
  font-size: 2.5rem;
}

.section-title h2{
  font-size: 2.3rem;
}

.cta-box h2{
  font-size: 2.2rem;
}

}

@media (max-width: 480px){

.hero-text h1{
  font-size: 2rem;
}

.hero-buttons{
  flex-direction: column;
}

.btn-primary,
.btn-secondary{
  width: 100%;
}

.card-stats{
  flex-direction: column;
}

.section-title h2{
  font-size: 1.8rem;
}

.cta-box h2{
  font-size: 1.8rem;
}

}

/* ================= MODAL PREMIUM ================= */

.modal{
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.75);

  backdrop-filter: blur(12px);

  display: none;
  justify-content: center;
  align-items: center;

  padding: 2rem;

  z-index: 9999;

  animation: fadeBg 0.4s ease;
}

/* BOX */

.modal-content{
  width: 100%;
  max-width: 900px;

  max-height: 90vh;
  overflow-y: auto;

 background:
linear-gradient(
  135deg,
  rgba(13, 28, 34, 0.98),
  rgba(0, 71, 99, 0.92)
);

  border: 1px solid rgba(255,255,255,0.06);

  border-radius: 30px;

  padding: 3rem;

  position: relative;

  backdrop-filter: blur(24px);

  box-shadow:
0 25px 60px rgba(0,0,0,0.45),
0 0 30px rgba(0,71,99,0.18);

  animation: popup 0.45s ease;
}

/* SCROLL */

.modal-content::-webkit-scrollbar{
  width: 8px;
}

.modal-content::-webkit-scrollbar-thumb{
  background: #ffcc00;
  border-radius: 20px;
}

/* CLOSE */

.close{
  position: absolute;

  top: 20px;
  right: 25px;

  font-size: 2rem;

  color: #ffffff;

  cursor: pointer;

  transition: 0.3s ease;
}

.close:hover{
  color: #ffcc00;
  transform: rotate(90deg);
}

/* TITLE */

.modal-content h2{
  font-size: 2rem;
  margin-bottom: 2rem;

  color: #ffffff;
}

/* MODULE BODY */

.modal-body{
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* MODULE BLOCK */

.modal-body h3{
  color: #ffcc00;

  margin-bottom: 1rem;

  font-size: 1.2rem;
}

.modal-body ul{
  display: flex;
  flex-direction: column;
  gap: 12px;

  padding-left: 1.2rem;
}

.modal-body li{
  color: rgba(255,255,255,0.78);

  line-height: 1.7;
}

/* ANIMATION */

@keyframes popup{
  from{
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }

  to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeBg{
  from{
    opacity: 0;
  }

  to{
    opacity: 1;
  }
}

/* MOBILE */

@media(max-width:768px){

  .modal-content{
    padding: 2rem;
    border-radius: 24px;
  }

  .modal-content h2{
    font-size: 1.5rem;
  }

}