/* Agence Détective Nord — feuille de style commune */

:root {
  --navy: #0A2530;
  --navy-deep: #061820;
  --teal: #1FA3B5;
  --teal-hover: #3FC0D4;
  --teal-dark: #157C8A;
  --bg: #F2F6F6;
  --bg-alt: #E4F0F1;
  --border: #D9E4E5;
  --text: #14262C;
  --text-heading: #0E2730;
  --text-body: #1D3338;
  --text-muted: #4C6368;
  --text-muted-2: #6C8589;
  --on-dark: #F2F6F6;
  --on-dark-muted: #A9C7CA;
  --on-dark-faint: #7C9599;
  --max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

h1, h2, h3, .font-display {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  color: var(--text-heading);
  margin: 0;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: var(--navy);
  border-bottom: 1px solid rgba(31,163,181,0.35);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}
.brand img { height: 48px; width: auto; }
.brand-name {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--on-dark);
  letter-spacing: 0.3px;
  line-height: 1.15;
  white-space: nowrap;
}
.brand-sub {
  display: block;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 10px;
  color: var(--teal);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}
.main-nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.main-nav a {
  font-size: 15px;
  color: var(--on-dark-muted);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--on-dark); }
.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(242,246,246,0.35);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--on-dark); border-radius: 1px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.phone-link {
  font-size: 15px;
  color: var(--on-dark);
  font-weight: 600;
  white-space: nowrap;
}
.phone-link:hover { color: var(--teal); }

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.btn-accent { background: var(--teal); color: #0E2730; }
.btn-accent:hover { background: var(--teal-hover); color: #0E2730; }
.btn-outline-dark { color: var(--on-dark); border: 1px solid rgba(242,246,246,0.35); background: transparent; }
.btn-outline-dark:hover { border-color: var(--teal); color: var(--teal); }
.btn-outline-light { color: var(--text-heading); border: 1px solid var(--border); background: transparent; }
.btn-outline-light:hover { border-color: var(--teal); color: var(--teal-dark); }

/* Hero */
.hero { width: 100%; background: var(--navy); padding: 80px 0 88px; }
.hero .wrap { display: flex; gap: 56px; align-items: center; flex-wrap: wrap; }
.hero-copy { flex: 1 1 480px; display: flex; flex-direction: column; gap: 22px; }
.eyebrow { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.hero h1 { font-size: 44px; line-height: 1.12; color: var(--on-dark); }
.hero p.lead { font-size: 17px; line-height: 1.7; color: var(--on-dark-muted); max-width: 540px; margin: 0; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.trust-row { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 12px; }
.trust-row span { font-size: 12px; color: var(--on-dark-faint); letter-spacing: 0.4px; }
.hero-media { flex: 1 1 380px; }
.hero-media .frame {
  width: 100%; aspect-ratio: 4/3; border-radius: 4px;
  background: linear-gradient(180deg, #123640, var(--navy));
  border: 1px solid rgba(31,163,181,0.4);
  display: flex; align-items: center; justify-content: center;
}
.hero-media .frame span { font-size: 13px; color: var(--text-muted); letter-spacing: 0.5px; }
.hero-carousel { position: relative; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.1s ease;
}
.hero-slide.is-active { opacity: 1; }

/* Generic sections */
section { width: 100%; }
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); }
.section-deep { background: var(--navy-deep); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { font-size: 30px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 40px; }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    order: 10;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(31,163,181,0.3);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { width: 100%; padding: 12px 6px; }
}

.card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 36px;
}
.card.has-img { padding: 0 0 28px; overflow: hidden; }
.card.has-img .card-img { display: block; width: 100%; height: 150px; object-fit: cover; }
.card.has-img .card-body { padding: 22px 28px 0; }
.card-dark {
  background: var(--navy);
  border-radius: 6px;
  padding: 36px;
  color: var(--on-dark);
}
.card-dark h3 { color: var(--on-dark); }
.card-dark li, .card-dark p { color: var(--on-dark-muted); }

.list-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.list-check li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.6; color: var(--text-body); }
.list-check li svg { margin-top: 2px; }
.list-check li strong { margin-bottom: 2px; }
.list-check svg { flex-shrink: 0; margin-top: 1px; color: var(--teal); }
.list-check.dot-navy svg { color: var(--navy); }
.ico-phone { vertical-align: -3px; margin-right: 6px; }

.stat {
  background: #FFFFFF; border-radius: 6px; padding: 22px 26px;
  border-left: 3px solid var(--teal);
}
.stat .num { font-family: 'Fraunces', serif; font-size: 30px; color: var(--text-heading); font-weight: 500; }
.stat .label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.badge-row { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; align-items: center; }
.badge-row span { font-size: 14px; color: var(--text-body); font-weight: 600; }
.badge-row img { height: 34px; width: auto; filter: grayscale(15%); opacity: 0.92; transition: opacity 0.2s, filter 0.2s; }
.badge-row a { display: flex; align-items: center; }
.badge-row a:hover img { opacity: 1; filter: grayscale(0%); }

/* CTA band */
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 64px 32px; }
.cta-band h2 { color: var(--on-dark); font-size: 26px; }
.cta-band .contact-line { font-size: 14px; color: var(--on-dark-muted); margin-top: 8px; }

/* Footer */
.site-footer { background: var(--navy-deep); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 34px; width: auto; }
.footer-brand span { font-family: 'Fraunces', serif; font-size: 16px; color: var(--on-dark); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .h { font-size: 12px; color: var(--text-muted-2); font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }
.footer-col a, .footer-col span.line { font-size: 13px; color: var(--on-dark-muted); }
.footer-rule { height: 1px; background: rgba(255,255,255,0.08); margin: 32px 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--text-muted); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Cookie consent banner */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: var(--navy); border-top: 1px solid rgba(255,255,255,0.12); box-shadow: 0 -6px 24px rgba(0,0,0,0.25); }
.cookie-banner-inner { max-width: 1120px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.cookie-banner-inner p { flex: 1 1 420px; margin: 0; font-size: 13px; line-height: 1.6; color: var(--on-dark-muted); }
.cookie-banner-inner p a { color: var(--on-dark); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-banner-actions .btn { padding: 10px 20px; font-size: 13px; }
@media (max-width: 640px) { .cookie-banner-inner { flex-direction: column; align-items: stretch; } .cookie-banner-actions { justify-content: stretch; } .cookie-banner-actions .btn { flex: 1 1 auto; text-align: center; } }

/* Click-to-load map placeholder (Google Maps embed) */
.map-embed { width: 100%; height: 160px; border-radius: 4px; background: var(--bg-alt, #EFF3F3); display: flex; align-items: center; justify-content: center; }
.map-embed iframe { border: 0; border-radius: 4px; display: block; width: 100%; height: 160px; }
.map-embed-btn { border: 1px solid var(--border); background: #fff; border-radius: 4px; padding: 10px 16px; font-family: inherit; font-size: 12px; font-weight: 600; color: var(--text-heading); cursor: pointer; text-align: center; line-height: 1.5; }
.map-embed-btn .map-embed-note { display: block; font-size: 11px; font-weight: 400; color: var(--text-muted); margin-top: 4px; }
.map-embed-btn:hover { border-color: var(--teal); color: var(--teal); }

/* Page hero (interior pages) */
.page-hero { background: var(--navy); padding: 56px 0; }
.page-hero .wrap { display: flex; flex-direction: column; gap: 10px; }
.page-hero h1 { color: var(--on-dark); font-size: 34px; }
.page-hero .contact-line { color: var(--on-dark-muted); font-size: 14px; }
.breadcrumb { font-size: 12px; color: var(--on-dark-faint); }
.breadcrumb a { color: var(--on-dark-faint); }
.breadcrumb a:hover { color: var(--teal); }

.prose p { font-size: 15px; line-height: 1.75; color: var(--text-body); margin: 0 0 16px; }
.prose h2 { font-size: 24px; margin: 40px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; }
.prose li { font-size: 15px; line-height: 1.75; color: var(--text-body); margin-bottom: 8px; }
