:root {
  --bg: #0f1411;
  --card: #1a201c;
  --muted: #c8cfc9;
  --text: #f3f6f4;
  --accent: #1bff4e;
  --accent-soft: rgba(27, 255, 78, 0.07);
  --accent2: #3ad7ff;
  --accent2-soft: rgba(58, 215, 255, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.45), 0 0 25px rgba(27, 255, 78, 0.06);
  --band-a-from: rgba(90, 118, 106, 0.9);
  --band-a-to: rgba(66, 92, 82, 0.9);
  --band-b-from: rgba(236, 246, 241, 0.96);
  --band-b-to: rgba(223, 240, 233, 0.95);
  --header-bg: rgba(8, 11, 10, 0.78);
  --maxw: 1180px;
  font-family: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, rgba(27, 255, 78, 0.05), transparent 30%),
              radial-gradient(circle at 80% 10%, rgba(27, 255, 78, 0.04), transparent 32%),
              radial-gradient(circle at 70% 80%, rgba(58, 215, 255, 0.06), transparent 35%),
              var(--bg);
}
a { color: inherit; text-decoration: none; }
header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--text);
  text-decoration: none;
}
.brand img {
  height: 42px;
  width: 42px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(27, 255, 78, 0.6));
}
nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
nav a {
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px 0 999px 999px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  color: var(--text);
}
nav a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 0 18px rgba(27, 255, 78, 0.25);
}
.btn {
  background: linear-gradient(135deg, var(--accent), #5cff9c);
  color: #021003;
  padding: 11px 16px;
  border-radius: 12px 0 12px 12px;
  font-weight: 700;
  box-shadow: 0 20px 45px rgba(27, 255, 78, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 32px 60px rgba(27, 255, 78, 0.45);
}
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 24px;
  scroll-margin-top: 110px;
  position: relative;
  z-index: 1;
  isolation: isolate;
  color: var(--text);
}
@supports (content-visibility: auto) {
  /* Skip painting offscreen sections to make first render faster */
  .section:not(.hero) {
    content-visibility: auto;
    contain-intrinsic-size: 900px;
  }
}
.section:before {
  content: '';
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  opacity: 0;
  pointer-events: none;
}
.section.band-a {
  --text: #f3f6f4;
  --muted: #c8d4cc;
  --card: #1f2723;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.26);
}
.section.band-a:before {
  background:
    radial-gradient(circle at 18% 15%, rgba(58, 215, 255, 0.16), transparent 48%),
    radial-gradient(circle at 78% 20%, rgba(27, 255, 78, 0.12), transparent 55%),
    linear-gradient(120deg, var(--band-a-from), var(--band-a-to));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 1;
}
.section.band-b {
  --card: #ffffff;
  --text: #0f1a11;
  --muted: #4a5a52;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
  --accent-soft: rgba(27, 255, 78, 0.12);
  --accent2-soft: rgba(58, 215, 255, 0.2);
}
.section.band-b:before {
  background:
    linear-gradient(120deg, rgba(245, 250, 247, 0.96), rgba(234, 244, 238, 0.95)),
    radial-gradient(circle at 20% 20%, rgba(58, 215, 255, 0.12), transparent 55%),
    linear-gradient(145deg, var(--accent2-soft), transparent 60%);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: inset 0 1px 0 rgba(27, 255, 78, 0.08);
  opacity: 1;
}
.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 32px;
  padding-top: 25px;
  padding-bottom: 32px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, rgba(70, 96, 86, 0.92), rgba(70, 96, 86, 0.92));
  transform: translate3d(0, 0, 0);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px 0 999px 999px;
  border: 1px solid var(--border);
  background: rgba(27, 255, 78, 0.06);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 48px);
  margin: 16px 0 12px;
  line-height: 1.1;
}
.hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}
.meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 15px;
}
.social-row {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 9px 10px;
  border-radius: 12px 0 12px 12px;
  border: 1px solid rgba(27, 255, 78, 0.35);
  background: linear-gradient(135deg, rgba(27, 255, 78, 0.18), rgba(58, 215, 255, 0.16));
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(27, 255, 78, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.social-btn img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.social-btn:hover { transform: translateY(-1px); box-shadow: 0 20px 38px rgba(27, 255, 78, 0.32); }
.badge {
  border: 1px solid var(--border);
  border-radius: 12px 0 12px 12px;
  padding: 9px 12px;
  background: var(--card);
}
.hero-visual {
  position: relative;
  border-radius: 18px 0 18px 18px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-visual::after {
  content: '';
  position: absolute;
  inset: -80px -120px auto auto;
  height: 220px;
  width: 220px;
  background: none;
  filter: blur(6px);
}
.hero-visual img {
  width: 100%;
  max-width: 360px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 18px rgba(27, 255, 78, 0.5));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}
h2 {
  font-size: 28px;
  margin: 0 0 14px;
}
.subhead {
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.6;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.card {
  padding: 18px;
  border-radius: 16px 0 16px 16px;
  background:
    linear-gradient(180deg, rgba(58, 215, 255, 0.02), transparent 35%),
    var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  color: var(--text);
}
.about-photo {
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 14px 0 14px 14px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 1;
}
.about-photo::before {
  content: '';
  position: absolute;
  inset: -12px;
  background: url('media/img/apropos.jpg') center/cover no-repeat;
  filter: blur(14px) brightness(0.65);
  opacity: 0.55;
  z-index: 0;
}
.about-photo::after {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 70%);
  filter: blur(12px);
  opacity: 0.75;
  z-index: 0;
}
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--d, 0s);
}
.js .reveal-left { transform: translateX(-26px); }
.js .reveal-right { transform: translateX(26px); }
.js .reveal-up { transform: translateY(26px); }
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}
.card::before {
  content: '';
  position: absolute;
  inset: -40% auto auto -30%;
  height: 120%;
  width: 60%;
  background:
    radial-gradient(circle, rgba(27, 255, 78, 0.08), transparent 55%),
    radial-gradient(circle, var(--accent2-soft), transparent 60%);
  transform: rotate(-12deg);
  pointer-events: none;
}
.card h3 {
  margin: 0 0 10px;
  font-size: 19px;
}
.card p, .card ul {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 15px;
}
.card ul { padding-left: 18px; }
.about-tablet-header { display: none; }
.subhead-tablet { display: none; }
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.about-layout { align-items: center; }
.about-text { text-align: left; }
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  padding: 9px 12px;
  border-radius: 12px 0 12px 12px;
  border: 1px solid var(--border);
  background: rgba(27, 255, 78, 0.05);
  color: var(--text);
  font-weight: 600;
}
.chip:nth-child(2n) {
  background: linear-gradient(135deg, var(--accent2), #8ae6ff);
  color: #021018;
  border-color: transparent;
  box-shadow: 0 14px 26px rgba(58, 215, 255, 0.22);
}
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.contact a {
  color: var(--text);
}
.contact .btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.gallery-section .gallery-header {
  text-align: center;
  margin-bottom: 6px;
}
.gallery-slider {
  position: relative;
  border-radius: 18px 0 18px 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--card);
  isolation: isolate;
}
.gallery-track {
  position: relative;
  width: 100%;
  height: clamp(280px, 42vw, 540px);
  background:
    radial-gradient(circle at 20% 20%, rgba(27, 255, 78, 0.08), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(58, 215, 255, 0.08), transparent 50%),
    rgba(10, 14, 12, 0.9);
}
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.slide.is-active {
  opacity: 1;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #0a100d;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 14, 12, 0.75);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px 0 12px 12px;
  padding: 10px 12px;
  cursor: pointer;
  z-index: 2;
  font-size: 22px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}
.gallery-nav:hover { color: var(--accent); border-color: rgba(27, 255, 78, 0.6); }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 8px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  z-index: 2;
  max-width: calc(100% - 36px);
}
.gallery-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0;
}
.gallery-dots .dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
}
.floating-contact {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 300;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 16px 0 16px 16px;
  background: rgba(12, 16, 14, 0.9);
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.floating-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
}
.floating-contact img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(2, 16, 3, 0.2));
}
.floating-contact span {
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.map-wrap {
  grid-column: 1 / -1;
  border: 1px solid var(--border);
  border-radius: 16px 0 16px 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  width: 100%;
}
.map-frame {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}
.map-section {
  display: grid;
  gap: 16px;
  align-items: center;
}
.map-section .map-intro {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.map-section .hero-cta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}
.map-section .hero-cta .btn {
  justify-content: center;
  text-align: center;
}
.map-section .map-wrap {
  grid-column: 1 / -1;
  height: 100%;
  width: 100%;
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.mobile-fab {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 220;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--accent), #5cff9c);
  color: #021003;
  padding: 10px 12px;
  border-radius: 12px 0 12px 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 22px 40px rgba(27, 255, 78, 0.35);
  cursor: pointer;
}
.mobile-panel {
  position: fixed;
  top: 60px;
  right: 10px;
  width: 180px;
  background: rgba(10, 14, 12, 0.95);
  border: 1px solid var(--border);
  border-radius: 14px 0 14px 14px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 215;
  pointer-events: auto;
}
.mobile-panel a {
  padding: 10px 12px;
  border-radius: 12px 0 12px 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-weight: 600;
}
.mobile-panel a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
footer {
  max-width: var(--maxw);
  margin: 0 auto 50px;
  padding: 0 24px 80px;
  color: var(--muted);
  font-size: 14px;
  display: grid;
  justify-items: start;
  gap: 6px;
  text-align: left;
}
.footer-line a {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-line a:hover { color: var(--accent); }
.footer-line { line-height: 1.5; }
.consent-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(640px, calc(100% - 36px));
  display: none;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px 0 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(140deg, rgba(10, 14, 12, 0.94), rgba(18, 26, 21, 0.92));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  color: var(--text);
  z-index: 520;
  align-items: center;
  isolation: isolate;
}
.consent-banner.is-visible { display: grid; }
.consent-copy { display: grid; gap: 6px; }
.consent-title {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--accent);
}
.consent-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
  font-size: 14px;
}
.consent-link {
  color: var(--accent2);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.consent-link:hover { color: var(--accent); }
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 12px 0 12px 12px;
  border: 1px solid var(--border);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 18px 36px rgba(27, 255, 78, 0.25);
}
@media (max-width: 720px) {
  header { position: relative; }
  nav { display: none; }
  .hero {
    padding-top: 5px;
    padding-bottom: 32px;
    position: relative;
    top: auto;
    z-index: 1;
  }
  .hero-visual { order: 2; }
  .hero-visual img { max-width: 220px; }
  .hero .reveal { text-align: center; }
  .hero-cta { justify-content: center; }
  .mobile-menu { display: block; }
  .mobile-fab, .mobile-panel { pointer-events: auto; }
  .map-frame { height: 300px; }
  .map-section .hero-cta { grid-template-columns: 1fr; }
  .gallery-dots { display: none; }
  .floating-contact {
    right: 12px;
    bottom: 12px;
    padding: 10px 11px;
    gap: 6px;
  }
  .floating-contact img {
    width: 32px;
    height: 32px;
  }
  .floating-contact span {
    font-size: 13px;
  }
  .consent-banner {
    width: min(640px, calc(100% - 24px));
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 94px;
    grid-template-columns: 1fr;
  }
  footer {
    margin: 0 auto 40px;
    padding-bottom: 120px;
  }
}
@media (max-width: 1100px) and (min-width: 721px) {
  #services .grid,
  #travaux .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-text { text-align: center; }
  .about-layout { grid-template-columns: 1fr 1fr; }
  .gallery-dots { display: none; }
  .about-tablet-header {
    display: block;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 22px;
  }
  .subhead-tablet { display: block; }
  .about-text h2,
  .about-text .subhead { display: none; }
  .floating-contact {
    right: 14px;
    bottom: 14px;
  }
  .consent-banner { max-width: 520px; }
}
@media (min-width: 1101px) {
  /* Ensure the tablet intro block stays hidden on desktop to avoid duplicate titles */
  .about-tablet-header { display: none !important; }
  .about-layout { grid-template-columns: 1.1fr 0.9fr; }
}
@media (max-width: 720px) {
  .about-text { text-align: center; }
}
