/* ==========================================================================
   Composants réutilisables - Opquast Theme
   Extraits de page-financement.css et autres fichiers spécifiques
   ========================================================================== */

/* --------------------------------------------------------------------------
   Stat box - Grands chiffres
   -------------------------------------------------------------------------- */

.c-stat-box {
  background: var(--opq-bg-light, #f8f9fa);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-bottom: 1.5rem;
}

.c-stat-box__number {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--opq-navy, #254356);
}

.c-stat-box__label {
  font-size: 1.1rem;
  margin: 0;
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Grilles flexbox responsive
   -------------------------------------------------------------------------- */

.c-flex-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.c-flex-grid--lg {
  gap: 20px;
}

/* --------------------------------------------------------------------------
   Cartes avec bordure accent
   -------------------------------------------------------------------------- */

.c-card-accent {
  background: #FFFFFF;
  border: 1.5px solid #E1E1E1;
  padding: 20px;
  border-radius: 8px;
  flex: 1 1 calc(50% - 16px);
  min-width: 250px;
  box-sizing: border-box;
}

.c-card-accent--left-navy {
  border-left: 5px solid var(--opq-navy, #254356);
}

.c-card-accent--left-turquoise {
  border-left: 5px solid var(--opq-turquoise, #1C9B9C);
}

.c-card-accent--top-navy {
  border-top: 5px solid var(--opq-navy, #254356);
  border-left: none;
  border-radius: 12px;
  padding: 24px;
  flex: 1 1 calc(33.333% - 20px);
  min-width: 280px;
}

.c-card-accent--top-turquoise {
  border-top: 5px solid var(--opq-turquoise, #1C9B9C);
  border-left: none;
  border-radius: 12px;
  padding: 24px;
  flex: 1 1 calc(33.333% - 20px);
  min-width: 280px;
}

.c-card-accent--top-gray {
  border-top: 5px solid #6B7280;
  border-left: none;
  border-radius: 12px;
  padding: 24px;
  flex: 1 1 calc(33.333% - 20px);
  min-width: 280px;
}

.c-card-accent__title {
  color: var(--opq-navy-dark, #112f42);
  font-size: 1rem;
  font-weight: 600;
}

.c-card-accent__text {
  margin: 10px 0 0 0;
  color: #64748B;
  font-size: 0.92rem;
  line-height: 1.5;
}

.c-card-accent__heading {
  margin: 0 0 16px 0;
  color: var(--opq-navy-dark, #112f42);
  font-size: 1.1rem;
}

.c-card-accent__list {
  margin: 0;
  padding-left: 20px;
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Encadré warning/note
   -------------------------------------------------------------------------- */

.c-notice {
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 1.5rem;
}

.c-notice--warning {
  background: #FEF3C7;
  border-left: 4px solid #F59E0B;
}

.c-notice--warning p {
  margin: 0;
  color: #92400E;
  font-size: 0.95rem;
}

.c-notice--info {
  background: var(--opq-bg-light, #f0f9ff);
  border-left: 4px solid var(--opq-turquoise, #1C9B9C);
}

/* --------------------------------------------------------------------------
   Section CTA fond sombre
   -------------------------------------------------------------------------- */

.c-cta-dark {
  background: var(--opq-navy, #254356);
  border-radius: 12px;
  padding: 28px;
  color: white;
  margin-bottom: 1.5rem;
}

.c-cta-dark--centered {
  text-align: center;
  padding: 32px;
}

.c-cta-dark__title {
  margin: 0 0 12px 0;
  font-size: 1.3rem;
  color: white;
}

.c-cta-dark__subtitle {
  margin: 0 0 24px 0;
  opacity: 0.9;
  font-size: 1rem;
}

.c-cta-dark__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-bottom: 24px;
}

.c-cta-dark__stat {
  text-align: center;
}

.c-cta-dark__stat-number {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: white;
}

.c-cta-dark__stat-number--accent {
  color: var(--opq-turquoise, #1C9B9C);
}

.c-cta-dark__stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 4px 0 0 0;
}

.c-cta-dark__list {
  margin: 0 0 24px 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 2;
}

/* --------------------------------------------------------------------------
   Boutons CTA pill
   -------------------------------------------------------------------------- */

.c-cta-dark__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.c-btn-pill {
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
}

.c-btn-pill--primary {
  background: var(--opq-turquoise, #1C9B9C);
  color: white;
}

.c-btn-pill--outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

/* --------------------------------------------------------------------------
   Encadré devis
   -------------------------------------------------------------------------- */

.c-quote-box {
  background: #FFFFFF;
  border: 1.5px solid #E1E1E1;
  border-left: 6px solid var(--opq-navy, #254356);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 1.5rem;
}

.c-quote-box__text {
  margin: 0 0 16px 0;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.6;
}

.c-quote-box__list {
  margin: 0;
  padding-left: 20px;
  color: #334155;
  font-size: 0.95rem;
  line-height: 2;
}

/* --------------------------------------------------------------------------
   Tableaux comparatifs
   -------------------------------------------------------------------------- */

.c-product-box table,
.s-cms table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.c-product-box thead,
.s-cms thead {
  background: var(--opq-navy, #254356);
}

.c-product-box th,
.s-cms th {
  padding: 14px 16px;
  color: white;
  font-weight: 600;
  text-align: left;
  font-size: 0.9rem;
}

.c-product-box th.u-text-center,
.s-cms th.u-text-center {
  text-align: center;
}

.c-product-box tbody tr,
.s-cms tbody tr {
  border-bottom: 1px solid var(--opq-border-soft);
  transition: background-color 0.15s ease;
}

.c-product-box tbody tr:last-child,
.s-cms tbody tr:last-child {
  border-bottom: none;
}

.c-product-box tbody tr:nth-child(even),
.s-cms tbody tr:nth-child(even) {
  background: var(--opq-bg-light, #f8f9fa);
}

.c-product-box tbody tr:hover,
.s-cms tbody tr:hover {
  background: #f0f9ff;
}

.c-product-box td,
.s-cms td {
  padding: 14px 16px;
  color: var(--opq-blue-grey, #64748B);
  vertical-align: middle;
}

.c-product-box td.u-text-center,
.s-cms td.u-text-center {
  text-align: center;
  font-size: 1.1rem;
}

.c-product-box td strong,
.s-cms td strong {
  color: var(--opq-navy, #254356);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Listes produit/conseil (c-product-list)
   -------------------------------------------------------------------------- */

.c-product-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.c-product-list > li {
  position: relative;
  padding-left: 20px;
  color: var(--opq-blue-grey, #64748B);
  font-size: 0.95rem;
  line-height: 1.5;
}

.c-product-list > li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--opq-teal, #1C9B9C);
  font-size: 0.9rem;
  font-weight: 700;
}

.c-product-list > li strong {
  color: var(--opq-navy, #254356);
}

/* Variante avec checkmarks */
.c-product-list--check > li::before {
  content: "✓";
  color: var(--opq-green, #22c55e);
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Responsive - Composants
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .c-card-accent,
  .c-card-accent--top-navy,
  .c-card-accent--top-turquoise,
  .c-card-accent--top-gray {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .c-cta-dark__stats {
    gap: 20px;
  }
}

/* --------------------------------------------------------------------------
   Carte équipe (consolidé depuis css-perso.css)
   -------------------------------------------------------------------------- */

.c-card--team {
  min-height: 350px;
}

.c-card--team .c-card__score {
  background: none;
}

.c-card--team p q {
  quotes: none;
  font-style: italic;
}
