/* ---------- Variables ---------- */
:root {
  --bg: #fdfdfd;
  --text: #222;
  --muted: #666;
  --primary: #4f46e5;
  --secondary: #6d28d9;
  --accent: #eac66c;
  --light: #f5f5f5;
  --white: #fff;
  --radius: 1rem;
  --shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }

/* ---------- Typography ---------- */
.h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.h2 { font-size: 2rem; margin-bottom: 1rem; }
.sub { color: var(--muted); margin: .5rem 0 2rem; }

/* ---------- Layout ---------- */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section { padding: 5rem 0; }
.section.alt { background: var(--light); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 2rem; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow);
}
.nav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.logo { width: 40px; }
.menu { display: flex; gap: 1rem; }
.menu a { text-decoration: none; color: var(--text); font-weight: 500; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: .3rem; background: none; border: none; cursor: pointer; }
.hamburger span { width: 25px; height: 3px; background: var(--text); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #eef2ff, #f9fafb);
  text-align: center;
  padding: 6rem 1rem;
}
.badge-top {
  display: inline-block;
  background: var(--accent);
  color: var(--text);
  padding: .4rem .8rem;
  border-radius: 999px;
  font-size: .9rem;
  margin-bottom: 1rem;
}
.lead { font-size: 1.2rem; color: var(--muted); margin-bottom: 1rem; }
.clients { font-size: 1rem; margin-bottom: 2rem; color: var(--primary); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .8rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}
.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
}
.btn--primary:hover { opacity: .9; }
.btn--ghost {
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn--ghost:hover { background: var(--primary); color: var(--white); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.card .icon { font-size: 2rem; margin-bottom: 1rem; }

/* ---------- Steps ---------- */
.steps { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; margin: 2rem 0; }
.step { flex: 1; min-width: 200px; text-align: center; }
.step__num {
  display: inline-block;
  width: 40px; height: 40px; line-height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  margin-bottom: .5rem;
  font-weight: 700;
}

/* ---------- Tarifs ---------- */
.tabs { display: flex; justify-content: center; margin-bottom: 2rem; gap: 1rem; }
.tab-btn {
  background: var(--light);
  border: none;
  padding: .6rem 1.2rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
}
.tab-btn.active { background: var(--primary); color: var(--white); }
.tab-content { display: none; }
.tab-content.active { display: block; }

.pricing { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); }
.p-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}
.p-name { font-weight: 600; color: var(--muted); }
.p-price { font-size: 1.8rem; font-weight: 700; margin: 1rem 0; }
.p-feats { list-style: disc; text-align: left; margin: 1rem 0 1.2rem 1.3rem; color: var(--muted); }
.p-feats li { margin: .35rem 0; }
.p-card--recommended { border: 2px solid var(--accent); }
.badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--accent);
  padding: .3rem .6rem;
  border-radius: .5rem;
  font-size: .8rem; font-weight: 600;
}

/* ---------- Stats ---------- */
.stat { text-align: center; }
.stat h3 { font-size: 2rem; margin-bottom: .5rem; }

/* ---------- Comparatif ---------- */
.comparatif { width: 100%; border-collapse: collapse; margin-top: 2rem; }
.comparatif th, .comparatif td { border: 1px solid #ddd; padding: 1rem; text-align: center; }
.comparatif th { background: var(--primary); color: var(--white); }

/* ---------- Avis ---------- */
.testis { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.testi {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  flex: 1; min-width: 250px;
}

/* ---------- Garanties ---------- */
#garanties .card h3 { margin-bottom: .5rem; color: var(--primary); }

/* ---------- Revendeur teaser ---------- */
#revendeur-teaser { text-align: center; }
#revendeur-teaser p { margin: 1rem 0; color: var(--muted); }

/* ---------- Blog ---------- */
.grid-3 .card h3 { margin-bottom: .5rem; }

/* ---------- FAQ ---------- */
.faq { margin-bottom: 1rem; border: 1px solid #ddd; border-radius: var(--radius); padding: 1rem; background: var(--white); }
.faq summary { font-weight: 600; cursor: pointer; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; }
.contact-list li { margin-bottom: .8rem; }

/* ---------- Footer ---------- */
.footer { background: var(--light); padding: 2rem 0; text-align: center; }
.footer nav { margin-top: 1rem; display: flex; gap: 1rem; justify-content: center; }

/* ---------- WhatsApp Floating ---------- */
.whatsapp-float {
  position: fixed; bottom: 20px; right: 20px;
  background: #25d366; color: var(--white);
  padding: 1rem; border-radius: 50%;
  font-size: 1.5rem; box-shadow: var(--shadow);
  z-index: 1000; text-decoration: none;
}

/* ---------- Sticky Bar ---------- */
.sticky-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; width: 100%;
  background: var(--white); box-shadow: var(--shadow);
  padding: .8rem; display: flex; justify-content: space-between; align-items: center;
  z-index: 999;
}
.sticky-bar a { font-weight: 600; text-decoration: none; }

/* ---------- Shimmer Effect ---------- */
.shimmer {
  position: relative; display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  overflow: hidden;
}
.shimmer::before {
  content: ""; position: absolute; top: 0; left: -150%;
  width: 150%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
  animation: shimmer 3s infinite;
}
@keyframes shimmer { 0%{left:-150%} 50%{left:150%} 100%{left:150%} }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .menu { display: none; flex-direction: column; gap: 1rem; background: var(--white); padding: 1rem; position: absolute; top: 60px; right: 10px; box-shadow: var(--shadow); }
  .menu.show { display: flex; }
  .hamburger { display: flex; }
}
/* ===== BLOG PAGE ===== */
.blog-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-bar {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 50px;
  padding: 0.3rem 0.8rem;
  flex: 1;
  max-width: 400px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.search-bar input {
  border: none;
  outline: none;
  flex: 1;
  padding: 0.5rem;
  font-size: 1rem;
}

.search-bar button {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.newsletter {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 50px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.newsletter input {
  border: none;
  outline: none;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  flex: 1;
}

.newsletter button {
  border: none;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  padding: 0 1.2rem;
  cursor: pointer;
  transition: background 0.3s;
}

.newsletter button:hover {
  background: linear-gradient(135deg, #2575fc, #6a11cb);
}

/* Articles grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.article-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.article-card h3 {
  font-size: 1.2rem;
  margin: 1rem;
  font-weight: 600;
  color: #222;
}

.article-card p {
  margin: 0 1rem 1rem;
  color: #555;
  font-size: 0.95rem;
  flex: 1;
}

.article-card .btn {
  margin: 1rem;
  align-self: flex-start;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 1rem;
}

.pagination button {
  border: none;
  background: #f0f0f0;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.pagination button:hover:enabled {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  transform: translateY(-2px);
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
