/* ============================================================
   RENOV+ÉNERGIE — style.css
   Design system complet, Mobile-First
   ============================================================ */

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Palette principale */
  --green-dark:   #0d2117;
  --green:        #1a6b47;
  --green-mid:    #2d9466;
  --green-light:  #e8f5ee;
  --green-hover:  #155a3a;

  /* Accent */
  --accent:       #f0a500;
  --accent-hover: #d4920a;
  --accent-light: rgba(240, 165, 0, 0.15);

  /* Neutres */
  --white:        #ffffff;
  --bg:           #f7faf8;
  --text:         #1a2e22;
  --text-muted:   #5a7a65;
  --border:       #d4e6db;
  --border-focus: var(--green);

  /* Sémantique */
  --error:        #dc2626;
  --error-light:  #fef2f2;
  --success:      #16a34a;
  --success-light:#f0fdf4;

  /* Rayon */
  --rad-sm:  8px;
  --rad:     12px;
  --rad-lg:  20px;
  --rad-xl:  28px;

  /* Typo */
  --font-display: 'Inter', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Ombres */
  --shadow-sm:  0 1px 4px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.07);

  /* Transitions */
  --t-fast:   .15s ease;
  --t-normal: .25s ease;
  --t-spring: .3s cubic-bezier(.4,0,.2,1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -.03em;
}

img, svg { display: block; max-width: 100%; }

ul[role="list"], ol[role="list"] { list-style: none; }

button { cursor: pointer; font-family: inherit; }

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

/* ── UTILITY ──────────────────────────────────────────────── */
.section-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-tag {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--green-mid);
  margin-bottom: .4rem;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 1.5rem;
}

/* ── NAVBAR ───────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 60px;
}

.nav-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--green);
  text-decoration: none;
  letter-spacing: -.02em;
}

.logo-accent { color: var(--accent); }

.nav-tel {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--green);
  text-decoration: none;
  transition: color var(--t-fast);
}

.nav-tel:hover { color: var(--green-mid); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(155deg, var(--green-dark) 55%, var(--green));
  color: var(--white);
  padding: 3rem 1.25rem 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 500px 400px at 110% 0%, rgba(240,165,0,.07) 0%, transparent 60%),
    radial-gradient(ellipse 300px 300px at -20% 110%, rgba(255,255,255,.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  background: rgba(240,165,0,.16);
  border: 1px solid rgba(240,165,0,.35);
  border-radius: 100px;
  padding: .3rem .85rem;
  font-size: .72rem;
  font-weight: 600;
  color: #fcd34d;
  margin-bottom: 1.1rem;
  letter-spacing: .02em;
}

.hero-title {
  font-size: clamp(1.9rem, 7vw, 3.2rem);
  font-weight: 800;
  margin-bottom: .75rem;
  color: var(--white);
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: .95rem;
  color: rgba(255,255,255,.72);
  max-width: 480px;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  margin-top: 1.25rem;
}

.hero-trust li {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  gap: .3rem;
}

.hero-trust li i { color: var(--accent); font-size: .95rem; }

/* ── CTA BUTTONS ──────────────────────────────────────────── */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  padding: .9rem 1.75rem;
  border-radius: var(--rad);
  border: none;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  box-shadow: 0 4px 20px rgba(240,165,0,.35);
  text-decoration: none;
}

.cta-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(240,165,0,.45);
}

.cta-primary:active { transform: scale(.97); }

.cta-center {
  display: flex;
  width: 100%;
  max-width: 360px;
  margin: 2rem auto 0;
}

.cta-white {
  background: var(--white);
  color: var(--green);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

.cta-white:hover { background: #f0fdf4; box-shadow: 0 8px 28px rgba(0,0,0,.2); }

/* ── STATS BAR ────────────────────────────────────────────── */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem;
}

.stats-container {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 70px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}

.stat-label {
  font-size: .7rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: .2rem;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── SERVICES ─────────────────────────────────────────────── */
.services {
  padding: 3rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .875rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--rad-lg);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color var(--t-normal), box-shadow var(--t-normal), transform var(--t-normal);
}

.service-card:hover {
  border-color: var(--green-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--rad-sm);
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-icon i {
  font-size: 1.35rem;
  color: var(--green);
}

.service-body h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: .3rem;
}

.service-body p {
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.service-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 100px;
  background: var(--green-light);
  color: var(--green);
  margin-top: .5rem;
  letter-spacing: .01em;
}

/* ── TRUST SECTION ────────────────────────────────────────── */
.trust-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .875rem;
}

.trust-card {
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--rad);
  background: var(--bg);
}

.trust-card i {
  font-size: 1.5rem;
  color: var(--green);
  margin-bottom: .5rem;
}

.trust-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: .3rem;
}

.trust-card p {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── CTA SECTION ──────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  padding: 3rem 1.25rem;
}

/* ── MODAL ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,33,23,.72);
  backdrop-filter: blur(3px);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-spring);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: var(--rad-xl) var(--rad-xl) 0 0;
  width: 100%;
  max-width: 520px;
  padding: 2rem 1.5rem 2.5rem;
  position: relative;
  transform: translateY(100%);
  transition: transform var(--t-spring);
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background var(--t-fast), color var(--t-fast);
}

.modal-close:hover { background: var(--border); color: var(--text); }

/* Progress */
.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: .5rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 2px;
  transition: width var(--t-spring);
  width: 0%;
}

.progress-label {
  font-size: .72rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* Step header */
.step-header {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  margin-bottom: 1.25rem;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--green-dark);
  letter-spacing: -.02em;
}

.modal-sub {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .15rem;
}

/* Forms */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.form-group {
  margin-bottom: .875rem;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: .8rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: .35rem;
}

.required { color: var(--error); }

.form-input {
  width: 100%;
  padding: .7rem .875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--rad-sm);
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  -webkit-appearance: none;
}

.form-input::placeholder { color: #9db3a5; }

.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(26,107,71,.12);
}

.form-input.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}

.field-error {
  font-size: .75rem;
  color: var(--error);
  margin-top: .25rem;
  min-height: 1em;
}

/* Option buttons */
.option-fieldset {
  border: none;
  margin-bottom: 1rem;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-top: .4rem;
}

.option-grid--3 { grid-template-columns: repeat(3, 1fr); }
.option-grid--4 { grid-template-columns: repeat(2, 1fr); }

.option-btn {
  padding: .65rem .5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--rad-sm);
  background: var(--white);
  font-size: .82rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
  text-align: center;
  line-height: 1.3;
}

.option-btn i { font-size: 1.1rem; }

.option-btn:hover {
  border-color: var(--green-mid);
  background: var(--green-light);
  color: var(--green);
}

.option-btn.selected {
  border-color: var(--green);
  background: var(--green-light);
  color: var(--green);
  font-weight: 600;
}

/* Buttons */
.btn-next {
  width: 100%;
  padding: .875rem;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  border: none;
  border-radius: var(--rad-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: background var(--t-fast), transform var(--t-fast);
  margin-top: .5rem;
}

.btn-next:hover { background: var(--green-hover); transform: translateY(-1px); }
.btn-next:active { transform: scale(.98); }

.btn-next--submit { background: var(--accent); }
.btn-next--submit:hover { background: var(--accent-hover); }

.btn-back {
  display: flex;
  align-items: center;
  gap: .3rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: .82rem;
  padding: .6rem 0;
  margin-top: .5rem;
  transition: color var(--t-fast);
}

.btn-back:hover { color: var(--text); }

.legal-notice {
  font-size: .72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}

/* Success screen */
.success-screen {
  text-align: center;
  padding: .5rem 0;
}

.success-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.success-icon i {
  font-size: 2.5rem;
  color: var(--green);
}

.success-detail {
  background: var(--green-light);
  border-radius: var(--rad);
  padding: 1rem 1.125rem;
  text-align: left;
  margin: 1rem 0 1.5rem;
}

.success-detail p {
  font-size: .84rem;
  color: var(--green);
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .6rem;
  line-height: 1.5;
}

.success-detail p:last-child { margin-bottom: 0; }
.success-detail p i { font-size: 1rem; flex-shrink: 0; margin-top: .1rem; }

/* Loading state */
.btn-loading {
  opacity: .7;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-left: .5rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── BACK-OFFICE ──────────────────────────────────────────── */
.backoffice {
  background: var(--green-dark);
  padding: 2.5rem 0;
  color: var(--white);
}

.bo-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.bo-login {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--rad);
  padding: 1.25rem;
  max-width: 320px;
}

.bo-hint {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  margin-bottom: .75rem;
}

.bo-input {
  width: 100%;
  padding: .65rem .875rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--rad-sm);
  color: var(--white);
  font-size: .9rem;
  outline: none;
  margin-bottom: .625rem;
  transition: border-color var(--t-fast);
}

.bo-input::placeholder { color: rgba(255,255,255,.35); }
.bo-input:focus { border-color: rgba(255,255,255,.5); }

.btn-bo {
  width: 100%;
  padding: .7rem;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
  border: none;
  border-radius: var(--rad-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  transition: background var(--t-fast);
}

.btn-bo:hover { background: var(--accent-hover); }

/* BO Stats */
.bo-stats {
  display: flex;
  gap: .75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.bo-stat {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--rad-sm);
  padding: .75rem 1rem;
  min-width: 100px;
}

.bo-stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.bo-stat-label {
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  margin-top: .2rem;
}

/* BO Controls */
.bo-controls {
  display: flex;
  gap: .625rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.bo-search {
  flex: 1;
  min-width: 160px;
  padding: .6rem .875rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--rad-sm);
  color: var(--white);
  font-size: .85rem;
  outline: none;
}

.bo-search::placeholder { color: rgba(255,255,255,.35); }

.bo-actions {
  display: flex;
  gap: .5rem;
}

.btn-export {
  padding: .55rem .875rem;
  background: rgba(255,255,255,.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--rad-sm);
  font-size: .78rem;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: .35rem;
  transition: background var(--t-fast);
}

.btn-export:hover { background: rgba(255,255,255,.2); }

.btn-danger {
  padding: .55rem .875rem;
  background: rgba(220,38,38,.15);
  color: #fca5a5;
  border: 1px solid rgba(220,38,38,.3);
  border-radius: var(--rad-sm);
  font-size: .78rem;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: .35rem;
  transition: background var(--t-fast);
}

.btn-danger:hover { background: rgba(220,38,38,.25); }

/* Leads table */
.leads-wrapper { overflow-x: auto; }

.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
  min-width: 520px;
}

.leads-table th {
  text-align: left;
  padding: .6rem .875rem;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.5);
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.leads-table td {
  padding: .75rem .875rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
  vertical-align: middle;
}

.leads-table tr:hover td {
  background: rgba(255,255,255,.04);
}

.lead-name {
  font-weight: 600;
  color: var(--white);
}

.lead-addr {
  font-size: .72rem;
  color: rgba(255,255,255,.35);
  margin-top: .15rem;
}

.lead-badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 100px;
  font-size: .68rem;
  font-weight: 600;
  background: var(--accent-light);
  color: var(--accent);
}

.lead-date {
  font-size: .72rem;
  color: rgba(255,255,255,.35);
}

.leads-empty {
  color: rgba(255,255,255,.35);
  font-size: .85rem;
  text-align: center;
  padding: 2.5rem 0;
}

.bo-error {
  color: #fca5a5;
  font-size: .82rem;
  margin-top: .5rem;
  padding: .625rem .875rem;
  background: rgba(220,38,38,.15);
  border-radius: var(--rad-sm);
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: #060f0a;
  color: rgba(255,255,255,.35);
  font-size: .78rem;
  padding: 2rem 1.25rem;
  text-align: center;
}

.footer-inner { max-width: 600px; margin: 0 auto; }

.footer a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color var(--t-fast);
}

.footer a:hover { color: rgba(255,255,255,.8); }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 380px) {
  .hero-title { font-size: 1.7rem; }
  .form-row { grid-template-columns: 1fr; }
  .stats-container { gap: .4rem; }
  .stat-num { font-size: 1.3rem; }
  .option-grid--4 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .modal {
    border-radius: var(--rad-xl);
    margin-bottom: 2rem;
    max-height: 88vh;
  }
  .modal-overlay { align-items: center; }
}

@media (min-width: 768px) {
  .hero { padding: 4.5rem 1.5rem 5rem; }
  .services { padding: 4rem 0; }
  .stats-container { flex-wrap: nowrap; }
  .stat-divider { display: block; }
}

/* ── ACCESSIBILITY ────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ── ENHANCED RESPONSIVE DESIGN (Mobile-First) ──────────────────────── */
@media (max-width: 480px) {
  /* Hero section improvements */
  .hero {
    padding: 2.5rem 1rem 3rem;
  }
  
  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    line-height: 1.3;
  }
  
  .hero-sub {
    font-size: .9rem;
    line-height: 1.6;
  }
  
  .hero-badge {
    padding: .25rem .6rem;
    font-size: .65rem;
  }
  
  .hero-trust {
    gap: .5rem .75rem;
  }
  
  .hero-trust li {
    font-size: .75rem;
  }
  
  /* Stats bar */
  .stats-bar {
    padding: 1rem;
  }
  
  .stats-container {
    gap: .5rem;
    flex-wrap: wrap;
  }
  
  .stat {
    min-width: 80px;
  }
  
  .stat-num {
    font-size: 1.4rem;
  }
  
  .stat-label {
    font-size: .65rem;
  }
  
  /* Services */
  .services {
    padding: 2rem 0;
  }
  
  .services-grid {
    gap: .75rem;
  }
  
  .service-card {
    padding: 1rem;
    gap: .75rem;
  }
  
  .service-icon {
    width: 42px;
    height: 42px;
  }
  
  .service-icon i {
    font-size: 1.2rem;
  }
  
  .service-body h3 {
    font-size: .9rem;
  }
  
  .service-body p {
    font-size: .8rem;
  }
  
  .service-badge {
    font-size: .65rem;
    padding: .15rem .5rem;
  }
  
  /* Trust section */
  .trust-section {
    padding: 2rem 0;
  }
  
  .trust-grid {
    gap: .75rem;
  }
  
  .trust-card {
    padding: 1rem;
  }
  
  .trust-card i {
    font-size: 1.3rem;
  }
  
  .trust-card strong {
    font-size: .85rem;
  }
  
  .trust-card p {
    font-size: .75rem;
  }
  
  /* CTA section */
  .cta-section {
    padding: 2rem 1rem;
  }
  
  .cta-section h2 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }
  
  .cta-section p {
    font-size: .9rem;
  }
  
  /* Form improvements */
  .form-input {
    padding: .75rem .9rem;
    font-size: .95rem;
  }
  
  .form-label {
    font-size: .85rem;
  }
  
  /* Buttons - ensure minimum touch target size */
  .cta-primary,
  .btn-bo,
  .btn-next,
  .btn-back {
    min-height: 44px;
    padding-top: calc(.9rem - 1px);
    padding-bottom: calc(.9rem - 1px);
  }
  
  .cta-primary {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font-size: .95rem;
  }
  
  /* Option buttons */
  .option-btn {
    min-height: 44px;
    padding: .75rem .5rem;
    font-size: .85rem;
  }
  
  .option-btn i {
    font-size: 1.2rem;
  }
  
  /* Modal improvements */
  .modal {
    padding: 1.5rem 1rem 2rem;
    border-radius: var(--rad-lg) var(--rad-lg) 0 0;
  }
  
  .modal-title {
    font-size: 1.2rem;
  }
  
  .modal-sub {
    font-size: .85rem;
  }
  
  .form-row {
    gap: .75rem;
  }
  
  .progress-label {
    font-size: .75rem;
  }
  
  /* Backoffice specific (if accessed directly) */
  .backoffice {
    padding: 2rem 0;
  }
  
  .bo-login {
    padding: 1rem;
  }
  
  .bo-input {
    padding: .7rem .9rem;
    font-size: .9rem;
  }
  
  .btn-bo {
    padding: .75rem;
    font-size: .9rem;
  }
  
  .bo-search {
    padding: .65rem .9rem;
    font-size: .9rem;
  }
  
  .btn-export,
  .btn-danger {
    padding: .6rem .9rem;
    font-size: .82rem;
  }
  
  /* Footer */
  .footer {
    padding: 1.5rem 1rem;
    text-align: center;
  }
  
  .footer p {
    font-size: .75rem;
  }
  
  .footer-inner {
    flex-direction: column;
    gap: .75rem;
  }
  
  .footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
  }
}

/* Tablet and small desktop enhancements */
@media (min-width: 481px) and (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-container {
    flex-wrap: nowrap;
  }
}

/* Large desktop optimizations */
@media (min-width: 1200px) {
  .section-container {
    max-width: 900px;
  }
  
  .hero {
    padding: 5rem 2rem 6rem;
  }
  
  .services {
    padding: 5rem 0;
  }
  
  .trust-section {
    padding: 4rem 0;
  }
  
  .cta-section {
    padding: 4rem 2rem;
  }
}

/* Accessibility enhancements for touch devices */
@media (hover: none) and (pointer: coarse) {
  /* Prevent hover effects on touch devices */
  .cta-primary:hover,
  .option-btn:hover,
  .trust-card:hover,
  .service-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
  
  /* Increase touch targets */
  .cta-primary,
  .btn-bo,
  .btn-next,
  .btn-back,
  .option-btn {
    min-height: 48px;
  }
}