:root{
  --bg:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --muted2:#64748b;
  --line:#e2e8f0;
  --soft:#f6f7f9;

  --brandBlue:#043a56;
  --brandOrange:#f28c28;

  --shadow:0 10px 30px rgba(2,6,23,.08);
  --r:18px;
  --max:1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  line-height:1.5;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

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

.kicker{
  color:var(--muted2);
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  font-size:12px;
}
h2{
  font-size:clamp(22px,2.2vw,32px);
  letter-spacing:-.01em;
  margin:0 0 10px;
}
p{margin:0 0 14px;color:var(--muted)}

/* ---------- HEADER ---------- */
.header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(226,232,240,.85);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:14px 0;
}

/* Brand en 1 ligne (sans logo) */
.brand-one-line{display:flex;align-items:baseline;gap:10px}
.brand-m2s{
  font-size:20px;
  font-weight:900;
  letter-spacing:.04em;
  color:var(--brandBlue);
}
.brand-tagline{
  font-size:14px;
  font-weight:900;
  text-transform:uppercase;
  color:var(--brandOrange);
}

/* Menu desktop */
.main-nav ul{
  list-style:none;
  margin:0; padding:0;
  display:flex; gap:8px; align-items:center;
}
.item{
  display:inline-flex;
  padding:10px 12px;
  border-radius:12px;
  font-weight:800;
  font-size:14px;
  border:1px solid transparent;
  transition:.18s ease;
}
.item:hover{
  background:var(--brandBlue);
  color:#fff;
}

/* Boutons */
.actions{display:flex;gap:10px;align-items:center}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:11px 14px;
  border-radius:14px;
  font-weight:900;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  transition:.18s ease;
  white-space:nowrap;
}
.btn.primary{
  background:var(--brandBlue);
  border-color:var(--brandBlue);
  color:#fff;
}
.btn.primary:hover{background:#032d43;border-color:#032d43}

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

/* “Demander un devis” du header : hover blanc */
.btn.quote{
  background:var(--brandBlue);
  border-color:var(--brandBlue);
  color:#fff;
}
.btn.quote:hover{
  background:#fff;
  color:var(--brandBlue);
  border-color:var(--brandBlue);
}

/* Burger + mobile nav */
.burger{
  display:none;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  padding:10px 12px;
  font-weight:900;
}
.mobile-nav{
  display:none;
  border-top:1px solid var(--line);
  padding:10px 0 16px;
}
.mobile-nav a{
  display:block;
  padding:12px 10px;
  border-radius:12px;
  font-weight:900;
}
.mobile-nav a:hover{background:var(--soft)}
.mobile-actions{display:flex;gap:10px;padding-top:10px}

/* ---------- HERO (image de fond) ---------- */
.hero{
  padding:64px 0 56px;
  background:
    linear-gradient(
      to right,
      rgba(255,255,255,0.90) 0%,
      rgba(255,255,255,0.80) 40%,
      rgba(255,255,255,0.35) 100%
    ),
    url("hero-bg.jpg");
  background-size:cover;
  background-position:right center;
  background-repeat:no-repeat;
}

.hero{
  filter: contrast(1.05) saturate(1.05);
}
.hero + .section{
  padding-top:48px;
}


.hero-grid{max-width:760px}

/* “carte” légère pour lisibilité */
.hero-box{
  background: rgba(255,255,255,.65);
  border:1px solid rgba(226,232,240,.85);
  border-radius:16px;
  padding:24px 28px;
}


.hero-logo-title{margin:10px 0 14px}
.hero-logo-title img{
  max-width:220px; /* taille logo hero */
  height:auto;
}

.lead{font-size:16px;max-width:60ch}
.lead strong{color:var(--text)}

.badges{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 22px}
.pill{
  display:inline-flex;align-items:center;gap:10px;
  border:1px solid var(--line);
  padding:10px 14px;
  border-radius:999px;
  background:#fff;
  color:var(--muted);
  font-size:14px;
  font-weight:800;
}

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

/* ---------- CARTES / GRILLES ---------- */
.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:16px;margin-top:18px}
.card{
  border:1px solid var(--line);
  background:#fff;
  border-radius:var(--r);
  padding:18px;
  box-shadow:0 8px 20px rgba(2,6,23,.05);
  transition:.18s ease;
}
.card:hover{
  transform:translateY(-2px);
  border-color:rgba(4,58,86,.35);
  background:rgba(4,58,86,.03);
}
.card h3{font-size:16px;margin:0 0 8px}
.card ul{margin:0;padding-left:18px;color:var(--muted)}
.card li{margin:6px 0}
.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:18px}
.shot{
  grid-column:span 4;
  border-radius:var(--r);
  overflow:hidden;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:0 8px 20px rgba(2,6,23,.05);
}
.ph{
  height:210px;
  background:
    linear-gradient(180deg, rgba(4,58,86,.10), transparent 65%),
    linear-gradient(135deg,#fff,#f8fafc);
  display:grid;place-items:center;
  color:var(--muted2);
  font-weight:900;
}
.cap{padding:12px 14px;color:var(--muted);font-weight:900;font-size:14px}

/* ---------- À PROPOS ---------- */
.about{display:grid;grid-template-columns:.95fr 1.05fr;gap:18px;margin-top:18px;align-items:start}
.portrait{
  border:1px solid var(--line);
  border-radius:var(--r);
  background:#fff;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.portrait .ph{height:260px}

/* ---------- CONTACT ---------- */
.contact{background:var(--brandBlue);color:#fff}
.kicker-invert{color:rgba(255,255,255,.85)}
.invert{color:#fff}
.invert-p{color:rgba(255,255,255,.82)}
.link-invert{text-decoration:underline}
.box{
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  border-radius:var(--r);
  padding:18px;
}
.btn-invert{
  border-color:rgba(255,255,255,.25);
  background:rgba(255,255,255,.10);
  color:#fff;
}
.btn-invert:hover{
  background:#fff;
  color:var(--brandBlue);
  border-color:#fff;
}

/* ---------- FOOTER ---------- */
.footer{border-top:1px solid var(--line);padding:26px 0;color:var(--muted2);font-size:13px}
.footer-row{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}
.footer-links{display:flex;gap:10px;align-items:center}
.footer-links a{text-decoration:underline}
.footer-links span{opacity:.6}

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

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

  .span-4{grid-column:span 6}
  .shot{grid-column:span 6}
  .about{grid-template-columns:1fr}
  .hero-logo-title img{margin:0 auto}
}
@media (max-width:560px){
  .span-4,.span-6{grid-column:span 12}
  .shot{grid-column:span 12}
  .cta{flex-direction:column}
  .btn{width:100%}
}


/* ===== À PROPOS : photo à gauche / texte blanc sur fond bleu ===== */
.apropos-wrap{
  display:grid;
  grid-template-columns: 1fr 1fr;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:0 12px 28px rgba(2,6,23,.08);
  margin-top:18px;
}

/* Photo à gauche : hauteur maîtrisée (photo moins “envahissante”) */
.apropos-photo{
  height:340px;        /* 👈 règle la taille ici (340 = bon pour one-page) */
  overflow:hidden;
}

.apropos-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 18%; /* 👈 privilégie le visage */
  display:block;
}


.apropos-blue{
  background:var(--brandBlue);
  color:#fff;
  padding:32px 34px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.apropos-blue p{
  color:rgba(255,255,255,.9);
  font-size:16px;
  line-height:1.6;
}

.apropos-blue strong{color:#fff}

.apropos-small{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.05em;
  font-weight:900;
  opacity:.9;
  margin-bottom:12px;
}

.apropos-actions{
  display:flex;
  gap:12px;
  margin-top:20px;
  flex-wrap:wrap;
}

@media (max-width: 940px){
  .apropos-wrap{grid-template-columns:1fr}
  .apropos-photo img{min-height:220px}
  .apropos-blue{padding:22px}
}

/* WhatsApp accent */
.social-link.whatsapp{color:#25D366}
.social-link.whatsapp:hover{color:#25D366}
.footer-center{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  text-align:center;
}

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

.footer-social-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:800;
  opacity:.85;
  text-decoration:none;
  transition:.2s;
}

.footer-social-link:hover{
  opacity:1;
  color:var(--brandBlue);
}

.footer-meta{
  font-size:13px;
  opacity:.85;
}

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

.footer-social-link.whatsapp{
  color:#25D366;
}
/* Logo footer – noir -> couleur au survol */
.footer-logo{
  display:flex;
  justify-content:center;
  margin-bottom:16px;
}

.logo-hover{
  position:relative;
  display:inline-block;
}

.logo-hover .logo{
  max-width:140px;
  height:auto;
  transition:opacity .25s ease;
}

.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;
}
/* ===========================
   TYPO HEADER – VERSION SAFE
   =========================== */

.header-logo,
.header-logo span,
.header-logo strong {
    font-family: 'Montserrat', sans-serif;
}

/* M2S (bleu) */
.header-logo strong {
    font-weight: 600; /* lisible mais pas trop lourd */
    letter-spacing: 0.5px;
}

/* MARTIAL SERVICES & SOLUTIONS (orange) */
.header-logo span {
    font-weight: 400; /* plus fin */
    letter-spacing: 0.4px;
}

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

