/* ─────────────────────────────────────────────────────────────
   LVA CONNECT — site vitrine
   Concept : "le classeur" — le site se feuillette comme un
   dossier administratif, avec des onglets numérotés, des fiches
   cartonnées, et un tampon d'enregistrement qui revient comme
   signature visuelle. Reprend la palette exacte du logiciel.
───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500;1,9..144,600&family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --ink: #22303C;
  --ink-soft: #5B6B76;
  --paper: #FAF6EE;
  --paper-raised: #FFFFFF;
  --line: rgba(34,48,60,0.14);
  --line-strong: rgba(34,48,60,0.28);
  --teal: #2F6F62;
  --teal-soft: #E4EFEA;
  --amber: #B9862E;
  --amber-soft: #F6ECD8;
  --rust: #A3432F;
  --rust-soft: #F3E1DC;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
em { font-style: italic; color: var(--teal); }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--amber);
  display: inline-block;
}

/* ── En-tête / onglets de classeur ─────────────────────────── */
header.site {
  background: var(--ink);
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--paper);
  text-decoration: none;
}
.brand-mark {
  height: 26px;
  width: auto;
  flex-shrink: 0;
  display: block;
}
nav.tabs {
  display: flex;
  gap: 2px;
  align-items: stretch;
  height: 100%;
}
nav.tabs a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  text-decoration: none;
  color: rgba(250,246,238,0.62);
  font-size: 13.5px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
nav.tabs a .tab-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--amber);
  opacity: 0.85;
}
nav.tabs a:hover { color: var(--paper); }
nav.tabs a.active {
  color: var(--paper);
  border-bottom-color: var(--amber);
}
.nav-toggle { display: none; }

.header-right { display: flex; align-items: center; gap: 16px; }

.btn-connexion {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 9px 16px;
  border: 1px solid var(--amber);
  border-radius: 7px;
  color: var(--paper);
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-connexion:hover { background: var(--amber); color: var(--ink); }

@media (max-width: 780px) {
  .header-right { gap: 10px; }
  .btn-connexion { padding: 8px 12px; font-size: 13px; }
}

@media (max-width: 780px) {
  nav.tabs { display: none; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 8px;
    border: 1px solid rgba(250,246,238,0.25); background: none; color: var(--paper);
    cursor: pointer;
  }
  nav.tabs.open {
    display: flex; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0;
    background: var(--ink); border-top: 1px solid rgba(250,246,238,0.14); height: auto; padding: 6px 0 14px;
  }
  nav.tabs.open a { padding: 13px 28px; border-bottom: none; border-left: 2px solid transparent; }
  nav.tabs.open a.active { border-left-color: var(--amber); background: rgba(255,255,255,0.03); }
}

/* ── Boutons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 24px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 4px 14px rgba(47,111,98,0.28); }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(47,111,98,0.36); }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(250,246,238,0.35); }
.btn-ghost:hover { border-color: var(--paper); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { box-shadow: 0 6px 18px rgba(34,48,60,0.3); }

/* ── Le tampon (signature visuelle récurrente) ─────────────── */
.tampon {
  width: 128px; height: 128px;
  border: 2.5px solid var(--rust);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transform: rotate(-9deg);
  color: var(--rust);
  font-family: 'IBM Plex Mono', monospace;
  text-align: center;
  position: relative;
  flex-shrink: 0;
  opacity: 0.92;
}
.tampon::before {
  content: "";
  position: absolute; inset: 7px;
  border: 1px solid var(--rust);
  border-radius: 50%;
}
.tampon-text {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.09em; line-height: 1.5;
}

/* ── Fiches / cartes (motif de dossier cartonné) ───────────── */
.fiche {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 3px 10px 10px 3px;
  border-left: 3px solid var(--teal);
  padding: 26px 24px;
  box-shadow: 0 1px 2px rgba(34,48,60,0.04);
  position: relative;
}
.fiche.amber { border-left-color: var(--amber); }
.fiche.rust { border-left-color: var(--rust); }
.fiche h3 { font-size: 18px; margin-bottom: 8px; }
.fiche p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 0; }
.fiche-tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.08em; color: var(--ink-soft); text-transform: uppercase;
  margin-bottom: 10px; display: block;
}

/* ── Sections ──────────────────────────────────────────────── */
section { padding: 88px 0; }
section.tight { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); }
.section-head p { color: var(--ink-soft); font-size: 16.5px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

hr.hairline { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ── Pied de page ──────────────────────────────────────────── */
footer.site {
  background: var(--ink);
  color: rgba(250,246,238,0.6);
  padding: 56px 0 28px;
  font-size: 13.5px;
}
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
footer.site a { color: rgba(250,246,238,0.8); text-decoration: none; }
footer.site a:hover { color: var(--paper); }
footer.site .foot-col h4 {
  font-family: 'IBM Plex Mono', monospace; color: var(--amber); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; font-weight: 600;
}
footer.site .foot-col div { margin-bottom: 7px; }
footer.site .foot-bottom {
  max-width: 1120px; margin: 40px auto 0; padding: 20px 28px 0; border-top: 1px solid rgba(250,246,238,0.12);
  font-size: 12px; color: rgba(250,246,238,0.4);
}

@media (max-width: 600px) {
  section { padding: 56px 0; }
  .header-inner { height: 60px; }
}

/* ─────────────────────────────────────────────────────────────
   Ajouts — refonte légère (héros responsive, bandeau CTA,
   formulaires, étapes, accessibilité, animation du tampon)
───────────────────────────────────────────────────────────── */

/* ── Héros (accueil) ───────────────────────────────────────── */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-visual { position: relative; height: 380px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { height: 320px; }
}

/* ── Bandeau CTA ───────────────────────────────────────────── */
.cta-band {
  background: var(--ink);
  border-radius: 16px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  color: var(--paper);
}
.cta-band h2 { color: var(--paper); font-size: 28px; }
.cta-band p { color: rgba(250,246,238,0.7); margin-bottom: 0; }
.cta-band .cta-texte { max-width: 460px; }
@media (max-width: 600px) { .cta-band { padding: 36px 26px; } }

/* ── Formulaires ───────────────────────────────────────────── */
.champ label {
  font-size: 12.5px;
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}
.champ input,
.champ textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
}
.champ textarea { resize: vertical; }
.champ input:focus,
.champ textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}

/* ── Étapes de mise en route (vraie séquence) ──────────────── */
.etapes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.etape {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 3px 10px 10px 3px;
  border-left: 3px solid var(--amber);
  padding: 26px 24px;
}
.etape .etape-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--amber);
  display: block;
  margin-bottom: 10px;
}
.etape h3 { font-size: 17px; margin-bottom: 8px; }
.etape p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 0; }
@media (max-width: 900px) { .etapes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .etapes { grid-template-columns: 1fr; } }

/* ── Accessibilité ─────────────────────────────────────────── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--amber);
  color: #fff;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ── Tampon : un seul moment animé, au chargement ──────────── */
@keyframes tamponner {
  0%   { transform: rotate(-9deg) scale(2.1); opacity: 0; }
  55%  { transform: rotate(-9deg) scale(0.94); opacity: 1; }
  100% { transform: rotate(-9deg) scale(1); opacity: 0.92; }
}
.tampon.anime {
  animation: tamponner 0.55s cubic-bezier(0.2, 0.8, 0.3, 1) 0.55s backwards;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tampon.anime { animation: none; }
  .btn, .btn:hover { transition: none; transform: none; }
}

/* Liste "inclus" de la page tarifs : une colonne sur mobile */
@media (max-width: 700px) {
  .fiche ul[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}

/* ── Bloc "J'ai déjà un code" (page Démo) ──────────────────── */
.code-acces {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 20px 26px;
  margin-bottom: 24px;
}
.code-acces .code-texte { flex: 1; min-width: 220px; }
.code-acces .code-texte strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.code-acces .code-texte span { display: block; color: var(--ink-soft); font-size: 13px; }
.code-acces form { display: flex; gap: 10px; flex-wrap: wrap; }
.code-acces input {
  width: 150px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  background: #fff;
  color: var(--ink);
}
.code-acces input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
@media (max-width: 600px) {
  .code-acces { flex-direction: column; align-items: stretch; }
  .code-acces form { flex-direction: column; }
  .code-acces input { width: 100%; }
}