/* ========================================
   CSS PRO — AgroFormation+ | formation.css
   Version : Premium | Haute qualité visuelle
   Auteur : AgroFormation+
   ======================================== */

/* ===== Import Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* ===== Base globale ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f5f7fa;
  color: #2c3e50;
  line-height: 1.75;
  font-size: 16px;
  padding-bottom: 80px;
}

/* ===== En-tête ===== */
.header {
  background: linear-gradient(to right, #b92d2d, #e74c3c);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.header-title {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.header-subtitle {
  font-size: 1.15rem;
  max-width: 850px;
  margin: 0 auto;
  opacity: 0.95;
}

/* ===== Conteneur principal ===== */
.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 25px;
}

/* ===== Section ===== */
.section {
  margin-bottom: 50px;
}

.section h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
  color: #c0392b;
  position: relative;
  padding-left: 15px;
}

.section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 5px;
  height: 25px;
  background: #e67e22;
  border-radius: 4px;
}

/* ===== Listes de contenu ===== */
.learning-list {
  list-style: none;
  padding: 0;
}

.learning-list li {
  background-color: #ffffff;
  margin-bottom: 12px;
  padding: 14px 20px;
  border-left: 6px solid #27ae60;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.learning-list li:hover {
  background: #f8fdf8;
  transform: translateX(5px);
}

/* ===== Bouton principal ===== */
.center {
  text-align: center;
}

.btn-start {
  display: inline-block;
  background: linear-gradient(135deg, #27ae60, #219150);
  color: #fff;
  padding: 15px 40px;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(39,174,96,0.3);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-start:hover {
  background: linear-gradient(135deg, #219150, #1e8747);
  transform: translateY(-3px);
}

/* ===== Pied de page ===== */
.footer {
  background-color: #2d3436;
  color: #dcdde1;
  padding: 25px 15px;
  text-align: center;
  font-size: 0.95rem;
  box-shadow: 0 -5px 30px rgba(0,0,0,0.05);
}

.footer-text {
  max-width: 900px;
  margin: 0 auto;
}

/* ===== Bouton WhatsApp flottant ===== */
.float-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: #fff;
  border-radius: 40px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 1000;
  transition: background 0.3s ease;
}

.float-icon:hover {
  background: #20c157;
}

.float-icon .icon {
  font-size: 1.5rem;
  margin-right: 12px;
}

.float-message {
  display: none;
  flex-direction: column;
  background: #ffffff;
  color: #2d3436;
  padding: 12px 16px;
  border-radius: 10px;
  position: absolute;
  bottom: 70px;
  right: 0;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  min-width: 240px;
}

.float-icon:hover .float-message {
  display: flex;
}

.float-message p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.float-message a {
  color: #0984e3;
  font-weight: 600;
  text-decoration: none;
}

.float-message a:hover {
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media screen and (max-width: 768px) {
  .header-title {
    font-size: 1.8rem;
  }

  .btn-start {
    width: 90%;
    font-size: 1rem;
    padding: 13px;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .float-message {
    right: -10px;
    min-width: 200px;
  }
}
