/* =========================================================
   PassionRun.fr — Feuille de style principale
   Design system : énergique, lisible, mobile-first
   ========================================================= */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #ff4f1a;        /* Orange running */
  --primary-dark: #d63a0a;
  --primary-light: #ffe6dc;
  --dark: #0d1b2a;            /* Bleu nuit */
  --dark-2: #1b263b;
  --gray-900: #1f2937;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --gray-50: #fafafa;
  --white: #ffffff;
  --accent: #00c896;          /* Vert dynamique */
  --accent-yellow: #ffd166;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 16px rgba(13,27,42,.08);
  --shadow-lg: 0 12px 40px rgba(13,27,42,.15);
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1180px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", var(--font-body);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: .75rem; }
h4 { font-size: 1.1rem; margin-bottom: .5rem; }
p  { margin-bottom: 1rem; }

ul, ol { margin: 0 0 1rem 1.25rem; }
li { margin-bottom: .35rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 6px 16px rgba(255,79,26,.35); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(255,79,26,.4); }
.btn-secondary { background: transparent; color: var(--white); border-color: var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--dark); }
.btn-ghost { background: var(--white); color: var(--dark); border-color: var(--gray-300); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-100);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.logo {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 900; font-size: 1.45rem;
  color: var(--dark); letter-spacing: -0.03em;
}
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #ff8a4c);
  display: grid; place-items: center; color: var(--white);
  box-shadow: 0 4px 12px rgba(255,79,26,.35);
}
.logo-mark svg { width: 22px; height: 22px; }
.logo span.accent { color: var(--primary); }

.nav-menu { display: flex; gap: 28px; align-items: center; list-style: none; margin: 0; }
.nav-menu a {
  color: var(--gray-700); font-weight: 600; font-size: .98rem;
  position: relative; padding: 6px 0;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); }
.nav-menu a.active::after,
.nav-menu a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--primary); border-radius: 2px;
}
.nav-cta { display: inline-flex; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span {
  display: block; width: 24px; height: 2px; background: var(--dark);
  margin: 5px 0; transition: transform .3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 60%, #2a3a5a 100%);
  color: var(--white);
  padding: 90px 0 110px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,79,26,.18), transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(0,200,150,.12), transparent 50%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center;
  position: relative;
}
.hero h1 { color: var(--white); }
.hero h1 .highlight {
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent-yellow) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  font-size: 1.2rem; color: rgba(255,255,255,.85);
  margin-bottom: 2rem; max-width: 560px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stat .num {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 900;
  color: var(--accent-yellow);
}
.hero-stat .label { font-size: .9rem; color: rgba(255,255,255,.7); }

.hero-visual {
  position: relative; aspect-ratio: 1/1; max-width: 460px; margin-left: auto;
}
.hero-card {
  position: absolute; background: rgba(255,255,255,.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
}
.hero-card.c1 { top: 8%; left: 0; }
.hero-card.c2 { top: 38%; right: 0; }
.hero-card.c3 { bottom: 5%; left: 15%; }
.hero-card .small { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 4px; }
.hero-card .big { font-size: 1.6rem; font-weight: 800; color: var(--white); font-family: var(--font-display); }
.hero-card .unit { font-size: .9rem; color: var(--accent-yellow); margin-left: 4px; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-eyebrow {
  display: inline-block; padding: 6px 14px;
  background: var(--primary-light); color: var(--primary);
  border-radius: 999px; font-size: .85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 14px;
}
.section-title { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-title.left { text-align: left; margin-left: 0; }
.section-title h2 { margin-bottom: .75rem; }
.section-title p { color: var(--gray-500); font-size: 1.1rem; }

/* ---------- Cards / Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature {
  background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-lg);
  padding: 32px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--primary-light); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #ff8a4c);
  display: grid; place-items: center; color: var(--white);
  margin-bottom: 18px; box-shadow: 0 6px 14px rgba(255,79,26,.3);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature h3 { color: var(--dark); }
.feature p { color: var(--gray-500); margin-bottom: 0; }

/* ---------- Plans ---------- */
.plans { background: var(--gray-50); }
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.plan-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  border: 2px solid transparent; position: relative;
  transition: all .25s;
}
.plan-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-card .badge {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  background: var(--primary-light); color: var(--primary);
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 14px;
}
.plan-card h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.plan-distance {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 900; color: var(--primary);
  line-height: 1;
}
.plan-meta { color: var(--gray-500); font-size: .9rem; margin: 10px 0 18px; }
.plan-features { list-style: none; margin: 0 0 20px; padding: 0; }
.plan-features li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .95rem; color: var(--gray-700); margin-bottom: 8px;
}
.plan-features li::before {
  content: "✓"; color: var(--accent); font-weight: 900; flex-shrink: 0;
}
.plan-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--primary);
}
.plan-link:hover { gap: 10px; }

/* ---------- Articles / Blog ---------- */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.article-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-cover {
  aspect-ratio: 16/10; background: linear-gradient(135deg, var(--primary), #ff8a4c);
  position: relative; display: grid; place-items: center; color: var(--white);
}
.article-cover.green { background: linear-gradient(135deg, #00c896, #00867d); }
.article-cover.blue { background: linear-gradient(135deg, #2a4a8b, #4a6bb8); }
.article-cover.purple { background: linear-gradient(135deg, #6e3ab7, #9d6bc9); }
.article-cover.dark { background: linear-gradient(135deg, var(--dark), #2a3a5a); }
.article-cover svg { width: 80px; height: 80px; opacity: .85; }
.article-tag {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,.95); color: var(--dark);
  padding: 5px 12px; border-radius: 6px;
  font-size: .8rem; font-weight: 700;
}
.article-body { padding: 22px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.article-meta { font-size: .85rem; color: var(--gray-500); margin-bottom: 8px; }
.article-card h3 {
  font-size: 1.2rem; line-height: 1.35; margin-bottom: 10px; color: var(--dark);
}
.article-card h3 a { color: inherit; }
.article-card h3 a:hover { color: var(--primary); }
.article-card p { color: var(--gray-500); font-size: .95rem; flex: 1; margin-bottom: 14px; }
.article-card .read-more { font-weight: 700; color: var(--primary); font-size: .95rem; }

/* ---------- Community / Testimonials ---------- */
.community {
  background: var(--dark); color: var(--white); position: relative; overflow: hidden;
}
.community::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,79,26,.18), transparent 50%);
}
.community .container { position: relative; }
.community h2 { color: var(--white); }
.community .section-title p { color: rgba(255,255,255,.7); }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.testimonial {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 26px; backdrop-filter: blur(8px);
}
.testimonial p { color: rgba(255,255,255,.92); font-size: 1rem; line-height: 1.65; }
.testi-author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-yellow));
  display: grid; place-items: center; color: var(--white); font-weight: 900;
}
.testi-name { font-weight: 700; color: var(--white); }
.testi-role { font-size: .85rem; color: rgba(255,255,255,.6); }

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(120deg, var(--primary), #ff8a4c);
  color: var(--white); border-radius: var(--radius-lg);
  padding: 56px 40px; text-align: center;
  margin: 40px auto;
}
.newsletter h2 { color: var(--white); }
.newsletter p { color: rgba(255,255,255,.92); max-width: 540px; margin: 0 auto 26px; }
.newsletter-form {
  display: flex; gap: 10px; max-width: 480px; margin: 0 auto; flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1; min-width: 200px; padding: 14px 20px;
  border-radius: 999px; border: 0; font-size: 1rem;
  background: rgba(255,255,255,.95); color: var(--dark);
}
.newsletter-form input:focus { outline: 2px solid var(--white); outline-offset: 2px; }
.newsletter-form button {
  background: var(--dark); color: var(--white);
  padding: 14px 26px; border: 0; border-radius: 999px;
  font-weight: 700; cursor: pointer; transition: background .2s;
}
.newsletter-form button:hover { background: var(--gray-900); }
.newsletter small { display: block; margin-top: 12px; opacity: .85; font-size: .85rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-2); color: rgba(255,255,255,.75);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: var(--white); margin-bottom: 16px; font-size: 1rem; }
.footer-grid p { font-size: .95rem; line-height: 1.65; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid ul a { color: rgba(255,255,255,.75); font-size: .95rem; }
.footer-grid ul a:hover { color: var(--primary); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.08); display: grid; place-items: center;
  color: rgba(255,255,255,.85); transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--primary); color: var(--white); }
.footer-bottom {
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: .9rem; color: rgba(255,255,255,.6);
}

/* ---------- Article (post) layout ---------- */
.post-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--white); padding: 60px 0 50px;
}
.post-hero .breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb { font-size: .9rem; color: var(--gray-500); margin-bottom: 16px; }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--primary); }
.post-meta { display: flex; gap: 16px; font-size: .95rem; margin-top: 16px; opacity: .85; }
.post-tag {
  display: inline-block; padding: 4px 12px; border-radius: 6px;
  background: var(--primary); color: var(--white);
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}

.post-content {
  max-width: 800px; margin: 0 auto; padding: 50px 20px 80px;
  font-size: 1.08rem; line-height: 1.75;
}
.post-content h2 { margin-top: 40px; padding-top: 12px; }
.post-content h3 { margin-top: 28px; }
.post-content p, .post-content ul, .post-content ol { margin-bottom: 1.2rem; }
.post-content blockquote {
  border-left: 4px solid var(--primary);
  background: var(--gray-50);
  padding: 18px 24px; margin: 26px 0;
  font-style: italic; color: var(--gray-700);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-content .callout {
  background: var(--primary-light); border-left: 4px solid var(--primary);
  padding: 18px 24px; border-radius: 0 var(--radius) var(--radius) 0; margin: 26px 0;
}
.post-content .callout strong { color: var(--primary-dark); }
.post-content table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.post-content th, .post-content td {
  padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--gray-100);
}
.post-content th { background: var(--gray-50); color: var(--dark); font-weight: 700; }
.post-content tr:hover td { background: var(--gray-50); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); margin-bottom: 12px;
  padding: 0; transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow); border-color: var(--primary-light); }
.faq summary {
  padding: 18px 22px; font-weight: 700; cursor: pointer;
  list-style: none; position: relative; padding-right: 50px; color: var(--dark);
}
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--primary); transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 22px 18px; color: var(--gray-700); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--dark); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  font-family: inherit; font-size: 1rem; background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus { outline: 2px solid var(--primary); border-color: transparent; }
.form-group textarea { min-height: 130px; resize: vertical; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0 !important; }
.bg-gray { background: var(--gray-50); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 60px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { margin: 0 auto; max-width: 360px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .nav-menu, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .nav-menu.is-open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: 18px 20px;
    box-shadow: var(--shadow-lg); gap: 14px;
    border-top: 1px solid var(--gray-100);
  }
  .features-grid, .plans-grid, .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .newsletter { padding: 40px 22px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }
}
