@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@500;650;760;850;900&family=Fraunces:opsz,wght@9..144,650;9..144,800&display=swap");

:root {
  --ink: #07111d;
  --ink-2: #102235;
  --paper: #fffaf0;
  --muted: rgba(255, 250, 240, .74);
  --muted-dark: #526172;
  --line: rgba(255, 255, 255, .16);
  --dark-line: rgba(7, 17, 29, .13);
  --gold: #ffd166;
  --blue: #59c7ff;
  --green: #4ade80;
  --orange: #ff9d4d;
  --violet: #a78bfa;
  --shadow: 0 32px 90px rgba(2, 8, 18, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  font-family: "Archivo", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(89, 199, 255, .22), transparent 30rem),
    radial-gradient(circle at 92% 3%, rgba(255, 209, 102, .18), transparent 25rem),
    radial-gradient(circle at 72% 92%, rgba(74, 222, 128, .13), transparent 32rem),
    linear-gradient(135deg, rgba(255,255,255,.035) 25%, transparent 25%) 0 0 / 46px 46px,
    linear-gradient(180deg, #06101d 0%, #0a1422 48%, #101827 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 49.7%, rgba(255,255,255,.045) 49.9% 50.1%, transparent 50.3%),
    linear-gradient(180deg, transparent 0 49.7%, rgba(255,255,255,.035) 49.9% 50.1%, transparent 50.3%);
  background-size: 160px 160px;
  mask-image: linear-gradient(180deg, #000, transparent 80%);
}

a { color: inherit; }
img { max-width: 100%; display: block; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 12px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 17, 29, .78);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), var(--blue));
  font-weight: 950;
  box-shadow: 0 12px 32px rgba(89,199,255,.20);
}
.brand strong, .brand small { display: block; }
.brand strong { font-weight: 900; letter-spacing: -.03em; }
.brand small { color: var(--muted); font-size: .74rem; font-weight: 650; }
nav { display: flex; align-items: center; gap: 4px; }
nav a { padding: 10px 12px; border-radius: 999px; color: rgba(255,250,240,.78); text-decoration: none; font-size: .86rem; font-weight: 800; }
nav a:hover, nav a.active { color: var(--paper); background: rgba(255,255,255,.08); }
.top-call { padding: 12px 15px; border-radius: 999px; color: var(--ink); background: linear-gradient(135deg, var(--gold), #fff2a8); text-decoration: none; font-weight: 900; }

.hero, .panel, .light-section, .cta, .feature-card, .service-card, .contact-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
  gap: 28px;
  margin-top: 22px;
  padding: clamp(34px, 5vw, 64px);
  border-radius: 42px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.11), rgba(255,255,255,.045)),
    radial-gradient(circle at 88% 16%, rgba(89,199,255,.18), transparent 28rem);
}
.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -22%;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 0 0 56px rgba(255,255,255,.025), 0 0 0 116px rgba(255,255,255,.018);
}
.hero > * { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: .76rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; }
h1, .display { font-family: "Fraunces", Georgia, serif; font-weight: 800; letter-spacing: -.055em; }
h1 { max-width: 850px; font-size: clamp(3.25rem, 6vw, 6rem); line-height: .9; }
h2 { font-size: clamp(2rem, 3.5vw, 3.6rem); line-height: .98; letter-spacing: -.055em; }
h3 { font-size: 1.15rem; letter-spacing: -.035em; }
.lead { max-width: 760px; margin: 20px 0 0; color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.22rem); line-height: 1.65; font-weight: 650; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 20px; border-radius: 999px; text-decoration: none; font-weight: 900; transition: transform .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { color: var(--ink); background: linear-gradient(135deg, var(--gold), #fff1a6); box-shadow: 0 18px 44px rgba(255,209,102,.22); }
.btn.secondary { border: 1px solid rgba(255,255,255,.20); background: rgba(255,255,255,.07); }
.quick-panel {
  align-self: end;
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 28px;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(14px);
}
.quick-panel a { display: flex; justify-content: space-between; gap: 10px; padding: 14px 15px; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; text-decoration: none; background: rgba(255,255,255,.055); font-weight: 850; }
.quick-panel a span { color: var(--gold); }

.activity-grid, .service-grid, .split-grid, .cards-grid { display: grid; gap: 18px; }
.activity-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; }
.dual-activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.activity-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 34px;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.045)),
    var(--activity-image),
    #101827;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  isolation: isolate;
  transition: transform .22s ease, border-color .22s ease;
}
.activity-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,10,18,.18), rgba(5,10,18,.78) 72%, rgba(5,10,18,.92)); }
.activity-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.35); }
.activity-card .num { color: var(--gold); font-size: .75rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.activity-card h2 { margin-top: 145px; font-family: "Fraunces", Georgia, serif; }
.activity-card p { margin: 14px 0 0; color: rgba(255,250,240,.80); line-height: 1.55; font-weight: 650; }
.activity-card ul, .service-card ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.activity-card li, .service-card li { padding: 8px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,255,255,.07); color: rgba(255,250,240,.78); font-size: .75rem; font-weight: 800; }
.vtc-card { --activity-image: url("https://images.pexels.com/photos/170811/pexels-photo-170811.jpeg?auto=compress&cs=tinysrgb&w=1400"); }
.elec-card { --activity-image: url("https://images.pexels.com/photos/257736/pexels-photo-257736.jpeg?auto=compress&cs=tinysrgb&w=1400"); }
.it-card { --activity-image: url("https://images.pexels.com/photos/1181354/pexels-photo-1181354.jpeg?auto=compress&cs=tinysrgb&w=1400"); }

.light-section {
  margin-top: 22px;
  padding: clamp(28px, 4.4vw, 54px);
  border-color: rgba(7,17,29,.12);
  border-radius: 36px;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 10%, rgba(89,199,255,.16), transparent 24rem),
    linear-gradient(135deg, rgba(255,250,240,.98), rgba(242,239,229,.94));
}
.section-head { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 24px; }
.section-head p { max-width: 500px; margin: 0; color: var(--muted-dark); line-height: 1.55; font-weight: 650; }
.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-card {
  min-height: 330px;
  padding: 22px;
  border-color: var(--card-border, rgba(7,17,29,.13));
  border-radius: 28px;
  color: var(--ink);
  background:
    linear-gradient(120deg, var(--card-accent, rgba(89,199,255,.10)), transparent 44%),
    linear-gradient(145deg, var(--card-start, #fffefa), var(--card-end, #f0efe8));
  box-shadow: 0 18px 46px rgba(4, 13, 22, .10);
}
.service-card h3 { font-size: 1.36rem; }
.service-card p { margin: 13px 0 0; color: #46566a; line-height: 1.55; font-weight: 650; }
.service-card li { color: #334155; border-color: var(--chip-border, rgba(7,17,29,.12)); background: var(--chip-bg, rgba(7,17,29,.04)); }
.blue { --card-accent: rgba(89,199,255,.16); --card-border: rgba(89,199,255,.28); --chip-bg: rgba(89,199,255,.10); --chip-border: rgba(89,199,255,.18); }
.green { --card-accent: rgba(74,222,128,.14); --card-border: rgba(74,222,128,.25); --chip-bg: rgba(74,222,128,.10); --chip-border: rgba(74,222,128,.18); }
.gold { --card-accent: rgba(255,209,102,.17); --card-border: rgba(255,157,77,.24); --chip-bg: rgba(255,209,102,.13); --chip-border: rgba(255,157,77,.19); }
.violet { --card-accent: rgba(167,139,250,.15); --card-border: rgba(167,139,250,.25); --chip-bg: rgba(167,139,250,.10); --chip-border: rgba(167,139,250,.18); }

.split-grid { grid-template-columns: 1fr 1fr; margin-top: 22px; }
.panel, .contact-card {
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: 34px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}
.panel p { color: var(--muted); line-height: 1.65; font-weight: 650; }
.check-list { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.check-list li { padding: 13px 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 17px; background: rgba(255,255,255,.055); color: rgba(255,250,240,.82); font-weight: 750; }
.contact { display: grid; grid-template-columns: 1fr .82fr; gap: 18px; margin: 22px 0 34px; }
.contact-card h2 { font-family: "Fraunces", Georgia, serif; }
.contact-card p { color: var(--muted); line-height: 1.65; font-weight: 650; }
.contact-actions { display: grid; gap: 12px; }
.contact-actions a, .route-link { padding: 15px 16px; border-radius: 18px; text-decoration: none; font-weight: 900; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.13); }
.contact-actions a:first-child { color: var(--ink); background: linear-gradient(135deg, var(--gold), #fff1a6); }
.map { overflow: hidden; margin-top: 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 22px; }
.map iframe { display: block; width: 100%; height: 230px; border: 0; filter: saturate(.88) contrast(1.03); }
footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px 0 38px; color: rgba(255,250,240,.64); font-weight: 750; }

.breadcrumb { margin: 22px 0 0; color: rgba(255,250,240,.68); font-weight: 750; }
.breadcrumb a { text-decoration: none; color: var(--gold); }
.hero.compact { grid-template-columns: 1fr; }
.hero.compact h1 { max-width: 980px; }
.subnav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.subnav a { padding: 10px 12px; border-radius: 999px; text-decoration: none; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13); font-weight: 850; }

/* Premium electrical pages */
.elec-hero { min-height: 600px; grid-template-columns: minmax(0, 1.15fr) minmax(290px, .62fr); align-items: end; background: linear-gradient(90deg, rgba(5,15,28,.98) 0%, rgba(5,15,28,.87) 43%, rgba(5,15,28,.22) 77%), url("/assets/electricite/renovation-tableau-noril.jpg") center / cover; }
.elec-hero::after { opacity: .55; }
.hero-copy { max-width: 760px; }
.hero-facts { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 5px; align-self: center; padding: 26px; border: 1px solid rgba(255,255,255,.16); border-radius: 28px; background: rgba(4,14,26,.64); backdrop-filter: blur(14px); }
.hero-facts span { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,209,102,.46); border-radius: 50%; color: var(--gold); font-size: .75rem; font-weight: 900; }
.hero-facts strong { align-self: end; font-size: 1rem; }
.hero-facts p { margin: 0 0 12px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.photo-strip, .image-callout { display: grid; grid-template-columns: minmax(280px, .95fr) minmax(0, 1.05fr); gap: 0; overflow: hidden; margin-top: 22px; border: 1px solid var(--line); border-radius: 36px; background: rgba(255,255,255,.075); box-shadow: var(--shadow); }
.photo-strip img, .image-callout img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; }
.photo-strip > div, .image-callout > div { align-self: center; padding: clamp(30px, 5vw, 62px); }
.photo-strip h2, .image-callout h2 { font-family: "Fraunces", Georgia, serif; }
.photo-strip p:not(.eyebrow), .image-callout p:not(.eyebrow) { color: var(--muted); line-height: 1.65; font-weight: 650; }
.service-grid-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.service-grid-five .service-card { min-height: 340px; }
.service-index { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 18px; border-radius: 12px; color: var(--ink); background: var(--card-accent); font-size: .75rem; font-weight: 950; }
.orange { --card-accent: rgba(255,157,77,.18); --card-border: rgba(255,157,77,.31); --chip-bg: rgba(255,157,77,.10); --chip-border: rgba(255,157,77,.18); }
.text-link { display: inline-flex; margin-top: 21px; color: inherit; font-size: .9rem; font-weight: 900; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.project-links { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.project-link { position: relative; isolation: isolate; display: grid; min-height: 390px; overflow: hidden; border: 1px solid var(--line); border-radius: 34px; text-decoration: none; box-shadow: var(--shadow); }
.project-link::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(3,10,18,.06), rgba(3,10,18,.9)); }
.project-link img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-link span { align-self: end; padding: 30px; }
.project-link small, .project-link strong, .project-link em { display: block; }
.project-link small { margin-bottom: 10px; color: var(--gold); font-size: .76rem; font-style: normal; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.project-link strong { max-width: 430px; font-family: "Fraunces", Georgia, serif; font-size: clamp(1.75rem, 3vw, 2.7rem); letter-spacing: -.045em; line-height: 1; }
.project-link em { margin-top: 17px; color: rgba(255,250,240,.86); font-size: .9rem; font-style: normal; font-weight: 850; }
.visual-hero { min-height: 570px; display: flex; align-items: end; background-size: cover; background-position: center; }
.visual-hero .hero-copy { position: relative; z-index: 1; }
.visual-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,15,28,.95), rgba(5,15,28,.69) 46%, rgba(5,15,28,.10)); }
.visual-hero::after { display: none; }
.domotic-hero { background-image: url("/assets/electricite/domotique-maison-noril.jpg"); }
.camera-hero { background-image: url("/assets/electricite/camera-surveillance-noril.jpg"); }
.image-callout { margin-bottom: 22px; }
.faq-section { margin-top: 22px; padding: clamp(30px, 5vw, 56px); border: 1px solid var(--line); border-radius: 36px; background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.035)); box-shadow: var(--shadow); }
.faq-section h2 { max-width: 700px; font-family: "Fraunces", Georgia, serif; }
.faq-section details { margin-top: 14px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.13); border-radius: 17px; background: rgba(255,255,255,.055); }
.faq-section summary { cursor: pointer; font-weight: 850; }
.faq-section details p { max-width: 790px; margin: 14px 0 0; color: var(--muted); line-height: 1.55; }

@media (max-width: 980px) {
  .hero, .activity-grid, .service-grid, .service-grid-five, .split-grid, .contact, .project-links { grid-template-columns: 1fr; }
  .elec-hero { min-height: auto; }
  .photo-strip, .image-callout { grid-template-columns: 1fr; }
  .photo-strip img, .image-callout img { min-height: 260px; max-height: 360px; }
  .quick-panel { align-self: auto; }
  nav { display: none; }
  .activity-card { min-height: 360px; }
  .activity-card h2 { margin-top: 110px; }
}
@media (max-width: 560px) {
  .shell, .topbar { width: min(100% - 20px, 1180px); }
  .topbar { border-radius: 24px; align-items: flex-start; }
  .brand small { display: none; }
  .top-call { display: none; }
  .hero, .light-section, .panel, .contact-card { border-radius: 28px; }
  .photo-strip, .image-callout, .project-link, .faq-section { border-radius: 28px; }
  .elec-hero, .visual-hero { min-height: 560px; padding: 30px; background-position: 64% center; }
  .hero-facts { display: none; }
  .project-link { min-height: 310px; }
  h1 { font-size: clamp(2.7rem, 14vw, 4.3rem); }
  h2 { font-size: clamp(1.9rem, 10vw, 3rem); }
  .section-head { display: block; }
  .service-card { min-height: auto; }
  footer { flex-direction: column; }
}
