/* ============================================================
   Localo Landing — Design Premium v2
   Palette : vert forêt + blanc chaud + ambre doré
   Typographie : Newsreader (titres) + Sora (corps)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,600;0,6..72,700;1,6..72,500&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Fond chaud ivoire — évoque le lin, la Méditerranée */
  --bg:          oklch(0.97 0.014 82);
  --bg-soft:     oklch(0.945 0.018 80);

  /* Surfaces */
  --surface:     oklch(0.995 0.006 85);
  --surface-alt: oklch(0.975 0.012 80);

  /* Textes */
  --text:        oklch(0.22 0.025 265);
  --muted:       oklch(0.48 0.022 265);
  --subtle:      oklch(0.65 0.016 260);

  /* Bordures */
  --line:        oklch(0.88 0.02 80);
  --line-soft:   oklch(0.92 0.012 82);

  /* Couleur principale : vert forêt profond */
  --brand:       oklch(0.36 0.09 152);
  --brand-mid:   oklch(0.44 0.1 158);
  --brand-light: oklch(0.92 0.04 152);
  --brand-pale:  oklch(0.96 0.025 152);

  /* CTA : ambre chaud */
  --cta:         oklch(0.69 0.17 60);
  --cta-2:       oklch(0.62 0.19 44);
  --cta-text:    oklch(0.18 0.04 50);

  /* États */
  --ok:          oklch(0.52 0.13 152);
  --err:         oklch(0.56 0.19 28);

  /* Ombres */
  --shadow-xs:   oklch(0.22 0.025 265 / 0.06);
  --shadow-sm:   oklch(0.22 0.025 265 / 0.10);
  --shadow-md:   oklch(0.22 0.025 265 / 0.14);
  --shadow-lg:   oklch(0.22 0.025 265 / 0.22);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* ── Corps global ───────────────────────────────────────────── */
body {
  font-family: 'Sora', ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 50% at 5% -8%,  oklch(0.89 0.05 152 / 0.55), transparent),
    radial-gradient(ellipse 55% 40% at 95% 5%,  oklch(0.89 0.06 72  / 0.45), transparent),
    radial-gradient(ellipse 80% 60% at 50% 100%, oklch(0.93 0.03 80  / 0.6), transparent);
  -webkit-font-smoothing: antialiased;
}

/* ── TOPBAR ─────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: oklch(0.26 0.06 155 / 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(0.38 0.07 150 / 0.5);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
}

.brand-main {
  color: oklch(0.97 0.03 90);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: -0.01em;
  font-family: 'Newsreader', ui-serif, Georgia, serif;
}

.brand-sub {
  color: oklch(0.78 0.04 148);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 8px;
  padding: 7px 14px;
  border: 1px solid oklch(0.62 0.07 148 / 0.55);
  background: oklch(0.99 0 0 / 0.1);
  color: oklch(0.92 0.02 148);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 160ms ease, border-color 160ms ease;
}
.admin-link:hover {
  background: oklch(0.99 0 0 / 0.18);
  border-color: oklch(0.72 0.06 148 / 0.7);
}

/* ── Mise en page principale ────────────────────────────────── */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 72px;
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  margin-top: 8px;
}

.hero-content {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  padding: 36px 32px 32px;
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.8) inset,
    0 16px 40px var(--shadow-sm),
    0 2px 8px var(--shadow-xs);
  position: relative;
  overflow: hidden;
}

/* Décoration coin haut-gauche */
.hero-content::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 220px; height: 180px;
  background: radial-gradient(ellipse at 0 0, oklch(0.88 0.06 152 / 0.35), transparent 70%);
  pointer-events: none;
}

/* ── Eyebrow & badge ────────────────────────────────────────── */
.eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-mid);
  font-weight: 600;
}

.urgency-chip {
  margin: 14px 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid oklch(0.72 0.08 65 / 0.4);
  background: oklch(0.97 0.04 72 / 0.7);
  color: oklch(0.38 0.1 55);
  font-size: 12px;
  font-weight: 600;
}

.urgency-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cta);
  flex-shrink: 0;
}

/* ── Titres ─────────────────────────────────────────────────── */
h1, h2 {
  margin: 0 0 12px;
  line-height: 1.06;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2rem, 6.5vw, 3.2rem);
  font-family: 'Newsreader', ui-serif, Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: oklch(0.2 0.03 265);
}

h2 {
  font-size: clamp(1.45rem, 4.5vw, 2rem);
  font-family: 'Newsreader', ui-serif, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: oklch(0.22 0.03 265);
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 58ch;
  line-height: 1.7;
}

.hero-short-note {
  margin: 16px 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.01em;
}

.hero-meta {
  margin: 10px 0 0;
  color: var(--subtle);
  font-size: 12.5px;
  font-weight: 500;
}

/* ── CTA ────────────────────────────────────────────────────── */
.hero-cta {
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  padding: 13px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: normal;
  border: 1px solid transparent;
  font-family: 'Sora', ui-sans-serif, sans-serif;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04) saturate(1.05);
}

.btn:active {
  transform: translateY(0);
}

.btn-urgent {
  background: linear-gradient(135deg, var(--cta) 0%, var(--cta-2) 100%);
  color: oklch(0.99 0 0);
  border-color: oklch(0.62 0.18 48 / 0.6);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.22),
    0 6px 20px oklch(0.48 0.16 55 / 0.3),
    0 2px 6px oklch(0.48 0.16 55 / 0.18);
  letter-spacing: 0.01em;
}

.btn-urgent:hover {
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.22),
    0 10px 28px oklch(0.48 0.16 55 / 0.36),
    0 4px 10px oklch(0.48 0.16 55 / 0.22);
}

/* ── KPIs hero ──────────────────────────────────────────────── */
.kpis {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.kpis li {
  background: var(--brand-pale);
  border: 1px solid oklch(0.62 0.06 152 / 0.22);
  border-radius: 12px;
  padding: 13px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.kpis li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: oklch(0.4 0.09 152 / 0.15);
  border: 1.5px solid oklch(0.48 0.09 152 / 0.4);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
}

.kpis li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--brand);
  font-weight: 700;
}

.kpis strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  color: oklch(0.26 0.06 155);
}

.kpis span {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Section valeur — cartes ────────────────────────────────── */
.value {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 20px;
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.75) inset,
    0 8px 24px var(--shadow-xs),
    0 2px 6px var(--shadow-xs);
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.card:hover {
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.75) inset,
    0 14px 36px var(--shadow-sm),
    0 4px 10px var(--shadow-xs);
  transform: translateY(-2px);
}

.card-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: clamp(1.1rem, 3.5vw, 1.4rem);
}

.card-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-mid));
  color: oklch(0.99 0 0);
  flex: 0 0 32px;
  box-shadow: 0 2px 8px oklch(0.36 0.09 152 / 0.28);
}

.card-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.card-inline-media {
  display: block;
  margin: 0 0 12px;
}

.card-inline-media img {
  width: 100%;
  max-height: 230px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ── Section formulaire / CTA principal ─────────────────────── */
.director-cta {
  margin-top: 28px;
  border-radius: 22px;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.75) inset,
    0 16px 40px var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.director-cta::before {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 280px; height: 220px;
  background: radial-gradient(ellipse at 100% 100%, oklch(0.88 0.06 152 / 0.2), transparent 65%);
  pointer-events: none;
}

.director-cta > .eyebrow {
  margin-bottom: 10px;
}

.director-cta p {
  margin: 0 0 14px;
  color: var(--muted);
  max-width: 65ch;
  font-size: 0.95rem;
}

/* ── Trust strip ────────────────────────────────────────────── */
.trust-strip {
  margin: 12px 0 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  border: 1px solid oklch(0.60 0.07 152 / 0.28);
  background: var(--brand-pale);
  color: oklch(0.30 0.07 155);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
}

.trust-item::before {
  content: '✓';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: oklch(0.4 0.09 152 / 0.12);
  border: 1.5px solid var(--brand-mid);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--brand);
  flex-shrink: 0;
}

.conversion-note {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--subtle);
}

/* ── Formulaire contact ─────────────────────────────────────── */
.contact-form {
  margin-top: 12px;
  max-width: 680px;
  display: grid;
  gap: 8px;
}

.contact-form label {
  font-size: 12.5px;
  font-weight: 600;
  color: oklch(0.32 0.04 258);
  margin-bottom: -4px;
}

.contact-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  padding: 11px 14px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input::placeholder {
  color: var(--subtle);
}

.contact-form input:focus {
  outline: 0;
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px oklch(0.44 0.1 158 / 0.14);
}

.contact-form input:invalid:not(:placeholder-shown) {
  border-color: var(--err);
  box-shadow: 0 0 0 3px oklch(0.56 0.19 28 / 0.1);
}

.contact-form .btn {
  margin-top: 6px;
  width: 100%;
  max-width: 420px;
  padding: 14px 24px;
  font-size: 1rem;
}

.contact-status {
  min-height: 22px;
  margin: 8px 0 4px;
  font-size: 13.5px;
  font-weight: 600;
}

.contact-status.ok  { color: var(--ok); }
.contact-status.err { color: var(--err); }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  margin: 20px 16px 0;
  padding: 18px 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--subtle);
  font-size: 12.5px;
}

/* ── Modale ─────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 16px;
  background: oklch(0.14 0.02 260 / 0.6);
  backdrop-filter: blur(4px);
}

.modal-backdrop[hidden] { display: none; }

.modal-panel {
  width: min(520px, 100%);
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.8) inset,
    0 28px 60px var(--shadow-lg);
  padding: 28px 24px;
}

.modal-panel h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-family: 'Newsreader', ui-serif, Georgia, serif;
  color: oklch(0.2 0.03 265);
}

.modal-panel p {
  margin: 0;
  color: var(--muted);
}

.modal-close {
  margin-top: 18px;
}

/* ── Animations d'entrée ────────────────────────────────────── */
.reveal { opacity: 1; transform: none; }

.js-enhanced .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 480ms ease, transform 480ms ease;
}

.js-enhanced .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 760px) {
  main { padding: 18px 14px 52px; }
  .hero-content { padding: 24px 18px 20px; border-radius: 18px; }
  .director-cta { padding: 24px 18px; }
  h1 { font-size: clamp(1.75rem, 8.5vw, 2.5rem); }
}

@media (min-width: 640px) {
  .kpis        { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  .value { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}