:root {
  color-scheme: light;
  --ink: #1a2633;
  --muted: #5e6a77;
  --brand: #1f6f78;
  --brand-deep: #194b67;
  --brand-soft: #dff2f2;
  --peach: #ffd7b8;
  --gold: #f2b461;
  --rose: #f7e7ea;
  --mint: #dceee7;
  --line: rgba(31, 79, 103, 0.14);
  --surface: #fffaf4;
  --surface-2: #f3fbf8;
  --surface-3: #fff1e8;
  --white: #ffffff;
  --shadow: 0 30px 80px rgba(25, 75, 103, 0.14);
  --shadow-soft: 0 18px 40px rgba(25, 75, 103, 0.08);
  --radius: 28px;
  font-family: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 193, 144, 0.35), transparent 26rem),
    radial-gradient(circle at 88% 0%, rgba(116, 201, 191, 0.24), transparent 28rem),
    radial-gradient(circle at 80% 76%, rgba(255, 231, 189, 0.28), transparent 24rem),
    linear-gradient(180deg, #fffdf8 0%, var(--surface) 38%, #ffffff 100%);
  color: var(--ink);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; }

.topbar {
  background: linear-gradient(90deg, var(--brand-deep), var(--brand));
  color: rgba(255, 255, 255, 0.86);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 12px 6vw;
  text-transform: uppercase;
}

.topbar p {
  margin: 0;
  text-align: center;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 244, 0.82);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 6vw;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand,
.nav,
.hero-actions,
.trust-list,
.site-footer,
.form-actions,
.form-progress {
  align-items: center;
  display: flex;
}

.brand {
  align-items: center;
  display: inline-flex;
  flex: 1 1 auto;
  font-weight: 900;
  gap: 12px;
  letter-spacing: -0.03em;
  min-width: 0;
}

.brand span:last-child {
  white-space: nowrap;
}

.brand-mark {
  align-items: center;
  background: transparent;
  border-radius: 16px;
  box-shadow: none;
  color: var(--white);
  display: inline-flex;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.84rem;
  height: 42px;
  justify-content: center;
  overflow: hidden;
  width: 42px;
}

.brand-mark img {
  display: block;
  height: 34px;
  object-fit: contain;
  width: 34px;
}

.nav {
  color: var(--muted);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  gap: 24px;
}

.nav a {
  border-radius: 999px;
  padding: 10px 14px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.8);
  color: var(--brand-deep);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(25, 75, 103, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-deep);
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  align-items: center;
  display: grid;
  gap: 52px;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, 0.85fr);
  min-height: auto;
  padding: 6vh 6vw 4vh;
}

.hero-content { max-width: 900px; }

.hero-visual {
  align-self: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(241, 250, 247, 0.92));
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
  height: min(60vh, 520px);
  max-height: 520px;
  overflow: hidden;
  padding: 14px;
  position: relative;
}

.hero-visual img {
  border-radius: 24px;
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.visual-ribbon {
  background: linear-gradient(135deg, #ffcf7b, #f29a5a);
  box-shadow: 0 12px 24px rgba(103, 55, 17, 0.22);
  color: #ffffff;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 10px 56px;
  position: absolute;
  right: -42px;
  text-transform: uppercase;
  top: 24px;
  transform: rotate(33deg);
  z-index: 2;
}

.eyebrow {
  color: #b9653c;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  font-size: clamp(2.8rem, 6vw, 6.5rem);
  letter-spacing: -0.075em;
  line-height: 0.92;
  margin-bottom: 24px;
  max-width: 980px;
}

body[data-city="Grenoble"] h1 {
  font-size: clamp(2rem, 3.9vw, 3.8rem);
}

h2 {
  font-size: clamp(2.1rem, 4.3vw, 4.1rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.hero-copy,
.section-heading p,
.split p,
.feature-card p,
.faq-grid p,
.metric-label,
.form-note {
  color: var(--muted);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.hero-copy {
  font-size: 1.16rem;
  line-height: 1.72;
  max-width: 720px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-text-link {
  color: var(--brand-deep);
  display: inline-block;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  margin-top: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section-cta {
  margin-top: 22px;
}

.button {
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 900;
  justify-content: center;
  letter-spacing: 0.01em;
  min-height: 52px;
  padding: 14px 24px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover { transform: translateY(-1px); }

.primary {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  box-shadow: 0 18px 34px rgba(25, 75, 103, 0.2);
  color: var(--white);
}

.secondary {
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--line);
  color: var(--brand-deep);
}

.trust-list {
  color: var(--brand-deep);
  flex-wrap: wrap;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  gap: 10px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.trust-list li {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  padding: 9px 14px;
}

.hero-proof-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
}

.hero-proof-grid article {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 20px;
}

.hero-proof-grid strong,
.intro-stats strong {
  color: var(--brand-deep);
  display: block;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hero-proof-grid span,
.intro-stats span,
.panel-copy,
.mini-quote p {
  color: var(--muted);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.96rem;
  line-height: 1.65;
}

.lead-panel {
  align-self: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 251, 251, 0.92) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  padding: 28px;
}

.panel-kicker {
  color: var(--brand);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 0;
  text-transform: uppercase;
}

.panel-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0;
}

.metric {
  color: var(--brand-deep);
  display: block;
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.metric-label {
  display: block;
  margin-top: 8px;
}

.highlight-stack {
  display: grid;
  gap: 18px;
}

.highlight-stack > div {
  border-top: 1px solid rgba(31, 79, 103, 0.12);
  padding-top: 18px;
}

.mini-quote {
  background: linear-gradient(135deg, rgba(255, 215, 184, 0.38), rgba(223, 242, 242, 0.56));
  border-radius: 22px;
  padding: 18px 18px 4px;
}

.section { padding: 58px 6vw; }

.section-heading { max-width: 820px; }

.narrow { max-width: 760px; }

.form-section { background: #ffffff; }

.intro-band {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.intro-card {
  background: linear-gradient(145deg, var(--white), #fff5ec);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
  padding: clamp(20px, 3vw, 30px);
}

.intro-stats {
  display: grid;
  gap: 16px;
}

.intro-stats article {
  background: linear-gradient(145deg, rgba(220, 238, 231, 0.6), rgba(255, 255, 255, 0.92));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.qualification-form {
  background:
    radial-gradient(circle at top right, rgba(242, 180, 97, 0.18), transparent 18rem),
    linear-gradient(135deg, var(--brand-deep), #245f73 55%, #347f82 100%);
  border-radius: 32px;
  box-shadow: var(--shadow);
  color: var(--white);
  margin-top: 24px;
  overflow: hidden;
  padding: clamp(20px, 3vw, 30px);
}

.hp-field { display: none; }

.form-topline {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
}

.form-back {
  align-items: center;
  appearance: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 38px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: background 160ms ease, transform 160ms ease;
  width: 38px;
}

.form-back:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-1px);
}

.form-progress {
  flex: 1 1 auto;
  flex-wrap: wrap;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  gap: 10px;
}

.form-progress span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  padding: 8px 12px;
}

.form-progress .is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #2d1a04;
}

.form-step {
  border: 0;
  display: none;
  margin: 0;
  padding: 0;
}

.form-step.is-active { display: block; }

.single-flow .form-step {
  display: block;
}

.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.single-flow .form-progress {
  display: none;
}

.stepped-flow .form-progress {
  display: flex;
}

legend {
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.field-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-city="Grenoble"] .form-section {
  padding-bottom: 42px;
  padding-top: 42px;
}

body[data-city="Grenoble"] .qualification-form {
  margin-left: auto;
  margin-right: auto;
  margin-top: 18px;
  max-width: 980px;
  padding: 18px;
}

body[data-city="Grenoble"] .stepped-flow .field-grid {
  justify-content: center;
  gap: 10px 12px;
  grid-template-columns: repeat(2, minmax(0, 300px));
}

body[data-city="Grenoble"] .stepped-flow label {
  font-size: 0.86rem;
  gap: 6px;
}

body[data-city="Grenoble"] .stepped-flow input:not([type="checkbox"]),
body[data-city="Grenoble"] .stepped-flow select,
body[data-city="Grenoble"] .stepped-flow textarea {
  min-height: 46px;
  padding: 11px 13px;
}

body[data-city="Grenoble"] .stepped-flow legend {
  margin-bottom: 10px;
}

body[data-city="Grenoble"] .stepped-flow .form-actions {
  justify-content: center;
  margin-top: 14px;
  padding-top: 14px;
}

label {
  display: grid;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  gap: 8px;
}

input:not([type="checkbox"]), select, textarea {
  background: rgba(255, 251, 246, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  color: var(--ink);
  min-height: 52px;
  padding: 13px 15px;
  width: 100%;
}

textarea { resize: vertical; }

input:not([type="checkbox"]):focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  outline: 3px solid rgba(242, 180, 97, 0.22);
}

.full { grid-column: 1 / -1; }

.check {
  align-items: start;
  display: flex;
  font-weight: 700;
  gap: 10px;
}

.check input {
  accent-color: var(--brand-deep);
  appearance: auto;
  aspect-ratio: 1 / 1;
  flex: 0 0 18px;
  height: 18px;
  min-height: auto;
  margin: 2px 0 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
  width: 18px;
}

.form-actions {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
}

[data-prev][hidden],
[data-next][hidden],
[data-submit][hidden] { display: none; }

.stepped-flow [data-next],
.stepped-flow [data-submit] {
  background: linear-gradient(135deg, #ffffff, #f8efe2);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 30px rgba(10, 32, 48, 0.22);
  color: var(--brand-deep);
}

.form-note {
  color: rgba(255, 255, 255, 0.76);
  margin: 16px 0 0;
}

.form-note.is-error { color: #ffd2c9; }

@media (max-width: 820px) {
  .site-header {
    min-height: 72px;
    padding: 0 20px;
  }

  .brand span:last-child {
    font-size: 0.98rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    border: 1px solid rgba(25, 75, 103, 0.12);
    border-radius: 20px;
    background: rgba(255, 250, 244, 0.98);
    box-shadow: 0 18px 40px rgba(25, 75, 103, 0.14);
  }

  .nav a {
    padding: 12px 14px;
  }

  .site-header.nav-open .nav {
    display: flex;
  }

  .site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

.form-note.is-success { color: #d9ffe8; }

.split {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
}

.steps {
  color: var(--muted);
  display: grid;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(247, 252, 251, 0.88));
  border-left: 5px solid var(--gold);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 18px 20px;
}

.steps span {
  color: var(--brand-deep);
  display: block;
  font-weight: 900;
  margin-bottom: 6px;
}

.proof-section {
  background: linear-gradient(180deg, var(--surface-2) 0%, #fcfffe 100%);
}

.feature-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.feature-card,
.faq-grid article,
.quote-grid article {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.faq-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.testimonial-strip {
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 215, 184, 0.26), transparent 16rem),
    linear-gradient(180deg, var(--surface-3), #fff8f1);
}

.quote-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.quote-grid p {
  color: var(--muted);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.72;
  margin-bottom: 0;
}

.site-footer {
  background: linear-gradient(90deg, var(--brand-deep), var(--brand));
  color: var(--white);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  justify-content: space-between;
  padding: 30px 6vw;
}

.legal-footer {
  align-items: flex-start;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.legal-page {
  padding-top: 42px;
}

.legal-shell {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  margin: 0 auto;
  max-width: 940px;
  padding: clamp(24px, 4vw, 40px);
}

.legal-shell h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  margin-top: 34px;
}

.legal-list {
  color: var(--muted);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  padding-left: 22px;
}

.legal-list li {
  margin-bottom: 10px;
}

@media (max-width: 860px) {
  .topbar p { text-align: left; }
  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 16px;
    padding-bottom: 0;
    padding-top: 0;
  }
  .hero,
  .split,
  .intro-band { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 34px; }
  .field-grid,
  .feature-grid,
  .faq-grid,
  .hero-proof-grid,
  .quote-grid { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .button { width: 100%; }
  .form-actions { align-items: stretch; flex-direction: column; }
  [data-prev] { order: 2; }
  .hero-visual {
    height: auto;
    max-height: none;
    order: 3;
    padding: 12px;
  }

  .hero-visual img {
    height: auto;
  }

  .visual-ribbon {
    font-size: 0.72rem;
    padding: 9px 42px;
    right: -34px;
    top: 18px;
  }

  body[data-city="Grenoble"] .single-flow .field-grid {
    grid-template-columns: 1fr;
  }

  .site-footer,
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button,
  .nav a { transition: none; }
}
