@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');
@font-face {
  font-family: 'HeyNovember';
  src: url('../assets/fonts/heynovember.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --navy: #0a0e1a;
  --navy-2: #0f1628;
  --navy-3: #091D2E;
  --blue: #5284FF;
  --blue-light: #6db3f2;
  --violet: #7b6cf6;
  --violet-light: #948FFC;
  --cyan: #1ADAFF;
  --white: #FEFEFE;
  --white-muted: #8a9bc5;
  --gradient: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
  --gradient-text: linear-gradient(135deg, #5284FF 0%, #948FFC 100%);
  --card-bg: rgba(255,255,255,0.04);
  --card-border: rgba(255,255,255,0.08);
  --radius: 16px;
  --radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Sora', sans-serif;
  background-color: var(--navy);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Sora', sans-serif;
  letter-spacing: -0.02em;
  font-weight: 600;
}

/* ─── BACKGROUND AMBIANCE ─── */
body::before {
  content: '';
  position: fixed;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(123,108,246,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(74,144,217,0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 5%;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--card-border);
  transition: background 0.3s;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.35rem;
  color: var(--text); text-decoration: none; letter-spacing: -0.02em;
}
.nav-logo img { height: 30px; width: auto; transition: filter 0.3s; }
[data-theme="light"] .nav-logo img { filter: invert(1) brightness(0.1); }
.nav-logo span {
  background: var(--gradient-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-right { display: flex; align-items: center; gap: 1.8rem; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; transition: color 0.2s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--gradient); border-radius: 2px;
}
.nav-cta {
  background: var(--gradient); color: white !important;
  padding: 0.52rem 1.3rem; border-radius: 50px;
  font-weight: 600 !important; font-size: 0.86rem !important;
  text-decoration: none; white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s !important;
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }
 
/* ─── VOUS ─── */

.script-vous {
  font-family: 'HeyNovember', cursive;
  font-weight: normal;
  font-size: 1.2em;
  color: white;
  display: inline-block;
  line-height: 1;
  padding: 0 0.1em;
  font-style: normal;
  -webkit-text-fill-color: white;
  background: none;
  position: relative;
  vertical-align: -0.1em;
  margin-bottom: -0.2em
}

.script-vous::before {
  content: 'vous';
  position: absolute;
  top: 0.06em;
  left: 0.14em;
  background: linear-gradient(135deg, #7b6cf6 0%, #4a90d9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  z-index: -1;
  white-space: nowrap;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 7rem 5% 4rem;
  position: relative;
  z-index: 1;
}
.hero-content { max-width: 650px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(123,108,246,0.15);
  border: 1px solid rgba(123,108,246,0.3);
  color: var(--violet-light);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--violet-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
  line-height: 1.0;
}
.hero h1 em {
  font-style: normal;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--white-muted);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gradient);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(123,108,246,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(123,108,246,0.5); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent;
  color: var(--white);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--card-border);
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.25); background: var(--card-bg); }

/* ─── SECTIONS ─── */
section {
  padding: 6rem 5%;
  position: relative;
  z-index: 1;
}
.section-label {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-light);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
  line-height: 1.0;
}
.section-title em {
  font-style: normal;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  color: var(--white-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 50%;
  font-weight: 300;
  margin-bottom: 3rem;
}

/* ─── CARDS ─── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover {
  border-color: rgba(123,108,246,0.3);
  transform: translateY(-4px);
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(123,108,246,0.15);
  border: 1px solid rgba(123,108,246,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.card p {
  color: var(--white-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  font-weight: 300;
}

/* CALCULATEUR */
.calc-wrap {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.calc-group { margin-bottom: 1.3rem; }
.calc-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--white-muted);}
.calc-group select, .calc-group input[type="number"] {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Sora', sans-serif;
  font-size: 0.93rem;
  padding: 0.82rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.calc-group select:focus, .calc-group input[type="number"]:focus {
  border-color: rgba(123,108,246,0.5);
}
.calc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.calc-result {
  background: rgba(123,108,246,0.08);
  border: 1px solid rgba(123,108,246,0.22);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.calc-result-title {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-light);
  margin-bottom: 1rem;
}
.calc-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.48rem 0;
  border-bottom: 1px solid rgba(123,108,246,0.1);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.calc-line:last-of-type { border-bottom: none; }
.calc-line strong {
  color: var(--text);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
}
.calc-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(123,108,246,0.3);
}
.calc-total span:first-child {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.calc-total-price {
  font-family: 'Sora', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (max-width: 768px) {
  .calc-grid-2 { grid-template-columns: 1fr; }
}

/* ─── GRID ─── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.2rem; }

/* ─── DIVIDER ─── */
.divider {
  height: 1px;
  background: var(--card-border);
  margin: 0 5%;
}

/* ─── FOOTER ─── */
footer {
  background: var(--navy-2);
  border-top: 1px solid var(--card-border);
  padding: 2rem 5%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}
footer p {
  color: var(--white-muted);
  font-size: 0.85rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.footer-links {
  display: flex;
  gap: 1.2rem;
  justify-content: flex-end;
  flex-wrap: nowrap;
}
.footer-links a {
  color: var(--white-muted);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.2s;
  white-space: nowrap;
}
.footer-links a:hover { color: var(--white); }

@media (max-width: 1000px) {
  footer {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
  }
footer p {
  position: static;
  transform: none;
  white-space: normal;
  text-align: center;
}
}

/* ─── CONTACT FORM ─── */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--white-muted); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  padding: 0.85rem 1.1rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: rgba(123,108,246,0.5);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group select option { background: var(--navy-2); }

/* ─── TAG ─── */
.tag {
  display: inline-block;
  background: rgba(74,144,217,0.12);
  border: 1px solid rgba(74,144,217,0.25);
  color: var(--blue-light);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.03em;
}

/* ─── ANIMATIONS ─── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.6s ease forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav { padding: 1rem 4%; }
  .nav-links { display: none; }
  section { padding: 4rem 5%; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text);
  border-radius: 3px;
  transition: transform 0.35s, opacity 0.35s;
}
.hamburger.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.nav-cta-mobile { display: none; }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-cta-desktop { display: none; }
  .nav-cta-mobile { display: block !important; padding: 0 !important; border: none !important; }
  .nav-cta-mobile a {
    display: inline-block;
    background: var(--gradient);
    color: white !important;
    padding: 0.75rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    margin-top: 0.5rem;
  }

.nav-links {
    display: none;
    flex-direction: column;
    justify-content: center;
    position: fixed;
    top: 62px; left: 1rem; right: 1rem;
    background: var(--navy) !important;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    z-index: 9999;
    padding: 2rem 8%;
    gap: 0;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    isolation: isolate;
  }
  .nav-links.open { display: flex; }

  .nav-links li { border-bottom: 1px solid var(--card-border); }
  .nav-links li:last-child { border-bottom: none; }

.nav-links a {
  display: block;
  padding: 1.2rem 0;
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: var(--white) !important;
  text-decoration: none;
  transition: color 0.2s;
  text-align: center;
}

  .nav-links a:hover { color: var(--violet-light) !important; }
  .nav-links a.active { color: var(--violet-light) !important; }
  .nav-links a.active::after { display: none; }
}

@media (max-width: 768px) {
  .responsive-2col {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .build-text { order: -1; }
  .build-cards { order: 1; }
}