/* ============================================================
   PAGE TÉLÉPHONIE PRO
   ============================================================ */

/* --- Hero page ---- */
.hero--page {
  padding: 3rem 0 4.5rem;
}
.hero--page > .container {
  /* On force le centrage explicite — pas de surprise */
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.hero--page__back {
  margin-bottom: 2rem;
  text-align: left;
  width: 100%;
}
.hero--page__inner {
  text-align: center;
  max-width: 760px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.hero--page .hero__label {
  display: inline-block;
  margin-bottom: 1.5rem;
}
.hero--page .hero__title {
  font-size: 3rem;
  line-height: 1.1;
  margin: 0 auto 1.5rem;
  letter-spacing: -0.02em;
  text-align: center;
}
.hero--page .hero__subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 auto 2rem;
  max-width: 620px;
  text-align: center;
  color: rgba(255,255,255,0.78);
}
.hero--page .hero__actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 0 auto;
}
.hero--page .back-link {
  display: inline-flex;
  align-items: center;
  color: var(--color-accent-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.15s, transform 0.15s;
}
.hero--page .back-link:hover {
  opacity: 1;
  transform: translateX(-3px);
}

@media (max-width: 640px) {
  .hero--page { padding: 2rem 0 3rem; }
  .hero--page .hero__title { font-size: 2rem; }
  .hero--page .hero__subtitle { font-size: 0.95rem; }
  .hero--page .hero__actions { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   9 SERVICES TÉLÉPHONIQUES (accordéons)
   ============================================================ */
.tel-services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  max-width: 920px;
  margin: 0 auto;
}

.tel-service {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tel-service:hover {
  border-color: var(--color-accent-light);
}
.tel-service[open] {
  border-color: var(--color-accent);
  box-shadow: 0 8px 24px rgba(61, 200, 198, 0.08);
}

.tel-service__summary {
  list-style: none;
  cursor: pointer;
  padding: 1.3rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.tel-service__summary::-webkit-details-marker { display: none; }

.tel-service__icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-accent-soft);
  border-radius: 12px;
  transition: transform 0.2s;
}
.tel-service[open] .tel-service__icon {
  transform: scale(1.05);
  background: var(--color-accent);
  filter: grayscale(0);
}

.tel-service__head {
  flex: 1;
}
.tel-service__tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-darker);
  background: var(--color-accent-soft);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.3rem;
}
.tel-service__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.tel-service__toggle {
  font-size: 1.4rem;
  color: var(--color-accent-darker);
  flex-shrink: 0;
  transition: transform 0.2s;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-bg-soft);
  border-radius: 50%;
}
.tel-service[open] .tel-service__toggle {
  transform: rotate(180deg);
  background: var(--color-accent);
  color: white;
}

.tel-service__body {
  padding: 0 1.6rem 1.6rem 1.6rem;
  animation: telBodyExpand 0.3s ease;
}
@keyframes telBodyExpand {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.tel-service__desc {
  color: var(--color-text-body);
  line-height: 1.65;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.tel-service__example {
  background: linear-gradient(135deg, var(--color-accent-soft), white);
  border-left: 4px solid var(--color-accent);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
}
.tel-service__example-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-accent-darker);
  margin-bottom: 0.4rem;
}
.tel-service__example p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-body);
  font-style: italic;
  line-height: 1.55;
}

.tel-service__tech-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin: 1rem 0 0.5rem;
}
.tel-service__tech {
  display: flex; flex-wrap: wrap;
  gap: 0.4rem;
}

/* ============================================================
   PRÉREQUIS (5 cards)
   ============================================================ */
.prereq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.prereq-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  position: relative;
  border: 1px solid var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.prereq-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(8, 35, 56, 0.08);
}
.prereq-card__number {
  position: absolute;
  top: 1rem; right: 1.2rem;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent-soft);
  line-height: 1;
  letter-spacing: -0.05em;
}
.prereq-card__icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}
.prereq-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--color-border-soft);
}
.prereq-card__questions {
  list-style: none;
  padding: 0; margin: 0;
}
.prereq-card__questions li {
  padding: 0.4rem 0 0.4rem 1.4rem;
  position: relative;
  color: var(--color-text-body);
  font-size: 0.88rem;
  line-height: 1.5;
}
.prereq-card__questions li::before {
  content: '?';
  position: absolute;
  left: 0; top: 0.45rem;
  width: 18px; height: 18px;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

.prereq-cta {
  margin-top: 2.5rem;
  text-align: center;
  padding: 1.5rem;
  background: white;
  border: 1px dashed var(--color-accent);
  border-radius: var(--radius-md);
}
.prereq-cta p {
  margin: 0 0 1rem 0;
  color: var(--color-text-body);
  font-size: 1rem;
}

/* ============================================================
   PLAN D'ACTION (9 étapes en timeline)
   ============================================================ */
.plan-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

.plan-step {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem 1.6rem;
  position: relative;
  border: 1px solid var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.plan-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(8, 35, 56, 0.08);
  border-color: var(--color-accent-light);
}

.plan-step__number {
  position: absolute;
  top: -16px; left: 1.4rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: white;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(61, 200, 198, 0.4);
}

.plan-step__icon {
  font-size: 2rem;
  margin-top: 1.3rem;
  margin-bottom: 0.6rem;
}

.plan-step__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.6rem;
}

.plan-step__text {
  color: var(--color-text-body);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

/* Encart philosophie */
.philosophy-box {
  margin-top: 3rem;
  background: linear-gradient(135deg, var(--color-bg-dark-1), var(--color-bg-dark-2));
  border-radius: var(--radius-lg);
  padding: 2rem 2.2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  color: white;
}
.philosophy-box__icon {
  font-size: 3rem;
  flex-shrink: 0;
  line-height: 1;
}
.philosophy-box__title {
  color: var(--color-accent);
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 0.6rem 0;
}
.philosophy-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 968px) {
  .plan-timeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero--page { padding: 2.5rem 0 3rem; }
  .tel-service__summary { padding: 1rem 1.2rem; gap: 0.8rem; flex-wrap: wrap; }
  .tel-service__icon { width: 44px; height: 44px; font-size: 1.4rem; }
  .tel-service__title { font-size: 1rem; }
  .tel-service__tag { font-size: 0.65rem; }
  .tel-service__body { padding: 0 1.2rem 1.2rem; }
  .plan-timeline { grid-template-columns: 1fr; gap: 1.5rem; }
  .philosophy-box { flex-direction: column; padding: 1.5rem; }
  .philosophy-box__icon { font-size: 2.5rem; }
}

/* ============================================================
   SERVICE FEATURED (Agent IA en 1er, badge spécial)
   ============================================================ */
.tel-service--featured {
  border: 2px solid var(--color-accent);
  background: linear-gradient(135deg, var(--color-accent-soft), white 50%);
  position: relative;
  overflow: hidden;
}
.tel-service--featured::before {
  content: '✨ NOUVEAU';
  position: absolute;
  top: 0; right: 0;
  background: linear-gradient(135deg, #FFA500, #FF6B35);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
  border-radius: 0 var(--radius-md) 0 8px;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}
.tel-service--featured .tel-service__icon {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-darker));
  filter: none;
  box-shadow: 0 4px 14px rgba(61, 200, 198, 0.3);
}

.tel-service__tag--new {
  background: linear-gradient(135deg, #FFA500, #FF6B35);
  color: white;
  font-weight: 800;
}
