:root{
  --bg:#0b0c0f;
  --panel:#101217;
  --panel2:#0f1116;
  --text:#f4f6ff;
  --muted:rgba(244,246,255,.72);
  --muted2:rgba(244,246,255,.55);
  --line:rgba(255,255,255,.10);
  --accent: #003566;
  --accent2:#0a3a66;
  --accent3:#51aafb;
  --radius:22px;
  --shadow:0 20px 60px rgba(0,0,0,.45);
}

*{ 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);
}
a{ color:inherit; text-decoration:none; }
.container{
  width: min(1140px, calc(100% - 44px));
  margin-inline:auto;
}

.muted{ color:var(--muted); }
.small{ font-size:.92rem; }
.accent{color: var(--accent3);}

.section{ padding:78px 0; }
.sectionAlt{
  background:
radial-gradient(900px 360px at 20% 0%, rgb(26 67 255 / 18%), transparent 60%), radial-gradient(900px 360px at 90% 20%, rgb(26 124 255 / 10%), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0))
}

/* Topbar */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid var(--line);
  background:rgba(5,6,9,.62);
  backdrop-filter: blur(12px);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  letter-spacing:.2px;
}
.brandMark{
  width:14px;height:14px;border-radius:999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow:0 10px 30px rgba(255,106,26,.30);
}
.brandText{font-size: 1.20rem;color: var(--accent3);}

.menu{
  display:flex;
  gap:16px;
  color:var(--muted);
  font-weight:700;
}
.menu a{
  padding:10px 10px;
  border-radius:14px;
}
.menu a:hover{
  color:var(--text);
  background:rgba(255,255,255,.06);
}

.navActions{
  display:flex;
  align-items:center;
  gap:10px;
}
.hideSm{ display:inline; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:11px 16px;
  border-radius:999px;
  border:1px solid var(--line);
  font-weight:800;
  cursor:pointer;
  transition: transform .12s ease, filter .12s ease, background .12s ease;
  user-select:none;
}
.btn:active{ transform: translateY(1px); }
.btnPrimary{
  border-color:transparent;
  color:white;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow:0 18px 44px rgb(26 118 255 / 22%);
}
.btnPrimary:hover{ filter: brightness(1.03); }
.btnGhost{
  background:rgba(255,255,255,.04);
}
.btnGhost:hover{ background:rgba(255,255,255,.07); }

.iconBtn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-weight:800;
}
.iconBtn:hover{ background:rgba(255,255,255,.07); }
.iconBtn.full{ width:100%; }

.burger{
  display:none;
  width:42px;height:42px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
}
.burger span{
  display:block;
  width:18px; height:2px;
  background:currentColor;
  margin:5px auto;
  border-radius:2px;
}

/* Mobile menu */
.mobileMenu{
  display:none;
  border-top:1px solid var(--line);
  padding:12px 0 16px;
  background:rgba(5,6,9,.62);
}
.mobileMenu a{
  display:block;
  padding:12px 22px;
  color:var(--muted);
  font-weight:800;
}
.mobileMenu a:hover{ color:var(--text); background:rgba(255,255,255,.06); }
.mobileActions{
  padding:10px 22px 0;
  display:grid;
  gap:10px;
}
.full{ width:100%; }

/* Hero */
.hero{
  padding:70px 0 64px;
  background:
    radial-gradient(900px 420px at 15% 0%, rgb(26 67 255 / 18%), transparent 60%),
    radial-gradient(900px 420px at 90% 10%, rgb(26 124 255 / 10%), transparent 60%);
}
.heroGrid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:34px;
  align-items:center;
}
.kicker{
  color:var(--muted2);
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
  font-size:.82rem;
  margin-bottom:10px;
}
h1{
  margin:0 0 12px;
  font-size: clamp(2.1rem, 3.4vw, 3.4rem);
  line-height:1.05;
  letter-spacing:-.02em;
}
.lead{
  margin:0 0 18px;
  color:var(--muted);
  font-weight:600;
  max-width:58ch;
  font-size:1.05rem;
}
.quote{ color:rgba(255,255,255,.35); font-weight:900; }
.heroCtas{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:18px 0 18px;
}
.trustRow{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  margin-top:12px;
}
.trustItem{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  border-radius:18px;
  padding:14px;
}
.trustTitle{ font-weight:900; margin-bottom:6px; }

.heroCard{
  position:relative;
  border-radius: calc(var(--radius) + 6px);
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  overflow:hidden;
  box-shadow: var(--shadow);
  min-height: 430px;
}
.heroVisual{
  height:430px;
  background:
    radial-gradient(900px 520px at 0% 20%, rgba(255,106,26,.16), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    url("https://images.unsplash.com/photo-1556761175-129418cb2dfe?auto=format&fit=crop&w=1400&q=80");
  background-size:cover;
  background-position:center;
  filter:saturate(1.05) contrast(1.05);
}
.badge{
  position:absolute;
  left:18px;
  bottom:18px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.30);
  backdrop-filter: blur(10px);
  padding:14px 14px;
  width: 250px;
}
.badgeTop{
  font-weight:900;
  letter-spacing:.02em;
  margin-bottom:8px;
}
.badgePrice{
  font-weight:900;
  font-size:1.05rem;
}
.badgePrice span{
  color: var(--accent2);
  font-size:1.25rem;
}
.badgeSmall{
  margin-top:8px;
  color:var(--muted);
  font-weight:600;
  font-size:.92rem;
}

/* About */
.aboutGrid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  align-items:start;
}
.aboutLeft h2{
  margin:0 0 10px;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  letter-spacing:-.02em;
}
.pillars{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin:12px 0 14px;
}
.pillar{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  font-weight:900;
  letter-spacing:.03em;
}
.pillarDot{ color:rgba(255,255,255,.30); font-weight:900; }
.aboutCtas{ display:flex; gap:12px; flex-wrap:wrap; margin-top:14px; }

.miniCard{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding:16px;
  box-shadow:0 14px 38px rgba(0,0,0,.20);
}
.miniCard + .miniCard{ margin-top:14px; }
.miniCardTitle{ font-weight:900; margin-bottom:10px; }
.checkList{
  margin:0;
  padding-left:18px;
  color:var(--muted);
  font-weight:600;
}
.checkList li{ margin:8px 0; }

/* Section head */
.sectionHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.sectionHead h2{
  margin:0 0 10px;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  letter-spacing:-.02em;
}
.sectionHead p{ margin:0; max-width:70ch; }

/* Services */
.serviceGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
  margin-top:18px;
}
.card{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding:18px;
  box-shadow:0 14px 42px rgba(0,0,0,.20);
}
.cardIcon{
  width:42px;height:42px;
  border-radius:16px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  margin-bottom:10px;
  font-size:1.2rem;
}
.card h3{ margin:0 0 8px; }
.bullets{
  margin:10px 0 0;
  padding-left:18px;
  color:var(--muted);
  font-weight:600;
}
.bullets li{ margin:7px 0; }
.highlight{
  background:
    radial-gradient(700px 260px at 10% 0%, rgb(26 67 255 / 18%), transparent 60%),
    rgba(255,255,255,.03);
}
.miniLine{
  height:1px;
  background:var(--line);
  margin:12px 0 12px;
}

/* Tabs + Work */
.tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:14px 0 16px;
}
.tab{
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  padding:10px 14px;
  border-radius:999px;
  font-weight:900;
  cursor:pointer;
}
.tab:hover{ background:rgba(255,255,255,.07); color:var(--text); }
.tab.isActive{
  background:rgba(255,255,255,.10);
  color:var(--text);
  border-color: rgba(255,255,255,.18);
}

.workGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
.workCard{
  position:relative;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  overflow:hidden;
  min-height: 320px;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
}
.workCard.isHidden{ display:none; }
.workThumb{
  height:200px;
  background-size:cover;
  background-position: top;
  filter:saturate(1.05) contrast(1.05);
}
.t1{ background-image:url("assets/realisations/beefian.webp"); }
.t2{ background-image:url("assets/realisations/Minerva.webp"); }
.t3{ background-image:url("assets/realisations/MediHeal.webp"); }
.t4{ background-image:url("https://images.unsplash.com/photo-1555375771-14b2a63968a9?auto=format&fit=crop&w=1400&q=80"); }
.t5{ background-image:url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1400&q=80"); }
.t6{ background-image:url("https://images.unsplash.com/photo-1553877522-43269d4ea984?auto=format&fit=crop&w=1400&q=80"); }

.workMeta{ padding:14px 16px 18px; }
.workMeta h3{ margin:0 0 6px; }
.tags{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.tag{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  font-weight:800;
  font-size:.86rem;
}
.workBtn{
  position:absolute;
  right: 7px;
  bottom:14px;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(0,0,0,.25);
  color:var(--text);
  cursor:pointer;
}

.workBtn img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.6;
}
.workBtn:hover{ background:rgba(0,0,0,.35); }

/* Testimonials */
.testiGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
  margin-top:18px;
}
.testiCard{
  border-radius: var(--radius);
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  padding:18px;
  box-shadow:0 14px 42px rgba(0,0,0,.20);
}
.stars{ color:rgba(255,255,255,.85); font-weight:900; letter-spacing:.2em; }
.testiText{ margin:12px 0 14px; color:var(--muted); font-weight:600; line-height:1.55; }
.testiBy{ display:flex; align-items:center; gap:10px; }
.avatar{
  width:40px;height:40px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-weight:900;
  background: linear-gradient(135deg, rgb(26 128 255 / 35%), rgba(255, 255, 255, .06));
  border:1px solid rgba(255,255,255,.16);
}
.testiName{ font-weight:900; }
.logoWall{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}
.logoPill{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  font-weight:900;
  font-size:.9rem;
}

/* Pricing */
.pricingNote{
  display:flex;
  gap:10px;
  align-items:flex-start;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  border-radius:18px;
  padding:14px;
  margin:12px 0 16px;
}
.noteIcon{ width:28px;height:28px; border-radius:12px; display:grid; place-items:center; border:1px solid var(--line); }

.tableWrap{
  border-radius: var(--radius);
  border:1px solid var(--line);
  overflow:auto;
  background:rgba(255,255,255,.02);
  box-shadow: var(--shadow);
}
.pricingTable{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width: 980px; /* enables horizontal scroll on small screens */
}
.pricingTable th, .pricingTable td{
  padding:14px 14px;
  border-bottom:1px solid var(--line);
  vertical-align:top;
}
.pricingTable th{
  position:sticky;
  top:0;
  background:rgba(10,11,14,.88);
  backdrop-filter: blur(10px);
  text-align:left;
}
.pricingTable th:first-child{ min-width: 220px; }
.thTitle{ font-weight:900; }
.thSub{ color:var(--muted); font-weight:700; margin-top:4px; font-size:.92rem; }
.priceRow td{ background:rgba(255,255,255,.02); }
.price{
  font-weight:900;
  color: var(--accent3);
}
.ctaRow td{ border-bottom:0; }

.pricingCards{
  display:none; /* shown on small screens */
  margin-top:18px;
  grid-template-columns: 1fr;
  gap:14px;
}
.pCard{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding:18px;
  box-shadow:0 14px 42px rgba(0,0,0,.20);
}
.pTop{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:12px;
  margin-bottom:10px;
}
.pTitle{ font-weight:900; font-size:1.05rem; }
.pPrice{ font-weight:900; color:var(--accent2); }

/* Boosters */
.boosterGrid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:16px;
  margin-top:18px;
}
.boosterCard{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding:18px;
  box-shadow:0 14px 42px rgba(0,0,0,.20);
  cursor:pointer;
  transition: transform .12s ease, background .12s ease;
}
.boosterCard:hover{
  transform: translateY(-2px);
  background:rgba(255,255,255,.05);
}
.boosterIcon{
  width:46px;height:46px;
  border-radius:18px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  font-size:1.3rem;
  margin-bottom:10px;
}
.boosterHint{
  margin-top:12px;
  color:rgba(255,255,255,.38);
  font-weight:800;
  font-size:.85rem;
}

/* Contact */
.contactGrid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
  align-items:start;
  margin-top:16px;
}

.contactGrid select option {
    background: rgb(26 27 30);
}
.form{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
}
.row2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.field{ margin-bottom:12px; }
label{
  display:block;
  font-weight:900;
  margin-bottom:8px;
}
input, select, textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px 12px;
  background:rgba(255,255,255,.03);
  color:var(--text);
  outline:none;
  font-weight:600;
}
textarea{ resize:vertical; min-height:120px; }
input::placeholder, textarea::placeholder{ color:rgba(244,246,255,.40); }
.help{ margin-top:6px; }

.fieldset{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px 12px;
  margin:12px 0;
}
legend{ font-weight:900; padding:0 6px; color:var(--text); }
.checks{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  margin-top:8px;
}
.check{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-weight:700;
}
.check input{ width:18px; height:18px; }

.formActions{ display:grid; gap:10px; margin-top:10px; }
.formAlert{
  margin-top:12px;
  padding:12px;
  border-radius:16px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  color:var(--muted);
  display:none;
}
.formAlert.isOk{
  display:block;
  border-color:rgba(82,255,166,.25);
  background:rgba(82,255,166,.06);
  color:rgba(210,255,232,.92);
}
.formAlert.isErr{
  display:block;
  border-color:rgba(255,106,26,.30);
  background:rgba(255,106,26,.10);
  color:rgba(255,232,220,.92);
}

.contactAside{
  display:grid;
  gap:14px;
}
.asideCard{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding:18px;
  box-shadow:0 14px 42px rgba(0,0,0,.20);
}
.asideTitle{ font-weight:900; margin-bottom:10px; }
.asideBtns{ display:grid; gap:10px; margin-top:12px; }
.note{ margin-top:10px; }
code{
  background:rgba(255,255,255,.06);
  padding:2px 6px;
  border-radius:10px;
  border:1px solid var(--line);
}

/* ===== Overlay Réalisations (Modal) ===== */
.overlay{
  position:fixed;
  inset:0;
  display:none;
  z-index:2000;
}


.overlay.isOpen{ display:block; }

.overlayBackdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
}

.overlayPanel{
  position:relative;
  width:min(980px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  margin: 14px auto;
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(16,18,23,.92);
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.overlayTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 14px;
  border-bottom:1px solid rgba(255,255,255,.10);
}

.overlayTitle{
  font-weight:900;
  letter-spacing:-.01em;
}

.overlayClose{
  width:40px;
  height:40px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size:18px;
  cursor:pointer;
}
.overlayClose:hover{ background: rgba(255,255,255,.10); }

.overlayBody{
  padding:14px;
  overflow:auto;
}

/* Image responsive (scroll si très grande) */
.overlayBody img{
  width:100%;
  height:auto;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  display:block;
}



/* Bonus: empêche le scroll du body quand modal ouvert */
body.noScroll{ overflow:hidden; }


/* Footer */
.footer{
  border-top:1px solid var(--line);
  padding:44px 0 22px;
  background:rgba(255,255,255,.02);
}
.footerGrid{
  display:grid;
  grid-template-columns: 1fr 1.4fr;
  gap:18px;
}
.footerCols{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.footerTitle{ font-weight:900; margin-bottom:10px; }
.footerCol a{
  display:block;
  margin:8px 0;
  color:var(--muted);
  font-weight:700;
}
.footerCol a:hover{ color:var(--text); text-decoration:underline; }
.footerBottom{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid var(--line);
}

/* Responsive */
@media (max-width: 1100px){
  .serviceGrid{ grid-template-columns: 1fr 1fr; }
  .boosterGrid{ grid-template-columns: 1fr 1fr; }
  .workGrid{ grid-template-columns: 1fr 1fr; }
  .testiGrid{ grid-template-columns: 1fr; }
}

@media (max-width: 900px){
  .heroGrid{ grid-template-columns: 1fr; }
  .heroCard{ min-height: 380px; }
  .heroVisual{ height: 380px; }
  .trustRow{ grid-template-columns: 1fr; }
  .aboutGrid{ grid-template-columns: 1fr; }
  .contactGrid{ grid-template-columns: 1fr; }
  .footerGrid{ grid-template-columns: 1fr; }
  .mobileMenu.isOpen{ display:block; }
  .menu{ display:none; }
  .burger{ display:inline-block; }
}

@media (max-width: 760px){
  .menu{ display:none; }
  .burger{ display:inline-block; }
  .hideSm{ display:none; }

  .mobileMenu.isOpen{ display:block; }

  .serviceGrid{ grid-template-columns: 1fr; }
  .workGrid{ grid-template-columns: 1fr; }
  .boosterGrid{ grid-template-columns: 1fr; }

  .row2{ grid-template-columns: 1fr; }
  .checks{ grid-template-columns: 1fr; }

  .pricingCards{ display:grid; }
}
