:root {
  --bg: #070815;
  --bg2: #0b1024;
  --text: rgba(255, 255, 255, .92);
  --muted: rgba(255, 255, 255, .66);

  --card: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .12);

  --accent: #9787b3;
  --accent2: #22d3ee;
  --accent3: #a3ff12;
  --danger: #ff4d6d;

  --shadow: 0 18px 60px rgba(0, 0, 0, .55);
  --shadow2: 0 10px 28px rgba(0, 0, 0, .35);

  --radius: 18px;
  --max: 1120px;
  --focus: 0 0 0 3px rgba(34, 211, 238, .28);

  --banner-h: 235px;
  --banner-h-920: 190px;
  --banner-h-550: 110px;

  --banner-pad: 8px;

  --nav-gap: 10px;
  --nav-pad: 10px;

  --nav-link-pad-y: 9px;
  --nav-link-pad-x: 12px;
  --nav-link-font: 900;

  --page-bg:
    radial-gradient(900px 520px at 14% 10%, rgba(124, 58, 237, .18), transparent 60%),
    radial-gradient(820px 460px at 88% 12%, rgba(34, 211, 238, .16), transparent 55%),
    radial-gradient(900px 650px at 55% 110%, rgba(163, 255, 18, .10), transparent 58%),
    linear-gradient(135deg, var(--bg), var(--bg), var(--bg));

  --footer-bg: #222529;
  --footer-text: #adb5bd;
  --footer-heading: #ffffff;
  --footer-link-hover: #ffffff;
  --footer-border: #3b3f44;
}

html[data-theme="light"] {
  --bg: #f6f7ff;
  --bg2: #eef1ff;

  --text: rgba(12, 14, 22, .92);
  --muted: rgba(12, 14, 22, .62);

  --card: rgba(255, 255, 255, .94);
  --border: rgba(12, 14, 22, .12);

  --shadow: 0 18px 60px rgba(12, 14, 22, .14);
  --shadow2: 0 12px 28px rgba(12, 14, 22, .10);

  --focus: 0 0 0 3px rgba(124, 58, 237, .18);

  --banner-h: 235px;
  --banner-h-920: 190px;
  --banner-h-550: 110px;

  --banner-pad: 8px;

  --nav-gap: 10px;
  --nav-pad: 10px;

  --nav-link-pad-y: 9px;
  --nav-link-pad-x: 12px;
  --nav-link-font: 900;

  --page-bg:
    radial-gradient(900px 520px at 14% 10%, rgba(124, 58, 237, .14), transparent 60%),
    radial-gradient(820px 460px at 88% 12%, rgba(34, 211, 238, .12), transparent 55%),
    radial-gradient(900px 650px at 55% 110%, rgba(163, 255, 18, .08), transparent 58%),
    linear-gradient(135deg, var(--bg), var(--bg), var(--bg));
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;
  background: transparent;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--page-bg);
  transform: translateZ(0);
  will-change: transform;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 14px;
}

h1,
h2,
h3 {
  margin: 0 0 10px;
  line-height: 1.12;
}

h1 {
  font-size: clamp(28px, 4vw, 50px);
  letter-spacing: -.035em;
}

h2 {
  font-size: clamp(20px, 3vw, 34px);
  letter-spacing: -.02em;
}

h3 {
  font-size: 18px;
  letter-spacing: -.01em;
}

.small {
  font-size: 12px;
}

.muted {
  color: var(--muted);
}

.lead {
  font-size: 16px;
  color: var(--muted);
  max-width: 72ch;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 56px 0;
}

.page-hero {
  padding: 46px 0 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  font-weight: 900;
  margin-bottom: 14px;
}

html[data-theme="light"] .badge {
  border: 1px solid rgba(12, 14, 22, .12);
  background: rgba(255, 255, 255, .78);
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, .08);
  margin: 14px 0;
}

html[data-theme="light"] .divider {
  background: rgba(12, 14, 22, .10);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pill {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  padding: 6px 10px;
  border-radius: 999px;
}

html[data-theme="light"] .pill {
  border: 1px solid rgba(12, 14, 22, .12);
  background: rgba(255, 255, 255, .78);
}

/* ======================
   HEADER / BANNIÈRE / NAV
   ====================== */

.header {
  position: relative;
  top: 10px;
  z-index: 50;
  background: transparent;
}

.header__inner {
  position: relative;
  padding: 0;
  height: var(--banner-h);
  display: flex;
  align-items: stretch;
}

.brand {
  display: block;
  width: 100%;
  height: var(--banner-h);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  user-select: none;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, .45),
    0 0 60px rgba(124, 58, 237, .25),
    0 0 40px rgba(34, 211, 238, .18);
}

html[data-theme="light"] .brand {
  border-color: rgba(12, 14, 22, .12);
  box-shadow:
    0 12px 28px rgba(12, 14, 22, .10),
    0 0 52px rgba(124, 58, 237, .14),
    0 0 36px rgba(34, 211, 238, .10);
}

.brand>* {
  position: relative;
  z-index: 1;
}

/* ======================
   BANNIÈRES CADRAGE IDENTIQUE
   ====================== */

.brand__banner {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.brand__banner--light {
  display: none;
  width: 103%;
    left: -19px;
    top: 2px;
}

.brand__banner--dark {
  display: block;
  width: 100%;
   
}

html[data-theme="light"] .brand__banner--light {
  display: block;
}

html[data-theme="light"] .brand__banner--dark {
  display: none;
}

.brand::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    repeating-linear-gradient(180deg,
      rgba(255, 255, 255, .045) 0px,
      rgba(255, 255, 255, .045) 1px,
      transparent 2px,
      transparent 6px),
    radial-gradient(600px 200px at 20% 10%, rgba(124, 58, 237, .35), transparent 60%),
    radial-gradient(500px 180px at 80% 30%, rgba(34, 211, 238, .25), transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .10) 45%, rgba(0, 0, 0, .65));
  animation: bannerGlow 4s ease-in-out infinite alternate;
  pointer-events: none;
  opacity: .99;
}

@keyframes bannerGlow {
  0% {
    background-position:
      0 0,
      0% 0%,
      100% 0%,
      0 0;
  }

  100% {
    background-position:
      0 20px,
      20% 10%,
      80% 30%,
      0 0;
  }
}

.nav {
  position: absolute;
  right: var(--banner-pad);
  bottom: var(--banner-pad);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
  padding: var(--nav-pad);
  border-radius: 18px;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(16px);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, .30),
    0 0 24px rgba(124, 58, 237, .10),
    0 0 18px rgba(34, 211, 238, .08);
}

html[data-theme="light"] .nav {
  background: rgba(221, 249, 246, 0.601);
  border: 1px solid rgba(12, 14, 22, .12);
  box-shadow: 0 14px 30px 0px rgb(2 3 5);
}

.nav__link {
  font-weight: var(--nav-link-font);
  color: rgb(243, 243, 244);
  padding: var(--nav-link-pad-y) var(--nav-link-pad-x);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, 0.081);
  transition: background .18s ease, color .18s ease, transform .12s ease, border-color .18s ease;
  white-space: nowrap;
}

html[data-theme="light"] .nav__link {
  color: rgba(0, 37, 160, 0.792);
  background: rgba(255, 255, 255, 0.98);
}

.nav__link:hover {
  color: #f5f2f2;
  background: rgba(255, 255, 255, .08);
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .18);
}

html[data-theme="light"] .nav__link:hover {
  color: rgba(0, 37, 160, 0.95);
  background: rgba(255, 255, 255, 1);
  border-color: rgba(12, 14, 22, .14);
}

.nav__link.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(124, 58, 237, .32), rgba(34, 211, 238, .22));
  border-color: rgba(255, 255, 255, .20);
}

html[data-theme="light"] .nav__link.is-active {
  color: rgba(0, 37, 160, 0.95);
  border-color: rgba(12, 14, 22, .14);
}

#themeBtn img {
  width: 20px;
  height: 20px;
  display: block;
}

.btn--ghost img {
  content: url("../assets/icon-theme-light.png");
}

html[data-theme="light"] .btn--ghost img {
  content: url("../assets/icon-theme-dark.png");
}

.btn {
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .94);
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 950;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .12s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  user-select: none;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus {
  outline: none;
  box-shadow: var(--focus);
}

html[data-theme="light"] .btn {
  border-color: rgba(12, 14, 22, .14);
  background: rgba(255, 255, 255, .82);
  color: rgba(12, 14, 22, .92);
}

html[data-theme="light"] .btn:hover {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 28px rgba(12, 14, 22, .12);
}

.btn--primary {
  border-color: rgba(163, 255, 18, .28);
  background:
    linear-gradient(135deg, rgba(124, 58, 237, .30), rgba(34, 211, 238, .20)),
    radial-gradient(140px 70px at 20% 0%, rgba(163, 255, 18, .14), transparent 60%);
}

html[data-theme="light"] .btn--primary {
  border-color: rgba(124, 58, 237, .22);
  background:
    linear-gradient(135deg, rgba(124, 58, 237, .24), rgba(34, 211, 238, .16)),
    radial-gradient(140px 70px at 20% 0%, rgba(163, 255, 18, .10), transparent 60%);
}

.btn--secondary {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
}

html[data-theme="light"] .btn--secondary {
  border-color: rgba(12, 14, 22, .14);
  background: rgba(255, 255, 255, .05);
}

.btn--ghost {
  background: transparent;
}

.btn--small {
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 950;
}

.link {
  color: var(--text);
  background: transparent;
  font-weight: 500;
  opacity: .92;
}

.link:hover {
  text-decoration: underline;
}

.burger {
  position: absolute;
  top: 66px;
  right: var(--banner-pad);
  z-index: 6;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(0, 0, 0, .28);
  backdrop-filter: blur(16px);
  cursor: pointer;
}

html[data-theme="light"] .burger {
  border-color: rgba(12, 14, 22, .12);
  background: rgba(255, 255, 255, .78);
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  border-radius: 2px;
  opacity: .92;
}

.burger img {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}

html[data-theme="light"] .burger img {
  content: url("../assets/menuBL.png");
}

.burger:focus {
  outline: none;
  box-shadow: var(--focus);
}

/* ======================
   CARTES / BLOCS
   ====================== */

.grid {
  display: grid;
  gap: 14px;
}

.grid--3 {
  grid-template-columns: repeat(2, 1fr);
}

.tile,
.project-card,
.service-card,
.sidecard,
.form {
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  padding: 16px;
  transition: transform .16s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.tile:hover,
.project-card:hover,
.service-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: var(--shadow2);
}

html[data-theme="light"] .tile,
html[data-theme="light"] .project-card,
html[data-theme="light"] .service-card,
html[data-theme="light"] .sidecard,
html[data-theme="light"] .form {
  background: var(--card);
  border-color: var(--border);
  box-shadow: 0 10px 26px rgba(12, 14, 22, .08);
}

html[data-theme="light"] .tile:hover,
html[data-theme="light"] .project-card:hover,
html[data-theme="light"] .service-card:hover {
  background: rgba(255, 255, 255, .98);
  border-color: rgba(12, 14, 22, .16);
  box-shadow: var(--shadow2);
}

.list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.list li {
  margin: 6px 0;
}

.tag {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  padding: 6px 10px;
  border-radius: 999px;
}

html[data-theme="light"] .tag {
  border: 1px solid rgba(12, 14, 22, .12);
  background: rgba(255, 255, 255, .78);
}

[data-tilt] {
  will-change: transform;
}

[data-animate="reveal"] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease, transform .55s ease;
}

.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ======================
    FOOTER FOOTER FOOTER
   ====================== */

/* The SVG divider itself */
.footer-divider {
  /* Removes any extra space around the SVG */
  line-height: 0;
}

.footer-divider svg {
  display: block;
  width: 100%;
  /* taille de vague */
  height: 100px;
  fill: var(--footer-bg);
}

.footer-wave {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 2rem 0 1rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
  /* Overlap slightly to prevent rendering gaps */
  margin-top: -1px;
}

.footer-wave__main-grid {
  display: grid;
  /* Mobile-first - colonnes responsive */
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.footer-wave__heading {
  color: var(--footer-heading);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.footer-wave__links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-wave__links li:not(:last-child) {
  margin-bottom: 0.75rem;
}

.footer-wave__links a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-wave__links a:hover {
  color: var(--footer-link-hover);
}

.footer-wave__bottom {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--footer-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 600px) {
  .footer-wave__main-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-wave__main-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-wave__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 599px) {
  .footer-wave__main-grid {
    margin: 0 1.5rem;
  }
}

/* ======================
   RESPONSIVE
   ====================== */

@media (max-width: 920px) {
  .header__inner {
    height: var(--banner-h-920);
  }

  .brand {
    height: var(--banner-h-920);
  }

  .nav {
    bottom: var(--banner-pad);
    right: var(--banner-pad);
  }

  .brand__banner {
    object-position: 60% 50%;
  }
}

@media (max-width: 550px) {
  .header__inner {
    height: var(--banner-h-550);
  }

  .brand {
    height: var(--banner-h-550);
  }

  .burger {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    right: var(--banner-pad);
    top: 110px;
    bottom: auto;
    width: min(320px, calc(100% - 20px));
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    transform-origin: top right;
    transform: scale(.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 7;
  }

  .nav.is-open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .brand__banner {
    object-position: 70% 50%;
  }

  .brand::after {
    opacity: .92;
  }
}