:root {
  --ink: #111114;
  --muted: #5b5c62;
  --border: #e6e6e6;
  --gray-bg: #fafafa;
  --blue: #2F6FEF;
  --blue-bg: #EAF1FE;
  --green: #16A34A;
  --green-bg: #E7F8ED;
  --font: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.3em; }

p { margin: 0 0 1em; color: var(--ink); }
a { color: inherit; text-decoration: none; }

.eyebrow {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 0.8em;
}

.body-lg { font-size: 1.05rem; max-width: 46ch; color: var(--ink); }

.btn {
  display: inline-block;
  padding: 0.85em 1.8em;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1e5ce0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 5%;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
}
.logo-link { display: flex; align-items: center; gap: 0.6rem; }
.logo-icon { width: 46px; height: 46px; display: block; object-fit: contain; }
.logo-text { font-size: 1.2rem; font-weight: 800; color: var(--ink); }

.main-nav { display: flex; gap: 2.2rem; }
.main-nav a { font-size: 0.95rem; color: var(--ink); opacity: 0.85; }
.main-nav a:hover { opacity: 1; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #dbe9f2;
  max-height: 88vh;
}
.hero-bg {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 88vh;
  display: block;
  margin: 0 auto;
}
.hero-ghost {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(3rem, 11vw, 9rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  pointer-events: none;
}
.hero-caption {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-caption img { height: 34px; }

/* Generic section */
.section { padding: 5rem 5%; }
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.section-media img { width: 100%; display: block; }
.section-media.reverse { order: -1; }

/* Schematic / 6 zones */
.schema-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 2rem;
  margin: 2.5rem 0 2rem;
  flex-wrap: wrap;
}
.schema-board {
  display: flex;
  gap: 1.4rem;
  flex-shrink: 0;
}
.face-card {
  width: 150px;
  border: 1px solid var(--border);
  padding: 1.5rem 1rem 1.8rem;
  background: var(--gray-bg);
  border-radius: 14px;
  position: relative;
}
.face-card::before {
  content: "";
  display: block;
  width: 34px;
  height: 12px;
  background: #d9d9d9;
  border-radius: 4px 4px 0 0;
  margin: 0 auto 1.1rem;
}
.zone-pair { display: flex; flex-direction: column; gap: 0.7rem; }
.zone-box {
  border: 1px dashed #b9b9bd;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1.6rem 0.4rem;
  border-radius: 8px;
  background: #fff;
}
.face-caption { margin-top: 0.9rem; text-align: center; font-size: 0.85rem; color: var(--muted); font-weight: 600; }

.schema-note {
  background: var(--blue-bg);
  color: #1a4fc4;
  border-radius: 14px;
  padding: 1.6rem 1.8rem;
  flex: 1;
  min-width: 300px;
  max-width: 480px;
}
.schema-note p { color: #1a4fc4; margin: 0 0 0.4em; }
.fine-print { font-size: 0.85rem; color: var(--muted) !important; margin-top: 1rem !important; }

.spec-grid {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(26,79,196,0.15);
}
.spec-item h4 { margin: 0 0 0.3em; font-size: 0.85rem; color: #1a4fc4; }
.spec-item p { margin: 0; font-size: 0.9rem; color: #1a4fc4; }
.spec-tbc { opacity: 0.65; font-size: 0.8rem; }

.schema-cta {
  display: block;
  width: max-content;
  margin: 2.5rem auto 0;
  font-size: 1.05rem;
  padding: 1.1em 2.6em;
}

/* Split (annonceurs / organisateurs) */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.pill {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35em 0.9em;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
.pill-blue { background: var(--blue-bg); color: var(--blue); }
.pill-green { background: var(--green-bg); color: var(--green); }

.feature-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.feature-list li {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
}
.feature-list p { color: var(--muted); margin: 0; font-size: 0.92rem; }

/* Contact */
.section-contact { max-width: 640px; margin: 0 auto; text-align: center; }
.contact-form { text-align: left; margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.3rem; }

.type-select { border: none; margin: 0; padding: 0; display: flex; gap: 1rem; }
.type-select legend { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.6rem; width: 100%; }
.radio-option {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9em 1.1em;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.radio-option:has(input:checked) { border-color: var(--blue); color: var(--blue); font-weight: 600; }

.field-row { display: flex; flex-direction: column; gap: 0.4rem; text-align: left; }
.field-row label { font-size: 0.92rem; font-weight: 700; }
.field-row input, .field-row textarea {
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.75em 0.9em;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.field-row input:focus, .field-row textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.form-hint { font-size: 0.82rem; color: var(--muted); margin-top: -0.6rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 5%; }
.footer-top { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 2.5rem; }
.footer-logo-icon { width: 70px; }
.footer-logo-text { font-size: 1.6rem; font-weight: 800; }
.footer-cols { display: flex; gap: 5rem; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; color: var(--muted); margin: 0 0 1rem; text-transform: none; }
.footer-col a { display: block; margin-bottom: 0.7rem; font-size: 0.95rem; }
.footer-col a:hover { color: var(--blue); }

/* Legal page */
.legal-page { max-width: 760px; margin: 0 auto; padding: 4rem 5% 5rem; }
.legal-section { padding-bottom: 3rem; border-bottom: 1px solid var(--border); margin-bottom: 3rem; }
.legal-section:last-child { border-bottom: none; }
.legal-section h1 { text-transform: none; font-size: 1.8rem; }
.legal-section h3 { margin-top: 1.5rem; }
.legal-section ul { padding-left: 1.2rem; }

@media (max-width: 900px) {
  .section-grid { grid-template-columns: 1fr; }
  .section-split { grid-template-columns: 1fr; }
  .schema-row { flex-direction: column; align-items: center; }
  .main-nav { gap: 1.2rem; }
  .footer-cols { flex-direction: column; gap: 1.5rem; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.is-open { max-height: 300px; }
  .main-nav a {
    padding: 1rem 5%;
    border-bottom: 1px solid var(--border);
  }
  .main-nav a:last-child { border-bottom: none; }
}
