:root{
  --bg:#ffffff;
  --card:#ffffff;

  --text:#111111;
  --muted:rgba(17,17,17,.72);
  --muted2:rgba(17,17,17,.55);

  --line:rgba(17,17,17,.12);
  --shadow: 0 16px 40px rgba(0,0,0,.10);

  --radius: 18px;
  --radius2: 26px;
  --max: 1120px;

  --red:#d10000;
  --grad: linear-gradient(90deg, var(--red), #111111);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height:1.6;
}
.brand__title{
  font-weight: 900;
  letter-spacing: .4px;
}

.brand__loc{
  color: var(--red); /* rouge */
}

.brand__team{
  color: #000; /* noir */
}
.hero{
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
  color: #fff;

  background:
    linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.48) 38%, rgba(0,0,0,.15) 65%, rgba(0,0,0,.08) 100%),
    url("img/foond.JPEG") center/cover no-repeat;
}

.hero__grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: start;
}
.about__grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.about__card{
  padding: 20px;
  border-radius: var(--radius2);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.about__card h3{
  margin:0 0 8px;
}

.about__card p{
  margin:0 0 16px;
  color: var(--muted);
  font-weight:600;
}

/* Responsive */
@media (max-width: 980px){
  .about__grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px){
  .about__grid{
    grid-template-columns: 1fr;
  }
}

.hero__content{
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.hero h1{
  margin: 14px 0 16px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: #fff;
}

.hero .lead{
  color: rgba(255,255,255,.88);
  font-size: 1.08rem;
  max-width: 62ch;
}

.badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,.92);
  font-weight: 700;
}

.dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff3b3b;
}

.hero__cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top: 24px;
}

.hero__card{
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.hero__card .card,
.hero__card .mini{
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 45px rgba(0,0,0,.20);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
}

.hero__card .card{
  padding: 22px;
  border-radius: 24px;
}

.hero__card .mini{
  padding: 16px 18px;
  border-radius: 20px;
}

.hero__card h3{
  margin: 0 0 12px;
  color: #fff;
}

.hero__card .check li{
  color: rgba(255,255,255,.92);
}

.hero__card .check li::before{
  color: #ff4d4d;
}

.hero__card .link{
  color: #fff;
}

.hero__card .link:hover{
  color: #ffd6d6;
}

.hero__card p{
  color: rgba(255,255,255,.82);
  margin: 4px 0 0;
}

@media (max-width: 980px){
  .hero{
    padding: 72px 0 50px;
    background:
      linear-gradient(180deg, rgba(0,0,0,.68) 0%, rgba(0,0,0,.46) 45%, rgba(0,0,0,.26) 100%),
      url("img/background.jpg") center/cover no-repeat;
  }

  .hero__grid{
    grid-template-columns: 1fr;
  }

  .hero h1{
    font-size: clamp(30px, 8vw, 48px);
  }

  .hero__card{
    margin-top: 10px;
  }
}

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
a{ color:inherit; text-decoration:none; }
.container{ width: min(var(--max), calc(100% - 48px)); margin-inline:auto; }
.mt-16{ margin-top:16px; }
.mt-24{ margin-top:24px; }
.row{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; }

/* Header */
.header{
  position:sticky; top:0; z-index:100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{ display:flex; gap:12px; align-items:center; }
.brand__mark{
  width:44px; height:44px; display:grid; place-items:center;
  border-radius:14px;
  background:#fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  overflow:hidden;
}
.brand__logo{ width:100%; height:100%; object-fit:contain; padding:6px; display:block; }
.brand__text strong{ display:block; letter-spacing:.4px; }
.brand__text small{ display:block; color:var(--muted2); font-weight:600; margin-top:2px; }

.nav{
  display:flex; gap:18px; align-items:center;
  color: var(--muted);
}
.nav a{ padding:10px 10px; border-radius:12px; }
.nav a:hover{ background: rgba(17,17,17,.05); color: var(--text); }

.nav__primary{
  color: var(--red);
  font-weight: 900;
}
.nav__primary:hover{
  background: rgba(209,0,0,.06);
}

.burger{
  display:none;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid rgba(17,17,17,.18);
  background: rgba(17,17,17,.03);
  cursor:pointer;
}
.burger span{
  display:block; height:2px; width:20px; background: rgba(17,17,17,.85);
  margin:5px auto; border-radius:99px;
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  background: #f4f4f4;
  font-weight:800;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover{ transform: translateY(-1px); background:#ededed; }
.btn:active{ transform: translateY(0px); }

.btn--primary{
  background: var(--red);
  color:#fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.btn--primary:hover{ background:#b30000; }

.btn--ghost{
  background: transparent;
  color: var(--red);
  border:1px solid rgba(209,0,0,.35);
  box-shadow:none;
}
.btn--ghost:hover{ background: rgba(209,0,0,.06); }

.btn--small{ padding:10px 12px; border-radius:12px; }

/* Mobile menu open */
.nav--open{
  position: absolute;
  top: 64px; right: 24px;
  display:grid;
  gap: 8px;
  width: min(360px, calc(100% - 48px));
  padding: 12px;
  border-radius: 18px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}
.nav--open a{ padding: 12px 12px; }

/* Page hero */
.page-hero{
  padding: 46px 0 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(209,0,0,.06), rgba(255,255,255,1));
}

/* ===== Modules disponibles : images propres & homogènes ===== */

.modules{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

.module{
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius2);
  overflow:hidden;
  box-shadow: var(--shadow);
  display:grid;
  grid-template-columns: 180px 1fr; /* zone image fixe */
  min-height: 180px;
}

.module__media{
  height: 100%;
}

.module__img{
  border:0;
  padding:0;
  background: transparent;
  cursor:pointer;
  width:100%;
  height:100%;
  display:block;
}

/* IMPORTANT : on force l'image à remplir le bloc sans déformer */
.module__img img{
  width:100%;
  height:100%;
  object-fit: cover;      /* recadre si besoin */
  object-position: center;
  display:block;
}

/* Contenu */
.module__body{
  padding: 14px 14px;
}

.module__meta{
  margin:0;
  padding-left: 16px;
  color: var(--muted);
  font-weight:600;
}
.module__meta li{ margin: 4px 0; }

.module__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}

/* Responsive */
@media (max-width: 980px){
  .modules{ grid-template-columns: 1fr; }
  .module{ grid-template-columns: 1fr; }
  .module__media{ height: 220px; } /* image en haut sur mobile */
  .module{ min-height: unset; }
}
.page-hero__inner{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  flex-wrap:wrap;
}
.kicker{
  display:inline-block;
  font-weight:900;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing:.2px;
  font-size:.85rem;
  margin:0 0 8px;
}
.page-hero h1{
  margin:0 0 8px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height:1.1;
}
.lead{ margin:0; color: var(--muted); font-weight:600; max-width: 860px; }
.page-hero__cta{ display:flex; gap:10px; flex-wrap:wrap; }

/* Sections */
.section{ padding: 44px 0; }
.section__head{ max-width: 900px; margin-bottom: 16px; }
.section__head h2{
  margin:0 0 6px;
  font-size: clamp(22px, 2.8vw, 34px);
  letter-spacing:-.3px;
}
.section__head p{ margin:0; color: var(--muted); font-weight:600; }

/* Cards & panels */
.panel, .feature, .svc, .bullet, .mini, .stat, .form, .info{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}

.panel{ padding: 18px; }
.panel h3{ margin:0 0 10px; }

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.svc{ padding: 18px; border-radius: var(--radius); box-shadow:none; }
.svc__top{ display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.svc p{ margin:0; color: var(--muted); font-weight:600; }

.pill, .tag{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 6px 10px;
  border-radius:999px;
  border:1px solid rgba(209,0,0,.22);
  background: rgba(209,0,0,.06);
  color: #111;
  font-weight:900;
  font-size: .82rem;
}

/* Check list */
.check{ list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.check li{ position:relative; padding-left:26px; color: var(--muted); font-weight:700; }
.check li::before{ content:"✓"; position:absolute; left:0; top:0; color: var(--red); font-weight:900; }
.link{ color: var(--red); font-weight:900; }
.link:hover{ text-decoration: underline; }

/* Split */
.split{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
  align-items:start;
}

/* Steps */
.steps{ margin:0; padding-left: 0; list-style:none; display:grid; gap: 10px; }
.steps li{ display:flex; align-items:center; gap:10px; color: var(--muted); font-weight:800; }
.steps li span{
  width:26px; height:26px;
  display:grid; place-items:center;
  border-radius:10px;
  border:1px solid rgba(209,0,0,.22);
  background: rgba(209,0,0,.06);
  color: var(--red);
  font-weight:900;
}

/* CTA */
.cta{
  padding: 22px 0;
  border:1px solid var(--line);
  border-radius: var(--radius2);
  background: #fff;
}
.cta__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap: 14px; flex-wrap:wrap;
}
.cta h2{ margin:0 0 4px; font-size: clamp(18px, 2.4vw, 26px); }
.cta p{ margin:0; color: var(--muted); font-weight:600; }
.cta__btns{ display:flex; gap:10px; flex-wrap:wrap; }

/* Logos */
.logos{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 18px;
}
.logos.big span{ font-size: .95rem; }
.logos span{
  border:1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(17,17,17,.85);
  font-weight:800;
}

/* Projects gallery */
.projects-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.projects-grid .gallery__item{ grid-column: span 4; }

.gallery__item{
  border:0;
  padding:0;
  background: transparent;
  cursor:pointer;
  border-radius: var(--radius2);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
}
.gallery__item img{
  width:100%;
  height: 240px;
  object-fit: cover;
  display:block;
  transition: transform .25s ease;
}
.gallery__item:hover img{ transform: scale(1.03); }

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  display:none;
  align-items:center;
  justify-content:center;
  padding: 24px;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px);
  z-index: 9999;
}
.lightbox.is-open{ display:flex; }
.lightbox__img{
  width: min(1100px, 96vw);
  height: auto;
  max-height: 86vh;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
  background:#fff;
}
.lightbox__close{
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor:pointer;
  font-size: 18px;
}

/* Contact */
.contact{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
  align-items:start;
  margin-top: 18px;
}
.form{
  padding: 18px;
}
.form__title{ margin:0 0 6px; }
.form label{ display:grid; gap: 8px; font-weight:800; }
.form__row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
input, select, textarea{
  width:100%;
  border-radius: 14px;
  border:1px solid rgba(17,17,17,.18);
  background: #fff;
  color: #111;
  padding: 12px 12px;
  outline:none;
  font: inherit;
}
textarea{ resize: vertical; }
input::placeholder, textarea::placeholder{ color: rgba(17,17,17,.35); font-weight:700; }
.form__foot{
  display:flex; align-items:center; gap: 14px; flex-wrap:wrap;
  margin-top: 12px;
  border-top:1px solid var(--line);
  padding-top: 12px;
}
.form__hint{ margin:0; color: var(--muted2); font-weight:700; }

.info{ padding: 18px; }
.muted{ color: var(--muted2); font-weight:700; margin: 8px 0 14px; }

.info__grid{
  display:grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-top:1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}
.info__grid p{ margin: 6px 0 0; color: var(--muted); font-weight:800; }

/* Coords cards */
.coords{ display:grid; gap:10px; margin: 12px 0 10px; }
.coord{
  display:flex; justify-content:space-between; gap:12px;
  padding: 12px 12px;
  border-radius: 16px;
  border:1px solid var(--line);
  background: rgba(209,0,0,.04);
}
.coord__label{ font-weight:900; color: var(--text); }
.coord__value{ font-weight:900; color: var(--red); }
.coord:hover{ background: rgba(209,0,0,.07); }

/* Footer */
.footer{
  padding: 26px 0;
  border-top:1px solid var(--line);
  background: #fff;
}
.footer__inner{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap: 12px; flex-wrap:wrap;
}
.footer__links{ display:flex; gap: 12px; flex-wrap:wrap; color: var(--muted); font-weight:800; }
.footer__links a:hover{ text-decoration: underline; }
.footer__contact{ color: var(--red); font-weight:900; }
.footer__contact:hover{ text-decoration: underline; }

/* Responsive */
@media (max-width: 980px){
  .cards{ grid-template-columns: repeat(2, 1fr); }
  .split, .contact{ grid-template-columns: 1fr; }
  .projects-grid .gallery__item{ grid-column: span 6; }
}
@media (max-width: 720px){
  .nav{ display:none; }
  .burger{ display:block; }
  .cards{ grid-template-columns: 1fr; }
  .form__row{ grid-template-columns: 1fr; }
  .projects-grid .gallery__item{ grid-column: span 12; }
  .gallery__item img{ height: 220px; }
}
