 


.hero {
  position: relative;
  margin-top: 100px;    /* espace entre header et contenu */
  background-size: cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
 
}


    .hero-content {
      position: relative;
      z-index: 2;
      color: #000000;
      max-width: 700px;
      animation: fadeIn 1.5s ease-in-out;
    }

    .hero h1 {
      font-size: 2.8rem;
      line-height: 1.3;
      margin-bottom: 15px;
      color: #000000;
    }



    .hero p {
      font-size: 1.1rem;
      margin-bottom: 20px;
      opacity: 0.9;
    }

    .btn-group {
      display: flex;
      gap: 15px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .btn-primary, .btn-secondary {
      padding: 12px 24px;
      border-radius: 6px;
      font-size: 16px;
      text-decoration: none;
      transition: all 0.3s ease;
      font-weight: 500;
    }

    .btn-primary {
      background-color: #2ded80;
      color: #000000;
    }

    .btn-primary:hover {
      background-color: #7bfa96;
      transform: translateY(-2px);
    }

    .btn-secondary {
      background-color: transparent;
      color: #000000;
      border: 2px solid rgb(76, 240, 76);
    }

    .btn-secondary:hover {
      background-color: #fff;
      color: #222;
      transform: translateY(-2px);
    }
 /* ----------------------
       RESPONSIVE DESIGN
    ------------------------ */
    @media screen and (max-width: 768px) {
      .hero h1 {
        font-size: 2.2rem;
      }

      .hero p {
        font-size: 1rem;
      }

      .btn-group {
        flex-direction: column;
        align-items: center;
      }
      
      .btn-primary, .btn-secondary {
        width: 200px;
      }
    }

/* ======================
   Section Blog
====================== */
.blog-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}

.blog-header {
  margin-bottom: 40px;
}

.blog-header .blog-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  display: block;
  margin-bottom: 10px;
}

.blog-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.blog-header p {
  font-size: 1.1rem;
  color: #555;
}

/* ======================
   Cartes Blog (flexbox)
====================== */
.blog-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.blog-card {
  flex: 1 1 calc(33.333% - 30px); /* 3 cartes par ligne sur desktop */
  max-width: calc(33.333% - 30px);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}
.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-meta {
  display: flex;
  gap: 15px;
  font-size: 0.9rem;
  color: #666;
  padding: 15px 20px 0 20px;
}

.blog-meta .tag {
  background: #f4f4f4;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.blog-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 10px 20px 10px 20px;
}

.blog-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
  margin: 0 20px 20px 20px;
  flex-grow: 1;
}

.read-more {
  display: inline-block;
  margin: 0 20px 20px 20px;
  color: black;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.read-more:hover {
  color: rgb(30, 29, 29);
}

/* ======================
   Bouton Voir tout
====================== */
.see-all {
  text-align: right;
  margin-top: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  border: 1.5px solid #57ff95;
  border-radius: 8px;
  background: #fff;
  color: black;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.btn:hover {
  background: #25ff87;
  color: black;
}

/* ======================
   Responsive
====================== */
@media (max-width: 768px) {
  .blog-header h2 {
    font-size: 1.8rem;
  }
  .blog-header p {
    font-size: 1rem;
  }
  .blog-card img {
    height: 180px;
  }
}

/* Responsive mobile */
@media (max-width: 992px) {
  .blog-card {
    flex: 1 1 calc(50% - 20px); /* 2 cartes par ligne sur tablette */
    max-width: calc(50% - 20px);
  }
}

@media (max-width: 600px) {
  .blog-card {
    flex: 1 1 100%; /* 1 carte par ligne sur mobile */
    max-width: 100%;
  }
}


/* Section Blog */
/* Section Blog */
.blog-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}

.blog-header {
  margin-bottom: 40px;
}

.blog-header .blog-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  display: block;
  margin-bottom: 10px;
}

.blog-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.blog-header p {
  font-size: 1.1rem;
  color: #555;
}

/* Cards en flex */
.blog-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

/* Card */
.blog-card {
  flex: 1 1 calc(33.333% - 30px);
  max-width: calc(33.333% - 30px);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.blog-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.blog-content {
  padding: 20px;
}

.category {
  font-size: 0.8rem;
  color: #444;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 10px;
}

.blog-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  margin-left: 0;
}

.blog-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
  margin-left: 0;
}

.author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.author h4 {
  font-size: 0.9rem;
  font-weight: 600;
}

.author span {
  font-size: 0.8rem;
  color: #777;
}

/* Bouton */
.see-all {
  text-align: right;
  margin-top: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  border: 1.5px solid #57ff95;
  border-radius: 8px;
  background: #fff;
  color: black;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.btn:hover {
  background: #25ff87;
  color: black;
}
/* Responsive */
@media (max-width: 992px) {
  .blog-card {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

@media (max-width: 600px) {
  .blog-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}


.hero {
  position: relative;
  background-size: cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
 
}


    .hero-content {
      position: relative;
      z-index: 2;
      color: #000000;
      max-width: 700px;
      animation: fadeIn 1.5s ease-in-out;
    }

    .hero h1 {
      font-size: 2.8rem;
      line-height: 1.3;
      margin-bottom: 15px;
      color: #000000;
    }



    .hero p {
      font-size: 1.1rem;
      margin-bottom: 20px;
      opacity: 0.9;
    }


     @media screen and (max-width: 768px) {
      .hero h1 {
        font-size: 2.2rem;
      }

      .hero p {
        font-size: 1rem;
      }
    }

    /* =======================
   Section Ressources
======================= */
.ressources-section {
  padding: 80px 20px;
  background: #fff;
  font-family: 'Segoe UI', sans-serif;
}

/* Grille des 4 cards vidéo */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto 60px auto;
}

.card {
  background: #f9fafc;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-thumb {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.card-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.card-thumb iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}


.card h3 {
  font-size: 1.1rem;
  margin: 15px 0;
  color: #222;
}
/* Desktop (par défaut) */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.video-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  background: #000;
}

.video-item iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  aspect-ratio: 16/9;
  border-radius: 12px;
}

/* Disposition oblique */
.big {
  grid-column: span 2; 
  grid-row: span 3;   
}
.small {
  grid-column: span 2;
  grid-row: span 2;
}

.video-item:nth-child(1) { grid-column: 1 / span 2; grid-row: 1 / span 3; } 
.video-item:nth-child(2) { grid-column: 3 / span 2; grid-row: 1 / span 2; } 
.video-item:nth-child(3) { grid-column: 1 / span 2; grid-row: 4 / span 2; } 
.video-item:nth-child(4) { grid-column: 3 / span 2; grid-row: 3 / span 3; } 

/* =======================
   Responsive (Tablette)
   On garde la disposition,
   mais on réduit tailles & espacements
======================= */
@media (max-width: 992px) {
  .video-grid {
    max-width: 95%;   /* réduit la largeur */
    gap: 16px;        /* réduit l’espacement */
  }
  .video-item {
    border-radius: 10px;
  }
  .video-item iframe {
    aspect-ratio: 16/9; /* garde la même forme */
  }
}

/* =======================
   Mobile (colonne unique)
======================= */
@media (max-width: 600px) {
  .video-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .big, .small {
    grid-column: span 1;
    grid-row: auto;
  }
}


/* Bloc texte + image */
.ressources-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.ressources-text {
  flex: 1;
  text-align: left;
}

.ressources-text .category {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #777;
  display: block;
  margin-bottom: 10px;
}

.ressources-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #111;
}

.ressources-text p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 20px;
}

.ressources-list {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
}

.ressources-list li {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ressources-image {
  flex: 1;
  text-align: center;
}

.ressources-image img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #20ff76;
  color: black;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn:hover {
  background: #2dff99;
  color: black;
}

/* =======================
   Animations au scroll
======================= */
.hidden-left, .hidden-right {
  opacity: 0;
  transform: translateX(0);
  transition: opacity 1s ease, transform 1s ease;
}

.hidden-left {
  transform: translateX(-100px);
}

.hidden-right {
  transform: translateX(100px);
}

.show {
  opacity: 1;
  transform: translateX(0);
}

/* =======================
   Responsive
======================= */
@media (max-width: 992px) {

  .ressources-container {
    flex-direction: column;
    text-align: center;
  }
  .ressources-text {
    text-align: center;
  }
  .ressources-list {
    text-align: left;
    display: inline-block;
  }
}
