/* Play Lab — feuille de style du site recodé, fidèle au design Infomaniak d'origine */

:root {
  --color1: #415b1d;        /* vert Play Lab */
  --color1-light: #718456;  /* vert clair (boutons secondaires) */
  --color1-pale: #a0ad8e;
  --color2: #010101;        /* noir */
  --bg-dark: #292c34;       /* fond charcoal des sections sombres */
  --bg-darker: rgba(41, 44, 52, 0.5);
  --font-heading: "League Spartan", sans-serif;
  --font-body: "League Spartan", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg-dark);
  color: #fff;
  font-family: var(--font-body);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

a { text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0 0 16px;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 24px 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.logo img { height: 40px; width: 40px; }

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: 0.2s;
}

.nav a:hover, .nav a.active { border-color: #fff; }

.nav .pill {
  border: 1px solid #fff;
  border-radius: 5px;
  padding: 8px 14px;
  text-transform: none;
}

.nav .pill:hover { background: rgba(255,255,255,0.3); }

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: 6px;
  padding: 12px 26px;
  border: 2px solid var(--color1);
  background: var(--color1);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  margin: 4px 6px 4px 0;
}

.btn:hover { background: #314416; border-color: #314416; }

.btn-pill { border-radius: 50px; }
.btn-light { background: #fff; color: #212529; border-color: #fff; }
.btn-light:hover { background: #e2e2e2; }
.btn-link { background: none; border: none; color: #fff; text-decoration: underline; }

/* ---------- Sections génériques ---------- */

section { padding: 70px 0; }
.section-alt { background: rgba(255,255,255,0.03); }
.text-center { text-align: center; }

.hero {
  display: flex;
  align-items: center;
  gap: 50px;
  padding-top: 160px;
  flex-wrap: wrap;
}

.hero img { flex: 1 1 380px; max-width: 420px; margin: 0 auto; }
.hero .hero-text { flex: 1 1 380px; }
.hero h1 { font-size: 48px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: center;
}

.two-col img { border-radius: 8px; aspect-ratio: 1/1; object-fit: cover; margin: 0 auto 20px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  background: #fff;
  color: #212529;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card img { aspect-ratio: 16/10; object-fit: cover; }
.card .card-body { padding: 18px; flex: 1; }
.card .card-price {
  background: #f5f5f5;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.card .price { color: var(--color1-light); font-size: 20px; font-weight: 700; }
.card .price-old { color: #999; text-decoration: line-through; font-size: 13px; }
.card .stats { display: flex; justify-content: space-around; margin: 14px 0; font-size: 13px; color: #555; }
.card .stats strong { display: block; font-size: 20px; color: #333; }

.split {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}
.split > * { flex: 1 1 380px; }
.split img { border-radius: 8px; }

.divider { width: 100px; height: 4px; background: var(--color1); margin: 16px 0; }

.testimonial-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.testimonial-carousel figure { margin: 0; flex: 0 0 320px; position: relative; }
.testimonial-carousel img { border-radius: 8px; aspect-ratio: 16/9; object-fit: cover; }
.testimonial-carousel figcaption {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(0,0,0,0.6); padding: 6px 12px; border-radius: 4px; font-weight: 700;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}
.stats-row .stat { border-left: 1px solid rgba(255,255,255,0.2); padding: 0 20px; }
.stats-row .stat:first-child { border-left: none; }
.stats-row .stat-number { font-size: 42px; }

/* ---------- Footer ---------- */

footer {
  background: var(--color1-light);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 0;
}

footer .footer-top {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}

footer .footer-logo img { height: 60px; margin-bottom: 14px; }

footer h5 { color: rgba(255,255,255,0.85); font-size: 16px; margin-bottom: 14px; }

footer ul.sitemap { list-style: none; padding: 0; margin: 0 0 24px; }
footer ul.sitemap li { margin-bottom: 8px; }
footer ul.sitemap a { color: rgba(255,255,255,0.85); }
footer ul.sitemap a:hover { text-decoration: underline; }

.footer-bottom {
  background: rgba(0,0,0,0.15);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom .social { display: flex; gap: 14px; }
.footer-bottom .social a { color: #fff; font-size: 20px; }

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 50px 0;
}
.timeline .col-container { border-left: 1px solid rgba(255,255,255,0.2); padding-left: 24px; }
.timeline .col-container:first-child { border-left: none; }
.timeline h2 { font-size: 40px; color: var(--color1-pale); margin-bottom: 4px; }
.timeline h3 { font-size: 20px; margin-bottom: 10px; }
.timeline p, .timeline div { color: rgba(255,255,255,0.85); }

.split-box {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 40px 0;
}
.split-box img { width: 60%; border-radius: 4px; object-fit: cover; aspect-ratio: 4/3; }
.split-box .box {
  background: var(--color1);
  color: #fff;
  padding: 40px;
  width: 40%;
  margin-left: -60px;
  position: relative;
  z-index: 2;
  border-radius: 4px;
}
.split-box.reverse { flex-direction: row-reverse; }
.split-box.reverse .box { margin-left: 0; margin-right: -60px; }
.split-box .box h2 { font-size: 26px; }
.split-box .box p, .split-box .box div { color: rgba(255,255,255,0.9); }

.pricing-row {
  background: #fff;
  color: #212529;
  border-radius: 8px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.15);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  margin-bottom: 30px;
  overflow: hidden;
}
.pricing-row > div { padding: 40px; }
.pricing-row .pretitle { color: var(--color1-light); font-weight: 700; text-transform: uppercase; font-size: 0.9em; margin-bottom: 10px; }
.pricing-row .price-col { background: #f5f5f5; text-align: center; }
.pricing-row .price-col .price { font-size: 2em; font-weight: 700; color: var(--color1-light); }

.faq { max-width: 800px; margin: 30px auto; }
.faq details {
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 10px 0 0; }

.offer-banner {
  background: #fff;
  color: #212529;
  border-radius: 8px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 40px 0;
}
.offer-banner > div:first-child { font-weight: 700; font-size: 1.2em; flex: 0 0 auto; }
.offer-banner > div:nth-child(2) { flex: 1 1 300px; color: #555; }

.cta-banner {
  background: linear-gradient(to right, var(--color1), #314416);
  border-radius: 10px;
  padding: 50px;
  text-align: center;
}
.cta-banner .pretitle { text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 6px; }

.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--color1-pale); font-weight: 700; }

.page-content {
  padding-top: 150px;
}
.page-content h1 { font-size: 38px; margin-bottom: 24px; }
.page-content h2 { font-size: 28px; margin-top: 36px; }
.page-content p, .page-content li { color: rgba(255,255,255,0.85); }
.page-content .lead { font-size: 1.2em; color: #fff; }
.page-content .pricing-row p, .page-content .pricing-row li,
.page-content .card .card-body p, .page-content .card .card-body li { color: #212529; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 700; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: var(--font-body);
}
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row .form-group { flex: 1 1 220px; }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .stats-row .stat { border-left: none; border-top: 1px solid rgba(255,255,255,0.2); padding: 20px 0 0; }
  .stats-row .stat:first-child { border-top: none; }
}
