/* =========================================================
   Go Numérique – Custom Theme (Kodree / Alphorm inspired)
   ========================================================= */

/* ---------- Layout / Containers ---------- */

body.body-dots.gray-ui2 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  color: #0f172a;
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.25), transparent 45%),
              #f1f5f9;
}

/* Wrapper classique sur les sections */
.section-kodree,
.section-kodree-alt,
.hero-kodree,
.cta-kodree {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 16px;
}

/* ---------- Header ---------- */

.gn-header-kodree {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(14px);
  color: #e5e7eb;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.4);
}

.gn-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gn-logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  color: #f9fafb;
}

.gn-logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.gn-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
}

.gn-menu a {
  color: #e5e7eb;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.gn-menu a:hover {
  border-bottom-color: #38bdf8;
}

.gn-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switcher select {
  background: #020617;
  color: #e5e7eb;
  border-radius: 999px;
  border: 1px solid #1f2937;
  padding: 4px 10px;
  font-size: 0.8rem;
  outline: none;
}

.lang-switcher select:focus {
  border-color: #38bdf8;
}

.btn-login {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid #64748b;
  color: #e5e7eb;
  font-size: 0.85rem;
  text-decoration: none;
}

.btn-login:hover {
  background: #111827;
}

/* ---------- Hero ---------- */

.hero-kodree {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-top: 18px;
}

.hero-left .hero-title {
  font-size: 2.3rem;
  line-height: 1.2;
  margin: 0 0 10px;
  color: #020617;
}

.hero-left .hero-subtitle {
  font-size: 1rem;
  color: #4b5563;
  margin: 0 0 18px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

/* Boutons “Kodree style” */

.btn-primary-kodree,
.btn-secondary-kodree,
.btn-card,
.btn-secondary-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.bouton_bleu {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #f9fafb;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
}

.btn-primary-kodree {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #f9fafb;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
}

.btn-primary-kodree:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.55);
  text-decoration: none;
}

.btn-secondary-kodree {
  background: #0f172a;
  color: #e5e7eb;
  border: 1px solid #1e293b;
}

.btn-secondary-kodree:hover {
  background: #020617;
  text-decoration: none;
}

.btn-card {
  background: #0f172a;
  color: #e5e7eb;
  font-size: 0.82rem;
  padding: 7px 16px;
}

.btn-card:hover {
  background: #020617;
  text-decoration: none;
}

.btn-secondary-card {
  background: #f9fafb;
  color: #0f172a;
  border: 1px solid #cbd5f5;
  font-size: 0.82rem;
  padding: 7px 16px;
}

.btn-secondary-card:hover {
  background: #e5e7eb;
}

/* Badges sous le hero */

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: #111827;
}

.hero-badges span {
  background: #e0f2fe;
  color: #075985;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Illustration hero droite */

.hero-right {
  display: flex;
  justify-content: center;
}

.hero-illustration {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 24px;
  background: radial-gradient(circle at top left, #38bdf8, #1e293b);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.55);
}

.hero-illustration img {
  max-width: 100%;
  height: auto;
}

/* ---------- Sections / Titres ---------- */

.section-kodree,
.section-kodree-alt {
  margin-top: 28px;
  margin-bottom: 28px;
}

.section-kodree-alt {
  background: #f9fafb;
  border-radius: 20px;
}

.section-header {
  margin-bottom: 18px;
}

.section-title {
  font-size: 1.5rem;
  margin: 0 0 4px;
  color: #020617;
}

.section-desc {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
}

/* ---------- Grilles / Cartes ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.formation-card,
.ebook-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 16px 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rncp-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 0.72rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
}

.card-title,
.ebook-title {
  margin: 10px 0 6px;
  font-size: 1.05rem;
  color: #0f172a;
}

.card-resume {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.card-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Ebooks spécifiquement */

.ebook-author {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 4px 0 6px;
}

.ebook-dates {
  font-size: 0.8rem;
  color: #9ca3af;
}


/* ---------- Section ebooks page ebooks.php---------- */
.ebook-card {
    display: flex;
    flex-direction: column;
}

.ebook-cover {
    width: 100%;
    margin-bottom: 12px;
}

.ebook-cover img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    object-fit: cover;
}

/*-------------------------------------------------*/


/* ---------- Features / Méthode ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.feature {
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 14px 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #0f172a;
}

.feature p {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
}

/* ---------- CTA ---------- */

.cta-kodree {
  text-align: center;
  margin-top: 28px;
  margin-bottom: 40px;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  border-radius: 20px;
  color: #e5e7eb;
}

.cta-kodree h2 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  color: #f9fafb;
}

.cta-kodree p {
  margin: 0 0 14px;
  font-size: 0.95rem;
}
/* CTA Buttons */
.wysiwyg p {
  margin: 0 0 10px 0;
}

.wysiwyg ul,
.wysiwyg ol {
  margin: 0 0 10px 18px;
}

.wysiwyg li {
  margin: 4px 0;
}
/* ---------- Footer ---------- */

.gn-footer-kodree {
  border-top: 1px solid #e5e7eb;
  background: #020617;
  color: #9ca3af;
}

.gn-footer-kodree .footer-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
}

.gn-footer-kodree a {
  color: #e5e7eb;
  text-decoration: none;
}

.gn-footer-kodree a:hover {
  text-decoration: underline;
}




/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-kodree {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-right {
    order: -1;
  }
}

@media (max-width: 768px) {
  .gn-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .gn-menu {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-kodree,
  .section-kodree-alt,
  .hero-kodree,
  .cta-kodree {
    padding: 24px 14px;
  }

  .gn-footer-kodree .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ================================
   CHECKOUT – PAYMENT METHODS GRID
   ================================ */

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 20px;
  align-items: stretch;
}

.payment-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.payment-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.12);
}

.payment-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111827;
}

.payment-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #4b5563;
  margin-bottom: 20px;
}

/* Boutons centrés */
.payment-card form,
.payment-card a {
  margin-top: auto;
}

.payment-card button,
.payment-card a.btn-secondary-kodree {
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
}

.payment-card.featured {
  border: 2px solid #4f46e5;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 1024px) {
  .payment-methods {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .payment-methods {
    grid-template-columns: 1fr;
  }
}
