@import url('https://fonts.googleapis.com/css2?family=UnifrakturCook:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Momo+Trust+Display&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700;900&display=swap');


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #e6e6e6;
  --toggle-bg-off: rgba(255,255,255,0.06);
  --toggle-bg-on: linear-gradient(90deg,#ffd86b,#ff7a18);
  --thumb-size: 22px;
  --track-w: 56px;
  --track-h: 30px;
  --transition: 220ms cubic-bezier(.2,.9,.3,1);

  transition: background-color 0.5s ease, color 0.5s ease;
}
:root[data-theme="dark"]{
  --side-margin: -3vw;
  --main-bg: rgba(28,31,34,1);
  --neon: rgb(255,0,0);
  --shadow: 
    0 0 5px rgba(255,0,0,0.7),
    0 0 10px rgba(255,0,0,0.5),
    0 0 20px rgba(255,0,0,0.4),
    0 0 40px rgba(255,0,0,0.3),
    0 0 80px rgba(255,0,0,0.2);
  --font: rgb(255,255,255);
  --card-t: rgb(0,0,0);
  --txt-back: rgba(255,255,255,0.05);
  --txt-back-r: rgba(0,0,0,0.05);
  --main-bg-a: rgba(28,31,34,0);
}
:root[data-theme="light"] {
  --side-margin: -3vw;
  --main-bg: rgba(245,245,245,1);
  --neon: rgb(165,3,252);
  --shadow: 
    0 0 5px rgba(165,3,252,0.7),
    0 0 10px rgba(165,3,252,0.5),
    0 0 20px rgba(165,3,252,0.4),
    0 0 40px rgba(165,3,252,0.3),
    0 0 80px rgba(165,3,252,0.2);
  --font: rgb(28,31,34);
  --card-t: rgb(255,255,255);
  --txt-back: rgba(0,0,0,0.05);
  --txt-back-r: rgba(255,255,255,0.05);
  --main-bg-a: rgba(245,245,245,0);
}
*, *::before, *::after {
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

html {
  padding: 0 4%;
}

body {
  min-height: 100vh;
  background-color: var(--main-bg);
  display: flex;
  flex-direction: column;
  transition: background-color 0.5s ease, color 0.5s ease;
  margin: 0;
}

main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
a {
  text-decoration: none;
}

@keyframes neonPulse {
  0% {
    text-shadow: var(--shadow);
  }
  100% {
    text-shadow: 
      0 0 10px var(--neon),
      0 0 20px rgba(var(--neon), 0.8),
      0 0 30px rgba(var(--neon), 0.6),
      0 0 50px rgba(var(--neon), 0.4),
      0 0 100px rgba(var(--neon), 0.2);
  }
}

header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  padding: 20px;
  border-radius: 16px;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 6px 24px rgba(0,0,0,0.45), inset 0 0 16px rgba(255,255,255,0.15);
  color: #fff;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

header.visible {
  opacity: 1;
  pointer-events: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-spacer {
  height: 120px; 
  width: 100%;
  pointer-events: none;
}


@media (max-width: 480px) {
  .header-spacer {
    height: 20px;
  }
}

.logo {
  font-family: 'UnifrakturCook', cursive;
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--neon);
  text-shadow: var(--shadow)
  animation: neonPulse 2s infinite alternate;
}

nav {display: flex;gap: 28px;}

nav a {
  font-family: 'Momo Trust Display', sans-serif;
  font-weight: 500;
  color: var(--font);
  text-transform: uppercase;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

nav a:hover {color: var(--neon);}

.burger {
  display: none;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(var(--font), 0.12);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  transition: background 200ms ease;
  flex-shrink: 0;
}

.burger .bar {
  width: 26px;
  height: 3px;
  background: var(--font);
  border-radius: 3px;
  position: relative;
  transition: transform 300ms ease, opacity 300ms ease;
  display: block;
}

.burger .bar::before,
.burger .bar::after {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--font);
  border-radius: 3px;
  position: absolute;
  left: 0;
  transition: transform 300ms ease, opacity 300ms ease;
}

.burger .bar::before { top: -8px; }
.burger .bar::after  { top: 8px; }

/* état actif -> croix */
.burger.active {
  background: rgba(var(--neon), 0.12);
}

.burger.active .bar {
  transform: rotate(45deg);
}

.burger.active .bar::before {
  transform: translateY(8px) rotate(90deg);
}

.burger.active .bar::after {
  opacity: 0;
}

.mobile-menu {
  display: block;
  position: absolute;
  right: 4vw;
  padding: 16px 22px;
  border-radius: 16px;
  backdrop-filter: blur(18px) saturate(180%);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 6px 24px rgba(0,0,0,0.45), inset 0 0 16px rgba(255,255,255,0.12);
  text-align: right;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  transition: opacity 260ms ease, transform 260ms ease, max-height 320ms ease;
}

.mobile-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  max-height: 520px;
}

.mobile-menu a {
  display: block;
  margin: 16px 0;
  font-family: 'Momo Trust Display', sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--font);
}

@media (max-width: 900px) {
  nav {
    display: none;
  }
  .burger {
    display: flex;
  }
}


.site-footer {
  z-index: 99;
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
  margin-top: auto;
  padding: 20px; 
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  backdrop-filter: blur(18px) saturate(180%);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 6px 24px rgba(0,0,0,0.45), inset 0 0 16px rgba(255,255,255,0.15);
  color: white;
  font-style: normal;
  
}

.footer-left, .footer-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-left {
  align-items: flex-end;
}

.footer-left p {
  margin: 0;
  line-height: 1.1;
  font-family: "Momo Trust Display", sans-serif;
  color: var(--font);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--font);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--neon);
}

.footer-right .pill {
  padding: 5px 15px;
  border-radius: 50px;
  background: rgba(255,255,255,0.1);
  display: inline-block;
  text-align: bottom;
}

.footer-right .cta {
  padding: 8px 20px;
  border-radius: 8px;
  background: #ffcc00;
  color: black;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  display: inline-block;
  transition: background 0.3s;
}

.footer-right .cta:hover {
  background: var(--neon);
}

.brand {
  font-family: 'UnifrakturCook', cursive;
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--neon);
  text-shadow:
    0 0 5px rgba(255,0,0,0.7),
    0 0 10px rgba(255,0,0,0.5),
    0 0 20px rgba(255,0,0,0.4),
    0 0 40px rgba(255,0,0,0.3),
    0 0 80px rgba(255,0,0,0.2);
  animation: neonPulse 2s infinite alternate;
}


@media (max-width: 768px) {
  .site-footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }

  .footer-links { gap: 12px; }
  .footer-right { display: none !important; }
  .footer-left { align-items: center; }
}

.scroll-bubble {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  backdrop-filter: blur(18px) saturate(180%);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 6px 24px rgba(0,0,0,0.45), inset 0 0 16px rgba(255,255,255,0.12);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.35s ease, visibility 0.35s;
  z-index: 999;
  opacity: 1;
  visibility: visible;
}

.scroll-bubble.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
}

.scroll-bubble:hover {
  transform: translateX(-50%) translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), inset 0 0 18px rgba(255,255,255,0.2);
}

.scroll-bubble .arrow {
  font-size: 24px;
  color: var(--font);
  margin-top: 10px;
}

.theme-switch{
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  vertical-align: middle;
}

.theme-switch .switch-track {
  width: var(--track-w);
  height: var(--track-h);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #000000;
  box-sizing: border-box;
  position: relative;
  transition: background var(--transition), border-color var(--transition);
  overflow: hidden;
}

.theme-switch .switch-thumb {
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius: 50%;
  background: #000000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  transition: left var(--transition), background var(--transition);
}

.theme-switch[aria-checked="true"] .switch-track {background: #000000;border-color: #ffffff;}

.theme-switch[aria-checked="true"] .switch-thumb {left: calc(100% - var(--thumb-size) - 2px);background: #ffffff;}
.theme-switch:focus-visible .switch-track{box-shadow: 0 0 0 4px rgba(100,150,255,0.15);outline: none;}

@media (prefers-reduced-motion: reduce){
  .theme-switch .switch-thumb,
  .theme-switch .switch-track { transition: none; }
}
/* Shared Styles for Wrappers */
.front-title-wrapper,
.front-title-wrapper-right {
  position: relative;
  width: 100%;
  padding-left: var(--side-margin, 5vw);
  padding-right: var(--side-margin, 5vw);
  min-height: clamp(6rem, 18vw, 18rem);
  display: flex;
  align-items: center;
  overflow: visible;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.front-title-wrapper-right {
  justify-content: flex-end;
  margin-top: clamp(20px, 4vw, 60px);
}

/* Shared Styles for Background Titles */
.front-title-wrapper .bg-title,
.front-title-wrapper-right .bg-title-right {
  font-family: "UnifrakturCook", cursive;
  font-size: clamp(6rem, 18vw, 18rem);
  line-height: 0.9;
  margin: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--font);
  opacity: 0.10;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 1;
}

/* Shared Styles for Foreground Titles */
.front-title-wrapper .fg-title,
.front-title-wrapper-right .fg-title-right {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-style: italic; 
  font-size: clamp(3rem, 6.8vw, 4.6rem);
  line-height: 1;
  margin: 0;
  color: var(--font);
  position: relative;
  z-index: 2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transform: translateY(40px);
}

/* Individual Foreground Adjustments */
.front-title-wrapper .fg-title {
  padding-left: var(--side-margin, 5vw);
}

.front-title-wrapper-right .fg-title-right {
  padding-right: var(--side-margin, 5vw);
}

.front-title-wrapper.small-gap .fg-title { 
  transform: translateY(8%); 
}

/* Media Queries */
@media (max-width: 1440px) {
  :root { --side-margin: 2vw; }
}

@media (max-width: 834px) {
  nav { display: none; }
  .burger { display: flex; }
  header { width: 95%; }
  .site-footer { flex-direction: column; text-align: center; }
  .footer-right { display: none !important; }
}

@media (max-width: 480px) {
  html { padding: 0 10px; }
  header { top: 10px; padding: 12px; }
  .logo { font-size: 1.2rem; }
  
  .front-title-wrapper, 
  .front-title-wrapper-right { 
    margin-top: 60px; 
    justify-content: center;
    text-align: center;
  }
  
  .front-title-wrapper .bg-title, 
  .front-title-wrapper-right .bg-title-right {
    font-size: 5rem;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .front-title-wrapper .fg-title, 
  .front-title-wrapper-right .fg-title-right {
    font-size: 2.2rem;
    transform: translateY(0);
  }
  
  :root {
    --track-w: 48px;
    --track-h: 26px;
    --thumb-size: 18px;
  }
}

