:root {
  --bg: #f1f3f5;
  --panel: #ffffff;
  --card: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --accent: #2563eb;
  --accent-2: #0b1b3a;
  --accent-warm: #fbed24;
  --border: rgba(15, 23, 42, 0.1);
  --shadow: 0 12px 30px rgba(17, 24, 39, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cg fill='%23d1d5db' opacity='0.45'%3E%3Ccircle cx='2' cy='2' r='1'/%3E%3Ccircle cx='13' cy='13' r='1'/%3E%3Ccircle cx='2' cy='13' r='1'/%3E%3Ccircle cx='13' cy='2' r='1'/%3E%3Ccircle cx='24' cy='24' r='1'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  line-height: 1.7;
  font-weight: 500;
}

h1, h2, h3 {
  font-weight: 750;
  color: #0f172a;
}

p, li, span, a {
  color: var(--text);
  font-weight: 520;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(226, 239, 255, 0.92));
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-sub {
  color: var(--muted);
  font-size: 14px;
}

.logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.logo.small {
  width: 36px;
  height: 36px;
}

.cta-group {
  display: flex;
  gap: 12px;
}

.primary-nav {
  display: flex;
  gap: 10px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
  min-width: 220px;
}

.nav-link {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 16px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link.active {
  border-color: rgba(29, 78, 216, 0.4);
  background: rgba(29, 78, 216, 0.12);
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  color: var(--text);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.btn.primary {
  background: linear-gradient(135deg, #0227ab, #0227ab);
  color: #0b1b3a;
}
.btn.primary.phone-btn {
  color: #ffffff;
}
.phone-btn {
  color: #ffffff;
}

.btn.ghost {
  background: #eef2ff;
  border-color: rgba(37, 99, 235, 0.3);
  color: #0b1b3a;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.22);
}

.topbar .btn.primary {
  background: #0227ab;
  border-color: #0227ab;
  color: #ffffff;
}

.topbar .btn.ghost {
  background: rgba(2, 39, 171, 0.08);
  border-color: rgba(2, 39, 171, 0.6);
  color: #0227ab;
}

.cta-center {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  padding: 96px 32px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 12px 0;
}

.lead {
  color: var(--muted);
  font-size: 25px;
}

.highlight {
  color: #0227ab;
  font-weight: 800;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.75),
    0 4px 10px rgba(0, 28, 120, 0.35);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(37, 99, 235, 0.28);
  color: var(--accent-2);
  font-weight: 600;
  font-size: 13px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.infos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
  color: var(--muted);
}

.hero-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(232, 241, 255, 0.92));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.hero-card .card-title {
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  color: var(--text);
}

.hero-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: transparent;
  border: 1px dashed rgba(251, 237, 36, 0.9);
  margin-right: 8px;
  color: #1f2a8a;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: none;
}

.pill.accent {
  background: transparent;
  color: #1f2a8a;
  border-color: rgba(251, 237, 36, 0.9);
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 36px;
}

.section.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(236, 239, 252, 0.7));
}

.section.guarantees {
  padding-bottom: 100px;
}

.reviews .highlight-card {
  background: #eef2ff;
  border-color: #cbd5f5;
}

.star-picker {
  display: grid;
  gap: 8px;
}

.star-picker span {
  font-weight: 650;
  color: var(--accent-2);
}

.review-form {
  display: grid;
  gap: 10px;
}

.review-form label {
  display: grid;
  gap: 6px;
  color: var(--accent-2);
  font-weight: 650;
}

.review-form input,
.review-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

.btn.full {
  width: 100%;
  justify-content: center;
}

.reviews-list {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.review {
  background: #fff;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
}

.stars {
  margin-bottom: 6px;
}

.star {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23cbd5e1' d='M12 17.3l-5.09 3.08 1.35-5.8-4.48-3.88 5.96-.5L12 4l2.26 6.2 5.96.5-4.48 3.88 1.35 5.8z'/%3E%3C/svg%3E");
}

.star.filled {
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f59e0b' d='M12 17.3l-5.09 3.08 1.35-5.8-4.48-3.88 5.96-.5L12 4l2.26 6.2 5.96.5-4.48 3.88 1.35 5.8z'/%3E%3C/svg%3E");
}

.stars.interactive .star {
  cursor: pointer;
  border: none;
  background-color: transparent;
  padding: 0;
}

.grid.two-col {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
  align-items: center;
  justify-items: center;
  margin-top: 30px;
}

.logos img {
  max-height: 90px;
  object-fit: contain;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.page-garanties .logos img {
  max-height: 130px;
  padding: 14px;
}

.logos.single {
  max-width: 240px;
  margin: 26px auto 0;
}

.notice {
  margin-top: 26px;
  background: #f8fafc;
}

.section-header h2 {
  margin: 10px 0 6px;
  font-size: clamp(24px, 3vw, 32px);
}

.section-header p {
  color: var(--muted);
  max-width: 780px;
}

.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 30px;
}

.page-boutique .grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-boutique .card .tags {
  margin-bottom: 14px;
}

.page-boutique .shop-buy {
  color: #ffffff;
  margin-top: 6px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 20;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.modal-card {
  position: relative;
  z-index: 1;
  max-width: 520px;
  width: 100%;
  background: #ffffff;
  border-radius: 18px;
  padding: 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.modal-card .badge {
  align-self: center;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: rgba(15, 23, 42, 0.08);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.modal-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.modal-card h2,
.modal-card p {
  text-align: center;
}

.modal-form {
  display: grid;
  gap: 12px;
}

.modal-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--accent-2);
}

.modal-form input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

.modal-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  resize: vertical;
}

.modal-form-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.modal-bank {
  border: 1px dashed rgba(15, 23, 42, 0.2);
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.modal-bank-title {
  font-weight: 700;
  color: var(--accent-2);
}

.modal-submit {
  width: 100%;
  color: #ffffff;
}

.card {
  padding: 22px 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(237, 243, 255, 0.9));
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.process {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.2);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.16);
  color: #1d4ed8;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.testimonials .quote-text {
  font-size: 16px;
  color: var(--text);
}

.quote-meta {
  margin-top: 12px;
  color: var(--muted);
}

.quote-name {
  font-weight: 700;
  color: var(--text);
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
}

.tag {
  background: rgba(37, 99, 235, 0.16);
  color: #0b1b3a;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.contact {
  padding-bottom: 96px;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.page-activites .activities-grid {
  grid-template-columns: 1fr;
}

.activities-title {
  margin: 0 0 16px;
  text-align: center;
}

.carousel {
  margin-top: 16px;
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-slide {
  flex: 1;
  background: #eef2ff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: none;
}

.carousel-slide img {
  width: 100%;
  height: 420px;
  border-radius: 12px;
  object-fit: cover;
}
.carousel-slide.active {
  display: block;
}

.carousel-btn {
  border: none;
  background: rgba(37, 99, 235, 0.16);
  color: var(--accent);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: grid;
  place-items: center;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.2);
}

.dot.active {
  background: var(--accent);
}

.contact-card {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.12), rgba(255, 255, 255, 0.94));
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 26px;
  box-shadow: var(--shadow);
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 24px 32px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.footer-info {
  display: grid;
  gap: 6px;
  text-align: right;
}

.footer-line {
  color: var(--muted);
  font-size: 14px;
}

.footer-line strong {
  color: var(--text);
  font-weight: 700;
}

.small-text {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .primary-nav {
    order: 3;
    justify-content: flex-start;
  }

  .contact-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-info {
    text-align: left;
  }

  .cta-group {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero {
    padding-top: 40px;
  }

  .primary-nav {
    width: 100%;
  }

  .hero-card,
  .contact-card,
  .card,
  .process-step {
    padding: 16px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

.page-prestations,
.page-activites,
.page-garanties,
.page-prevention,
.page-boutique {
  --accent: #0227ab;
}

.page-prestations .badge,
.page-activites .badge,
.page-garanties .badge,
.page-prevention .badge,
.page-boutique .badge {
  background: linear-gradient(135deg, rgba(2, 39, 171, 0.16), rgba(2, 39, 171, 0.1));
  border: 1px solid rgba(2, 39, 171, 0.28);
  color: var(--accent-2);
}

.page-prestations .nav-link.active,
.page-activites .nav-link.active,
.page-garanties .nav-link.active,
.page-prevention .nav-link.active,
.page-boutique .nav-link.active {
  border-color: rgba(2, 39, 171, 0.4);
  background: rgba(2, 39, 171, 0.12);
  color: #0227ab;
}

.page-prestations .step-number,
.page-activites .step-number,
.page-garanties .step-number,
.page-prevention .step-number,
.page-boutique .step-number {
  background: rgba(2, 39, 171, 0.18);
  color: #0227ab;
}

.page-prestations .btn.ghost,
.page-activites .btn.ghost,
.page-garanties .btn.ghost,
.page-prevention .btn.ghost,
.page-boutique .btn.ghost {
  border-color: rgba(2, 39, 171, 0.3);
  color: #0227ab;
}

.page-prestations .carousel-btn,
.page-activites .carousel-btn,
.page-garanties .carousel-btn,
.page-prevention .carousel-btn,
.page-boutique .carousel-btn {
  background: rgba(2, 39, 171, 0.16);
  color: #0227ab;
}

.page-prestations .tag,
.page-activites .tag,
.page-garanties .tag,
.page-prevention .tag,
.page-boutique .tag {
  background: rgba(2, 39, 171, 0.16);
  border: 1px solid rgba(2, 39, 171, 0.28);
  color: #0227ab;
}
