@charset "UTF-8";

/* ==========================================================================
   Mandragore Learning — Charte graphique
   Fichier unique de référence : toute modification de couleur, typo ou
   composant de base se fait ICI et se répercute sur toutes les pages.
   ========================================================================== */

:root {
  /* Marque (héritée de Mandragore / Bidouchat) */
  --brand-dark:        #0F1722;
  --brand-text:        #2C2C2A;
  --brand-text-muted:  #5F5E5A;
  --brand-text-faint:  #888780;
  --brand-border:      #D3D1C7;

  /* Fond du site */
  --page-bg:           #F4F8FC;
  --card-bg:           #FFFFFF;

  /* Typo */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;

  /* Accent global (boutons primaires, liens) */
  --accent:            #0C447C;
  --accent-bg:         #E6F1FB;
  --accent-text:       #185FA5;

  /* Avertissement / badge indépendance SAP */
  --warn-bg:           #FAEEDA;
  --warn-border:       #BA7517;
  --warn-text:         #633806;

  /* Palette pastel par module SAP */
  --fi-bg: #E6F1FB; --fi-text: #0C447C; --fi-text-soft: #185FA5;
  --co-bg: #EAF3DE; --co-text: #27500A; --co-text-soft: #3B6D11;
  --mm-bg: #E1F5EE; --mm-text: #085041; --mm-text-soft: #0F6E56;
  --sd-bg: #FBEAF0; --sd-text: #72243E; --sd-text-soft: #993556;
  --ps-bg: #FAEEDA; --ps-text: #633806; --ps-text-soft: #854F0B;

  /* Layout */
  --radius:    8px;
  --radius-lg: 12px;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--page-bg);
  color: var(--brand-text);
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === NAVBAR (identité Mandragore commune à tous les sites) === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 18, 30, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0 clamp(20px, 5vw, 60px);
}
.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.navbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.3px;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar .brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.navbar .brand em {
  font-style: normal;
  color: #7ec0ff;
}
.navbar .nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.navbar .nav a {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.navbar .nav a:hover,
.navbar .nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.navbar .nav .nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 7px 18px;
}
.navbar .nav .nav-cta:hover {
  background: #093566;
  color: #fff;
}

/* Badge "formation indépendante" — réutilisé sur toutes les pages */
.badge-independance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--warn-bg);
  border: 0.5px solid var(--warn-border);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--warn-text);
}

/* Fil d'Ariane */
.breadcrumb {
  font-size: 12px;
  color: var(--brand-text-muted);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--brand-text-muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .current { color: var(--accent); font-weight: 500; }

/* Boutons */
.btn {
  display: inline-block;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 0.5px solid var(--brand-border);
  background: var(--card-bg);
  color: var(--brand-text);
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  border: none;
}

/* Cartes module : voir le bloc dédié plus bas (bordure accent + icône colorée) */

/* Page produit (sous-module) */
.product-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 720px) {
  .product-grid { grid-template-columns: 1fr; }
}
.product-pill {
  font-size: 13px;
  font-weight: 500;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.product-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 12px;
  line-height: 1.25;
}
.product-desc {
  font-size: 15px;
  color: var(--brand-text-muted);
  line-height: 1.7;
  margin: 0 0 24px;
}
.feature-list-label {
  font-size: 13px;
  color: var(--brand-text-muted);
  margin: 0 0 10px;
}
.feature-list {
  display: grid;
  gap: 10px;
  margin-bottom: 1.5rem;
}
.feature-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--brand-text);
}
.feature-list-item i {
  font-size: 18px;
  color: var(--accent-text);
}

/* Carte d'achat */
.purchase-card {
  background: var(--card-bg);
  border: 0.5px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  height: fit-content;
}
.purchase-label {
  font-size: 13px;
  color: var(--brand-text-muted);
  margin: 0 0 4px;
}
.purchase-price {
  font-size: 30px;
  font-weight: 600;
  color: var(--brand-text);
  margin: 0 0 4px;
}
.purchase-meta {
  font-size: 12px;
  color: var(--brand-text-muted);
  margin: 0 0 4px;
}
.purchase-meta:last-of-type { margin-bottom: 18px; }
.purchase-divider {
  border-top: 0.5px solid var(--brand-border);
  padding-top: 12px;
  margin-top: 14px;
}
.credit-note {
  background: var(--page-bg);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 11px;
  color: var(--brand-text-muted);
  line-height: 1.6;
}

/* Carte produit générique (sous-module) */
.card-product {
  background: var(--card-bg);
  border: 0.5px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
}

/* Hero */
.hero {
  text-align: center;
  max-width: 680px;
  margin: 3rem auto 3.5rem;
}
.hero-tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-bg);
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 400;
  color: var(--brand-text);
  margin: 0 0 18px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.hero-sub {
  font-size: 17px;
  color: var(--brand-text-muted);
  line-height: 1.65;
  margin: 0 0 8px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 1.75rem;
}

/* Grille des modules (page d'accueil) */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 2rem;
}
@media (max-width: 720px) {
  .module-grid { grid-template-columns: 1fr; }
}
.card-module-link {
  text-decoration: none;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card-module-link:hover {
  transform: translateY(-3px);
}
.card-module {
  background: var(--card-bg);
  border: 0.5px solid var(--brand-border);
  border-top: 3px solid transparent;
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  min-height: 170px;
  box-shadow: 0 2px 10px rgba(13, 27, 42, 0.04);
}
.card-module[data-module="fi"] { border-top-color: var(--fi-text); }
.card-module[data-module="co"] { border-top-color: var(--co-text-soft); }
.card-module[data-module="mm"] { border-top-color: var(--mm-text-soft); }
.card-module[data-module="sd"] { border-top-color: var(--sd-text-soft); }
.card-module[data-module="ps"] { border-top-color: var(--ps-text-soft); }

.card-module .card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-module[data-module="fi"] .card-icon-wrap { background: var(--fi-bg); color: var(--fi-text); }
.card-module[data-module="co"] .card-icon-wrap { background: var(--co-bg); color: var(--co-text); }
.card-module[data-module="mm"] .card-icon-wrap { background: var(--mm-bg); color: var(--mm-text); }
.card-module[data-module="sd"] .card-icon-wrap { background: var(--sd-bg); color: var(--sd-text); }
.card-module[data-module="ps"] .card-icon-wrap { background: var(--ps-bg); color: var(--ps-text); }

.card-module .card-icon-wrap svg { width: 22px; height: 22px; }

.card-module .card-label { font-size: 19px; font-weight: 600; margin: 0 0 4px; color: var(--brand-text); }
.card-module .card-name { font-size: 13px; margin: 0 0 18px; color: var(--brand-text-muted); }
.card-module .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--brand-text-muted);
  font-weight: 500;
}
.card-module .card-footer svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}
.card-module-link:hover .card-footer svg {
  transform: translateX(3px);
}

/* Bandeau de réassurance */
.feature-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  border-top: 0.5px solid var(--brand-border);
  padding-top: 2rem;
  margin-bottom: 1rem;
}
.feature-item { text-align: center; }
.feature-item i { font-size: 24px; color: var(--accent); }
.feature-item .feature-title {
  font-size: 15px; font-weight: 600; color: var(--brand-text); margin: 10px 0 4px;
}
.feature-item .feature-desc {
  font-size: 13px; color: var(--brand-text-muted); margin: 0;
}

/* Footer — fond sombre, cohérent avec la nav */
footer {
  background: #09111b;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 52px 20px 40px;
  margin-top: 3rem;
}
footer p {
  margin: 5px 0;
  font-size: 0.88rem;
}
footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.18s;
}
footer a:hover {
  color: #fff;
}
footer .legal-footer {
  color: rgba(255, 255, 255, 0.4);
}
footer .legal-footer a {
  color: rgba(255, 255, 255, 0.55);
}

/* Footer légal */
.legal-footer {
  font-size: 11px;
  color: var(--brand-text-faint);
  text-align: center;
  padding: 1.5rem 0;
}
