/* ═══════════════════════════════════════════════════════════
   OFFRE / SERVICES — Page-specific styles
   Used by: offre.html, en/services.html
   ═══════════════════════════════════════════════════════════ */

/* --- Pillar cards (3 services section) --- */

.card-grid .card {
  display: flex;
  flex-direction: column;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.pillar-icon svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pillar-model {
  font-size: 0.875rem;
  color: var(--blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.pillar-range {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.pillar-range span {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pillar-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.pillar-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: auto;
}

.pillar-link:hover {
  text-decoration: underline;
}

/* --- Philosophie comparison table --- */

.philosophie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem auto;
  max-width: 800px;
}

.philosophie-table th {
  padding: 1rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.philosophie-table th:first-child {
  width: 30%;
  color: var(--text-muted);
}

.philosophie-table th:nth-child(2) {
  color: var(--text-muted);
}

.philosophie-table th:nth-child(3) {
  color: var(--blue);
}

.philosophie-table td {
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  vertical-align: top;
}

.philosophie-table td:first-child {
  font-weight: 600;
  color: var(--text);
}

.philosophie-table td:nth-child(2) {
  color: var(--text-muted);
}

.philosophie-table td:nth-child(3) {
  color: var(--text);
}

.philosophie-table tr:hover td {
  background: rgba(0, 0, 0, 0.02);
}

.philosophie-table .icon-bad {
  color: #e74c3c;
}

.philosophie-table .icon-good {
  color: #22c55e;
}

/* --- Funnel diagram (progression section) --- */

.funnel-diagram {
  max-width: 800px;
  margin: 2rem auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.funnel-step {
  text-align: center;
  flex: 1;
  padding: 2rem 1rem;
  position: relative;
}

.funnel-step-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.funnel-step:nth-child(1) .funnel-step-tag {
  background: rgba(0, 51, 102, 0.1);
  color: var(--blue);
}

.funnel-step:nth-child(3) .funnel-step-tag {
  background: rgba(0, 51, 102, 0.15);
  color: var(--blue);
}

.funnel-step:nth-child(5) .funnel-step-tag {
  background: rgba(243, 193, 58, 0.15);
  color: #D4A832;
}

.funnel-step h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.funnel-step p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.funnel-arrow {
  flex-shrink: 0;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 1.5rem;
  padding-top: 3.5rem;
}

/* --- Bridge cards (combinaisons entre piliers) --- */

.funnel-bridges {
  max-width: 900px;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bridge-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.bridge-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 51, 102, 0.08);
}

.bridge-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--yellow));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.bridge-card:hover::before {
  transform: scaleX(1);
}

.bridge-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.bridge-card h3 .funnel-step-tag {
  padding: 0.2rem 0.5rem;
  font-size: 0.625rem;
}

.bridge-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.bridge-card .discount {
  margin-top: auto;
  display: inline-block;
  background: rgba(243, 193, 58, 0.15);
  color: #D4A832;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* --- Parcours mini-cards (Pour qui section) --- */

.parcours-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.parcours-mini {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.parcours-mini:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 51, 102, 0.3);
  box-shadow: 0 16px 40px rgba(0, 51, 102, 0.12);
}

.parcours-mini::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--yellow));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.parcours-mini:hover::before {
  transform: scaleX(1);
}

.parcours-letter {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.parcours-mini h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #003366;
  margin-bottom: 0.5rem;
  min-height: 2.75em;
}

.parcours-mini .parcours-pillars {
  font-size: 0.8125rem;
  color: var(--yellow);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.parcours-mini .parcours-detail {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.parcours-mini .parcours-budget {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.parcours-mini .parcours-cta {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
}

.parcours-mini .parcours-cta:hover {
  text-decoration: underline;
}

/* --- Responsive --- */

@media (max-width: 900px) {
  .funnel-diagram {
    flex-direction: column;
    align-items: center;
  }

  .funnel-arrow {
    transform: rotate(90deg);
    width: auto;
    padding: 0.5rem 0;
    padding-top: 0;
  }

  .funnel-bridges {
    grid-template-columns: 1fr;
  }

  .parcours-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .parcours-grid {
    grid-template-columns: 1fr;
  }

  .philosophie-table th,
  .philosophie-table td {
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
  }
}
