/* ============================================
   M2S — Martial Services & Solutions
   styles.css — Version améliorée
   Palette : #043a56 · #f28c28
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── VARIABLES ── */
:root {
  --bg:         #ffffff;
  --text:       #043a56;
  --muted:      #5a7a8a;
  --muted2:     #7a9aaa;
  --line:       #e4ecf0;
  --soft:       #f4f8fa;

  --brandBlue:  #043a56;
  --brandBlueD: #022b40;
  --brandOrange:#f28c28;
  --brandOrangeD:#d4740f;

  --shadow-sm:  0 2px 12px rgba(4,58,86,.07);
  --shadow:     0 8px 32px rgba(4,58,86,.10);
  --shadow-lg:  0 20px 60px rgba(4,58,86,.14);
  --r:          16px;
  --r-sm:       10px;
  --max:        1120px;
  --ease:       cubic-bezier(.16,1,.3,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; }
p { margin: 0 0 14px; color: var(--muted); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.soft       { background: var(--soft); }
section     { scroll-margin-top: 86px; }

/* ── TYPOGRAPHY ── */
.kicker {
  color: var(--brandOrange);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 11px;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.kicker::before {
  content: ''; display: inline-block;
  width: 22px; height: 2px; background: var(--brandOrange);
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--brandBlue);
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }

/* ════════════════════════════════
   HEADER
════════════════════════════════ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 4px 24px rgba(4,58,86,.1); }

.nav {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 16px; padding: 12px 0;
  height: 72px;
}

/* Brand */
.brand-one-line { display: flex; align-items: baseline; gap: 10px; }
.brand-m2s {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px; font-weight: 900;
  letter-spacing: .02em;
  color: var(--brandBlue);
}
.brand-tagline {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--brandOrange);
}

/* Desktop nav */
.main-nav ul {
  list-style: none;
  display: flex; gap: 4px; align-items: center;
}
.item {
  display: inline-flex; padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500; font-size: 14px; letter-spacing: .02em;
  border: 1px solid transparent;
  color: var(--muted);
  transition: color .2s, background .2s;
}
.item:hover { color: var(--brandBlue); background: var(--soft); }

/* Buttons */
.actions { display: flex; gap: 8px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 14px;
  border: 1.5px solid var(--line);
  background: #fff; color: var(--text);
  cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }

.btn.outline {
  border-color: var(--brandBlue); color: var(--brandBlue);
}
.btn.outline:hover { background: var(--brandBlue); color: #fff; }

.btn.quote, .btn.primary {
  background: var(--brandBlue); border-color: var(--brandBlue); color: #fff;
  box-shadow: 0 4px 16px rgba(4,58,86,.2);
}
.btn.quote:hover, .btn.primary:hover {
  background: var(--brandBlueD); border-color: var(--brandBlueD);
  box-shadow: 0 6px 24px rgba(4,58,86,.28);
}

/* Burger */
.burger {
  display: none;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; padding: 9px 14px;
  font-weight: 600; font-size: 13px; cursor: pointer;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 0 18px;
}
.mobile-nav a {
  display: block; padding: 11px 10px;
  border-radius: 10px; font-weight: 500;
  transition: background .2s, color .2s;
}
.mobile-nav a:hover { background: var(--soft); color: var(--brandBlue); }
.mobile-actions { display: flex; gap: 10px; padding-top: 12px; flex-wrap: wrap; }

/* ════════════════════════════════
   HERO
════════════════════════════════ */
.hero {
  padding: 64px 0 56px;
  background:
    linear-gradient(to right,
      rgba(255,255,255,.95) 0%,
      rgba(255,255,255,.85) 45%,
      rgba(255,255,255,.25) 100%),
    url("hero-bg.jpg") right center / cover no-repeat;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--line);
}

.hero-grid { max-width: 680px; }

.hero-box {
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(228,236,240,.9);
  border-radius: 20px; padding: 32px 36px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  animation: heroIn .9s var(--ease) both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

.hero-box .kicker { animation: heroIn .7s var(--ease) both .1s; }

.hero-logo-title { margin: 14px 0 18px; }
.hero-logo-title img { max-width: 200px; height: auto; }

.lead {
  font-size: 16px; line-height: 1.75;
  color: var(--muted); max-width: 58ch;
}
.lead strong { color: var(--brandBlue); font-weight: 600; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--line);
  padding: 8px 14px; border-radius: 50px;
  background: #fff; color: var(--muted);
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.pill:hover { border-color: var(--brandOrange); box-shadow: 0 4px 14px rgba(242,140,40,.12); }

.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.fine { font-size: 12px; color: var(--muted2); margin-top: 10px; }

/* CTA buttons in hero */
.cta .btn.quote {
  background: var(--brandOrange); border-color: var(--brandOrange);
  box-shadow: 0 4px 18px rgba(242,140,40,.35);
  padding: 12px 24px; font-size: 15px;
}
.cta .btn.quote:hover { background: var(--brandOrangeD); border-color: var(--brandOrangeD); }

.cta .btn.outline { padding: 12px 24px; font-size: 15px; }

/* ════════════════════════════════
   SERVICES — CARDS
════════════════════════════════ */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px; margin-top: 24px;
}

.card {
  border: 1.5px solid var(--line);
  background: #fff; border-radius: var(--r);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s, box-shadow .25s, transform .25s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 0; background: var(--brandOrange);
  transition: height .3s var(--ease); border-radius: 0 0 3px 0;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(4,58,86,.2);
  box-shadow: var(--shadow);
}
.card:hover::before { height: 100%; }

.card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px; font-weight: 700;
  margin: 0 0 12px; color: var(--brandBlue);
  display: flex; align-items: center; gap: 8px;
}
.card ul { padding-left: 0; list-style: none; }
.card li {
  color: var(--muted); font-size: 14px;
  padding: 5px 0 5px 16px; position: relative;
  border-bottom: 1px solid var(--soft);
}
.card li:last-child { border-bottom: none; }
.card li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--brandOrange); font-size: 11px;
  line-height: 1.8;
}

.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }

/* ════════════════════════════════
   GALERIE
════════════════════════════════ */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px; margin-top: 24px;
}
.shot {
  grid-column: span 4;
  border-radius: var(--r);
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.shot:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-lg); }

.ph {
  height: 220px;
  background: linear-gradient(135deg, var(--soft) 0%, #e8f0f4 100%);
  display: grid; place-items: center;
  color: var(--muted2); font-weight: 600; font-size: 13px;
  letter-spacing: .06em;
}
.cap {
  padding: 12px 16px;
  color: var(--brandBlue); font-weight: 600; font-size: 14px;
  border-top: 1px solid var(--line);
}

/* ════════════════════════════════
   À PROPOS
════════════════════════════════ */
.apropos-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: 20px; overflow: hidden;
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-lg);
  margin-top: 24px;
}

.apropos-photo {
  height: 360px; overflow: hidden; position: relative;
}
.apropos-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 18%;
  display: block;
  transition: transform .6s var(--ease);
}
.apropos-wrap:hover .apropos-photo img { transform: scale(1.04); }

.apropos-blue {
  background: var(--brandBlue); color: #fff;
  padding: 40px 42px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.apropos-blue::before {
  content: ''; position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(242,140,40,.1); pointer-events: none;
}

.apropos-small {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: .14em; font-weight: 700;
  color: var(--brandOrange); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.apropos-small::before {
  content: ''; width: 20px; height: 2px; background: var(--brandOrange);
}

.apropos-blue p {
  color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.75;
}
.apropos-blue strong { color: #fff; font-weight: 600; }

.apropos-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

.btn.btn-invert {
  border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff;
}
.btn.btn-invert:hover { background: #fff; color: var(--brandBlue); border-color: #fff; }

/* ════════════════════════════════
   CONTACT
════════════════════════════════ */
.contact { background: var(--brandBlue); color: #fff; }
.contact h2 { color: #fff; }

.kicker-invert { color: var(--brandOrange); }
.kicker-invert::before { background: var(--brandOrange); }
.invert { color: #fff; }
.invert-p { color: rgba(255,255,255,.7); margin-bottom: 10px; }
.link-invert { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.link-invert:hover { color: var(--brandOrange); }

.box {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  border-radius: var(--r); padding: 28px 24px;
  backdrop-filter: blur(8px);
  transition: border-color .25s, background .25s;
}
.box:hover { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.09); }

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted2); font-size: 13px;
  background: var(--soft);
}

.footer-center {
  display: flex; flex-direction: column;
  align-items: center; gap: 16px; text-align: center;
}

.footer-social {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
}

.footer-social-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 13px;
  padding: 8px 16px; border-radius: 50px;
  border: 1.5px solid var(--line); background: #fff;
  color: var(--brandBlue);
  transition: border-color .2s, background .2s, color .2s, transform .15s;
}
.footer-social-link:hover {
  border-color: var(--brandBlue); background: var(--brandBlue);
  color: #fff; transform: translateY(-2px);
}
.footer-social-link.whatsapp { color: #25D366; border-color: #c3f0d5; }
.footer-social-link.whatsapp:hover { background: #25D366; border-color: #25D366; color: #fff; }

.footer-meta { font-size: 12px; color: var(--muted2); }

.ico { width: 15px; height: 15px; fill: currentColor; }

/* Footer logo hover */
.footer-logo { display: flex; justify-content: center; margin-bottom: 8px; }
.logo-hover { position: relative; display: inline-block; }
.logo-hover .logo { max-width: 130px; height: auto; transition: opacity .25s; }
.logo-hover .logo-color { position: absolute; top: 0; left: 0; opacity: 0; }
.logo-hover:hover .logo-color { opacity: 1; }
.logo-hover:hover .logo-bw { opacity: 0; }

.footer-links { display: flex; gap: 12px; align-items: center; }
.footer-links a {
  text-decoration: underline; text-underline-offset: 3px;
  transition: color .2s;
}
.footer-links a:hover { color: var(--brandOrange); }
.footer-links span { opacity: .4; }

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 940px) {
  .main-nav, .actions { display: none; }
  .burger { display: inline-flex; align-items: center; gap: 8px; }

  .hero { padding: 48px 0; }
  .hero-grid { max-width: 100%; }
  .hero-box { padding: 24px 22px; }

  .span-4 { grid-column: span 6; }
  .shot    { grid-column: span 6; }

  .apropos-wrap  { grid-template-columns: 1fr; }
  .apropos-photo { height: 260px; }
  .apropos-blue  { padding: 28px 26px; }
}

@media (max-width: 560px) {
  .span-4, .span-6 { grid-column: span 12; }
  .shot { grid-column: span 12; }
  .cta { flex-direction: column; }
  .cta .btn { width: 100%; justify-content: center; }
  .hero-box { border-radius: 14px; }
  .section { padding: 56px 0; }
}

/* ════════════════════════════════
   MONTSERRAT FALLBACK (header)
════════════════════════════════ */
.header-logo, .header-logo span, .header-logo strong {
  font-family: 'Montserrat', sans-serif;
}
.header-logo strong { font-weight: 700; letter-spacing: .02em; }
.header-logo span   { font-weight: 500; letter-spacing: .08em; }

@media (max-width: 768px) {
  .hero-description strong { display: block; margin-top: 8px; font-weight: 600; }
}
