/* ═══════════════════════════════════════════════════════════════
   PAGES.CSS — Styles partagés pour toutes les sous-pages Myce
   ═══════════════════════════════════════════════════════════════ */

/* ── SUBPAGE NAVBAR (toujours visible, fond clair) ─────────────── */
body.subpage #navbar {
  background: rgba(247,249,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
body.subpage .nav-links a { color: var(--muted2); }
body.subpage .nav-links a:hover { color: var(--text); }
body.subpage .nav-logo-img {
  filter: drop-shadow(0 1px 3px rgba(15,23,42,0.25));
}

/* ── BREADCRUMB ─────────────────────────────────────────────────── */
.breadcrumb-wrap {
  padding-top: var(--nav-h);
  background: var(--bg);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  font-size: 0.78rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--muted2); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--warm); }
.breadcrumb .bc-sep { color: var(--muted); }

/* ── PAGE HERO ──────────────────────────────────────────────────── */
.page-hero {
  padding: 80px 0 100px;
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -160px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,107,53,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero .label-tag { margin-bottom: 24px; }
.page-hero .section-title { margin-bottom: 20px; }
.page-hero .section-sub { max-width: 600px; margin: 0 auto 40px; }
.page-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── SECTIONS CONTENU ───────────────────────────────────────────── */
.page-section { padding: 100px 0; }
.page-section-alt { padding: 100px 0; background: var(--bg-alt); }

.page-section h2,
.page-section-alt h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}
.page-section h3,
.page-section-alt h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.page-section p,
.page-section-alt p {
  color: var(--muted2);
  line-height: 1.8;
  font-size: 0.975rem;
  max-width: 680px;
}
.page-section .section-intro,
.page-section-alt .section-intro {
  max-width: 680px;
  margin-bottom: 56px;
}

/* ── CARTES SERVICES ────────────────────────────────────────────── */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 2px 16px rgba(15,23,42,0.05);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(139,92,246,0.1);
  border-color: rgba(139,92,246,0.2);
}
.sc-icon { font-size: 2rem; margin-bottom: 18px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.875rem; line-height: 1.65; max-width: none; }

/* ── USP (POURQUOI MYCE) ────────────────────────────────────────── */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.usp-item { text-align: center; }
.usp-icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,107,53,0.08), rgba(139,92,246,0.08));
  border: 1px solid rgba(255,107,53,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.6rem;
}
.usp-item h3 { font-size: 1rem; margin-bottom: 8px; }
.usp-item p { font-size: 0.875rem; max-width: 230px; margin: 0 auto; }

/* ── ZONES D'INTERVENTION ───────────────────────────────────────── */
.zones-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.zone-tag {
  font-family: var(--font-head);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-h);
  color: var(--muted2);
  background: var(--surface);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: default;
}
.zone-tag:hover { border-color: var(--warm); color: var(--warm); background: rgba(255,107,53,0.04); }

/* ── TWO-COLUMN LAYOUT ──────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.two-col.reverse .two-col-visual { order: -1; }
.two-col-text h2 { margin-bottom: 16px; }
.two-col-text p { margin-bottom: 20px; }
.two-col-visual {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  min-height: 340px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.two-col-visual img { width: 100%; height: 100%; object-fit: cover; }
.two-col-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 3rem;
}
.two-col-placeholder span {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── FAQ ────────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 40px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item.open { border-color: rgba(255,107,53,0.2); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-family: var(--font-head);
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  gap: 20px;
  line-height: 1.4;
}
.faq-chevron {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-h);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm);
  font-size: 1.1rem;
  font-family: monospace;
  transition: transform 0.3s, background 0.3s;
  line-height: 1;
}
.faq-item.open .faq-chevron {
  transform: rotate(45deg);
  background: rgba(255,107,53,0.08);
  border-color: rgba(255,107,53,0.3);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0,1,0,1), padding 0.3s;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  transition: max-height 0.6s ease, padding 0.3s;
}
.faq-answer-inner {
  padding: 0 24px 22px;
}
.faq-answer-inner p {
  font-size: 0.9rem;
  color: var(--muted2);
  line-height: 1.75;
  max-width: none;
}

/* ── PAGE CTA (fond sombre) ─────────────────────────────────────── */
.page-cta-section {
  padding: 120px 0;
  background: var(--hero-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,107,53,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.page-cta-section .label-tag { position: relative; z-index: 1; }
.page-cta-section h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #f0f2f8;
  margin: 20px 0 16px;
  position: relative; z-index: 1;
}
.page-cta-section p {
  color: rgba(240,242,248,0.6);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative; z-index: 1;
}
.page-cta-section .btn-primary { position: relative; z-index: 1; }

/* ── PAGES LÉGALES ──────────────────────────────────────────────── */
.legal-wrap {
  padding-top: var(--nav-h);
  min-height: 100vh;
  background: var(--bg);
}
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 32px 120px;
}
.legal-content h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.legal-date {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.legal-content h2 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin: 44px 0 12px;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p,
.legal-content li {
  font-size: 0.9rem;
  color: var(--muted2);
  line-height: 1.85;
  margin-bottom: 10px;
}
.legal-content ul { padding-left: 22px; margin-bottom: 12px; }
.legal-content a { color: var(--warm); }
.legal-content a:hover { text-decoration: underline; }
.legal-content strong { color: var(--text); font-weight: 600; }

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .service-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse .two-col-visual { order: 0; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 640px) {
  .service-cards { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: 1fr; }
  .page-hero-actions { flex-direction: column; align-items: stretch; }
  .page-hero-actions .btn-primary,
  .page-hero-actions .btn-ghost { justify-content: center; }
  .page-section { padding: 72px 0; }
  .page-section-alt { padding: 72px 0; }
  .legal-content { padding: 60px 20px 80px; }
}
