/* =====================================
   DATA CLEAN - Feuille de style
   Palette : bleu marine (#0A2540) + blanc + accent (#2E7FDB)
   ===================================== */

/* --------- RESET --------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #2E7FDB; text-decoration: none; transition: color .2s; }
a:hover { color: #0A2540; }
ul { list-style: none; }
h1, h2, h3, h4 { color: #0A2540; font-weight: 800; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: .5rem; }
h3 { font-size: 1.25rem; margin-bottom: .5rem; }
p { margin-bottom: 1rem; }
.hidden { display: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --------- BUTTONS --------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .25s ease;
  text-decoration: none;
}
.btn-primary {
  background: #2E7FDB;
  color: #fff;
  box-shadow: 0 6px 16px rgba(46, 127, 219, .3);
}
.btn-primary:hover {
  background: #1e66b9;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(46, 127, 219, .4);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline:hover {
  background: #fff;
  color: #0A2540;
}
.btn-block { width: 100%; }

/* --------- HEADER --------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.logo-link { display: block; }
.logo { height: 56px; width: auto; }
.main-nav ul {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: #0A2540;
  font-weight: 600;
  font-size: .95rem;
  transition: color .2s;
}
.main-nav a:hover { color: #2E7FDB; }
.btn-cta-nav {
  background: #2E7FDB;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 6px;
}
.btn-cta-nav:hover { background: #1e66b9; color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: #0A2540;
  border-radius: 2px;
  transition: all .3s;
}

/* --------- HERO --------- */
.hero {
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 100px 0 90px;
  min-height: 600px;
  display: flex;
  align-items: center;
}
.hero-inner { max-width: 900px; }
.hero-tag {
  display: inline-block;
  background: rgba(46, 127, 219, .25);
  border: 1px solid rgba(255,255,255,.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 20px;
}
.hero h1 {
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero h1 .accent { color: #7FB9FF; }
.hero-sub {
  font-size: 1.15rem;
  max-width: 700px;
  margin-bottom: 30px;
  color: rgba(255,255,255,.95);
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-badges {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.badge {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: .9rem;
  border: 1px solid rgba(255,255,255,.2);
}
.badge strong { color: #7FB9FF; margin-right: 6px; }

/* --------- SECTIONS --------- */
.section {
  padding: 80px 0;
}
.section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}
.eyebrow {
  display: inline-block;
  color: #2E7FDB;
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.eyebrow.light { color: #7FB9FF; }
.section-intro {
  font-size: 1.1rem;
  color: #555;
  margin-top: 12px;
}

/* --------- SERVICES --------- */
.services { background: #f7f9fc; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
  gap: 24px;
  justify-content: center;
}
.service-card {
  background: #fff;
  padding: 32px 28px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(10, 37, 64, .06);
  border: 1px solid #e5ecf5;
  transition: transform .25s, box-shadow .25s;
  text-align: center;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(10, 37, 64, .12);
}
.service-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  text-align: center;
  display: block;
}
.service-card p { color: #555; margin-bottom: 0; }

/* --------- POURQUOI --------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
  gap: 30px;
  justify-content: center;
}
.why-item {
  padding: 28px 24px;
  border-top: 4px solid #2E7FDB;
  background: #f7f9fc;
  border-radius: 8px;
  text-align: center;
}
.why-item h3 { color: #0A2540; margin-bottom: 8px; text-align: center; }
.why-item p { color: #555; margin-bottom: 0; }

/* --------- AVANT / APRÈS --------- */
.realisations { background: linear-gradient(135deg, #f0f4fa 0%, #e8eef7 100%); }
.legal-notice {
  background: #fff4e6;
  border-left: 4px solid #e08a1a;
  color: #5a3a00;
  padding: 18px 22px;
  border-radius: 8px;
  text-align: left;
  font-size: 1rem;
  line-height: 1.55;
  margin-top: 20px;
}
.legal-notice strong { color: #9a5a00; }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.ba-compare {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(10, 37, 64, .1);
}
.ba-compare figcaption {
  margin-top: 14px;
  text-align: center;
  color: #0A2540;
  font-weight: 600;
  font-size: .95rem;
}
.ba-inner {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: ew-resize;
  aspect-ratio: 4 / 3;
  user-select: none;
}
.ba-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-before-wrap {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  transition: width .05s linear;
}
.ba-before-wrap img {
  width: 100% / var(--w, 1);
  min-width: 100%;
  max-width: none;
}
.ba-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 8px rgba(0,0,0,.4);
}
.ba-slider span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ba-slider span::before,
.ba-slider span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.ba-slider span::before {
  left: 8px;
  border-right: 8px solid #0A2540;
  transform: translateY(-50%);
}
.ba-slider span::after {
  right: 8px;
  border-left: 8px solid #0A2540;
  transform: translateY(-50%);
}
.ba-label {
  position: absolute;
  top: 12px;
  background: rgba(10, 37, 64, .85);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1px;
  pointer-events: none;
}
.ba-label-before { left: 12px; }
.ba-label-after { right: 12px; background: rgba(46, 127, 219, .9); }

/* Crop before image to the visible slider portion */
.ba-before-wrap {
  width: 50%;
}
.ba-before-wrap img {
  width: 400%; /* will be overridden via JS */
}

/* --------- ZONES --------- */
.zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  gap: 24px;
  justify-content: center;
}
.zone-card {
  background: #fff;
  padding: 28px 24px;
  border-radius: 10px;
  border-top: 4px solid #2E7FDB;
  box-shadow: 0 4px 14px rgba(10,37,64,.07);
  text-align: center;
}
.zone-card h3 { margin-bottom: 10px; }
.zone-card p { color: #555; font-size: .95rem; margin: 0; }

/* --------- CONTRATS --------- */
.contracts { background: #f7f9fc; }
.contracts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  gap: 24px;
  justify-content: center;
}
.contract-card {
  background: #fff;
  padding: 28px 22px;
  border-radius: 10px;
  border: 2px solid #e5ecf5;
  position: relative;
  text-align: center;
  transition: transform .25s;
}
.contract-card:hover { transform: translateY(-3px); }
.contract-card.highlight {
  border-color: #2E7FDB;
  box-shadow: 0 12px 30px rgba(46,127,219,.18);
}
.contract-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #2E7FDB;
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .5px;
}
.contract-card h3 { margin-bottom: 8px; }
.contract-card p { color: #555; margin-bottom: 10px; font-size: .95rem; }
.contract-note {
  display: block;
  color: #2E7FDB;
  font-size: .85rem;
  font-weight: 600;
}

/* --------- CONTACT --------- */
.contact {
  background: linear-gradient(135deg, #0A2540 0%, #123a65 100%);
  color: #fff;
}
.contact h2 { color: #fff; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
}
.contact-info p { color: rgba(255,255,255,.85); }
.contact-list {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.contact-list strong { color: #7FB9FF; font-size: .95rem; }
.contact-list a { color: #fff; font-weight: 600; }
.contact-list a:hover { color: #7FB9FF; }

.contact-form {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  color: #1a1a1a;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.contact-form label {
  display: block;
  margin-bottom: 16px;
}
.contact-form label span {
  display: block;
  font-weight: 600;
  color: #0A2540;
  margin-bottom: 6px;
  font-size: .9rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d5ddeb;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2E7FDB;
  box-shadow: 0 0 0 3px rgba(46,127,219,.15);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-note {
  font-size: .8rem;
  color: #777;
  margin-top: 12px;
  margin-bottom: 0;
  text-align: center;
}

/* --------- FOOTER --------- */
.site-footer {
  background: #061830;
  color: rgba(255,255,255,.8);
  padding: 60px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-logo {
  height: 60px;
  margin-bottom: 16px;
  background: #fff;
  padding: 6px;
  border-radius: 6px;
  display: inline-block;
}
.footer-col h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: .95rem; }
.footer-col a:hover { color: #7FB9FF; }
.footer-col p { color: rgba(255,255,255,.7); font-size: .95rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  font-size: .85rem;
  text-align: center;
}
.footer-bottom p { margin: 0; color: rgba(255,255,255,.6); }
.footer-bottom a { color: rgba(255,255,255,.6); }

/* --------- FLOATING CTA --------- */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #2E7FDB;
  color: #fff;
  padding: 14px 22px;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(46,127,219,.5);
  z-index: 99;
  transition: transform .2s, box-shadow .2s;
}
.floating-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(46,127,219,.6);
  color: #fff;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 12px 24px rgba(0,0,0,.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .main-nav.is-open { max-height: 500px; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
  }
  .main-nav li { width: 100%; border-bottom: 1px solid #eef2f8; }
  .main-nav li:last-child { border-bottom: none; }
  .main-nav a {
    display: block;
    padding: 14px 22px;
  }
  .btn-cta-nav {
    margin: 10px 22px;
    display: block;
    text-align: center;
  }
  .hero { padding: 60px 0 50px; min-height: auto; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-badges { gap: 10px; }
  .badge { font-size: .8rem; padding: 6px 12px; }
  .section { padding: 55px 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-logo { margin: 0 auto 16px; }
  .floating-cta { padding: 12px 18px; font-size: .9rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero-sub { font-size: 1rem; }
  .service-card, .why-item { padding: 22px 18px; }
  .contact-form { padding: 22px; }
}
