/* ============================================================
   PROXILY — styles.css  (version épurée)
   Fond sombre mais aéré · Vert #6BBF3E · Fraunces display
   ============================================================ */

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

:root {
  --bg:         #F5F4F0;
  --bg-2:       #EEECEA;
  --bg-3:       #E6E4DF;
  --bg-card:    #FFFFFF;
  --green:      #6BBF3E;
  --green-dim:  rgba(107,191,62,0.12);
  --green-line: rgba(107,191,62,0.3);
  --amber:      #F0A500;
  --amber-dim:  rgba(240,165,0,0.12);
  --white:      #FFFFFF;
  --off-white:  #1C1C1A;
  --muted:      rgba(0,0,0,0.45);
  --border:     rgba(0,0,0,0.08);
  --border-mid: rgba(0,0,0,0.13);
  --radius:     14px;
  --radius-sm:  8px;
  --max-w:      1080px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--off-white);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a.link { color: var(--green); text-decoration: underline; }

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  line-height: 1.1;
  color: var(--off-white);
}
h1 em, h2 em { font-style: italic; font-weight: 300; color: var(--green); }

.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-lg { padding: 15px 32px; font-size: 0.95rem; }
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: transparent; color: var(--green); }
.btn-ghost { background: transparent; color: var(--off-white); border-color: var(--border-mid); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── Reveal ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.45s; }
}

/* ─── NAVBAR ─── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,244,240,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.navbar.scrolled { border-color: var(--border); }

.nav-inner { display: flex; align-items: center; height: 80px; gap: 8px; }

.nav-logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.nav-logo-text { font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 700; color: var(--white); letter-spacing: -0.02em; }
.nav-logo-text span { color: var(--green); }

.nav-links { display: flex; gap: 0; margin-left: auto; list-style: none; }
.nav-links a { padding: 8px 16px; font-size: 0.84rem; color: var(--muted); transition: color var(--transition); }
.nav-links a:hover { color: #1A1A1A; }

.lang-switcher { display: flex; border: 1px solid var(--border); border-radius: 100px; overflow: hidden; margin-left: 16px; }
.lang-btn { padding: 5px 11px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; color: var(--muted); background: transparent; border: none; cursor: pointer; transition: all var(--transition); }
.lang-btn.active { background: var(--green); color: #fff; }
.lang-btn:not(.active):hover { color: #1A1A1A; }

.nav-cta { margin-left: 16px; padding: 9px 20px; font-size: 0.82rem; }

.burger { display: none; flex-direction: column; gap: 5px; width: 36px; height: 36px; cursor: pointer; background: none; border: none; margin-left: auto; justify-content: center; }
.burger span { display: block; height: 1.5px; background: var(--off-white); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 90; }
.mobile-nav-overlay.open { display: block; }
.mobile-nav { display: none; position: fixed; top: 80px; margin-top: 1px; left: 0; right: 0; z-index: 95; background: var(--bg-card); border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); padding: 20px 24px 28px; flex-direction: column; gap: 4px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; color: var(--off-white); font-weight: 500; transition: color var(--transition); }
.mobile-nav a:hover { color: var(--white); }

/* ─── HERO ─── */
.hero {
  padding: 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-line), transparent);
}
.hero-container {
  max-width: 100%;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  align-items: center;
}

.hero .hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--green-line); color: var(--green);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 100px; margin-bottom: 28px;
}
.hero .hero-pill::before {
  content: ''; width: 5px; height: 5px; background: var(--green); border-radius: 50%;
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); letter-spacing: -0.03em; margin-bottom: 6px; }
.hero-subtitle { font-family: 'Fraunces', serif; font-style: italic; font-weight: 300; font-size: clamp(1.3rem, 2.8vw, 1.9rem); color: var(--green); margin-bottom: 24px; }
.hero-body { font-size: 1rem; color: var(--muted); max-width: 540px; line-height: 1.78; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-note { font-size: 0.78rem; color: rgba(0,0,0,0.3); }

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  padding-right: 60px;
  padding-left: 28px;
}

.hero-right {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ─── HOW SECTION ─── */
.how-section { padding: clamp(72px, 10vw, 110px) 0; background: var(--bg); }

.section-header { margin-bottom: 48px; }
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 12px; letter-spacing: -0.025em; }
.section-header p { color: var(--muted); font-size: 0.98rem; max-width: 500px; line-height: 1.75; }

/* Tabs */
.how-tabs { display: flex; border: 1px solid var(--border); border-radius: 100px; padding: 3px; width: fit-content; margin-bottom: 48px; }
.how-tab { padding: 9px 24px; border-radius: 100px; font-size: 0.84rem; font-weight: 600; letter-spacing: 0.03em; cursor: pointer; border: none; background: transparent; color: var(--muted); transition: all var(--transition); }
.how-tab.active { background: var(--green); color: #fff; }
.how-tab:not(.active):hover { color: var(--white); }

.how-panel { display: none; }
.how-panel.active { display: block; }

/* Step cards grid */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.how-step-card {
  background: var(--bg-card);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: background var(--transition);
}
.how-step-card:hover { background: var(--bg-3); }

.how-step-number {
  font-family: 'Fraunces', serif;
  font-size: 4.5rem;
  font-weight: 700;
  color: rgba(60, 249, 3, 0.103);
  line-height: 1;
  letter-spacing: -0.04em;
  user-select: none;
}

.how-step-content h3 {
  font-size: 1.25rem;
  color: var(--off-white);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.how-step-content p { font-size: 0.9rem; color: var(--muted); line-height: 1.78; }

.how-step-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 100px;
  width: fit-content;
  background: var(--green-dim);
  border: 1px solid var(--green-line);
  color: var(--green);
}
.how-step-tag--soon {
  background: var(--amber-dim);
  border-color: rgba(240,165,0,0.25);
  color: var(--amber);
}

/* Trust strip */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 24px 32px;
}
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--muted); padding: 6px 24px; }
.trust-icon { color: var(--green); font-size: 0.9rem; }
.trust-sep { width: 1px; height: 18px; background: var(--border); }

/* ─── FORM SECTION ─── */
.form-section {
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.form-section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 0;
}

.form-section-content {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 8vw, 80px) clamp(28px, 5vw, 60px);
  max-width: 680px;
}

.form-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(28px, 5vw, 52px);
  max-width: 100%;
  margin: 0;
}

.form-intro { margin-bottom: 32px; }
.form-intro h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 12px; letter-spacing: -0.025em; }
.form-intro p { color: var(--muted); font-size: 0.98rem; line-height: 1.75; }

.form-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(28px, 5vw, 52px);
  max-width: 740px;
  margin: auto;
}

/* Role picker */
.role-picker-section { margin-bottom: 28px; }
.field-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: block; }
.role-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.role-card { cursor: pointer; }
.role-card input { display: none; }
.role-card-inner {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-align: center;
}
.role-card input:checked + .role-card-inner {
  border-color: var(--green);
  background: var(--green-dim);
}
.role-card:hover .role-card-inner { border-color: var(--border-mid); }
.role-card-title { font-size: 0.92rem; font-weight: 700; color: var(--off-white); }
.role-card-sub { font-size: 0.78rem; color: var(--muted); }

/* Form grid */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 0; }
.form-full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.93rem;
  color: var(--off-white);
  background: var(--bg-3);
  outline: none;
  transition: border-color var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(107,191,62,0.1); }
.field input.invalid, .field select.invalid { border-color: #e74c3c; }
.field select option { background: var(--bg-3); }
.field textarea { resize: vertical; min-height: 90px; }
.field-error { font-size: 0.75rem; color: #e74c3c; }

/* Conditional sections */
.conditional-section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); }
.conditional-section .form-grid { margin-top: 16px; }
.conditional-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin-bottom: 4px; }
.hidden { display: none !important; }

/* Consents */
.consent-section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.check-field { display: flex; align-items: flex-start; gap: 10px; }
.check-field input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--green); margin-top: 3px; }
.check-field label { font-size: 0.85rem; color: var(--muted); line-height: 1.55; }

/* Submit */
.btn-submit { width: 100%; margin-top: 28px; padding: 16px; font-size: 1rem; border-radius: var(--radius-sm); }

.form-global-error { color: #e74c3c; font-size: 0.85rem; margin-top: 12px; }

/* Success */
.success-state { text-align: center; padding: 56px 20px; }
.success-icon { width: 64px; height: 64px; border: 1px solid var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--green); margin: 0 auto 24px; animation: popIn 0.4s ease; }
@keyframes popIn { 0%{transform:scale(0.5);opacity:0} 80%{transform:scale(1.06)} 100%{transform:scale(1);opacity:1} }
.success-state h3 { font-size: 1.6rem; color: var(--white); margin-bottom: 12px; }
.success-state p { color: var(--muted); font-size: 0.95rem; }

/* ─── FOOTER ─── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand p { font-size: 0.82rem; color: var(--muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.82rem; color: var(--muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.75rem; color: rgba(0,0,0,0.25); }

/* ─── Responsive ─── */
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .lang-switcher { display: none; }
.mobile-nav .lang-switcher { display: flex; width: fit-content;margin: 0 auto; }
  .how-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: auto; }
  .role-picker { grid-template-columns: 1fr; }
  .trust-strip { flex-direction: column; align-items: flex-start; gap: 8px; }
  .trust-sep { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-direction: column; gap: 10px; }
  .mobile-nav .btn { width: 100%; justify-content: center; margin-top: 8px; border-radius: var(--radius-sm); }
  .hero-container {
  grid-template-columns: 1fr;
  position: relative;
  min-height: 520px;

}

.hero-left {
  position: relative;
  z-index: 2;
  padding: 60px 28px !important;
}

.hero-right {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  opacity: 0.12;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.form-section-layout { grid-template-columns: 1fr; }
.form-section-right { display: none; }
.form-section-left { padding: 48px 20px; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { justify-content: center; }
  .how-step-card { padding: 28px 24px; }
  .role-picker { grid-template-columns: 1fr 1fr; }
}
