/*
 * style-pages.css
 * Complément à style.css — classes manquantes pour fonctionnalites.php et tarifs.php
 * À inclure dans entete.php APRÈS style.css
 * ─────────────────────────────────────────────────────────────────────────────
 */

/* ═══════════════════════════════════════════════════════════════════════════
   CORRECTIONS DE BUGS DANS style.css
   ═══════════════════════════════════════════════════════════════════════════ */

/* Bug 1 : a:{ déclaré avec : au lieu de a { — redéclaration propre */
a {
  text-decoration: none;
}

/* Bug 2 : variables CSS manquantes référencées dans le code mais jamais déclarées */
:root {
  --red:        #dc2626;
  --red-light:  #fef2f2;
  --green-light: rgba(22,163,74,.1);
  --orange:     #ea580c;
  --purple:     #7c3aed;
  --accent-light: #fbbf24;
}

/* Bug 3 : .btn-primary écrasé en bas de style.css par Bootstrap — priorité renforcée */
.btn-primary.accent {
  background: var(--accent) !important;
  color: var(--navy) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 4px 20px rgba(245,158,11,.4);
}
.btn-primary.accent:hover {
  background: var(--accent-light) !important;
  border-color: var(--accent-light) !important;
}

/* Bug 4 : sanction-card utilise --red-light et --red mais pas déclarés avant ces corrections */
.sanction-card {
  background: var(--red-light);
  border: 1px solid rgba(220,38,38,.2);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.sanction-title { color: var(--red); }
.sanction-desc  { color: #7f1d1d; }


/* ═══════════════════════════════════════════════════════════════════════════
   PAGE FONCTIONNALITÉS — classes manquantes
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Hero pills (nav rapide dans le hero) ─── */
.hero-modules {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: background .2s, border-color .2s;
  cursor: pointer;
}
.hero-pill:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.4);
  color: #fff;
}

/* ─── Barre de navigation rapide collante ─── */
.quick-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 12px rgba(15,31,61,.07);
}
.quick-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.quick-nav-inner::-webkit-scrollbar { display: none; }
.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.quick-link:hover,
.quick-link.active {
  color: var(--navy);
  border-bottom-color: var(--blue);
}

/* ─── Modules (sections alternées texte / visuel) ─── */
.module {
  padding: 72px 2rem;
}
.module-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.module-inner.reverse {
  direction: rtl;
}
.module-inner.reverse > * {
  direction: ltr;
}
.module-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.module-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 16px;
}
.module-desc {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 24px;
}
.module-desc strong { color: var(--navy); font-weight: 600; }

/* ─── Liste de features dans un module ─── */
.feat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feat-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.feat-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── Visuel mockup dans les modules ─── */
.module-visual {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  font-size: 13px;
  color: var(--gray-600);
}
.mv-header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.mv-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.mv-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: .04em;
}
.mv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid rgba(0,0,0,.04);
  font-size: 13px;
  color: var(--gray-800);
  gap: 8px;
}
.mv-row:last-child { border-bottom: none; }
.mv-row .lbl {
  font-size: 11px;
  color: var(--gray-400);
}
.mv-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.mv-badge.green  { background: rgba(22,163,74,.12);  color: var(--green); }
.mv-badge.blue   { background: rgba(30,111,217,.1);  color: var(--blue); }
.mv-badge.amber  { background: rgba(245,158,11,.15); color: #b45309; }
.mv-badge.red    { background: rgba(220,38,38,.1);   color: var(--red); }
.mv-badge.purple { background: rgba(124,58,237,.1);  color: var(--purple); }
.mv-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.mv-stat {
  background: white;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  border: 1px solid var(--gray-200);
}
.mv-stat .val {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}
.mv-stat .lbl {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 4px;
}

/* ─── Tableau comparatif packs ─── */
.packs-section { background: var(--off-white); }
.pack-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  margin-top: 40px;
}
.pack-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 14px;
}
.pack-table-wrap thead th {
  padding: 18px 16px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  background: var(--off-white);
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
}
.pack-table-wrap thead th:first-child { text-align: left; }
.pack-table-wrap thead .th-featured {
  background: var(--navy);
  color: var(--white);
}
.pack-table-wrap tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-600);
  text-align: center;
}
.pack-table-wrap tbody td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--navy);
}
.pack-table-wrap tbody tr:last-child td { border-bottom: none; }
.pack-table-wrap tbody tr:hover { background: var(--off-white); }
.cat-row td {
  background: var(--gray-100) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--gray-400) !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 8px 16px !important;
}
.check-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(22,163,74,.12);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}
.check-no {
  display: inline-block;
  color: var(--gray-400);
  font-size: 16px;
}
.pack-table-wrap tfoot td {
  padding: 16px 12px;
  border-top: 2px solid var(--gray-200);
  text-align: center;
  background: var(--off-white);
}
.btn-table {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1.5px solid var(--blue);
  border-radius: var(--radius);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  transition: all .2s;
  white-space: nowrap;
}
.btn-table:hover { background: var(--blue); color: var(--white); }
.btn-table.featured {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.btn-table.featured:hover { background: var(--navy-light); }

/* ─── Mobile : modules en colonne ─── */
@media (max-width: 900px) {
  .module-inner,
  .module-inner.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
  }
  .module { padding: 48px 1.25rem; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   PAGE TARIFS — classes manquantes
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Pilules hero ─── */
.hero-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
/* .hero-pill déjà déclaré ci-dessus — commun aux deux pages */

/* ─── Section aide au choix ─── */
.chooser-section { background: var(--off-white); }
.chooser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.chooser-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.chooser-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--blue);
  transform: translateY(-2px);
}
.chooser-icon { font-size: 28px; }
.chooser-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}
.chooser-desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.55;
  flex: 1;
}
.chooser-pack {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: rgba(30,111,217,.08);
  border-radius: 20px;
  padding: 4px 12px;
  margin-top: 4px;
  align-self: flex-start;
}

/* ─── Cartes pricing (complément aux styles existants) ─── */
.pricing-section { background: var(--white); }
.pricing-tagline {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 14px;
  line-height: 1.4;
}
.pricing-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 14px 0;
}
.pricing-list .section-head {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--gray-400) !important;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: 4px;
  list-style: none;
}
.pricing-list .section-head::before { display: none !important; }

/* ─── Inclus dans tous les packs ─── */
.included-section { background: var(--off-white); }
.included-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.included-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: box-shadow .2s, transform .2s;
}
.included-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.included-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.included-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 5px;
}
.included-card p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

/* ─── Témoignages mini (page tarifs) ─── */
.testi-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.testi-mini {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.testi-mini-quote {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
  margin: 0;
}
.testi-mini-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-mini-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.testi-mini-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.testi-mini-role {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 1px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — corrections communes
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .chooser-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pack-table-wrap {
    font-size: 12px;
  }
  .pack-table-wrap thead th,
  .pack-table-wrap tbody td {
    padding: 10px 8px;
  }
  .btn-table {
    padding: 7px 10px;
    font-size: 12px;
  }
  .testi-mini-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .chooser-grid  { grid-template-columns: 1fr; }
  .pricing-grid  { grid-template-columns: 1fr; }
  .hero-pills,
  .hero-modules  { gap: 8px; }
  .hero-pill     { font-size: 12px; padding: 6px 12px; }
}
