:root{
  --blue:#0b5bbf;
  --black:#0a0f18;
  --text:#111827;
  --muted:#6b7280;
  --bg:#ffffff;
  --bg-alt:#f5f7fb;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Helvetica,Arial,sans-serif;color:var(--text);background:var(--bg);line-height:1.6}
.container{max-width:1100px;margin:0 auto;padding:0 20px}
a{color:var(--blue);text-decoration:none}
.small{font-size:.92rem}
.muted{color:var(--muted)}

/* Header */
.hdr{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.95);border-bottom:1px solid #e5e7eb;backdrop-filter:blur(8px)}
.nav{display:flex;align-items:center;justify-content:space-between;padding:8px 0}
.brand{display:flex;align-items:center;gap:10px;color:inherit}
.brand img{height:48px;width:auto}
.brand b{display:block;font-size:1.05rem}
.brand small{display:block;color:var(--muted)}
.burger{display:none;font-size:28px;background:none;border:0}
.menu{display:flex;gap:14px;align-items:center}
.menu a{padding:10px 12px;border-radius:10px;color:var(--black)}
.menu a:hover{background:#eef3ff}
@media (max-width:860px){
  .burger{display:block}
  .menu{display:none;position:absolute;left:0;right:0;top:64px;background:#fff;border-bottom:1px solid #e5e7eb;flex-direction:column;padding:12px}
  .menu.open{display:flex}
}

/* Buttons */
.btn{display:inline-block;border:1px solid var(--blue);padding:10px 14px;border-radius:10px}
.btn-primary{background:var(--blue);color:#fff}

/* Hero */
.hero{background:linear-gradient(180deg,#0a0f18 0,var(--black) 70%,#0a0f18 100%);color:#fff;padding:60px 0 46px}
.hero .grid{display:grid;grid-template-columns:1.2fr .8fr;gap:28px;align-items:center}
@media (max-width:920px){.hero .grid{grid-template-columns:1fr}}
.hero h1{font-size:2.3rem;margin:.2rem 0 .6rem}
.lead{opacity:.95}
.ticks{margin:12px 0 18px;padding-left:18px}
.ticks li{margin:.25rem 0}
.placeholder{width:100%;aspect-ratio:16/10;background:#000;border-radius:12px;border:2px dashed #222}
.hero-logo-wrap{display:flex;align-items:center;justify-content:center}
.hero-logo{max-width:420px;width:100%;height:auto;filter:drop-shadow(0 6px 14px rgba(0,0,0,.25));background:transparent;padding:10px;border-radius:12px}

/* Sections */
.section{padding:56px 0}
.section.alt{background:var(--bg-alt)}
h2{font-size:1.9rem;margin:0 0 10px;color:#0a0f18}
.sub{margin:0 0 20px;color:var(--muted)}

/* Cards */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
@media (max-width:920px){.cards{grid-template-columns:1fr}}
.card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:16px}
.card h3{margin-top:10px}

/* Atouts */
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
@media (max-width:920px){.grid-4{grid-template-columns:1fr 1fr}}
.tile{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:16px}

/* Gallery */
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media (max-width:920px){.gallery{grid-template-columns:1fr 1fr}}
/* === Galerie Réalisations : images uniformes === */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

/* === Galerie Réalisations — Format A4 paysage === */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1.414 / 1; /* ✅ Format A4 paysage */
  object-fit: cover;       /* recadre proprement sans déformer */
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}


.gallery img:hover {
  transform: scale(1.03);
}


/* Tags */
.tags{display:flex;flex-wrap:wrap;gap:10px}
.tags span{background:#dbeafe;color:#0b5bbf;padding:6px 10px;border-radius:999px;border:1px solid #bcd7ff}

/* CTA band */
.cta{background:linear-gradient(135deg,var(--blue),#051833);color:#fff;padding:28px 0;border-top:4px solid #061e43;border-bottom:4px solid #061e43}
.cta .row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.cta .btn{border-color:#fff}

/* Contact */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
@media (max-width:920px){.contact-grid{grid-template-columns:1fr}}
.card input, .card textarea{width:100%;padding:12px;border-radius:10px;border:1px solid #d1d5db;margin:6px 0 12px;font:inherit}

/* Footer */
.ftr{background:#0a0f18;color:#9fb6d6;text-align:center;padding:24px 0}
.ftr a{color:#cde0ff}
/* === Images dans la section Services — Format A4 paysage === */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.cards .card {
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cards .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

/* ✅ Format A4 paysage pour les visuels des services */
.cards .card img {
  width: 100%;
  aspect-ratio: 1.414 / 1; /* Format A4 paysage */
  object-fit: cover;
  display: block;
}

