/* =====================================================
   Ben Ménage — Feuille de style principale
   Design industriel propre : acier, marine, accent orange sécurité
   ===================================================== */

:root {
  --navy: #14212e;
  --navy-2: #1c2f40;
  --steel: #46586a;
  --gray-bg: #f2f4f6;
  --white: #ffffff;
  --accent: #f28c1e;      /* orange sécurité */
  --accent-dark: #d97a10;
  --accent-soft: rgba(242, 140, 30, 0.12);
  --text: #24313d;
  --text-light: #5b6b7a;
  --border: #dde3e8;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(20, 33, 46, 0.10);
  --shadow-lg: 0 20px 45px rgba(20, 33, 46, 0.16);
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Helvetica Neue", 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;
}

.container.narrow { width: min(820px, 92%); }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

a { color: var(--accent-dark); }

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

.center { text-align: center; margin-top: 2rem; }

/* ---------- Icônes SVG (remplacent les émojis) ---------- */
.icon {
  width: 26px;
  height: 26px;
  display: block;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.icon-badge-dark {
  background: rgba(242, 140, 30, 0.16);
  color: var(--accent);
}

.icon-badge-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}

.icon-badge-inline {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  margin-bottom: 0;
  flex-shrink: 0;
}
.icon-badge-inline .icon { width: 20px; height: 20px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 0.75rem 1.6rem;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(242, 140, 30, 0.28);
}
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }

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

.btn-light {
  background: var(--white);
  color: var(--navy);
}
.btn-light:hover { background: var(--gray-bg); }

.btn-lg { padding: 0.95rem 2.1rem; font-size: 1.15rem; }
.btn-block { width: 100%; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--accent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 8px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.brand-name strong { color: var(--accent); font-weight: 800; }

.main-nav { display: flex; align-items: center; gap: 1.4rem; }

.main-nav ul {
  display: flex;
  gap: 1.3rem;
  list-style: none;
}

.main-nav a:not(.btn) {
  color: #d5dde4;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:not(.btn):hover { color: var(--white); border-color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav-toggle span {
  display: block;
  height: 3px;
  width: 26px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Héros ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #2a4257 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 90% 80% at 30% 40%, black 30%, transparent 75%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 2.5rem;
  padding: 5.5rem 0 5rem;
}

.hero-kicker {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}

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

.hero-sub {
  font-size: 1.15rem;
  color: #cfd8e0;
  max-width: 560px;
  margin-bottom: 2rem;
}

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

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
}
.hero-points li {
  position: relative;
  padding-left: 1.6rem;
  color: #cfd8e0;
  font-size: 0.95rem;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 16px;
  height: 16px;
  background-color: var(--accent);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* ---------- Illustrations vectorielles (héros / à propos) ---------- */
.hero-visual, .about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration {
  width: 100%;
  max-width: 460px;
  height: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .illu-spin-slow { animation: illu-spin 40s linear infinite; transform-origin: 280px 280px; }
  .illu-float-a { animation: illu-float 5s ease-in-out infinite; }
  .illu-float-b { animation: illu-float 5s ease-in-out infinite 1.2s; }
}

@keyframes illu-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes illu-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }

.section-kicker {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 0.4rem;
}

.section-intro {
  max-width: 700px;
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.section-dark {
  background: var(--navy);
  color: #cfd8e0;
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .section-kicker { color: var(--accent); }
.section-dark .section-intro { color: #aebbc6; }

.section-gray { background: var(--gray-bg); }

.section-note { color: var(--text-light); margin-top: 2rem; }

/* ---------- À propos (split) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: center;
}

/* ---------- Cartes de services ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--navy-2);
  border: 1px solid #2c4257;
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(0,0,0,0.35); }

.card h3 { font-size: 1.15rem; }
.card p { color: #aebbc6; font-size: 0.95rem; margin: 0; }

.info-note {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin: 2.4rem auto 0;
  max-width: 720px;
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 1rem 1.4rem;
  color: #cfd8e0;
}
.info-note-text { flex: 1; padding-top: 0.4rem; }
.info-note a { color: var(--accent); font-weight: 600; }

/* ---------- Secteurs ---------- */
.zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.zone {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow);
}
.zone p { margin: 0; color: var(--text-light); font-size: 0.95rem; }

/* ---------- Pourquoi nous ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-bottom: 2.5rem;
}

.why-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow);
}
.why-item p { margin: 0; color: var(--text-light); }

/* ---------- Bandeau CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: 3rem 0;
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h2 {
  color: var(--navy);
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  max-width: 640px;
}

/* ---------- Formulaire ---------- */
.quote-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2rem 1.8rem;
}

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

.form-group { margin-bottom: 1.2rem; display: flex; flex-direction: column; }

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

.req { color: var(--accent-dark); }

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fbfcfd;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242, 140, 30, 0.2);
}

.form-note {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
}

.hidden-field { display: none; }

/* ---------- Coordonnées ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.contact-item {
  background: var(--navy-2);
  border: 1px solid #2c4257;
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.contact-item p { margin: 0; color: #aebbc6; line-height: 1.5; }

.contact-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.contact-link:hover { text-decoration: underline; }

/* ---------- Pied de page ---------- */
.site-footer {
  background: #0e1822;
  color: #8fa1b1;
  padding: 2.5rem 0;
  border-top: 3px solid var(--accent);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand { display: flex; align-items: center; gap: 0.8rem; }

.footer-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  margin: 0;
}
.footer-tag { margin: 0; font-size: 0.85rem; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-nav a {
  color: #b6c4d0;
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-nav a:hover { color: var(--accent); }

.footer-legal { margin: 0; font-size: 0.82rem; max-width: 100%; flex-basis: 100%; }

/* ---------- Page merci ---------- */
.thanks-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 0;
}
.thanks-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.thanks-icon .icon { width: 38px; height: 38px; }

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; padding: 3.5rem 0 3rem; }
  .hero-visual { order: -1; max-width: 320px; margin: 0 auto; }
  .illustration { max-width: 320px; }
  .split-media { order: -1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 4% 1.2rem;
    border-bottom: 3px solid var(--accent);
    display: none;
  }
  .main-nav.open { display: flex; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav ul a {
    display: block;
    padding: 0.8rem 0.2rem;
    border-bottom: 1px solid #24384a;
    font-size: 1.05rem;
  }
  .nav-cta { margin-top: 1rem; text-align: center; }

  .section { padding: 3.2rem 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .cta-band-inner { justify-content: center; text-align: center; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-brand { flex-direction: column; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 1.25rem; }
  .quote-form { padding: 1.4rem 1.1rem; }
}
