/* ============ TOKENS ============ */
:root{
  --navy-950:#0d1730;
  --navy-900:#122a52;
  --navy:#16264c;
  --navy-light:#1e3566;
  --red:#d81f2e;
  --red-dark:#b8151f;
  --ink:#1b2438;
  --gray:#5b6472;
  --gray-light:#8892a0;
  --line:#e6e9ee;
  --bg:#ffffff;
  --bg-soft:#f6f7fa;
  --radius:10px;
  --shadow:0 10px 30px rgba(13,23,48,.08);
  --shadow-lg:0 20px 50px rgba(13,23,48,.18);
  --font-display:'Montserrat', sans-serif;
  --font-body:'Open Sans', sans-serif;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block;}
a{text-decoration:none;color:inherit;}
ul{list-style:none;margin:0;padding:0;}
h1,h2,h3,h4{font-family:var(--font-display);margin:0;}
.container{
  width:100%;
  max-width:1240px;
  margin:0 auto;
  padding:0 24px;
}

/* ============ REVEAL ANIMATION ============ */
[data-reveal]{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible{
  opacity:1;
  transform:translateY(0);
}
@media (prefers-reduced-motion: reduce){
  [data-reveal]{opacity:1;transform:none;transition:none;}
  html{scroll-behavior:auto;}
}

/* ============ BUTTONS ============ */
.btn{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:13px 26px;
  border-radius:6px;
  font-family:var(--font-display);
  font-weight:700;
  font-size:.92rem;
  letter-spacing:.02em;
  cursor:pointer;
  border:2px solid transparent;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-2px);}
.btn-primary{background:var(--red);color:#fff;box-shadow:0 8px 20px rgba(216,31,46,.35);}
.btn-primary:hover{background:var(--red-dark);}
.btn-outline{background:transparent;border-color:rgba(255,255,255,.7);color:#fff;}
.btn-outline:hover{background:#fff;color:var(--navy);border-color:#fff;}

/* ============ HEADER ============ */
.site-header{
  position:fixed;
  top:0;left:0;right:0;
  z-index:1000;
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(6px);
  box-shadow:0 2px 18px rgba(13,23,48,.08);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:78px;
  gap:24px;
}
.logo{display:flex;align-items:center;gap:10px;flex-shrink:0;}
.logo-img{height:54px;width:auto;display:block;}
.logo-mark{
  font-family:var(--font-display);
  font-weight:900;
  font-size:1.7rem;
  color:var(--navy);
  line-height:1;
}
.logo-slash{color:var(--red);}
.logo-word{
  font-family:var(--font-display);
  font-weight:700;
  font-size:.7rem;
  letter-spacing:.14em;
  color:var(--navy);
  border-left:2px solid var(--line);
  padding-left:9px;
}
.main-nav ul{display:flex;gap:30px;}
.nav-link{
  font-family:var(--font-display);
  font-size:.86rem;
  font-weight:600;
  color:var(--ink);
  padding:6px 2px;
  position:relative;
  transition:color .2s ease;
}
.nav-link::after{
  content:"";
  position:absolute;left:0;bottom:-6px;
  width:0;height:2px;background:var(--red);
  transition:width .25s ease;
}
.nav-link:hover, .nav-link.active{color:var(--navy);}
.nav-link:hover::after, .nav-link.active::after{width:100%;}
.btn-devis{flex-shrink:0;}
.burger{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;border:none;cursor:pointer;padding:8px;
}
.burger span{width:24px;height:2px;background:var(--navy);border-radius:2px;transition:.3s;}

/* ============ HERO ============ */
.hero{
  position:relative;
  min-height:640px;
  display:flex;
  align-items:center;
  padding-top:78px;
  overflow:hidden;
  background:var(--navy);
}
.hero-bg{
  position:absolute;inset:0;
  background:
    linear-gradient(100deg, rgba(13,20,40,.92) 0%, rgba(13,20,40,.68) 38%, rgba(13,20,40,.25) 62%, rgba(13,20,40,.05) 78%),
    url('banner.png');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}
.hero-bg::after{
  content:"";
  position:absolute; inset:0;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 60px, rgba(255,255,255,.035) 60px 62px),
    linear-gradient(0deg, rgba(0,0,0,.25), transparent 40%);
  opacity:.8;
}
.hero-overlay{
  position:absolute; right:4%; top:12%; bottom:6%; width:38%;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255,255,255,.06), transparent 60%);
  border-left:1px solid rgba(255,255,255,.06);
}
.hero-inner{position:relative;z-index:2;padding:80px 24px;}
.hero-text{max-width:640px;}
.hero-text h1{
  font-size:3.4rem;
  line-height:1.05;
  font-weight:900;
  letter-spacing:.01em;
  display:flex;
  flex-direction:column;
}
.line-dark{color:#f3f5f9;}
.line-red{color:var(--red);}
.hero-rule{
  display:block;
  width:70px;height:4px;
  background:var(--red);
  margin:22px 0 20px;
  border-radius:2px;
}
.hero-sub{
  color:#dbe1ee;
  font-size:1.18rem;
  line-height:1.55;
  font-weight:400;
  margin-bottom:36px;
}
.hero-cta{display:flex;gap:18px;flex-wrap:wrap;}

/* ============ SECTION HEADINGS ============ */
.section{padding:88px 0;}
.section-title{
  text-align:center;
  font-size:1.9rem;
  font-weight:800;
  letter-spacing:.03em;
  color:var(--navy);
  margin-bottom:56px;
  display:flex;
  align-items:center;
  gap:18px;
  justify-content:center;
}
.section-title::before,.section-title::after{
  content:"";
  height:2px;width:60px;
  background:var(--line);
}
.section-title.light{color:#fff;}
.section-title.light::before,.section-title.light::after{background:rgba(255,255,255,.3);}

/* ============ VALEURS ============ */
.values-section{background:var(--bg);}
.values-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:26px;
}
.value-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:36px 22px;
  text-align:center;
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.value-card:hover{
  transform:translateY(-8px);
  box-shadow:var(--shadow);
  border-color:transparent;
}
.value-icon{
  width:64px;height:64px;
  margin:0 auto 20px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:var(--bg-soft);
  color:var(--navy);
  font-size:1.5rem;
  transition:background .3s ease, color .3s ease;
}
.value-card:hover .value-icon{background:var(--navy);color:#fff;}
.value-card h3{
  font-size:1.02rem;
  font-weight:800;
  color:var(--red);
  margin-bottom:10px;
  letter-spacing:.02em;
}
.value-card p{
  font-size:.9rem;
  color:var(--gray);
  line-height:1.6;
  margin:0;
}

/* ============ SERVICES ============ */
.services-section{background:var(--bg-soft);border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
.services-row{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:0;
}
.service-item{
  padding:0 22px;
  border-right:1px solid var(--line);
}
.service-item:last-child{border-right:none;}
.service-icon{
  color:var(--navy);
  font-size:1.7rem;
  margin-bottom:16px;
}
.service-item h3{
  font-size:.95rem;
  font-weight:800;
  color:var(--navy);
  margin-bottom:10px;
  line-height:1.35;
}
.service-item p{
  font-size:.86rem;
  color:var(--gray);
  line-height:1.6;
  margin:0;
}

/* ============ PRESTATIONS ============ */
.prestations-section{background:var(--bg);}
.prestations-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
}
.prestation-card{
  position:relative;
  background:#fff;
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:transform .35s ease, box-shadow .35s ease;
}
.prestation-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg);}
.prestation-media{
  height:210px;
  background-size:cover;
  background-position:center;
  position:relative;
}
.img-diag{background-image:url('rea1.png');}
.img-travaux{background-image:url('rea2.png');}
.img-mise{background-image:url('rea3.png');}
.prestation-badge{
  position:absolute;
  top:190px; left:26px;
  width:52px;height:52px;
  border-radius:50%;
  background:var(--navy);
  color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-size:1.15rem;
  border:5px solid #fff;
  box-shadow:0 4px 12px rgba(0,0,0,.18);
}
.prestation-badge.badge-red{background:var(--red);}
.prestation-body{padding:38px 26px 28px;}
.prestation-body h3{
  font-size:1.05rem;
  font-weight:800;
  color:var(--navy);
  margin-bottom:12px;
  letter-spacing:.02em;
}
.prestation-body h3.text-red{color:var(--red);}
.prestation-body p{
  font-size:.9rem;
  color:var(--gray);
  line-height:1.65;
  margin:0;
}

/* ============ WHY SECTION ============ */
.why-section{
  background:linear-gradient(120deg, var(--navy-950), var(--navy));
  padding:80px 0;
  color:#fff;
}
.why-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
}
.why-item{
  padding:0 20px;
  border-right:1px solid rgba(255,255,255,.12);
}
.why-item:last-child{border-right:none;}
.why-item i{font-size:1.7rem;color:var(--red);margin-bottom:16px;display:block;}
.why-item h4{
  font-size:.95rem;
  font-weight:800;
  letter-spacing:.03em;
  margin-bottom:10px;
}
.why-item p{
  font-size:.87rem;
  line-height:1.65;
  color:#c4cbdb;
  margin:0;
}

/* ============ REALISATIONS / GALLERY ============ */
.realisations-section{background:var(--bg-soft);}
.gallery{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:14px;
}
.gallery-item{
  border-radius:8px;
  overflow:hidden;
  cursor:pointer;
  aspect-ratio:1/1;
  box-shadow:0 4px 14px rgba(13,23,48,.1);
  position:relative;
}
.gallery-item::before{
  content:"\f00e";
  font-family:"Font Awesome 6 Free";
  font-weight:900;
  position:absolute;inset:0;
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:1.3rem;
  background:rgba(13,23,48,0);
  opacity:0;
  transition:.3s ease;
  z-index:2;
}
.gallery-item:hover::before{opacity:1;background:rgba(13,23,48,.45);}
.gallery-item:hover .ph{transform:scale(1.08);}
.ph{
  width:100%;height:100%;
  background-size:cover;background-position:center;
  transition:transform .5s ease;
}
.ph-1{background-image:url('1.png');}
.ph-2{background-image:url('2.png');}
.ph-3{background-image:url('3.png');}
.ph-4{background-image:url('4.png');}
.ph-5{background-image:url('5.png');}
.ph-6{background-image:url('6.png');}

/* ============ LIGHTBOX ============ */
.lightbox{
  position:fixed;inset:0;
  background:rgba(6,10,22,.92);
  z-index:2000;
  display:none;
  align-items:center;justify-content:center;
  padding:40px;
}
.lightbox.is-open{display:flex;}
.lightbox-content{
  width:min(700px,90vw);
  aspect-ratio:4/3;
  border-radius:10px;
  background:linear-gradient(150deg,#4a628f,#101d3a);
  box-shadow:0 30px 80px rgba(0,0,0,.5);
}
.lightbox-close{
  position:absolute;top:26px;right:34px;
  background:none;border:none;color:#fff;
  font-size:2.4rem;cursor:pointer;line-height:1;
}

/* ============ FOOTER ============ */
.site-footer{background:var(--navy-950);color:#cbd2e0;}
.footer-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr .7fr 1fr;
  gap:40px;
  padding:70px 24px 40px;
}
.footer-logo{margin-bottom:16px;}
.footer-logo .logo-mark{color:#fff;}
.footer-logo .logo-word{color:#fff;border-color:rgba(255,255,255,.2);}
.footer-company{font-weight:700;color:#fff;margin:0 0 10px;font-size:.95rem;}
.footer-tagline{font-size:.86rem;line-height:1.6;color:#98a2b8;margin:0;}
.footer-col h4{
  color:#fff;font-size:.92rem;font-weight:800;
  letter-spacing:.04em;margin-bottom:20px;
}
.footer-contact li{
  display:flex;align-items:flex-start;gap:10px;
  font-size:.88rem;line-height:1.6;margin-bottom:12px;color:#b9c1d2;
}
.footer-contact i{color:var(--red);width:16px;margin-top:3px;}
.socials{display:flex;gap:12px;}
.socials a{
  width:38px;height:38px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  border:1px solid rgba(255,255,255,.25);
  color:#fff;transition:.25s ease;
}
.socials a:hover{background:var(--red);border-color:var(--red);transform:translateY(-3px);}
.footer-form-col p{font-size:.86rem;color:#b9c1d2;line-height:1.6;margin-bottom:18px;}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);
  padding:20px 0;
  text-align:center;
  font-size:.8rem;
  color:#8892a5;
}

/* ============ MODAL ============ */
.modal-overlay{
  position:fixed;inset:0;
  background:rgba(6,10,22,.6);
  z-index:2100;
  display:none;
  align-items:center;justify-content:center;
  padding:20px;
}
.modal-overlay.is-open{display:flex;}
.modal-box{
  background:#fff;
  width:min(480px,100%);
  border-radius:14px;
  padding:36px 34px;
  position:relative;
  box-shadow:0 30px 80px rgba(0,0,0,.35);
  max-height:90vh;
  overflow:auto;
}
.modal-close{
  position:absolute;top:16px;right:18px;
  background:none;border:none;font-size:1.8rem;
  cursor:pointer;color:var(--gray);
}
.modal-box h3{color:var(--navy);font-size:1.4rem;margin-bottom:8px;}
.modal-sub{color:var(--gray);font-size:.9rem;margin:0 0 24px;}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.form-field{margin-bottom:16px;}
.form-field label{
  display:block;font-size:.82rem;font-weight:600;
  color:var(--navy);margin-bottom:6px;
}
.form-field input, .form-field textarea{
  width:100%;
  padding:11px 13px;
  border:1px solid var(--line);
  border-radius:6px;
  font-family:var(--font-body);
  font-size:.9rem;
  color:var(--ink);
  resize:vertical;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.form-field input:focus, .form-field textarea:focus{
  outline:none;
  border-color:var(--navy);
  box-shadow:0 0 0 3px rgba(22,38,76,.12);
}
.form-submit{width:100%;justify-content:center;margin-top:6px;}
.form-success{
  display:none;
  margin-top:16px;
  background:#e9f7ee;
  color:#1e7b45;
  border:1px solid #bfe6cd;
  padding:12px 14px;
  border-radius:8px;
  font-size:.86rem;
  text-align:center;
}
.form-success.show{display:block;}

/* ============ BACK TO TOP ============ */
.back-to-top{
  position:fixed;
  right:26px;bottom:26px;
  width:48px;height:48px;
  border-radius:50%;
  background:var(--navy);
  color:#fff;
  border:none;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(13,23,48,.3);
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:all .3s ease;
  z-index:900;
}
.back-to-top.show{opacity:1;visibility:visible;transform:translateY(0);}
.back-to-top:hover{background:var(--red);}

/* ============ RESPONSIVE ============ */
@media (max-width:1080px){
  .values-grid{grid-template-columns:repeat(3,1fr);}
  .services-row{grid-template-columns:repeat(3,1fr);}
  .service-item{border-right:none;border-bottom:1px solid var(--line);padding-bottom:26px;margin-bottom:26px;}
  .why-grid{grid-template-columns:repeat(2,1fr);row-gap:36px;}
  .why-item{border-right:none;}
  .why-item:nth-child(odd){border-right:1px solid rgba(255,255,255,.12);}
  .footer-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width:860px){
  .main-nav{
    position:fixed; top:78px; left:0; right:0;
    background:#fff;
    flex-direction:column;
    box-shadow:0 12px 24px rgba(13,23,48,.12);
    max-height:0;
    overflow:hidden;
    transition:max-height .35s ease;
  }
  .main-nav.open{max-height:480px;}
  .main-nav ul{flex-direction:column;padding:10px 24px 20px;gap:0;}
  .main-nav ul li{border-bottom:1px solid var(--line);}
  .main-nav ul li a{display:block;padding:14px 4px;}
  .burger{display:flex;}
  .btn-devis{display:none;}
  .hero-text h1{font-size:2.5rem;}
  .prestations-grid{grid-template-columns:1fr;}
  .gallery{grid-template-columns:repeat(3,1fr);}
}
@media (max-width:600px){
  .values-grid{grid-template-columns:repeat(2,1fr);}
  .services-row{grid-template-columns:1fr;}
  .service-item{border-bottom:1px solid var(--line);}
  .why-grid{grid-template-columns:1fr;}
  .why-item{border-right:none !important;border-bottom:1px solid rgba(255,255,255,.12);padding-bottom:26px;}
  .footer-grid{grid-template-columns:1fr;}
  .form-row{grid-template-columns:1fr;}
  .gallery{grid-template-columns:repeat(2,1fr);}
  .hero-cta{flex-direction:column;align-items:flex-start;}
  .hero-text h1{font-size:2.1rem;}
}
