/* ============ VARIABLES ============ */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #06b6d4;
  --dark: #0f172a;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
  --container: 1180px;
  --transition: 0.25s ease;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ============ RESET ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-700);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  line-height: 1.25;
  font-weight: 700;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

.accent { color: var(--primary); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn--ghost {
  background: var(--white);
  color: var(--gray-900);
  border: 1.5px solid var(--gray-300);
}
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  width: 100%;
}
.btn--outline:hover { background: var(--primary); color: var(--white); }
.btn--light { background: var(--white); color: var(--primary); }
.btn--light:hover { transform: translateY(-2px); }
.btn--sm { padding: 9px 18px; font-size: 0.85rem; }
.btn--lg { padding: 15px 32px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo__icon {
  width: 40px; height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.logo__text { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--dark); white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__link {
  font-weight: 500;
  color: var(--gray-700);
  font-size: 0.95rem;
  transition: color var(--transition);
  position: relative;
}
.nav__link:hover { color: var(--primary); }

.header__actions { display: flex; align-items: center; gap: 18px; }
.header__phone {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--gray-900); font-size: 0.9rem;
}
.header__phone i { color: var(--primary); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.burger span {
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============ HERO ============ */
.hero {
  padding: 90px 0 70px;
  background: linear-gradient(180deg, #eff6ff 0%, var(--white) 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-light); color: var(--primary-dark);
  padding: 8px 16px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 { font-size: 2.9rem; margin-bottom: 20px; }
.hero__text { font-size: 1.1rem; color: var(--gray-500); max-width: 520px; margin-bottom: 32px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__trust { display: flex; gap: 28px; flex-wrap: wrap; }
.trust__item { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; color: var(--gray-700); }
.trust__item i { color: var(--primary); }

.hero__visual { display: flex; align-items: center; justify-content: center; }
.hero__card {
  width: 100%;
  aspect-ratio: 1/1;
  max-width: 380px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 32px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.hero__card i { font-size: 8rem; color: var(--white); opacity: 0.95; }

/* ============ BRANDS ============ */
.brands { padding: 30px 0; border-bottom: 1px solid var(--gray-100); }
.brands__inner {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap; color: var(--gray-500);
}
.brands__inner span { font-weight: 600; font-size: 0.9rem; }
.brands__inner i { font-size: 1.8rem; color: var(--gray-500); transition: color var(--transition); }
.brands__inner i:hover { color: var(--primary); }

/* ============ SECTION HEAD ============ */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.section-head h2 { font-size: 2.1rem; margin-bottom: 14px; }
.section-head p { color: var(--gray-500); font-size: 1.05rem; }

/* ============ GRID ============ */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ============ SERVICES ============ */
.services { padding: 100px 0; }
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.card__icon {
  width: 54px; height: 54px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--gray-500); font-size: 0.95rem; }

/* ============ WHY ============ */
.why { padding: 100px 0; background: var(--gray-50); }
.why__visual {
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--dark), var(--primary-dark));
  border-radius: 28px;
  display: flex; align-items: center; justify-content: center;
}
.why__visual i { font-size: 7rem; color: var(--white); opacity: 0.9; }
.why .section-tag { margin-bottom: 16px; }
.why h2 { font-size: 2.1rem; margin-bottom: 32px; }
.why__list { display: flex; flex-direction: column; gap: 24px; }
.why__item { display: flex; gap: 16px; align-items: flex-start; }
.why__item i {
  width: 28px; height: 28px; min-width: 28px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  margin-top: 3px;
}
.why__item h4 { font-size: 1.05rem; margin-bottom: 4px; }
.why__item p { color: var(--gray-500); font-size: 0.92rem; }

/* ============ PRICING ============ */
.pricing { padding: 100px 0; }
.price-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}
.price-card:hover { box-shadow: var(--shadow); }
.price-card--featured {
  background: var(--dark);
  border-color: var(--dark);
  transform: scale(1.04);
  box-shadow: var(--shadow-lg);
}
.price-card--featured h3, .price-card--featured .price { color: var(--white); }
.price-card--featured .price span { color: var(--gray-300); }
.price-card--featured li { color: var(--gray-300); }
.price-card--featured li i { color: var(--accent); }
.price-card__tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--white);
  padding: 6px 18px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
}
.price-card h3 { font-size: 1.2rem; margin-bottom: 16px; }
.price { font-family: 'Poppins', sans-serif; font-size: 2.4rem; font-weight: 800; color: var(--dark); margin-bottom: 28px; }
.price span { font-size: 0.95rem; font-weight: 500; color: var(--gray-500); }
.price-card ul { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; text-align: left; }
.price-card li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--gray-700); }
.price-card li i { color: var(--primary); }
.price-card--featured .btn--primary { background: var(--accent); box-shadow: none; }

/* ============ TESTIMONIALS ============ */
.testimonials { padding: 100px 0; background: var(--gray-50); }
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.stars { color: #fbbf24; font-size: 1.1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial p { color: var(--gray-700); margin-bottom: 24px; font-style: italic; }
.testimonial__author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px;
  background: var(--primary-light); color: var(--primary-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.testimonial__author div strong { display: block; font-size: 0.92rem; color: var(--gray-900); }
.testimonial__author div span { font-size: 0.82rem; color: var(--gray-500); }

.pricing__note {
  max-width: 760px;
  margin: 48px auto 0;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.92rem;
}

/* ============ FAQ ============ */
.faq { padding: 100px 0; background: var(--gray-50); }
.faq__inner { max-width: 820px; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  margin-bottom: 14px;
  transition: box-shadow var(--transition);
}
.faq__item[open] { box-shadow: var(--shadow); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--dark);
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform var(--transition);
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding: 0 24px 22px; color: var(--gray-500); font-size: 0.95rem; }

/* ============ CTA BAND ============ */
.cta-band { padding: 60px 0; background: linear-gradient(120deg, var(--primary), var(--accent)); }
.cta-band__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.cta-band h2 { color: var(--white); font-size: 1.7rem; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.9); }

/* ============ CONTACT ============ */
.contact { padding: 100px 0; }
.contact h2 { font-size: 2.1rem; margin-bottom: 16px; }
.contact__text { color: var(--gray-500); margin-bottom: 32px; }
.contact__info { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.contact__item { display: flex; align-items: center; gap: 16px; }
.contact__item i {
  width: 46px; height: 46px;
  background: var(--primary-light); color: var(--primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.contact__item strong { display: block; font-size: 0.95rem; color: var(--gray-900); }
.contact__item span { font-size: 0.9rem; color: var(--gray-500); }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 42px; height: 42px;
  background: var(--gray-100); color: var(--gray-700);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.socials a:hover { background: var(--primary); color: var(--white); }

.form {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 36px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__group { margin-bottom: 18px; }
.form__group label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--gray-900); margin-bottom: 7px; }
.form__group input, .form__group select, .form__group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color var(--transition);
  resize: vertical;
}
.form__group input:focus, .form__group select:focus, .form__group textarea:focus {
  outline: none; border-color: var(--primary);
}
.form__group.has-error input, .form__group.has-error textarea { border-color: #ef4444; }
.form__error { display: block; color: #ef4444; font-size: 0.8rem; margin-top: 5px; min-height: 1em; }
.form__success {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  background: #ecfdf5;
  color: #047857;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}
.form__success.show { display: block; }
.form__notice { margin-top: 14px; font-size: 0.8rem; color: var(--gray-500); text-align: center; }
.form__notice a { color: var(--primary); text-decoration: underline; }

/* ============ LEGAL PAGES ============ */
.legal { padding: 70px 0 90px; }
.legal__inner { max-width: 780px; }
.legal h1 { font-size: 2.2rem; margin-bottom: 8px; }
.legal__updated { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal p, .legal li { font-size: 0.97rem; }
.legal p { margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.legal ol { list-style: decimal; padding-left: 22px; margin-bottom: 12px; }
.legal li, .legal p { overflow-wrap: break-word; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--primary); text-decoration: underline; }
.todo { background: #fef08a; color: #713f12; padding: 1px 4px; border-radius: 4px; font-weight: 600; }

/* ============ FOOTER ============ */
.footer { background: var(--dark); padding-top: 70px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand p { color: var(--gray-500); margin-top: 16px; font-size: 0.9rem; max-width: 280px; }
.footer .logo__text { color: var(--white); }
.footer__col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 20px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col a { color: var(--gray-500); font-size: 0.9rem; transition: color var(--transition); display: flex; align-items: center; gap: 8px; }
.footer__col a:hover { color: var(--white); }
.footer__bottom { padding: 24px 0; }
.footer__bottom p { color: var(--gray-500); font-size: 0.85rem; text-align: center; }
.footer--simple { padding-top: 0; }
.footer__legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 8px; }
.footer__legal a { color: var(--gray-300); text-decoration: underline; transition: color var(--transition); }
.footer__legal a:hover { color: var(--white); }

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  bottom: 96px; right: 33px;
  width: 46px; height: 46px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 90;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); }

/* ============ WHATSAPP ============ */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition);
  z-index: 95;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ============ SCROLL ANIMATIONS ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 968px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__card { max-width: 280px; }
  .grid--2 { grid-template-columns: 1fr; gap: 40px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .header__phone { display: none; }
  .burger { display: flex; }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--white);
    padding: 20px 24px;
    gap: 18px;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--gray-100);
  }

  .hero { padding: 50px 0 50px; }
  .hero h1 { font-size: 2.1rem; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .hero__trust { gap: 16px; }

  .grid--3 { grid-template-columns: 1fr; }
  .price-card--featured { transform: none; }

  .form__row { grid-template-columns: 1fr; }
  .form { padding: 24px; }

  .cta-band__inner { flex-direction: column; text-align: center; }

  .footer__inner { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 480px) {
  .section-head h2 { font-size: 1.6rem; }
  .hero h1 { font-size: 1.7rem; }
  .btn--lg { padding: 13px 24px; font-size: 0.9rem; }
  /* Le CTA du hero et le bouton WhatsApp prennent le relais sur petit écran */
  .header__actions .btn { display: none; }
  .header__back-label { display: none; }
  .header__back { width: 40px; height: 40px; padding: 0; }
}
