/* =========================================================
   Plumility GPS — Feuille de style commune
   Utilisée par index.html et privacy.html
   ========================================================= */

:root {
  --primary: #2196F3;
  --primary-hover: #1e88e5;
  --primary-light: #e3f2fd;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 10px 30px -5px rgba(33, 150, 243, 0.1);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.07);
  --radius: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================================================
   Header & Navigation (commun aux deux pages)
   ========================================================= */

header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.logo span {
  color: var(--primary);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(33, 150, 243, 0.35);
}

.btn-download:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.45);
}

/* =========================================================
   Footer (commun aux deux pages)
   ========================================================= */

footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a:hover {
  color: var(--primary);
}

/* =========================================================
   Page d'accueil (index.html)
   ========================================================= */

/* Hero Section */
.hero {
  padding: 5rem 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Mockup téléphone */
.hero-mockup {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-img {
  width: 260px;
  border: 8px solid black;
  border-radius: 20px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-alt);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  position: relative;
}

.speed-display {
  text-align: center;
  margin-top: 1rem;
  background: #fff;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.speed-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.speed-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}

.mini-stat-card {
  background: #fff;
  padding: 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
}

.mini-stat-card span {
  display: block;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.mini-stat-card strong {
  font-size: 0.95rem;
  color: var(--text);
}

/* Section Caractéristiques */
.features {
  padding: 5rem 0;
  background: var(--bg-alt);
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(33, 150, 243, 0.3);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Section Confidentialité (bloc mis en avant sur la home) */
.privacy-highlight {
  padding: 5rem 0;
  background: #fff;
}

.privacy-box {
  background: linear-gradient(135deg, #2196F3 0%, #1565C0 100%);
  border-radius: 24px;
  padding: 3.5rem 2rem;
  color: white;
  text-align: center;
  box-shadow: 0 15px 30px rgba(33, 150, 243, 0.25);
}

.privacy-box h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.privacy-box p {
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.privacy-pills {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.pill {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.apk-download {
  padding: 0 0 5rem;
}

.apk-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 2.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.apk-box h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.apk-box p {
  color: var(--text-muted);
}

.btn-apk {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--primary);
  border-radius: 50px;
  color: var(--primary);
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-apk:hover {
  background: var(--primary-light);
}

/* =========================================================
   Page Politique de Confidentialité (privacy.html)
   ========================================================= */

.back-link {
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--primary);
}

.content a {
  color: var(--primary);
  text-decoration: none;
}

.content a:hover {
  text-decoration: underline;
}

.content {
  padding: 12px;
}

.content h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.content h2 {
  font-size: 1.35rem;
  margin: 2rem 0 1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.content p,
.content ul {
  margin-bottom: 1.25rem;
  color: #334155;
}

.content ul {
  padding-left: 1.5rem;
}

.content li {
  margin-bottom: 0.5rem;
}

.highlight-card {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 868px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 3rem;
  }

  .badges {
    justify-content: center;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .apk-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }
}