/* ===========================
   Dégringole - Custom Styles
   Theme: Royal blue + Gold (#d4a437 -> #f0c75e)
   Same skeleton as pagira/css/style.css, reduced to what the pages use.
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #05102a;
  --bg-secondary: #0a1a3a;
  --bg-card: #0f2148;
  --bg-card-hover: #152a58;
  --text-primary: #f3f1ea;
  --text-secondary: #a9b3c9;
  --gold: #d4a437;
  --gold-hover: #f0c75e;
  --gold-bright: #f0c75e;
  --gold-glow: rgba(212, 164, 55, 0.16);
  --gradient: linear-gradient(135deg, #d4a437 0%, #f0c75e 100%);
  --border-color: #1c2d55;
}

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--gold-hover);
}

::selection {
  background: var(--gold);
  color: #05102a;
}

/* ---- Navbar ---- */
.navbar {
  background-color: rgba(5, 16, 42, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-primary) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.navbar-brand .brand-icon-img {
  border-radius: 7px;
}

.navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--gold) !important;
}

.navbar-toggler {
  border-color: var(--border-color);
}
.navbar-toggler-icon {
  filter: invert(1);
}

/* ---- Language Dropdown ---- */
.lang-dropdown {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.5rem 0;
  min-width: 140px;
}
.lang-dropdown .dropdown-item {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.4rem 1.25rem;
  transition: color 0.2s, background-color 0.2s;
}
.lang-dropdown .dropdown-item:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-primary);
}
.lang-dropdown .dropdown-item.active {
  background-color: var(--gold-glow);
  color: var(--gold);
}

/* ---- Hero ---- */
.hero {
  padding: 7rem 0 5rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, var(--gold-glow) 0%, transparent 60%),
              linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero h1 .text-gold {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lead {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 640px;
  margin: 0 auto 2rem;
}

/* ---- Sections ---- */
section {
  padding: 5rem 0;
}

.section-title {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

/* ---- Privacy ---- */
.privacy-content h2 {
  margin-bottom: 1rem;
}
.privacy-content h3 {
  font-weight: 600;
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.privacy-content p,
.privacy-content li {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}
.privacy-content p {
  margin-bottom: 1rem;
}
.privacy-content ul {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}
.privacy-content strong {
  color: var(--text-primary);
}

/* ---- Footer ---- */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

footer a {
  color: var(--text-secondary);
  transition: color 0.2s;
}
footer a:hover {
  color: var(--gold);
}

/* ---- Utilities ---- */
.text-gold {
  color: var(--gold) !important;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero {
    padding: 5rem 0 3rem;
  }

  section {
    padding: 3.5rem 0;
  }
}

/* ==========================================================================
   Attribution editeur - markup dans /includes/byline.php et /includes/site-footer.php
   ========================================================================== */
.brand-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: 1rem;
}
.brand-stack .navbar-brand { margin-right: 0; }

/* Aligne la signature sous le NOM de l'app, pas sous l'icone :
   32 px d'icone + le gap de 0.5rem de .navbar-brand. */
.navbar-byline {
  margin-top: -0.2rem;
  padding-left: 2.5rem;
  font-size: 0.72rem;
  line-height: 1.2;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.navbar-byline:hover { opacity: 0.75; }

/* Logotype de marque : prest en blanc, Apps en vert, identique au hub.
   Le logotype garde ses couleurs de marque quelle que soit l'app hote. */
.pa-wordmark { font-weight: 700; color: #ffffff; }
.pa-wordmark > span { color: #38ef7d; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  vertical-align: -0.35rem;
}
.footer-brand img { border-radius: 22.5%; display: block; }

/* Hero sans capture d'ecran (confidentialite) : voir pagira/css/style.css. */
.hero--compact {
  padding-bottom: 1rem;
}
.hero--compact .lead {
  margin-bottom: 0;
}

/* Filet vertical avant le selecteur de langue, seul .dropdown de la navbar. */
@media (min-width: 992px) {
  .navbar-nav .nav-item.dropdown {
    border-left: 1px solid var(--border-color);
    margin-left: 0.5rem;
    padding-left: 0.5rem;
  }
}

/* ==========================================================================
   Accueil et assistance - repris de pagira/css/style.css, accent or.
   ========================================================================== */
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.bg-dark-section {
  background-color: var(--bg-secondary);
}

/* ---- Bouton ---- */
.btn-gold {
  background: var(--gradient);
  color: #05102a;
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 12px;
  transition: filter 0.2s, transform 0.15s;
}
.btn-gold:hover {
  filter: brightness(1.08);
  color: #05102a;
  transform: translateY(-1px);
}

/* ---- Badge officiel Apple - markup dans /includes/store-badge.php ----
   Les guidelines d'Apple interdisent de redessiner, recolorer ou deformer le
   badge : seule la hauteur se regle, la largeur suit. Ne pas mettre w-100. */
.store-badge {
  display: inline-block;
  line-height: 0;
  transition: opacity 0.2s ease;
}
.store-badge:hover { opacity: 0.85; }
.store-badge img {
  height: 56px;
  width: auto;
}

/* ---- Captures et video : le jeu se joue couche, elles sont en paysage ---- */
.hero-media {
  max-width: 980px;
  margin: 0 auto;
}
.app-shot {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  background-color: var(--bg-card);
}

/* ---- Vitrines de fonctionnalites ---- */
.feature-showcase {
  padding: 2.5rem 0;
}
.feature-showcase-title {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.feature-showcase-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
}
.feature-list li {
  display: flex;
  gap: 0.5rem;
  padding: 0.3rem 0;
}
.feature-list li i {
  color: var(--gold);
  flex-shrink: 0;
}
@media (max-width: 991.98px) {
  .feature-showcase .order-lg-1 { order: 2; }
  .feature-showcase .order-lg-2 { order: 1; }
}

/* ---- FAQ (accordeon Bootstrap) ---- */
.accordion {
  --bs-accordion-bg: var(--bg-card);
  --bs-accordion-color: var(--text-secondary);
  --bs-accordion-border-color: var(--border-color);
  --bs-accordion-btn-color: var(--text-primary);
  --bs-accordion-btn-bg: var(--bg-card);
  --bs-accordion-active-bg: var(--bg-card-hover);
  --bs-accordion-active-color: var(--gold);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(212, 164, 55, 0.25);
}
.accordion-item {
  border-radius: 12px !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.accordion-button {
  font-weight: 600;
  font-size: 1rem;
  padding: 1.15rem 1.5rem;
}
.accordion-button::after {
  filter: invert(1);
}
.accordion-button:not(.collapsed)::after {
  filter: invert(0.7) sepia(1) saturate(4) hue-rotate(5deg);
}
.accordion-body {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  padding: 0.5rem 1.5rem 1.25rem;
}
.accordion-body strong {
  color: var(--text-primary);
}
.accordion-body ul {
  padding-left: 1.25rem;
}

/* ---- Contact ---- */
.contact-section a:not(.btn) {
  font-size: 1.05rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .feature-showcase {
    padding: 0;
  }
}
