/* =====================================================
   MBMA EXPERTISE — Feuille de style principale
   Site : mbmaexpertise.fr
   Couleurs :
     Bleu marine   : #1A3558
     Gris argenté  : #8C9BAB
     Fond clair    : #F0F4F8
     Blanc         : #FFFFFF
     Texte sombre  : #222222
   Polices : Montserrat (titres) + Open Sans (texte)
===================================================== */

/* ── RESET & BASE ─────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  color: #222222;
  background: #ffffff;
  line-height: 1.7;
}

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

a {
  color: #1A3558;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── TYPOGRAPHIE ──────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1A3558;
  line-height: 1.25;
}

h1 { font-size: 2.6rem; font-weight: 700; }
h2 { font-size: 2rem;   font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── MISE EN PAGE GÉNÉRALE ────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 72px 0;
}

/* ── BOUTONS ──────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 32px;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: #1A3558;
  color: #ffffff;
  border-color: #1A3558;
}

.btn-primary:hover {
  background: #142a44;
  border-color: #142a44;
  text-decoration: none;
  color: #fff;
}

.btn-white {
  background: #ffffff;
  color: #1A3558;
  border-color: #ffffff;
}

.btn-white:hover {
  background: #F0F4F8;
  border-color: #F0F4F8;
  text-decoration: none;
  color: #1A3558;
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn-outline:hover {
  background: #ffffff;
  color: #1A3558;
  text-decoration: none;
}

/* ── EN-TÊTE / NAVIGATION ─────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 2px solid #F0F4F8;
  box-shadow: 0 2px 8px rgba(26,53,88,0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

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

.logo img {
  height: 64px;
  width: auto;
}

.logo-text {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1A3558;
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: #8C9BAB;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1A3558;
  padding: 8px 16px;
  border-radius: 3px;
  transition: background 0.15s;
  text-decoration: none;
}

nav a:hover,
nav a.active {
  background: #F0F4F8;
}

nav a.nav-cta {
  background: #1A3558;
  color: #ffffff;
  margin-left: 8px;
}

nav a.nav-cta:hover {
  background: #142a44;
}

/* Burger menu (mobile) */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1A3558;
  border-radius: 2px;
  transition: all 0.25s;
}

/* ── SECTION HERO ─────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1A3558 0%, #0f2138 60%, #1a3558 100%);
  color: #ffffff;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

/* Motif technique discret en fond */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(140,155,171,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,155,171,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-badge {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8C9BAB;
  border: 1px solid rgba(140,155,171,0.4);
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 24px;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero h1 em {
  font-style: normal;
  color: #8C9BAB;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 580px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── SECTION PRÉSENTATION ─────────────────────────── */
.section-intro {
  background: #ffffff;
  text-align: center;
}

.section-intro .container {
  max-width: 820px;
}

.section-tag {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8C9BAB;
  margin-bottom: 14px;
}

.section-intro h2 {
  margin-bottom: 20px;
}

.section-intro p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.8;
}

/* Domaines — liste inline */
.domains {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.domain-tag {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1A3558;
  background: #F0F4F8;
  border: 1px solid rgba(26,53,88,0.15);
  padding: 7px 16px;
  border-radius: 2px;
}

/* ── SECTION MISSIONS ─────────────────────────────── */
.section-missions {
  background: #F0F4F8;
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  color: #555;
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

.missions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mission-card {
  background: #ffffff;
  border-radius: 4px;
  padding: 32px 28px;
  border-top: 3px solid #1A3558;
  transition: box-shadow 0.2s, transform 0.2s;
}

.mission-card:hover {
  box-shadow: 0 8px 24px rgba(26,53,88,0.1);
  transform: translateY(-3px);
}

.mission-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}

.mission-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: #1A3558;
}

.mission-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.65;
}

/* ── SECTION ZONE D'INTERVENTION ─────────────────── */
.section-zone {
  background: #ffffff;
}

.zone-inner {
  max-width: 760px;
  margin: 0 auto;
}

.zone-text h2 {
  margin-bottom: 20px;
}

.zone-text p {
  color: #444;
  line-height: 1.8;
}

.zone-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 20px;
  background: #F0F4F8;
  border-left: 3px solid #1A3558;
}

.zone-detail-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.zone-detail-text strong {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.85rem;
  color: #1A3558;
  margin-bottom: 2px;
}

.zone-detail-text span {
  font-size: 0.9rem;
  color: #555;
}

/* ── SECTION CTA ──────────────────────────────────── */
.section-cta {
  background: #1A3558;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-inner h2 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 14px;
}

.cta-inner p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

/* ── PIED DE PAGE ─────────────────────────────────── */
.site-footer {
  background: #0f2138;
  color: rgba(255,255,255,0.65);
  padding: 48px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  display: block;
}

.footer-col a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 8px;
}

/* ── PAGE CONTACT ─────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #1A3558 0%, #0f2138 100%);
  padding: 64px 0 52px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(140,155,171,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,155,171,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: #ffffff;
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  max-width: 520px;
}

.section-contact {
  background: #F0F4F8;
}

.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: start;
}

/* Formulaire */
.contact-form-card {
  background: #ffffff;
  border-radius: 4px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(26,53,88,0.08);
}

.contact-form-card h2 {
  font-size: 1.4rem;
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1A3558;
  margin-bottom: 6px;
}

.form-group label .required {
  color: #cc0000;
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d0d8e4;
  border-radius: 3px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.95rem;
  color: #222222;
  background: #ffffff;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #1A3558;
  box-shadow: 0 0 0 3px rgba(26,53,88,0.08);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231A3558' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.form-rgpd {
  font-size: 0.8rem;
  color: #777;
  line-height: 1.6;
  margin-top: 4px;
  margin-bottom: 20px;
  padding: 12px 14px;
  background: #F0F4F8;
  border-radius: 3px;
  border-left: 3px solid #8C9BAB;
}

.form-submit {
  width: 100%;
  padding: 15px;
  font-size: 0.95rem;
}

/* Message de confirmation */
.form-success {
  display: none;
  text-align: center;
  padding: 32px;
  background: #edf7ed;
  border-radius: 4px;
  border: 1px solid #b2dfb2;
  color: #1a6600;
}

.form-success h3 {
  color: #1a6600;
  margin-bottom: 8px;
}

.form-error {
  display: none;
  margin-bottom: 20px;
  padding: 18px 20px;
  background: #fff1f1;
  border-radius: 4px;
  border: 1px solid #f0b5b5;
  color: #7a1414;
}

.form-error h3 {
  color: #7a1414;
  font-size: 1rem;
  margin-bottom: 6px;
}

.form-error p {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Infos contact */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  background: #ffffff;
  border-radius: 4px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(26,53,88,0.06);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: #1A3558;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-body h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8C9BAB;
  margin-bottom: 4px;
}

.contact-info-body p,
.contact-info-body a {
  font-size: 0.95rem;
  color: #222;
  line-height: 1.55;
}

.contact-info-body a:hover {
  color: #1A3558;
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 900px) {
  .missions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.6rem; }

  section { padding: 52px 0; }

  .missions-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero { padding: 72px 0 60px; }

  /* Menu mobile */
  nav {
    display: none;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 2px solid #F0F4F8;
    box-shadow: 0 8px 20px rgba(26,53,88,0.1);
    gap: 4px;
    z-index: 99;
  }

  nav.open {
    display: flex;
  }

  nav a {
    width: 100%;
    padding: 12px 16px;
  }

  nav a.nav-cta {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }

  .burger {
    display: flex;
  }

  .contact-form-card {
    padding: 24px 20px;
  }
}
