/* ==========================================
   DESIGNLEARN - CSS COMPLET
   ========================================== */

/* ==========================================
   RESET CSS
   ========================================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color:#F4F8FF;
  }
  
  /* ==========================================
     BASE & VARIABLES
     ========================================== */
  /* Palette de couleurs principale du site
     - Violet foncé (#6A38BC) : Couleur principale, utilisée pour les titres et accents
     - Violet (#8B61D8) : Couleur secondaire, utilisée pour les éléments interactifs
     - Lavande (#A784F1) : Couleur de fond pour les sections importantes
     - Bleu clair (#4E7DBB) : Couleur d'accent pour les éléments secondaires
     - Bleu vif (#3165D4) : Couleur pour les boutons et éléments d'action */
  
  body {
      font-family: 'Poppins', Arial, sans-serif;
     /* background: #F4F8FF;*/
     background-color: rgb(255, 255, 255);
      color: #000000;
      line-height: 1.6;
  }
  
  /* ==========================================
     HEADER & NAVIGATION
     ========================================== */
  
  /* ==========================================
     BOUTONS
     ========================================== */
  .nav-buttons {
    display: flex;
    gap: 1rem;
  }
  
  .btn {
    padding: 0.4rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
  }
  
  .btn-outline {
    background-color: #FFFFFF;
    color: #7C4DFF;
    border: 2px solid #7C4DFF;
  }
  
  .btn-outline:hover {
    background-color: #EDE7FF;
    color: #7C4DFF;
  }
  
  .btn-filled,.btn-outline, .simple-btn-login {
    background-color: #6A38BC;
    color: white;
    border: 2px solid #6A38BC;
  }
  
  .btn-filled:hover, .simple-btn-login:hover {
    background-color: #3165D4;
    border-color: #3165D4;
  }
  
  /* ==========================================
     SECTION HERO
     ========================================== */
  .hero {
      background: #c1d5ff;
      padding: 4rem 2rem 2rem 2rem;
      text-align: left;
      position: relative;
      min-height: 300px;
  }
  
  .hero h1 {
      font-size: 2rem;
      font-weight: 600;
      color: #262528;
      margin-bottom: 1rem;
      max-width: none;
  }
  
  .hero p {
      color: #3f3f41;
      font-size: 1.1rem;
      margin-bottom: 1.5rem;
      max-width: 400px;
  }
  
  .hero-img {
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 400px;
      max-width: 40%;
      height: auto;
      z-index: 1;
  }
  
  /* ==========================================
     SECTION BIENVENUE
     ========================================== */
  .bienvenue-section {
      background: #fff;
      padding: 2.5rem 0 1.5rem 0;
      text-align: center;
  }
  
  .bienvenue-section h2 {
      color: #6A38BC;
      font-size: 1.7rem;
      font-weight: 700;
      margin-bottom: 1rem;
  }
  
  .bienvenue-section span {
      color: #4E7DBB;
  }
  
  .bienvenue-section p {
      color: #666;
      font-size: 1.1rem;
      max-width: 700px;
      margin: 0 auto;
  }
  
  /* ==========================================
     CARTES DE CHOIX
     ========================================== */
  .cartes-choix {
      display: flex;
      gap: 2rem;
      justify-content: center;
      margin: 2rem 0;
  }
  
  .carte-choix {
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 2px 12px #0001;
      flex: 1 1 260px;
      min-width: 240px;
      max-width: 340px;
      padding: 2rem 1.2rem;
      text-align: center;
      position: relative;
      overflow: hidden;
  }
  
  .carte-choix h3 {
      color: #6A38BC;
      font-size: 1.1rem;
      margin-bottom: 1.2rem;
  }
  
  .carte-choix button,
  .carte-choix a {
      background: #3165D4;
      color: #fff;
      border: none;
      border-radius: 6px;
      padding: 0.6rem 1.2rem;
      font-weight: 500;
      margin-top: 1.2rem;
      cursor: pointer;
      text-decoration: none;
      transition: background 0.2s;
  }
  
  .carte-choix button:hover,
  .carte-choix a:hover {
      background: #6A38BC;
  }
  
  /* ==========================================
     SECTION FORMATIONS
     ========================================== */
  .formations {
      padding: 2rem 0 1rem 0;
  }
  
  .formations h2 {
      text-align: center;
      color: #6A38BC;
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 2rem;
  }
  
  .cartes-formations {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 1.2rem;
      max-width: 900px;
      margin: 0 auto 1.5rem auto;
  }
  
  .formation-carte {
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 2px 12px #0001;
      padding: 1.2rem 1rem 1.5rem 1rem;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      min-height: 270px;
      position: relative;
  }
  
  .formation-carte .img-placeholder,
  .formation-carte img {
      width: 100%;
      height: 110px;
      background: #A784F1;
      border-radius: 8px;
      margin-bottom: 1rem;
      object-fit: cover;
  }
  
  .formation-carte h3 {
      font-size: 1.1rem;
      color: #6A38BC;
      margin-bottom: 0.5rem;
  }
  
  .formation-carte p {
      color: #666;
      font-size: 0.98rem;
      margin-bottom: 0.7rem;
  }
  
  .formation-carte span {
      color: #444;
      font-size: 0.92rem;
  }
  
  .formation-carte button {
      background: #3165D4;
      color: #fff;
      border: none;
      border-radius: 6px;
      padding: 0.5rem 1.1rem;
      font-weight: 500;
      margin-top: 1.2rem;
      cursor: pointer;
      align-self: center;
      transition: background 0.2s;
  }
  
  .formation-carte button:hover {
      background: #6A38BC;
  }
  
  .btn-voir-plus {
      display: block;
      margin: 1.5rem auto 0 auto;
      background: #8B61D8;
      color: #fff;
      border: none;
      border-radius: 6px;
      padding: 0.7rem 2.2rem;
      font-weight: 600;
      font-size: 1.1rem;
      cursor: pointer;
      transition: background 0.2s;
  }
  
  .btn-voir-plus:hover {
      background: #6A38BC;
  }
  
  /* ==========================================
     SECTION TÉMOIGNAGES
     ========================================== */
  .temoignages-section {
      padding: 2rem 0 1rem 0;
      color: black;
  }
  
  .temoignages-section h2 {
      text-align: center;
      color: #6A38BC;
      font-size: 1.4rem;
      font-weight: 700;
      margin-bottom: 2rem;
  }
  
  .temoignages-content {
      
      display: flex;
      gap: 2rem;
      justify-content: center;
      align-items: flex-start;
      flex-wrap: wrap;
  }
  
  .temoignage-gauche {
      color: black;
      flex: 1;
      min-width: 220px;
      max-width: 320px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 1.2rem;
  }
   
    .temoignage-gauche p {
      font-size: 1rem;
      color: #444;
      line-height: 1.5;}

    .temoignage-card {
     
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 2px 12px #0001;
      padding: 1.2rem 1.5rem;
      max-width: 340px;
      margin: 0 auto;
      position: relative;}

    .temoignage-card p {
      color: #000000;
      font-size: 0.98rem;
      line-height: 1.5;}
  
  .temoignage-gauche .temoignage-stars {
      color: #6A38BC;
      font-weight: bold;
      font-size: 1.1rem;
      letter-spacing: 2px;
  }
  
  .btn-eval {
      display: inline-block;
      background: #fff;
      color: #6A38BC;
      border: 1.5px solid #6A38BC;
      border-radius: 6px;
      padding: 0.5rem 1.2rem;
      font-weight: 500;
      text-decoration: none;
      margin-top: 0.5rem;
      transition: background 0.2s, color 0.2s;
  }
  
  .btn-eval:hover {
      background: #6A38BC;
      color: #fff;
  }
  
  .temoignage-droite {
      flex: 1;
      min-width: 220px;
      max-width: 340px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1.2rem;
  }
  
  .temoignage-img {
      width: 180px;
      height: 180px;
      border-radius: 16px;
      object-fit: cover;
      margin-bottom: 1rem;
  }
  
  .temoignage-card {
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 2px 12px #0001;
      padding: 1.2rem 1.5rem;
      max-width: 340px;
      margin: 0 auto;
      position: relative;
  }
  
  .temoignage-card-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 1rem;
  }
  
  .temoignage-nom {
      font-weight: bold;
      color: #6A38BC;
  }
  
  .temoignage-card .temoignage-stars {
      color: #fbbf24;
      font-size: 1.1rem;
  }
  
  /* ==========================================
     SECTION ACTUS
     ========================================== */
  /* ====== Section Nos Atouts (simple & responsive) ====== */
.atouts-section {
  padding: 40px 20px;
  background: #f9f9f9;
  text-align: center;
}

.atouts-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}

.atouts-section h2 span {
  color: #6A38BC; /* couleur marque */
}

.atouts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.atout {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
}

.atout:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.atout-icon {
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  line-height: 48px;
  text-align: center;
  border-radius: 999px;
  background: #f1eaff;           /* fond léger */
  color: #6A38BC;                 /* icône */
  margin-bottom: 12px;
}

.atout h3 {
  font-size: 1.05rem;
  margin: 6px 0 6px;
  color: #6A38BC;
}

.atout p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}
/* ====== Actus et ressources récentes ====== */
.actus-section {
  padding: 30px;
  background: #f9f9f9;
}

.actus-section h2 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

/* Bouton voir toutes les ressources */
.actus-all-link {
  display: block;
  text-align: center;
  margin-bottom: 20px;
  color: #6A38BC;
  text-decoration: none;
  font-weight: bold;
}
.actus-all-link:hover {
  text-decoration: underline;
}

/* Grille simple */
.actus-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Carte */
.actus-card {
  width: 300px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.actus-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.actus-thumb-wrap {
  position: relative;
}

.actus-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Petit badge */
.actus-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #6A38BC;
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 5px;
}

.actus-body {
  padding: 15px;
}

.actus-title {
  font-size: 18px;
  margin: 0 0 10px;
  color: #6A38BC;
}

.actus-excerpt {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.actus-meta {
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
}

/* Bouton lire */
.actus-footer {
  padding: 0 15px 15px;
}
.actus-link {
  display: inline-block;
  padding: 8px 12px;
  background: #6A38BC;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
}
.actus-link:hover {
  background: #542c94;
}
  
  /* ==========================================
     FOOTER
     ========================================== */
    
  
  /* ==========================================
     LOGIN
     ========================================== */
  .simple-login-card {
    max-width: 350px;
    margin: 70px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px #0001;
    padding: 2.2rem 2rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .simple-login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  
  .simple-login-form h2 {
    color: #6A38BC;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  .simple-login-form input {
    width: 100%;
    padding: 0.7rem 1rem;
    margin-bottom: 1.1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background: #f7f8fa;
  }
  
  .simple-btn-login {
    background: #3165D4;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.7rem 1.2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: background 0.2s;
  }
  
  .simple-btn-login:hover {
    background: #6A38BC;
  }
  
  .simple-login-link {
    text-align: center;
    font-size: 0.98rem;
  }
  
  .simple-login-link a {
    color: #6A38BC;
    text-decoration: underline;
    font-weight: 500;
  }

   /* ==========================================
     apropos
     ========================================== */

  
  /* ==========================================
     MEDIA QUERIES
     ========================================== */
  @media (max-width: 900px) {
      .header-container, .footer-container {
          flex-direction: column;
          gap: 1.2rem;
          align-items: center;
      }
      .cartes-choix, .temoignages-content {
          flex-direction: column;
          gap: 1.2rem;
      }
      .hero-img {
          margin-top: 10em;
          position: static;
          width: 100%;
          max-width: 320px;
          margin: 2rem auto 0 auto;
          display: block;
      }
      .cartes-formations {
          grid-template-columns: 1fr;
      }
      .temoignages-content {
          flex-direction: column;
          align-items: center;
      }
  }
  
  @media (max-width: 600px) {
      .login-card {
          width: 98vw;
          min-width: unset;
      }
      
      .login-content {
          flex-direction: column;
          min-height: unset;
      }
      .login-side {
          flex-direction: row;
          border-radius: 14px 14px 0 0;
          min-width: unset;
          padding: 1rem 0.5rem;
          gap: 1rem;
      }
      .login-link {
          writing-mode: horizontal-tb;
          transform: none;
          font-size: 0.95rem;
          text-align: left;
          margin-left: 0.5rem;
          margin-top: 0;
      }
      .login-fields {
          padding: 1.5rem 1rem;
      }
  } 