:root {
  --bg: #080c14;
  --surface: #0e1622;
  --surface-deep: #060a10;
  --border: #1e2a38;
  --text: #f8fafc;
  --muted: #94a3b8;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; position: relative; z-index: 1; }

.site-header {
  height: 72px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 10;
}
.header-inner { width: min(1200px, calc(100% - 48px)); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: .01em; }
.desktop-nav { display: flex; align-items: center; gap: 32px; color: var(--muted); font-size: 16px; }
.desktop-nav > a:not(.button):hover { color: var(--text); }
.nav-separator { width: 1px; height: 24px; background: var(--border); }
.phone-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text) !important; font-weight: 600; font-size: 14px; }
.phone-link img { width: 24px; height: 24px; }
.mobile-actions { display: none; }
.mobile-menu { position: relative; }
.mobile-menu summary { list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-nav { display: none; }

.button { min-height: 44px; padding: 12px 24px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 600; transition: background-color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--blue); color: white; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.button-primary:hover { background: #1d4ed8; }
.button-secondary { background: var(--bg); color: var(--blue-light); border: 1px solid var(--blue-light); }
.button-secondary:hover { background: #0d1830; }
.button img { width: 24px; height: 24px; }

.hero {
  min-height: 672px;
  padding: 96px 0;
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.65)), url("assets/hero.png") center / cover no-repeat;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero h1 { font-size: 48px; line-height: 56px; letter-spacing: -.02em; }
.hero-copy > p { color: var(--muted); font-size: 18px; line-height: 28px; }
.hero-actions { display: flex; gap: 12px; padding-top: 8px; }
.hero-room { width: 568px; height: 480px; object-fit: cover; border-radius: var(--radius); background: var(--surface); }

.reassurance { min-height: 104px; background-color: var(--surface); border-block: 1px solid var(--border); background-image: repeating-linear-gradient(0deg, transparent 0 7px, rgba(59,130,246,.025) 7px 8px); }
.reassurance-grid { min-height: 102px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: 0; }
.reassurance-item { min-height: 40px; padding: 0 24px; display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 24px; border-right: 1px solid var(--border); }
.reassurance-item:first-child { padding-left: 0; }
.reassurance-item:last-child { border-right: 0; padding-right: 0; }
.reassurance-item img { width: 40px; height: 40px; flex: 0 0 auto; }

.boxes-section { padding: 112px 0 115px; background: var(--bg); overflow: hidden; }
.boxes-section::before { content: ""; position: absolute; }
.section-heading { width: 640px; margin-bottom: 56px; }
.eyebrow { color: var(--blue-light); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .02em; margin-bottom: 12px; }
.section-heading h2, .location-copy h2 { font-size: 32px; line-height: 40px; letter-spacing: -.01em; margin-bottom: 12px; }
.section-heading > p:not(.eyebrow) { color: var(--muted); font-size: 18px; line-height: 28px; }
.section-heading .note { margin-top: 28px; }
.boxes-illustration { position: absolute; top: -85px; right: 15px; width: 293px; height: 305px; object-fit: contain; }
.boxes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.box-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.box-card picture { display: block; }
.box-visual { width: 100%; height: 300px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.box-photo, .box-diagram { min-width: 0; height: 100%; overflow: hidden; }
.box-photo img { width: 100%; height: 100%; object-fit: cover; }
.box-diagram { background: #fff; }
.box-diagram picture { width: 100%; height: 100%; }
.box-diagram img { width: 200%; max-width: none; height: 100%; object-fit: fill; transform: translateX(-50%); }
.box-diagram-m img { width: 100%; max-width: 100%; object-fit: fill; transform: none; }
.box-content { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.box-content h3 { font-size: 24px; line-height: 32px; }
.specs { display: flex; gap: 20px; color: var(--muted); font-size: 14px; line-height: 24px; white-space: nowrap; }
.specs span { display: inline-flex; align-items: center; gap: 8px; }
.specs img { width: 18px; height: 18px; }
.specs span:last-child img { width: 24px; height: 24px; }
.card-divider { height: 1px; background: var(--border); }
.price-row { display: flex; align-items: center; justify-content: space-between; }
.price-row > div { display: flex; flex-direction: column; gap: 2px; }
.price-row span { color: var(--muted); font-size: 12px; line-height: 16px; font-weight: 500; }
.price-row strong { font-size: 24px; line-height: 32px; }

.location-section { min-height: 592px; padding: 96px 0; background-color: var(--surface); background-image: repeating-linear-gradient(0deg, transparent 0 7px, rgba(59,130,246,.025) 7px 8px); }
.location-grid { display: grid; grid-template-columns: 476px 1fr; gap: 64px; align-items: center; }
.location-copy .eyebrow { margin-bottom: 12px; }
.location-copy h2 { margin-bottom: 24px; }
.location-line { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; font-size: 18px; line-height: 28px; }
.location-line img, .location-copy li img { width: 24px; height: 24px; }
.location-copy ul { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 16px; }
.location-copy li { display: flex; align-items: center; gap: 16px; font-size: 18px; line-height: 28px; }
.map-shell {
  width: 660px;
  height: 400px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #101a2d;
}
.map-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .08);
}
.google-map {
  width: 100%;
  height: 100%;
  border: 0;
  filter: none;
}

.contact-section { min-height: 532px; padding: 120px 0; background: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)), url("assets/hero.png") center / cover no-repeat; }
.contact-copy { width: 480px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.contact-copy h2 { font-size: 32px; line-height: 40px; letter-spacing: -.01em; }
.contact-copy > p:first-of-type { color: var(--muted); font-size: 18px; line-height: 28px; margin-bottom: 16px; }
.contact-phone { color: var(--blue-light); font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 0; }
.contact-email { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 24px; }
.contact-email img { width: 24px; height: 24px; }
.hours { color: var(--muted); font-size: 16px; line-height: 24px; }

.site-footer { background-color: var(--surface-deep); border-top: 1px solid var(--border); padding: 56px 0 34px; background-image: repeating-linear-gradient(0deg, transparent 0 7px, rgba(59,130,246,.02) 7px 8px); }
.footer-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 80px; }
.footer-columns > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 16px; line-height: 24px; }
.footer-brand { gap: 16px !important; }
.footer-brand p { color: var(--muted); }
.brand-glyph { display: none; width: 20px; height: 16px; }
.footer-title { color: var(--muted); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .02em; margin-bottom: 8px; }
.footer-columns a:hover { color: var(--blue-light); }
.footer-bottom { border-top: 1px solid rgba(248,250,252,.12); margin-top: 40px; padding-top: 24px; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .02em; }
.codevo-logo { width: 120px; height: 26px; object-fit: contain; }
.mobile-contact-bar { display: none; }

/* Pages légales */
.legal-page { min-height: 100vh; background: var(--bg); }
.legal-header-link { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; line-height: 20px; font-weight: 600; transition: color .2s ease; }
.legal-header-link:hover { color: var(--text); }
.legal-header-link span { color: var(--blue-light); font-size: 20px; line-height: 1; }
.legal-main { padding: 88px 0 112px; }
.legal-content { width: min(840px, 100%); margin: 0 auto; }
.legal-hero { padding-bottom: 48px; }
.legal-hero .eyebrow { margin-bottom: 16px; }
.legal-hero h1 { max-width: 720px; font-size: 48px; line-height: 56px; letter-spacing: -.02em; }
.legal-intro { max-width: 720px; margin-top: 20px; color: var(--muted); font-size: 18px; line-height: 30px; }
.legal-updated { margin-top: 18px; color: var(--muted); font-size: 13px; line-height: 20px; }
.legal-section { padding: 36px 0; border-top: 1px solid var(--border); }
.legal-section h2 { margin-bottom: 16px; font-size: 24px; line-height: 32px; letter-spacing: -.01em; }
.legal-section h3 { margin: 24px 0 10px; font-size: 17px; line-height: 26px; }
.legal-section p, .legal-section li { color: #cbd5e1; font-size: 16px; line-height: 28px; }
.legal-section p + p { margin-top: 14px; }
.legal-section ul { margin: 12px 0 0; padding-left: 22px; }
.legal-section li + li { margin-top: 8px; }
.legal-section a { color: var(--blue-light); text-decoration: underline; text-underline-offset: 3px; }
.legal-section a:hover { color: #60a5fa; }
.legal-data { display: grid; grid-template-columns: 220px 1fr; margin: 0; }
.legal-data dt, .legal-data dd { padding: 12px 0; border-bottom: 1px solid rgba(148,163,184,.13); font-size: 15px; line-height: 24px; }
.legal-data dt { color: var(--muted); }
.legal-data dd { margin: 0; color: var(--text); }
.legal-page .site-footer { padding-bottom: 34px; }

@media (max-width: 1100px) {
  .desktop-nav { gap: 18px; }
  .hero-grid { gap: 36px; }
  .hero-room { width: 100%; }
  .specs { flex-wrap: wrap; }
  .location-grid { grid-template-columns: 40% 1fr; }
  .map-shell { width: 100%; }
}

@media (max-width: 700px) {
  body { padding-bottom: 0; }
  .container, .header-inner { width: calc(100% - 40px); }
  .site-header { height: 60px; }
  .brand { font-size: 15px; font-weight: 700; }
  .desktop-nav { display: none; }
  .mobile-actions { display: flex; gap: 16px; align-items: center; }
  .menu-button, .mobile-phone-button { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
  .menu-button { cursor: pointer; border-radius: 8px; transition: background-color .2s ease; }
  .menu-button img { width: 40px; height: 40px; }
  .mobile-menu[open] .menu-button { background: #1e3a8a; }
  .mobile-menu[open] .mobile-nav {
    position: absolute;
    top: 48px;
    right: -56px;
    width: min(350px, calc(100vw - 40px));
    display: flex;
    flex-direction: column;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .38);
    animation: mobile-menu-in .2s cubic-bezier(.22, 1, .36, 1);
  }
  .mobile-nav a {
    min-height: 48px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    color: var(--text);
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
  }
  .mobile-nav a:hover, .mobile-nav a:focus-visible { background: #162337; outline: none; }
  .mobile-phone-button { background: #1e3a8a; border-radius: 50%; padding: 8px; }
  .mobile-phone-button img { width: 24px; height: 24px; }

  .button { min-height: 48px; }
  .hero { min-height: 0; padding: 40px 0 54px; background-color: var(--bg); background-image: linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.65)), url("assets/hero.png"); }
  .hero-grid { display: flex; flex-direction: column; gap: 24px; }
  .hero-copy { gap: 16px; }
  .hero h1 { font-size: 34px; line-height: 40px; letter-spacing: -.02em; }
  .hero-copy > p { font-size: 17px; line-height: 26px; }
  .hero-actions { width: 100%; display: flex; flex-direction: column; gap: 12px; padding: 0; }
  .hero-actions .button { width: 100%; }
  .hero-room { width: 100%; height: 220px; border-radius: var(--radius); }

  .reassurance { min-height: 240px; padding: 32px 0; }
  .reassurance-grid { min-height: 0; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }
  .reassurance-item { min-height: 80px; padding: 0; border: 0; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 20px; }
  .reassurance-item img { width: 32px; height: 32px; }

  .boxes-section { padding: 56px 0 64px; }
  .section-heading { width: 100%; margin-bottom: 32px; }
  .section-heading h2, .location-copy h2 { font-size: 26px; line-height: 32px; letter-spacing: -.01em; }
  .section-heading > p:not(.eyebrow) { font-size: 16px; line-height: 24px; }
  .section-heading .note { margin-top: 24px; }
  .boxes-illustration { display: none; }
  .boxes-grid { grid-template-columns: 1fr; gap: 24px; }
  .box-visual { height: auto; aspect-ratio: 350 / 200; }
  .box-content { padding: 20px; gap: 16px; }
  .specs { display: flex; flex-wrap: wrap; gap: 16px 20px; font-size: 16px; line-height: 24px; white-space: nowrap; }
  .price-row { flex-direction: column; align-items: stretch; gap: 16px; }
  .price-row strong { line-height: 28px; }
  .price-row .button { width: 100%; }

  .location-section { min-height: 0; padding: 56px 0 64px; }
  .location-grid { display: flex; flex-direction: column; gap: 32px; }
  .location-copy { width: 100%; }
  .location-copy .eyebrow { margin-bottom: 8px; }
  .location-copy h2 { margin-bottom: 20px; }
  .location-line { margin-bottom: 20px; }
  .location-copy ul { gap: 12px; margin-bottom: 28px; }
  .location-copy li { gap: 12px; font-size: 16px; line-height: 24px; }
  .location-copy .button { width: 100%; }
  .map-shell { width: 100%; height: 260px; }

  .contact-section { min-height: 418px; padding: 56px 0 64px; }
  .contact-copy { width: 100%; gap: 12px; }
  .contact-copy h2 { font-size: 26px; line-height: 32px; }
  .contact-copy > p:first-of-type { font-size: 18px; line-height: 28px; margin-bottom: 0; }
  .contact-phone { font-size: 28px; line-height: 34px; margin-top: 0; }

  .site-footer { padding: 56px 0 90px; }
  .footer-columns { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { gap: 12px !important; }
  .brand-glyph { display: block; }
  .footer-bottom { margin-top: 32px; padding-top: 32px; }
  .codevo-logo { display: none; }

  .legal-main { padding: 56px 0 72px; }
  .legal-hero { padding-bottom: 36px; }
  .legal-hero h1 { font-size: 36px; line-height: 42px; }
  .legal-intro { font-size: 17px; line-height: 28px; }
  .legal-section { padding: 30px 0; }
  .legal-data { grid-template-columns: 1fr; }
  .legal-data dt { padding: 12px 0 2px; border-bottom: 0; }
  .legal-data dd { padding: 0 0 12px; }
  .legal-page .site-footer { padding-bottom: 34px; }

  .mobile-contact-bar { display: flex; position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: 72px; padding: 12px 16px; gap: 12px; background: var(--surface); border-top: 1px solid var(--border); }
  .mobile-contact-bar .button-primary { flex: 1; }
  .mobile-contact-bar .phone-only { width: 48px; padding: 0; flex: 0 0 48px; }
  .mobile-contact-bar .phone-only img { width: 20px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .mobile-menu[open] .mobile-nav { animation: none; }
}

@keyframes mobile-menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
