/* ============================================
   SAPIMEF SARL — Style partagé
   Police : Arial — Design léger, épuré
   ============================================ */

:root {
  --navy: #0B2A4D;
  --blue: #1E5FA8;
  --blue-light: #EAF2FB;
  --gray-bg: #F7F9FB;
  --gray-line: #E7EBF0;
  --text: #33404F;
  --text-light: #6B7684;
  --pink: #E5177D;
  --yellow: #F5C518;
  --cyan: #29ABE2;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 42, 77, 0.07);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

h1, h2, h3, h4 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 42px; }
h2 { font-size: 30px; }
h3 { font-size: 20px; }

.eyebrow {
  display: inline-block;
  font-size: 25px;
  font-weight: bold;
  letter-spacing: 2px;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head p { color: var(--text-light); margin-top: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 15px;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

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

.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gray-line);
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-link img { height: 48px; width: auto; }

nav ul {
  display: flex;
  gap: 36px;
  align-items: center;
}

nav a {
  font-size: 15px;
  font-weight: bold;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}

nav a.active,
nav a:hover { color: var(--blue); }

nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
}

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px !important;
}
.nav-cta:hover { background: var(--blue) !important; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.burger span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--gray-bg);
  padding: 90px 0;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero p.lead {
  color: var(--text-light);
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.hero-visual img { max-height: 260px; }

/* ---------- Cartes services ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.icon-box {
  width: 54px; height: 54px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 24px;
  color: var(--white);
}
.bg-navy { background: var(--navy); }
.bg-blue { background: var(--blue); }
.bg-pink { background: var(--pink); }
.bg-yellow { background: var(--yellow); color: var(--navy); }
.bg-cyan { background: var(--cyan); }

.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-light); font-size: 15px; }
.card ul { margin-top: 14px; }
.card ul li {
  font-size: 14px;
  color: var(--text);
  padding: 5px 0 5px 18px;
  position: relative;
}
.card ul li::before {
  content: "";
  position: absolute; left: 0; top: 13px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

/* ---------- Bandeau atouts ---------- */
.strip {
  border-top: 1px solid var(--gray-line);
  border-bottom: 1px solid var(--gray-line);
}
.strip .grid-4 { text-align: center; }
.strip strong { display: block; color: var(--navy); font-size: 26px; }
.strip span { color: var(--text-light); font-size: 14px; }

/* ---------- CTA bandeau ---------- */
.cta-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { color: #C7D3E0; margin-bottom: 28px; }
.cta-band .btn-outline { border-color: var(--white); color: var(--white); }
.cta-band .btn-outline:hover { background: var(--white); color: var(--navy); }

/* ---------- Avis / témoignages ---------- */
.review-card {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 28px;
  border-left: 4px solid var(--blue);
}
.review-stars { color: var(--yellow); font-size: 15px; margin-bottom: 10px; letter-spacing: 2px; }
.review-card p.quote { font-style: italic; color: var(--text); margin-bottom: 16px; }
.review-author { font-weight: bold; color: var(--navy); font-size: 14px; }
.review-role { color: var(--text-light); font-size: 13px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}
.contact-info-item .icon-box { flex-shrink: 0; margin-bottom: 0; }
.contact-info-item h3 { font-size: 16px; margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { color: var(--text-light); font-size: 15px; }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block; font-size: 14px; font-weight: bold;
  color: var(--navy); margin-bottom: 6px;
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-line);
  border-radius: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--gray-bg);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue); background: var(--white);
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-line);
  margin-top: 40px;
}
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Footer ---------- */
footer {
  background: var(--gray-bg);
  border-top: 1px solid var(--gray-line);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid img { height: 44px; margin-bottom: 14px; }
.footer-grid p { color: var(--text-light); font-size: 14px; max-width: 280px; }
.footer-grid h4 { font-size: 15px; margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul a { color: var(--text-light); font-size: 14px; }
.footer-grid ul a:hover { color: var(--blue); }

.footer-bottom {
  border-top: 1px solid var(--gray-line);
  padding-top: 20px;
  text-align: center;
  color: var(--text-light);
  font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  nav ul { 
    position: fixed; top: 76px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-line);
    display: none;
    gap: 18px;
  }
  nav ul.open { display: flex; }
  .burger { display: flex; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
}
