/* ==========================================================
   COFFRES CLÉS SYSTÈME SÉCURITÉ
   Styles principaux — mobile first
   ========================================================== */

/* ---- Variables — modifier ici pour changer le thème ---- */
:root {
  --navy:          #0c1f5e;
  --navy-dark:     #081445;
  --navy-mid:      #1a3a8a;
  --blue-accent:   #1d4ed8;

  --white:         #ffffff;
  --gray-50:       #f8fafc;
  --gray-100:      #f1f5f9;
  --gray-200:      #e2e8f0;
  --gray-400:      #94a3b8;
  --gray-500:      #64748b;
  --gray-600:      #475569;
  --gray-800:      #1e293b;

  --metal:         #8fa3b8;
  --whatsapp:      #25d366;
  --whatsapp-dk:   #128c7e;
  --call:          #dc2626;
  --call-dk:       #b91c1c;
  --star:          #f59e0b;

  --radius:        12px;
  --radius-sm:     8px;
  --max-w:         1200px;

  --shadow-sm:     0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:     0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.18);

  --font:          -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                   'Helvetica Neue', Arial, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
blockquote { margin: 0; }

/* ---- Layout ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background .18s, transform .1s, box-shadow .18s;
  white-space: nowrap;
  letter-spacing: .01em;
}
.btn:active { transform: scale(.97); }

.btn--primary   { background: var(--navy);      color: var(--white); }
.btn--primary:hover { background: var(--navy-mid); }

.btn--call      { background: var(--call);      color: var(--white); }
.btn--call:hover { background: var(--call-dk); box-shadow: var(--shadow-md); }

.btn--whatsapp  { background: var(--whatsapp);  color: var(--white); }
.btn--whatsapp:hover { background: var(--whatsapp-dk); box-shadow: var(--shadow-md); }

.btn--sm  { padding: 10px 18px; font-size: .875rem; }
.btn--md  { padding: 14px 24px; font-size: 1rem; }
.btn--lg  { padding: 16px 28px; font-size: 1.05rem; }
.btn--xl  { padding: 18px 32px; font-size: 1.1rem; width: 100%; }

/* ---- Labels (pill badges) ---- */
.label {
  display: inline-block;
  background: var(--gray-100);
  color: var(--navy);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.label--light {
  background: rgba(255,255,255,.15);
  color: var(--white);
}

/* ==========================================================
   HEADER
   ========================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: var(--shadow-md);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 12px;
}
.header__logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.header__nav {
  display: none;
  gap: 28px;
}
.header__nav a {
  color: rgba(255,255,255,.82);
  font-size: .88rem;
  font-weight: 500;
  transition: color .18s;
}
.header__nav a:hover { color: var(--white); }
.header__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--call);
  color: var(--white);
  font-weight: 700;
  font-size: .85rem;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: background .18s;
  white-space: nowrap;
}
.header__cta:hover { background: var(--call-dk); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(8, 20, 69, .93) 0%,
    rgba(12, 31, 94, .87) 55%,
    rgba(8, 20, 69, .90) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 60px 20px 72px;
  text-align: center;
  color: var(--white);
}
.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.hero__content h1 {
  font-size: clamp(2rem, 6.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.13;
  margin-bottom: 18px;
  letter-spacing: -.025em;
}
.hero__highlight { color: #7dd3fc; }
.hero__sub {
  font-size: clamp(.95rem, 2.4vw, 1.15rem);
  color: rgba(255,255,255,.82);
  max-width: 560px;
  margin: 0 auto 34px;
}
.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.hero__ctas .btn--lg { width: 100%; max-width: 300px; }

/* ==========================================================
   TRUST BAR
   ========================================================== */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.trust-bar__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  color: var(--navy);
  border-right: 1px solid var(--gray-200);
}
.trust-item:nth-child(2n) { border-right: none; }
.trust-item:nth-child(n+3) { border-top: 1px solid var(--gray-200); }
.trust-item svg { flex-shrink: 0; }
.trust-item span { font-size: .82rem; line-height: 1.45; }
.trust-item strong { display: block; font-size: .88rem; }

/* ==========================================================
   SECTIONS — base
   ========================================================== */
.section           { padding: 64px 0; }
.section--light    { background: var(--gray-50); }
.section--dark     { background: var(--navy); color: var(--white); }
.section--zone     { background: var(--navy-dark); color: var(--white); }
.section--banner   { padding: 0; background: var(--white); }

.section__header {
  text-align: center;
  margin-bottom: 48px;
}
.section__header h2 {
  font-size: clamp(1.55rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 14px;
}
.section--dark  .section__header h2,
.section--zone  .section__header h2 { color: var(--white); }
.section__header p {
  font-size: .98rem;
  color: var(--gray-600);
  max-width: 540px;
  margin: 0 auto;
}
.section--dark  .section__header p,
.section--zone  .section__header p { color: rgba(255,255,255,.72); }

/* Banner image */
.banner-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ==========================================================
   SECTION GRID (2-col: image + text)
   ========================================================== */
.section__grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.section__grid--reverse { flex-direction: column-reverse; }
.section__img img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  max-height: 380px;
}
.section__text h2 {
  font-size: clamp(1.5rem, 3.8vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--navy);
}
.section--dark .section__text h2 { color: var(--white); }
.section__text > p {
  font-size: .97rem;
  color: var(--gray-600);
  margin-bottom: 22px;
  line-height: 1.72;
}
.section--dark .section__text > p { color: rgba(255,255,255,.78); }

/* ---- Checklist ---- */
.checklist { margin-bottom: 28px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  font-size: .93rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-200);
}
.checklist li::before {
  content: "✓";
  color: var(--navy);
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}
.checklist--light li {
  color: rgba(255,255,255,.83);
  border-bottom-color: rgba(255,255,255,.14);
}
.checklist--light li::before { color: #7dd3fc; }

/* ==========================================================
   SERVICES GRID
   ========================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.service-card__icon {
  width: 50px;
  height: 50px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--navy);
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
}
.service-card p { font-size: .87rem; color: var(--gray-500); line-height: 1.6; }

/* ==========================================================
   WHY GRID
   ========================================================== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.why-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 26px;
  transition: background .2s;
}
.why-card:hover { background: rgba(255,255,255,.12); }
.why-card__num {
  font-size: 2.4rem;
  font-weight: 900;
  color: rgba(255,255,255,.13);
  line-height: 1;
  margin-bottom: 10px;
}
.why-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 7px;
}
.why-card p { font-size: .88rem; color: rgba(255,255,255,.72); line-height: 1.65; }

/* ==========================================================
   REVIEWS
   ========================================================== */
.rating-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
  font-size: .9rem;
  color: var(--gray-500);
}
.stars { color: var(--star); font-size: 1.2rem; letter-spacing: 2px; }
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.review-card .stars { font-size: 1rem; margin-bottom: 12px; }
.review-card p {
  font-size: .92rem;
  color: var(--gray-500);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 12px;
}
.review-card cite {
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy);
  font-style: normal;
}

/* ==========================================================
   ZONE D'INTERVENTION
   ========================================================== */
.zone-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.zone-commune {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .88rem;
  color: rgba(255,255,255,.87);
  text-align: center;
  transition: background .18s;
}
.zone-commune:hover { background: rgba(255,255,255,.17); }

/* ==========================================================
   CONTACT
   ========================================================== */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-item svg { color: var(--navy); flex-shrink: 0; margin-top: 3px; }
.contact-item strong {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray-400);
  margin-bottom: 3px;
}
.contact-item a {
  color: var(--navy);
  font-weight: 600;
  font-size: .97rem;
  transition: color .18s;
}
.contact-item a:hover { color: var(--blue-accent); }
.contact-item span { color: var(--gray-600); font-size: .93rem; }
.contact-ctas { display: flex; flex-direction: column; gap: 14px; }
.contact-ctas__lead {
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  font-size: .95rem;
  margin-bottom: 4px;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer { background: var(--gray-800); color: rgba(255,255,255,.78); }
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding: 52px 20px 36px;
}
.footer__logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}
.footer__brand p {
  font-size: .88rem;
  line-height: 1.7;
  color: rgba(255,255,255,.55);
  max-width: 280px;
}
.footer__links h4, .footer__contact h4 {
  color: var(--white);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.footer__links ul { display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  transition: color .18s;
}
.footer__links a:hover { color: var(--white); }
.footer__contact { display: flex; flex-direction: column; gap: 10px; }
.footer__contact a {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  transition: color .18s;
}
.footer__contact a:hover { color: var(--white); }
.footer__contact p { font-size: .88rem; color: rgba(255,255,255,.45); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 20px;
  text-align: center;
}
.footer__bottom p {
  font-size: .75rem;
  color: rgba(255,255,255,.38);
  margin-bottom: 4px;
}

/* ==========================================================
   STICKY CTA (mobile only)
   ========================================================== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  box-shadow: 0 -4px 20px rgba(0,0,0,.22);
}
.sticky-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 13px 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: .8rem;
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: opacity .18s;
  text-decoration: none;
}
.sticky-btn:active { opacity: .88; }
.sticky-btn--call { background: var(--call); }
.sticky-btn--wa   { background: var(--whatsapp); }

/* ==========================================================
   BREAKPOINT — sm (≥640px)
   ========================================================== */
@media (min-width: 640px) {
  .hero__ctas { flex-direction: row; justify-content: center; }
  .hero__ctas .btn--lg { width: auto; }

  .trust-bar__inner { grid-template-columns: repeat(4, 1fr); }
  .trust-item { border-right: 1px solid var(--gray-200); }
  .trust-item:last-child { border-right: none; }
  .trust-item:nth-child(n+3) { border-top: none; }

  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .why-grid       { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid   { grid-template-columns: repeat(2, 1fr); }
  .zone-grid      { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================
   BREAKPOINT — lg (≥1024px)
   ========================================================== */
@media (min-width: 1024px) {
  /* Header */
  .header__nav { display: flex; }

  /* Hero — align left */
  .hero__content { text-align: left; padding: 100px 20px; }
  .hero__sub { margin: 0 0 34px; }
  .hero__ctas { justify-content: flex-start; }

  /* Section 2-col */
  .section__grid {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }
  .section__grid--reverse { flex-direction: row; }
  .section__grid--reverse .section__img { order: 2; }
  .section__img, .section__text { flex: 1; }
  .section__img img { max-height: 520px; }

  /* Grids */
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid      { grid-template-columns: repeat(4, 1fr); }
  .reviews-grid  { grid-template-columns: repeat(4, 1fr); }
  .zone-grid     { grid-template-columns: repeat(5, 1fr); }

  /* Contact */
  .contact-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 80px;
  }
  .contact-info  { flex: 1; }
  .contact-ctas  { flex: 0 0 320px; }
  .btn--xl       { width: auto; }
  .contact-ctas__lead { text-align: left; }

  /* Footer */
  .footer__inner { grid-template-columns: 2fr 1fr 1fr; }

  /* Hide sticky on desktop */
  .sticky-cta { display: none; }
}

/* ---- Mobile body padding for sticky bar ---- */
@media (max-width: 1023px) {
  body { padding-bottom: 68px; }
}

/* ==========================================================
   ACCESSIBILITY
   ========================================================== */
:focus-visible {
  outline: 3px solid var(--blue-accent);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
