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

/* Neutralise le violet navigateur sur TOUS les états de lien */
a, a:link, a:visited, a:hover, a:active { color: inherit; text-decoration: none; }

a.btn-primary,
a.btn-primary:link,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:active { color: #ffffff; }

a.btn-secondary,
a.btn-secondary:link,
a.btn-secondary:visited,
a.btn-secondary:hover,
a.btn-secondary:active { color: #ffffff; }

a.nav-phone,
a.nav-phone:link,
a.nav-phone:visited { color: #1a2e4a; }
a.nav-phone:hover,
a.nav-phone:active { color: #ffffff; }

:root {
  --navy:        #1a2e4a;
  --navy-dark:   #0f1e30;
  --blue:        #0066cc;
  --blue-hover:  #004fa3;
  --blue-light:  #ddeeff;
  --green:       #16a34a;
  --green-light: #dcfce7;
  --text:        #1a1a1a;
  --text-muted:  #5a6a7e;
  --border:      #d4dbe6;
  --bg:          #eef1f6;   /* gris clair général */
  --bg-white:    #ffffff;
  --bg-alt:      #e4e9f0;   /* sections alternées */
  --radius:      14px;
  --radius-sm:   9px;
  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --base:        16px;      /* taille de police de référence = taille du menu */
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: var(--base);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

/* ═══════════════════════════════════════
   NAV
═══════════════════════════════════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 108px;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}
.nav-logo img {
  height: 88px;
  width: auto;
  display: block;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: var(--base);
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--navy); background: var(--bg); }
.nav-links a.active {
  color: var(--navy);
  font-weight: 700;
  background: var(--bg);
  border: 1px solid var(--border);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.nav-stars {
  font-size: var(--base);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.stars { color: #f59e0b; }
.nav-phone {
  font-size: var(--base);
  font-weight: 700;
  color: #1a2e4a !important;
  white-space: nowrap;
  border: 2px solid #1a2e4a;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.nav-phone:hover {
  background: #1a2e4a;
  color: #fff !important;
}

/* ═══════════════════════════════════════
   HERO — fond bleu marine, texte blanc
═══════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #0f1e30 0%, #1a2e4a 60%, #1e3a5f 100%);
  padding: 100px 40px 90px;
  position: relative;
  overflow: hidden;
}

/* Accent géométrique discret */
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,102,204,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,102,204,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7ab8f5;
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 2px;
  background: #0066cc;
  border-radius: 2px;
}
.hero h1 {
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 900;
  line-height: 1.12;
  color: #ffffff;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: normal;
  color: #7ab8f5;
}
.hero-sub {
  font-size: var(--base);
  color: #a8c8f0;
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 620px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
  align-items: center;
}

/* Barre de réassurance */
.hero-trust {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--base);
  color: #c8dff5;
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 12px;
}
.trust-item:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.trust-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34d399;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════
   BOUTONS
═══════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: #ffffff !important;
  font-size: var(--base);
  font-weight: 700;
  padding: 16px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(0,102,204,0.35);
  white-space: nowrap;
}
.btn-primary:link, .btn-primary:visited { color: #ffffff !important; }
.btn-primary { color: #ffffff !important; }
.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,102,204,0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  font-size: var(--base);
  font-weight: 600;
  padding: 16px 28px;
  border-radius: var(--radius-sm);
  border: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-secondary:link, .btn-secondary:visited { color: #ffffff; }
.btn-secondary:hover {
  background: rgba(255,255,255,0.22);
  color: #ffffff;
}

/* Bouton sur fond blanc (contact band) */
.btn-primary-lg {
  font-size: 18px;
  padding: 18px 36px;
  box-shadow: 0 6px 24px rgba(0,102,204,0.4);
}

/* ═══════════════════════════════════════
   SECTIONS
═══════════════════════════════════════ */
section:not(.hero) { padding: 52px 40px; background: var(--bg); }
section:not(.hero):nth-child(even) { background: var(--bg-alt); }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.section-sub {
  font-size: var(--base);
  color: var(--text-muted);
  max-width: 780px;
  margin-bottom: 52px;
  line-height: 1.75;
}

/* ═══════════════════════════════════════
   GRILLES & CARDS
═══════════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card-soft { background: var(--bg-white); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: var(--base); font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.card p  { font-size: var(--base); color: var(--text-muted); line-height: 1.65; }

/* ═══════════════════════════════════════
   OFFRE
═══════════════════════════════════════ */
.offer-box {
  background: linear-gradient(135deg, #0f1e30 0%, #1a2e4a 100%);
  border-radius: var(--radius);
  padding: 48px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
.offer-box::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,102,204,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.offer-box h3      { font-size: 30px; font-weight: 800; color: #ffffff; margin-bottom: 8px; }
.offer-price       { font-size: 44px; font-weight: 300; color: #7ab8f5; margin-bottom: 4px; line-height: 1; }
.offer-price small { font-size: var(--base); color: #a8c8f0; }
.offer-guarantee   { font-size: var(--base); color: #34d399; margin-bottom: 36px; }
.offer-features    { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 36px; position: relative; z-index: 1; }
.offer-feature     { display: flex; align-items: flex-start; gap: 10px; font-size: var(--base); color: #c8dff5; }
.offer-feature::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34d399;
  flex-shrink: 0;
  margin-top: 8px;
}

/* ═══════════════════════════════════════
   ÉTAPES
═══════════════════════════════════════ */
.steps { display: flex; flex-direction: column; }
.step  { display: flex; gap: 24px; align-items: flex-start; padding: 28px 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; }
.step-num {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  font-size: var(--base);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step h4 { font-size: var(--base); font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.step p  { font-size: var(--base); color: var(--text-muted); line-height: 1.65; }

/* ═══════════════════════════════════════
   AVIS
═══════════════════════════════════════ */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.review  { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.review-stars  { color: #f59e0b; font-size: var(--base); margin-bottom: 12px; letter-spacing: 2px; }
.review-text   { font-size: var(--base); color: var(--text); line-height: 1.7; font-style: italic; margin-bottom: 16px; }
.review-author { font-size: var(--base); color: var(--text-muted); font-weight: 600; }

/* ═══════════════════════════════════════
   FAQ
═══════════════════════════════════════ */
.faq      { display: flex; flex-direction: column; max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 24px 0; }
.faq-q    { font-size: var(--base); font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.faq-a    { font-size: var(--base); color: var(--text-muted); line-height: 1.75; }

/* ═══════════════════════════════════════
   BADGES
═══════════════════════════════════════ */
.badge       { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 100px; }
.badge-blue  { background: var(--blue-light); color: var(--blue); }
.badge-green { background: var(--green-light); color: var(--green); }

/* ═══════════════════════════════════════
   SAP
═══════════════════════════════════════ */
.sap-box    { background: var(--green-light); border: 1px solid #86efac; border-radius: var(--radius); padding: 28px 32px; margin-bottom: 44px; }
.sap-box h3 { font-size: var(--base); font-weight: 700; color: var(--green); margin-bottom: 8px; }
.sap-box p  { font-size: var(--base); color: #166534; line-height: 1.7; }

/* ═══════════════════════════════════════
   CONTACT BAND
═══════════════════════════════════════ */
.contact-band {
  background: linear-gradient(135deg, #0f1e30 0%, #1a2e4a 100%);
  padding: 88px 40px;
  text-align: center;
}
.contact-band h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; color: #ffffff; margin-bottom: 16px; letter-spacing: -0.01em; }
.contact-band p  { font-size: var(--base); color: #a8c8f0; margin-bottom: 36px; }
.contact-band .btn-primary { font-size: 18px; padding: 18px 36px; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer           { background: #0a1625; padding: 40px; text-align: center; }
.footer-inner    { max-width: 1200px; margin: 0 auto; }
footer p         { font-size: var(--base); color: #8aaac8; line-height: 2; }
footer a         { color: #7ab8f5; }
footer a:visited { color: #7ab8f5; }
footer a:hover   { text-decoration: underline; color: #a8c8f0; }

/* ═══════════════════════════════════════
   RESPONSIVE — Tablette (≤900px)
═══════════════════════════════════════ */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-inner   { height: 92px; gap: 16px; }
  .nav-logo img { height: 72px; }
  .nav-links a  { font-size: 15px; padding: 6px 12px; }
  .nav-stars    { display: none; }
  .hero         { padding: 72px 24px 64px; }
  section:not(.hero)       { padding: 40px 24px; }
  .contact-band { padding: 64px 24px; }
  footer        { padding: 32px 24px; }
  .offer-box    { padding: 36px 28px; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — Mobile (≤640px)
═══════════════════════════════════════ */
@media (max-width: 640px) {
  nav { padding: 0 16px; }
  .nav-inner {
    height: auto;
    flex-wrap: wrap;
    padding: 12px 0 8px;
    gap: 8px;
    align-items: center;
  }
  .nav-logo     { order: 1; }
  .nav-logo img { height: 58px; }
  .nav-cta      { order: 2; margin-left: auto; }
  .nav-stars    { display: none; }
  .nav-phone    { font-size: 15px; }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 2px;
    padding-bottom: 6px;
  }
  .nav-links a { font-size: 14px; padding: 5px 10px; }

  .hero        { padding: 52px 16px 52px; }
  .hero h1     { font-size: clamp(24px, 7vw, 34px); letter-spacing: -0.01em; }
  .hero-sub    { font-size: 15px; }
  .hero-ctas   { flex-direction: column; align-items: stretch; }
  .btn-primary,
  .btn-secondary { justify-content: center; font-size: 15px; padding: 15px 20px; }
  .hero-trust  { gap: 0; }
  .trust-item  {
    font-size: 14px;
    border-right: none;
    padding-right: 0;
    margin-right: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 8px;
    width: 100%;
  }
  .trust-item:last-child { border-bottom: none; margin-bottom: 0; }

  section:not(.hero)       { padding: 32px 16px; }
  .section-sub  { font-size: 15px; margin-bottom: 36px; }

  .grid-2,
  .grid-3,
  .reviews      { grid-template-columns: 1fr; }

  .offer-box    { padding: 28px 18px; }
  .offer-features { grid-template-columns: 1fr; }
  .offer-price  { font-size: 34px; }

  .contact-band        { padding: 56px 16px; }
  .contact-band .btn-primary { font-size: 16px; padding: 15px 24px; width: 100%; justify-content: center; }

  footer        { padding: 28px 16px; }
}

/* ═══════════════════════════════════════
   HAMBURGER MENU
═══════════════════════════════════════ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.25s ease;
}
/* État ouvert */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer mobile */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 22, 37, 0.5);
  z-index: 200;
  backdrop-filter: blur(2px);
}
.nav-drawer.open { display: block; }
.nav-drawer-inner {
  position: absolute;
  top: 0; right: 0;
  width: min(300px, 85vw);
  height: 100%;
  background: var(--bg-white);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
}
.nav-drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  margin-bottom: 8px;
}
.nav-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-drawer-links a {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.nav-drawer-links a:hover,
.nav-drawer-links a.active { background: var(--bg); color: var(--blue); }
.nav-drawer-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}
.nav-drawer-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--blue);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--blue-light);
}
.nav-drawer-stars {
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 640px) {
  /* Masquer la nav normale */
  .nav-links { display: none; }
  .nav-stars  { display: none; }
  .nav-phone  { display: none; }
  /* Afficher le hamburger */
  .nav-hamburger { display: flex; }
  /* Nav inner simplifié */
  .nav-inner {
    flex-wrap: nowrap;
    height: 80px;
    padding: 0;
    align-items: center;
  }
  .nav-logo img { height: 62px; }
  .nav-cta { gap: 8px; }
}

/* ═══════════════════════════════════════
   PAGES DE SERVICE
═══════════════════════════════════════ */
.page-service {
  max-width: 860px;
  margin: 0 auto;
  padding: 52px 40px 72px;
}
.page-service h1 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.page-service .intro {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 760px;
}
.page-service section,
.page-service section:nth-child(even) {
  background: transparent;
  padding: 0;
  margin-bottom: 40px;
}
.page-service h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}
.page-service ul,
.page-service ol {
  padding-left: 22px;
  color: var(--text);
  line-height: 1.9;
}
.page-service li {
  margin-bottom: 6px;
}
.page-service p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

/* CTA boutons dans les pages de service */
.page-service .cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 40px 0;
}
.page-service .cta .btn-primary {
  background: var(--blue);
  color: #fff;
  padding: 15px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(0,102,204,0.3);
  transition: background 0.15s, transform 0.1s;
}
.page-service .cta .btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}
.page-service .cta .btn-secondary {
  background: var(--bg-white);
  color: var(--navy);
  border: 1.5px solid var(--border);
  padding: 15px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  transition: border-color 0.15s, background 0.15s;
}
.page-service .cta .btn-secondary:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}

/* FAQ dans les pages de service */
.page-service .faq {
  max-width: 100%;
}
.page-service .faq h2 {
  margin-bottom: 20px;
}
.page-service .faq dl dt {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 20px;
  margin-bottom: 6px;
}
.page-service .faq dl dd {
  color: var(--text-muted);
  line-height: 1.75;
  margin-left: 0;
}

@media (max-width: 640px) {
  .page-service {
    padding: 36px 20px 52px;
  }
  .page-service .cta {
    flex-direction: column;
  }
  .page-service .cta a {
    text-align: center;
    justify-content: center;
  }
}
