/* =========================================================
   Électricité Natola — Design System
   ========================================================= */

:root {
  --bg-main: #07110d;
  --bg-2: #0c181f;
  --bg-3: #102018;
  --surface: rgba(255, 255, 255, 0.075);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.14);
  --text-main: #f7fff9;
  --text-muted: #a9b8b0;
  --green-electric: #38ff8b;
  --green-deep: #0f7a4f;
  --blue-tech: #1b6fff;
  --yellow-energy: #ffd84d;
  --red-alert: #ff4f4f;
  --white: #ffffff;
  --black: #020403;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1180px;
  --font-main: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-main);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-main);
  color: var(--text-main);
  background:
    radial-gradient(circle at 8% 10%, rgba(56, 255, 139, 0.18), transparent 30rem),
    radial-gradient(circle at 88% 14%, rgba(27, 111, 255, 0.20), transparent 28rem),
    radial-gradient(circle at 50% 96%, rgba(255, 216, 77, 0.12), transparent 28rem),
    linear-gradient(135deg, var(--bg-main), var(--bg-2) 48%, #06100c);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 75%);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(56,255,139,.06), transparent);
  transform: translateX(-100%);
  animation: scanner 9s linear infinite;
}

@keyframes scanner {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

p {
  color: var(--text-muted);
  line-height: 1.72;
  font-size: 1rem;
}

strong {
  color: var(--text-main);
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 92px 0;
}

.section--tight {
  padding: 58px 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-electric);
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--green-electric), var(--blue-tech));
  border-radius: 99px;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.8rem);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.gradient-text {
  background: linear-gradient(100deg, var(--green-electric), var(--blue-tech), var(--yellow-energy));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-title {
  padding: 156px 0 70px;
}

.page-title p {
  max-width: 720px;
  font-size: 1.1rem;
}

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #031108;
  background: linear-gradient(135deg, var(--green-electric), #98ffbf);
  box-shadow: 0 18px 45px rgba(56, 255, 139, 0.22);
}

.btn-secondary {
  color: var(--text-main);
  background: rgba(255,255,255,.075);
  border-color: var(--border);
  backdrop-filter: blur(14px);
}

.btn-warning {
  color: #211700;
  background: linear-gradient(135deg, var(--yellow-energy), #fff2a1);
}

.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, var(--red-alert), #ff8a8a);
}

/* Header */

.site-header {
  position: fixed;
  inset: 18px 0 auto;
  z-index: 100;
  pointer-events: none;
}

.nav-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(7, 17, 13, 0.78);
  backdrop-filter: blur(24px);
  box-shadow: 0 20px 65px rgba(0,0,0,.22);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark {
  --logo-size: 74px;
  --logo-radius: 20px;

  position: relative;
  display: grid;
  place-items: center;

  width: var(--logo-size);
  height: var(--logo-size);
  flex: 0 0 var(--logo-size);

  padding: 3px;
  border-radius: var(--logo-radius);

  background: linear-gradient(
    135deg,
    rgba(56, 255, 139, 0.95),
    rgba(27, 111, 255, 0.95)
  );

  box-shadow:
    0 0 14px rgba(56, 255, 139, 0.65),
    0 0 30px rgba(56, 255, 139, 0.38),
    0 0 44px rgba(27, 111, 255, 0.28);

  overflow: visible;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: calc(var(--logo-radius) + 8px);

  background: linear-gradient(
    135deg,
    rgba(56, 255, 139, 0.60),
    rgba(27, 111, 255, 0.50)
  );

  filter: blur(13px);
  opacity: 0.75;
  z-index: -1;
}

.brand-mark-logo {
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
}

.brand-mark-logo img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  border-radius: calc(var(--logo-radius) - 3px);

  transform: scale(1.08);

  filter:
    drop-shadow(0 0 5px rgba(56, 255, 139, 0.75))
    drop-shadow(0 0 9px rgba(27, 111, 255, 0.55));
}

.brand-text small {
  display: block;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu a {
  padding: 12px 14px;
  border-radius: 999px;
  color: rgba(247,255,249,.84);
  font-weight: 700;
  font-size: .94rem;
  transition: background .2s ease, color .2s ease;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  background: rgba(255,255,255,.09);
  color: var(--text-main);
}

.nav-cta {
  padding: 12px 17px !important;
  color: #031108 !important;
  background: var(--green-electric) !important;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 16px;
  background: rgba(255,255,255,.09);
  color: var(--text-main);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: currentColor;
}

/* Hero */

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 140px 0 70px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

.hero-copy p {
  max-width: 720px;
  font-size: 1.13rem;
}

.hero-actions {
  margin-top: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.stat-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(16px);
}

.stat-card b {
  display: block;
  font-size: 1.35rem;
  color: var(--text-main);
}

.stat-card span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: .9rem;
}

.hero-visual {
  position: relative;
  min-height: 590px;
}

.energy-orb {
  position: absolute;
  inset: 38px 0 auto auto;
  width: min(520px, 100%);
  aspect-ratio: 1;
  border-radius: 42% 58% 52% 48% / 48% 35% 65% 52%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.35), transparent 18%),
    radial-gradient(circle at 50% 50%, rgba(56,255,139,.75), transparent 42%),
    radial-gradient(circle at 65% 64%, rgba(27,111,255,.60), transparent 50%),
    linear-gradient(135deg, rgba(255,216,77,.32), rgba(56,255,139,.14));
  filter: saturate(1.3);
  box-shadow: 0 0 120px rgba(56,255,139,.16), inset 0 0 80px rgba(255,255,255,.06);
  animation: morph 11s ease-in-out infinite;
}

@keyframes morph {
  0%, 100% { border-radius: 42% 58% 52% 48% / 48% 35% 65% 52%; transform: rotate(0deg); }
  50% { border-radius: 58% 42% 44% 56% / 35% 60% 40% 65%; transform: rotate(4deg); }
}

.circuit-card {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.circuit-card.main {
  right: 58px;
  top: 116px;
  width: 370px;
  padding: 24px;
}

.circuit-card.small {
  left: 10px;
  bottom: 80px;
  width: 300px;
  padding: 20px;
}

.circuit-line {
  height: 9px;
  border-radius: 99px;
  margin: 13px 0;
  background: linear-gradient(90deg, var(--green-electric), var(--blue-tech), transparent);
  opacity: .86;
}

.service-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-main);
  background: rgba(0,0,0,.14);
  font-size: .84rem;
  font-weight: 800;
}

.floating-badge {
  position: absolute;
  right: 0;
  bottom: 42px;
  max-width: 270px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(56,255,139,.9), rgba(255,216,77,.9));
  color: #06110d;
  font-weight: 900;
  box-shadow: 0 28px 70px rgba(56,255,139,.2);
}

/* Cards / grids */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.065);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 58px rgba(0,0,0,.16);
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% -20%;
  height: 120px;
  background: radial-gradient(circle, rgba(56,255,139,.22), transparent 65%);
  opacity: 0;
  transition: opacity .2s ease;
}

.card:hover::after {
  opacity: 1;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  border-radius: 20px;
  background: rgba(56,255,139,.12);
  color: var(--green-electric);
  font-size: 1.6rem;
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  margin-bottom: 0;
}

.service-card {
  min-height: 290px;
}

.brand-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.brand-pill {
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.075);
  color: rgba(247,255,249,.9);
  font-weight: 900;
  font-size: .88rem;
}

.split {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 44px;
  align-items: center;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: start;
}

.timeline-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: #06110d;
  background: var(--green-electric);
  font-weight: 900;
}

.notice {
  padding: 22px;
  border: 1px solid rgba(255,216,77,.36);
  border-radius: var(--radius-lg);
  background: rgba(255,216,77,.09);
}

.notice strong {
  color: var(--yellow-energy);
}

/* Gallery */

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 28px 0 26px;
}

.filter-btn {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-main);
  background: rgba(255,255,255,.06);
  font-weight: 800;
  cursor: pointer;
}

.filter-btn.is-active {
  background: var(--green-electric);
  color: #06110d;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.065);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1.34;
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery-item:hover img {
  transform: scale(1.055);
}

.gallery-caption {
  padding: 18px;
}

.gallery-caption h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.gallery-caption p {
  margin: 0;
  font-size: .92rem;
}

/* Forms */

.form-shell {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 26px;
  align-items: start;
}

.form-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.075);
  backdrop-filter: blur(18px);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text-main);
  font-weight: 800;
  font-size: .9rem;
}

input, select, textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 16px;
  color: var(--text-main);
  background: rgba(0,0,0,.20);
  outline: none;
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--green-electric);
  box-shadow: 0 0 0 4px rgba(56,255,139,.12);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  grid-template-columns: none;
  gap: 10px;
  color: var(--text-muted);
  font-weight: 650;
}

.checkbox input {
  width: auto;
  min-height: auto;
  margin-top: 4px;
}

.form-message {
  min-height: 24px;
  color: var(--green-electric);
  font-weight: 800;
}

.honey {
  position: absolute;
  left: -9999px;
}

/* Booking */

.booking-widget {
  display: grid;
  gap: 18px;
}

.booking-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-weight: 800;
  font-size: .9rem;
}

.legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 7px;
}

.dot-free { background: var(--green-electric); }
.dot-busy { background: var(--red-alert); }
.dot-closed { background: red; }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 9px;
}

.day-card {
  min-height: 86px;
  padding: 11px;
  border: 1px solid red;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
}

.day-card span {
  display: block;
}

.day-card .weekday {
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.day-card .date {
  margin-top: 5px;
  font-size: 1.2rem;
  font-weight: 950;
}

.day-card.free {
  border-color: rgb(56, 255, 139);
}

.day-card.busy {
  opacity: .72;
  border-color: rgba(255,79,79,.42);
}

.day-card.closed {
  opacity: .45;
  cursor: not-allowed;
}

.day-card.is-selected {
  background: var(--green-electric);
  color: #06110d;
}

.day-card.is-selected .weekday {
  color: #06110d;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.slot-btn {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-main);
  background: rgba(255,255,255,.065);
  font-weight: 900;
  cursor: pointer;
}

.slot-btn.is-selected {
  color: #06110d;
  background: var(--green-electric);
}

/* Footer */

.site-footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 28px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .9rem;
}

/* Reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utilities */

.mt-1 { margin-top: 14px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.max-760 { max-width: 760px; }
.max-920 { max-width: 920px; }

/* =========================================================
   Mode clair automatique selon les réglages système
   ========================================================= */

:root {
  color-scheme: dark light;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-main: #f7faf7;
    --bg-2: #eef5f1;
    --bg-3: #e6f0ea;

    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --border: rgba(7, 17, 13, 0.13);

    --text-main: #07110d;
    --text-muted: #51635a;

    --white: #ffffff;
    --black: #020403;

    --shadow: 0 24px 90px rgba(7, 17, 13, 0.12);
  }

  html {
    background: var(--bg-main);
  }

  body {
    color: var(--text-main);
    background:
      radial-gradient(circle at 8% 10%, rgba(56, 255, 139, 0.16), transparent 30rem),
      radial-gradient(circle at 88% 14%, rgba(27, 111, 255, 0.13), transparent 28rem),
      radial-gradient(circle at 50% 96%, rgba(255, 216, 77, 0.16), transparent 28rem),
      linear-gradient(135deg, var(--bg-main), var(--bg-2) 48%, #ffffff);
  }

  body::before {
    background-image:
      linear-gradient(rgba(7,17,13,0.055) 1px, transparent 1px),
      linear-gradient(90deg, rgba(7,17,13,0.055) 1px, transparent 1px);
  }

  body::after {
    background: linear-gradient(90deg, transparent, rgba(56,255,139,.12), transparent);
  }

  .nav-shell {
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 20px 65px rgba(7,17,13,.12);
  }

  .nav-menu a {
    color: rgba(7,17,13,.78);
  }

  .nav-menu a:hover,
  .nav-menu a.is-active {
    background: rgba(7,17,13,.07);
    color: var(--text-main);
  }

  .menu-toggle {
    background: rgba(7,17,13,.08);
    color: var(--text-main);
  }

  .stat-card,
  .card,
  .gallery-item,
  .form-card,
  .day-card,
  .slot-btn,
  .circuit-card {
    background: rgba(255,255,255,.72);
    box-shadow: 0 18px 58px rgba(7,17,13,.10);
  }

  .btn-secondary,
  .filter-btn,
  .brand-pill {
    color: var(--text-main);
    background: rgba(255,255,255,.72);
    border-color: var(--border);
  }

  .brand-pill {
    color: rgba(7,17,13,.88);
  }

  .pill {
    color: var(--text-main);
    background: rgba(7,17,13,.06);
  }

  input,
  select,
  textarea {
    color: var(--text-main);
    background: rgba(255,255,255,.82);
    border-color: rgba(7,17,13,.16);
  }

  input::placeholder,
  textarea::placeholder {
    color: rgba(7,17,13,.45);
  }

  .site-footer {
    background: rgba(255,255,255,.58);
  }

  .notice {
    background: rgba(255,216,77,.18);
  }
}
