/* ==========================================================
   Ocw83 — Charte graphique
   Couleurs : bleu nuit #0E1C2E / doré #D4AF37
   Typo : Barlow Condensed (titres) / Inter (texte)
   ========================================================== */

:root {
  --navy: #0e1c2e;
  --navy-2: #16283f;
  --navy-3: #1f3654;
  --yellow: #d4af37;
  --yellow-dark: #b6962f;
  --white: #ffffff;
  --off-white: #f5f7fa;
  --text: #2b3542;
  --text-light: #64748b;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(14, 28, 46, 0.10);
  --font-title: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

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

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ---------- Typographie ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--navy);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.45rem; font-weight: 600; }

p { margin-bottom: 1rem; }

.lead {
  font-size: 1.12rem;
  color: var(--text-light);
  max-width: 720px;
}

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

.section-tag {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--yellow-dark);
  margin-bottom: 0.5rem;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  padding: 0.8rem 1.9rem;
  border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: none;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}
.btn-primary:hover { background: #e0c355; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.55);
}
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }

.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-3); }

/* ---------- Bandeau urgence ---------- */

.topbar {
  background: var(--yellow);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  padding: 0.45rem 1rem;
}
.topbar a { color: var(--navy); font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ---------- Header / Navigation ---------- */

header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-bolt {
  width: 28px;
  height: 46px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

.logo-text {
  display: block;
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
}
.logo-text span { color: var(--yellow); }

.logo-sub {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-title);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #14100a;
  background: linear-gradient(90deg, #a67c1b, #d9b942 45%, #a67c1b);
  padding: 2px 9px;
  border-radius: 2px;
  margin-top: 4px;
  white-space: nowrap;
}
.logo-sub svg {
  width: 7px;
  height: 12px;
  flex-shrink: 0;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
}

nav a {
  font-family: var(--font-title);
  font-size: 1.05rem;
  white-space: nowrap;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #cdd8e4;
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

nav a:hover { color: var(--white); }

nav a.active {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

.nav-cta {
  background: var(--yellow);
  color: var(--navy) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: var(--radius);
  border-bottom: none !important;
  font-weight: 700 !important;
  white-space: nowrap;
}
.nav-cta:hover { background: #e0c355; }

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(212, 175, 55, 0.14), transparent 45%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
  color: var(--white);
  padding: 5.5rem 0 6.5rem;
  position: relative;
  overflow: hidden;
}

.hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero h1 .accent { color: var(--yellow); }

.hero p {
  color: #b9c7d6;
  font-size: 1.15rem;
  max-width: 640px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-badges {
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #d7e0ea;
  font-size: 0.95rem;
}
.hero-badge svg { flex-shrink: 0; }

.hero-deco {
  position: absolute;
  right: -60px;
  bottom: -40px;
  width: 420px;
  opacity: 0.07;
  pointer-events: none;
}

/* Hero réduit pour pages internes */
.hero.hero-small { padding: 3.5rem 0 4rem; }

.breadcrumb {
  font-size: 0.85rem;
  color: #8fa3bb;
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--yellow); text-decoration: none; }

/* ---------- Sections ---------- */

section { padding: 4.5rem 0; }

.section-alt { background: var(--off-white); }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}
.section-head .lead { margin: 0.8rem auto 0; }

/* ---------- Cartes services ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.8rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(14, 28, 46, 0.16);
}

.card-icon {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
}

.card h3 { margin-bottom: 0.7rem; }

.card p { color: var(--text-light); font-size: 0.97rem; flex-grow: 1; }

.card-link {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--yellow-dark);
  text-decoration: none;
  margin-top: 0.5rem;
}
.card-link:hover { color: var(--navy); }

/* ---------- Listes à puces "check" ---------- */

.check-list { list-style: none; }
.check-list li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.75rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--yellow) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230e1c2e" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center/11px no-repeat;
}

/* ---------- Deux colonnes ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.split h2 { margin-bottom: 1.2rem; }

/* ---------- Chiffres clés ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 2rem 1rem;
}

.stat .num {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
}

.stat .label {
  color: #b9c7d6;
  font-size: 0.92rem;
  margin-top: 0.5rem;
}

/* ---------- Étapes ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.8rem;
  counter-reset: step;
}

.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  position: relative;
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-title);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--yellow);
  display: block;
  margin-bottom: 0.6rem;
}

.step h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.step p { color: var(--text-light); font-size: 0.95rem; margin: 0; }

/* ---------- Bandeau CTA ---------- */

.cta-band {
  background:
    radial-gradient(ellipse at 15% 50%, rgba(212, 175, 55, 0.16), transparent 50%),
    var(--navy);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
}

.cta-band h2 { color: var(--white); margin-bottom: 0.8rem; }
.cta-band p { color: #b9c7d6; max-width: 620px; margin: 0 auto 1.8rem; }

.cta-phone {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--yellow);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.cta-phone:hover { text-decoration: underline; }

/* ---------- Zone d'intervention ---------- */

.zone-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.zone-tag {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 500;
}

.info-card .zone-tag {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #cdd8e4;
}

.form-notice {
  background: #e8f7ec;
  border: 1px solid #b3e0bf;
  color: #1d6b34;
  padding: 0.9rem 1.1rem;
  border-radius: 8px;
  margin-bottom: 1.4rem;
}

/* ---------- Encadré urgence ---------- */

.urgence-box {
  background: var(--navy);
  border-left: 6px solid var(--yellow);
  border-radius: var(--radius);
  color: var(--white);
  padding: 2rem;
  margin: 2rem 0;
}
.urgence-box h3 { color: var(--yellow); margin-bottom: 0.5rem; }
.urgence-box p { color: #b9c7d6; margin: 0; }
.urgence-box a { color: var(--yellow); font-weight: 700; text-decoration: none; }

/* ---------- Formulaire contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}

form .field { margin-bottom: 1.2rem; }

label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

textarea { resize: vertical; min-height: 130px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem;
}

.info-card h3 { color: var(--white); margin-bottom: 1.2rem; }

.info-line {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
  color: #cdd8e4;
  font-size: 0.97rem;
}
.info-line svg { flex-shrink: 0; margin-top: 3px; }
.info-line a { color: var(--yellow); text-decoration: none; font-weight: 600; }
.info-line a:hover { text-decoration: underline; }

.hours { width: 100%; border-collapse: collapse; margin-top: 0.3rem; }
.hours td { padding: 0.3rem 0; color: #cdd8e4; font-size: 0.95rem; }
.hours td:last-child { text-align: right; color: var(--white); }

/* ---------- Footer ---------- */

footer {
  background: var(--navy);
  color: #8fa3bb;
  padding: 3.5rem 0 0;
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.55rem; }
.footer-grid a { color: #8fa3bb; text-decoration: none; transition: color 0.15s; }
.footer-grid a:hover { color: var(--yellow); }

.footer-desc { max-width: 300px; margin-top: 0.8rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom a:hover { color: var(--yellow); }

/* ---------- Logo image (réglage « Logo ») ---------- */

.logo-img {
  display: block;
  max-height: 58px;
  max-width: 260px;
  width: auto;
  height: auto;
}
.logo-img-footer { max-height: 48px; }

/* ---------- Pages légales ---------- */

.legal-content {
  max-width: 820px;
  padding: 3.5rem 0 4.5rem;
}
.legal-content h2 {
  font-size: 1.5rem;
  margin: 2.2rem 0 0.8rem;
}
.legal-content ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
.legal-content li { margin-bottom: 0.4rem; }
.legal-content a { color: var(--yellow-dark); font-weight: 600; }

/* ---------- Mention RGPD sous le formulaire ---------- */

.form-rgpd {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-light);
}
.form-rgpd a { color: var(--yellow-dark); font-weight: 600; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .burger { display: block; }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  }

  nav.open { max-height: 420px; }

  nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 1rem;
  }

  nav li { text-align: center; }

  nav a {
    display: block;
    padding: 0.8rem 1rem;
    border-bottom: none;
  }

  nav a.active { border-bottom: none; }

  .nav-cta { margin: 0.6rem 1.5rem 0; }

  section { padding: 3rem 0; }
  .hero { padding: 3.5rem 0 4rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badges { gap: 1.2rem; }
  .logo-sub { font-size: 0.55rem; letter-spacing: 1px; gap: 0.3rem; padding: 2px 6px; }
  .logo-sub svg { width: 6px; height: 10px; }
  .logo-text { font-size: 1.45rem; }
}
