/* ============================================================
   PAGES.CSS — Styles communs pour les pages internes
   ============================================================ */

/* ---- BREADCRUMB ---- */
.breadcrumb {
  padding: 100px 64px 0;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.breadcrumb li + li::before {
  content: '›';
  margin-right: 8px;
  opacity: 0.4;
}
.breadcrumb a {
  color: var(--muted);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current="page"] { color: var(--white); }

/* ---- PAGE HERO ---- */
.page-hero {
  padding: 48px 64px 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 60% 80% at 20% 50%, rgba(255,193,32,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.page-hero-title {
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--white);
  margin: 16px 0 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.page-hero-title.visible {
  opacity: 1;
  transform: translateY(0);
}
.page-hero-title em {
  font-style: normal;
  background: var(--yellow-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero-sub {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--muted);
  line-height: 1.65;
  max-width: 620px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s 0.15s ease, transform 0.6s 0.15s ease;
}
.page-hero-sub.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- PAGE CONTENT ---- */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px 120px;
}

.page-section {
  padding: 72px 0;
  border-top: 0.5px solid var(--blue-border);
}
.page-section:first-child { border-top: none; }

.page-section h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 32px;
  line-height: 1.15;
}
.page-section h2 em {
  font-style: normal;
  background: var(--yellow-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-section h3 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  color: var(--white);
  margin: 40px 0 16px;
  letter-spacing: -0.02em;
}
.page-section p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 720px;
  margin-bottom: 20px;
}
.page-section strong { color: var(--white); font-weight: 600; }

/* ---- LISTE FEATURES ---- */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
  list-style: none;
  padding: 0;
}
.feature-list li {
  background: rgba(255,255,255,0.03);
  border: 0.5px solid var(--blue-border);
  border-radius: 12px;
  padding: 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  transition: border-color 0.2s, background 0.2s;
}
.feature-list li:hover {
  border-color: rgba(255,193,32,0.2);
  background: rgba(255,193,32,0.03);
}
.feature-list li strong {
  display: block;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

/* ---- FAQ ---- */
.faq-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  border-top: 0.5px solid var(--blue-border);
}
.faq-item:last-child { border-bottom: 0.5px solid var(--blue-border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  padding: 22px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--yellow); }
.faq-icon {
  flex-shrink: 0;
  font-size: 20px;
  color: var(--yellow);
  transition: transform 0.3s ease;
  font-style: normal;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding-bottom: 0;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}

/* ---- CTA SECTION ---- */
.page-cta {
  margin-top: 80px;
  padding: 64px;
  background: rgba(255,193,32,0.04);
  border: 0.5px solid rgba(255,193,32,0.15);
  border-radius: 20px;
  text-align: center;
}
.page-cta h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.page-cta p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.page-cta .btn-primary { margin: 0 auto; }

/* ---- MINI CARDS PROJETS (dans pages) ---- */
.mini-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.mini-card {
  border-radius: 12px;
  overflow: hidden;
  border: 0.5px solid var(--blue-border);
  background: var(--blue-mid);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  text-decoration: none;
}
.mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.mini-card-img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  object-position: center;
  background: #0a1525;
}
.mini-card-body {
  padding: 20px;
}
.mini-card-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 8px;
  display: block;
}
.mini-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.mini-card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---- NAV DROPDOWN ---- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.01em;
  padding: 0;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-dropdown { position: relative; }
.nav-dropdown-arrow {
  font-size: 10px;
  display: inline-block;
  transition: transform 0.25s ease;
}
.nav-dropdown-btn[aria-expanded="true"] .nav-dropdown-arrow {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-mid);
  border: 0.5px solid var(--blue-border);
  border-radius: 12px;
  padding: 8px;
  min-width: 240px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}
.nav-dropdown-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-menu a:hover, .nav-dropdown-menu a.active {
  background: rgba(255,255,255,0.06);
  color: var(--white);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .breadcrumb { padding: 88px 24px 0; }
  .page-hero { padding: 32px 24px 60px; }
  .page-content { padding: 0 24px 80px; }
  .page-cta { padding: 40px 24px; }
  .nav-links { display: none; } /* already hidden globally */
}
@media (max-width: 520px) {
  .feature-list { grid-template-columns: 1fr; }
  .mini-cards { grid-template-columns: 1fr; }
}
