:root {
  --primary: #1e4d8c;
  --primary-dark: #163a6e;
  --primary-light: #e8f0fa;
  --brand-gradient: linear-gradient(90deg, #3db8ff, #a855f7);
  --accent: #2d9f6f;
  --accent-light: #e6f7f0;
  --warn: #c47d0e;
  --warn-light: #fef6e8;
  --radius: 12px;
}

[data-theme="light"] {
  --text: #1a1a2e;
  --muted: #5c6370;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --nav-bg: rgba(255,255,255,0.92);
  --nav-text: #1a1a2e;
  --nav-text-hover: var(--primary);
  --nav-border: #e2e8f0;
  --hero-bg: #f8fafc;
  --hero-text: #1a1a2e;
  --hero-muted: #5c6370;
  --hero-accent: var(--primary);
  --section-alt: #ffffff;
  --footer-bg: #1a1a2e;
}

[data-theme="dark"] {
  --text: #e8edf5;
  --muted: #94a3b8;
  --border: rgba(255,255,255,0.08);
  --bg: #080c18;
  --card: #121a2e;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --nav-bg: rgba(8,12,24,0.96);
  --nav-text: rgba(255,255,255,0.9);
  --nav-text-hover: #7ec8ff;
  --nav-border: rgba(255,255,255,0.06);
  --hero-bg: #080c18;
  --hero-text: #fff;
  --hero-muted: rgba(255,255,255,0.7);
  --hero-accent: #7ec8ff;
  --section-alt: #0c1220;
  --footer-bg: #050810;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--nav-border);
}

.nav-bar {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 clamp(12px, 2vw, 28px);
  height: 72px;
  gap: 24px;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav-back:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--card);
  text-decoration: none;
}

.nav-back-arrow {
  font-size: 1.15rem;
  line-height: 1;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  line-height: 1;
  text-decoration: none;
}

.logo:hover { text-decoration: none; }

.logo-img {
  height: 56px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.logo-name {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--brand-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logo-shimmer 4s linear infinite;
  filter: drop-shadow(0 0 6px rgba(61, 184, 255, 0.3));
  transition: filter 0.25s;
}

.logo:hover .logo-name {
  filter: drop-shadow(0 0 12px rgba(61, 184, 255, 0.55)) drop-shadow(0 0 20px rgba(168, 85, 247, 0.25));
}

@keyframes logo-shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-name { animation: none; }
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.theme-toggle:hover { border-color: var(--primary); }

.nav-links a {
  color: var(--nav-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover { color: var(--nav-text-hover); }

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--primary-dark);
  text-decoration: none !important;
}

.nav-auth {
  color: var(--nav-text) !important;
  font-weight: 500 !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--nav-text);
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero */
.hero {
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero .container { position: relative; z-index: 1; }

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

@media (min-width: 901px) {
  .hero-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .hero-card { display: none; }
}

.hero-badge {
  display: inline-block;
  background: rgba(45, 159, 111, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(110, 231, 183, 0.25);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 16px;
}

.hero h1 span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.28);
}

.btn-outline:hover {
  border-color: #7ec8ff;
  color: #7ec8ff;
  text-decoration: none;
}

.hero .btn-outline {
  background: rgba(255,255,255,0.06);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
}

.trust-pill::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

.hero-card {
  background: var(--card);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-card h3 {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-quick {
  display: grid;
  gap: 12px;
}

.service-quick-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg);
  border-radius: 10px;
}

.service-quick-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.service-quick-icon.blue { background: var(--primary-light); }
.service-quick-icon.green { background: var(--accent-light); }
.service-quick-icon.orange { background: var(--warn-light); }

.service-quick-item strong {
  display: block;
  font-size: 14px;
}

.service-quick-item span {
  font-size: 12px;
  color: var(--muted);
}

/* Sections */
section { padding: 72px 0; }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--muted);
  font-size: 16px;
}

/* Trust banner */
.trust-banner {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 32px;
}

.trust-banner h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.trust-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.trust-list li::before {
  content: "✓";
  font-weight: 700;
  background: rgba(255,255,255,0.2);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 12px;
}

.step strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.step span {
  font-size: 13px;
  color: var(--muted);
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.service-card ul {
  list-style: none;
  font-size: 13px;
}

.service-card ul li {
  padding: 4px 0;
  color: var(--muted);
  display: flex;
  gap: 8px;
}

.service-card ul li::before {
  content: "→";
  color: var(--accent);
  flex-shrink: 0;
}

/* SAP */
.sap-box {
  background: var(--accent-light);
  border: 1px solid #a8dfc4;
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.sap-box h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text);
}

.sap-box p {
  font-size: 14px;
  color: var(--muted);
}

.sap-highlight {
  text-align: center;
  background: #fff;
  border-radius: 10px;
  padding: 20px 28px;
}

.sap-highlight .big {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.sap-highlight span {
  font-size: 13px;
  color: var(--muted);
}

/* Tarifs preview */
.tarifs-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.tarif-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.tarif-card .cat {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

.tarif-card .price {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.tarif-card .ex {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.tarifs-cta { text-align: center; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.contact-info h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.contact-item span {
  font-size: 14px;
  color: var(--muted);
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg);
  transition: 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}

/* Footer */
.footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.7);
  padding: 32px 0 24px;
  font-size: 14px;
  text-align: center;
}

.footer-contact {
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.footer-contact a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}

.footer-contact a:hover { color: #fff; text-decoration: underline; }

.footer-contact span {
  margin: 0 10px;
  color: rgba(255,255,255,0.4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer .logo-text { color: #fff; }

.footer-desc {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
}

.footer h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 14px;
}

.footer ul { list-style: none; }

.footer ul li { margin-bottom: 8px; }

.footer ul a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
}

.footer ul a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

/* Tarifs page */
.page-hero {
  padding: 48px 0 32px;
  text-align: center;
  background: var(--section-alt);
  border-bottom: 1px solid var(--border);
}

.page-hero-nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.page-hero-nav-row .hero-nav {
  margin-bottom: 0;
  width: auto;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.page-hero p { color: var(--muted); }

.tarif-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
}

.tarif-section-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.tarif-section-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.tarif-section-icon.blue { background: var(--primary-light); }
.tarif-section-icon.green { background: var(--accent-light); }
.tarif-section-icon.orange { background: var(--warn-light); }
.tarif-section-icon.purple { background: #f0e8fa; }

.tarif-section-header h2 { font-size: 17px; }
.tarif-section-header p { font-size: 13px; color: var(--muted); }

.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #f0f3f7;
  align-items: start;
}

.price-row:last-child { border-bottom: none; }

.price-name { font-weight: 500; font-size: 14px; }
.price-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.price-tag { font-weight: 700; font-size: 15px; color: var(--primary); white-space: nowrap; text-align: right; }

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 4px;
}

.badge.piece { background: var(--warn-light); color: var(--warn); }
.badge.inclus { background: var(--accent-light); color: var(--accent); }
.badge.devis { background: var(--primary-light); color: var(--primary); }

.subsection-title {
  padding: 10px 20px 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  background: #fafbfc;
  border-bottom: 1px solid var(--border);
}

.note-box {
  background: var(--warn-light);
  border: 1px solid #f0d9a8;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #7a5a10;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.info-card.highlight {
  background: var(--accent-light);
  border-color: #a8dfc4;
  grid-column: 1 / -1;
}

.info-card .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 4px;
}

.info-card .value {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.info-card .detail { font-size: 13px; color: var(--muted); margin-top: 4px; }

.maint-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.maint-card {
  padding: 20px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.maint-card:last-child { border-right: none; }
.maint-card.featured { background: var(--primary-light); }

.maint-name {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

.maint-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.maint-price span { font-size: 14px; font-weight: 500; color: var(--muted); }

.maint-list {
  list-style: none;
  margin-top: 14px;
  text-align: left;
  font-size: 13px;
}

.maint-list li {
  padding: 4px 0;
  display: flex;
  gap: 6px;
}

.maint-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

.faq-item {
  padding: 14px 20px;
  border-bottom: 1px solid #f0f3f7;
}

.faq-q { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.faq-a { font-size: 13px; color: var(--muted); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .contact-grid,
  .services-grid,
  .steps,
  .tarifs-preview,
  .footer-grid,
  .sap-box { grid-template-columns: 1fr; }

  .trust-list { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .maint-grid { grid-template-columns: 1fr; }
  .maint-card { border-right: none; border-bottom: 1px solid var(--border); }

  .nav-bar { position: relative; height: 64px; padding: 0 16px; }
  .logo-img { height: 44px; }
  .page-hero-nav-row { gap: 24px; margin-bottom: 20px; }
  .page-hero .nav-back { padding: 7px 10px; }
  .page-hero .nav-back-label { display: none; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 14px;
    border-bottom: 1px solid var(--nav-border);
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }
  .nav-links .nav-cta { text-align: center; }
  .nav-toggle { display: block; }
  .nav-right { gap: 10px; }

  .hero-nav { margin-bottom: 20px; gap: 10px; }
  .hero-nav a { padding: 10px 18px; font-size: 0.95rem; }

  .contact-min { grid-template-columns: 1fr !important; }
  .portfolio-grid { grid-template-columns: 1fr !important; }

  .sap-highlight { justify-self: start; }
}

@media (max-width: 600px) {
  section { padding: 48px 0; }
  .hero { padding: 48px 0 56px; }
}

/* Legal pages */
.legal-page { padding: 40px 0 72px; }
.legal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  max-width: 800px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 20px;
  margin: 32px 0 12px;
  color: var(--primary);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 16px; margin: 20px 0 8px; }
.legal-content p, .legal-content li { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.legal-content ul { padding-left: 20px; margin-bottom: 14px; }
.legal-content .legal-updated { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.legal-content .placeholder {
  background: var(--warn-light);
  padding: 2px 6px;
  border-radius: 4px;
  color: #7a5a10;
  font-weight: 600;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-legal a {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  text-decoration: none;
}
.footer-legal a:hover { color: #fff; text-decoration: underline; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.form-check input { margin-top: 3px; flex-shrink: 0; }
.form-check a { color: var(--primary); }

/* Cookie banner */
#cookie-banner[hidden], #cookie-modal[hidden] { display: none !important; }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
  padding: 20px;
}

.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.cookie-banner-text {
  flex: 1;
  min-width: 260px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.cookie-banner-text strong { color: var(--text); display: block; margin-bottom: 4px; font-size: 14px; }

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-banner-actions .btn { padding: 9px 16px; font-size: 13px; }

.btn-cookie-refuse {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-cookie-refuse:hover { border-color: var(--muted); color: var(--text); text-decoration: none; }

body.cookie-modal-open { overflow: hidden; }

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal {
  background: var(--card);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
}

.cookie-modal h3 { font-size: 18px; margin-bottom: 12px; }
.cookie-modal p { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cookie-option:last-of-type { border-bottom: none; }
.cookie-option strong { display: block; font-size: 14px; margin-bottom: 4px; }
.cookie-option span { font-size: 12px; color: var(--muted); }
.cookie-option .badge-required {
  font-size: 11px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle span {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  cursor: pointer;
  transition: 0.2s;
}
.cookie-toggle span::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}
.cookie-toggle input:checked + span { background: var(--accent); }
.cookie-toggle input:checked + span::before { transform: translateX(20px); }
.cookie-toggle input:disabled + span { opacity: 0.6; cursor: not-allowed; }

.cookie-modal-footer {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

@media print {
  .nav, .hero-actions, .contact-form, .nav-toggle, .cookie-banner, .cookie-modal-overlay { display: none; }
  body { background: #fff; }
}

/* —— Minimal homepage —— */
.hero-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
  margin: 0 0 28px;
  padding: 0;
  border: none;
  width: 100%;
}

.hero-nav a {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 0 14px rgba(61, 184, 255, 0.12);
  animation: hero-nav-glow 2.8s ease-in-out infinite;
  transition: color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.hero-nav a:nth-child(2) { animation-delay: 0.35s; }
.hero-nav a:nth-child(3) { animation-delay: 0.7s; }
.hero-nav a:nth-child(4) { animation-delay: 1.05s; }

.hero-nav a:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(61, 184, 255, 0.45), 0 0 48px rgba(168, 85, 247, 0.2);
}

[data-theme="dark"] .hero-nav a {
  box-shadow: 0 0 16px rgba(126, 200, 255, 0.15);
  background: rgba(18, 26, 46, 0.85);
}

[data-theme="dark"] .hero-nav a:hover {
  box-shadow: 0 0 32px rgba(126, 200, 255, 0.4), 0 0 56px rgba(168, 85, 247, 0.25);
}

@keyframes hero-nav-glow {
  0%, 100% {
    box-shadow: 0 0 12px rgba(61, 184, 255, 0.15), 0 0 0 rgba(168, 85, 247, 0);
  }
  50% {
    box-shadow: 0 0 22px rgba(61, 184, 255, 0.35), 0 0 36px rgba(168, 85, 247, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-nav a { animation: none; }
}

.hero-content {
  max-width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(3.5rem, 11vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--hero-text);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-content h1 span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: var(--hero-muted);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.hero-note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--muted);
}

.btn-ghost {
  background: transparent;
  color: var(--hero-text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

.btn-sm { padding: 8px 14px; font-size: 13px; }

.section-min { padding: 56px 0; }
.section-alt { background: var(--section-alt); }

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text);
}

.section-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin: -12px 0 28px;
}

.services-min {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-min {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.service-min-icon { font-size: 1.5rem; display: block; margin-bottom: 12px; }
.service-min h3 { font-size: 1rem; margin-bottom: 6px; color: var(--text); }
.service-min p { font-size: 0.875rem; color: var(--muted); line-height: 1.5; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.portfolio-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

.portfolio-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
}

.portfolio-preview {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.portfolio-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.portfolio-info { padding: 18px 20px; }
.portfolio-info h3 { font-size: 1rem; margin-bottom: 4px; color: var(--text); }
.portfolio-info p { font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.portfolio-link { font-size: 0.85rem; font-weight: 600; color: var(--primary); }

.contact-min {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-card:has(.contact-card-link:hover),
a.contact-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.contact-card-email {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.contact-card-link {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.contact-card-link:hover { text-decoration: none; }

.contact-copy-btn {
  flex-shrink: 0;
  align-self: stretch;
  padding: 0 18px;
  border: none;
  border-left: 1px solid var(--border);
  background: var(--section-alt);
  color: var(--primary);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.contact-copy-btn:hover { background: var(--primary-light); }

.contact-copy-btn.copied {
  color: var(--accent);
  background: var(--accent-light);
}

.contact-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 12px;
}

[data-theme="dark"] .contact-card-icon {
  background: rgba(30, 77, 140, 0.25);
  color: #7ec8ff;
}

.contact-card-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-card-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.contact-card:hover .contact-card-value { color: var(--primary); }

.contact-zone {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 4px 4px 0;
  margin: 0;
}

.contact-form-min {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.contact-selects {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form-min input,
.contact-form-min select,
.contact-form-min textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
}

.contact-form-min select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.contact-form-min input:focus,
.contact-form-min select:focus,
.contact-form-min textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-form-min select:focus:disabled {
  border-color: var(--border);
}

.contact-form-min .form-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin: 4px 0 8px;
  cursor: pointer;
}

.contact-form-min .form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.contact-form-min .form-check span {
  line-height: 1.45;
  padding-top: 1px;
}

.cookie-banner-inner p {
  flex: 1;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* —— Auth (connexion / inscription) —— */
.auth-section { padding-bottom: 72px; }

.auth-wrap {
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.auth-notice {
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--section-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 20px;
  line-height: 1.45;
}

.auth-notice--pulse {
  border-color: var(--primary);
  color: var(--text);
}

.auth-notice--ready {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-light);
}

.auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.auth-google:hover {
  border-color: var(--primary);
  background: var(--card);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span { flex-shrink: 0; }

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-top: 4px;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
}

.auth-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-form .form-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin: 8px 0 4px;
  cursor: pointer;
}

.auth-form .form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--primary);
}

.auth-form .form-check span {
  font-size: 0.85rem;
  line-height: 1.45;
}

.auth-hint {
  margin: -4px 0 4px;
  font-size: 0.82rem;
  text-align: right;
}

.auth-hint a { text-decoration: none; }
.auth-hint a:hover { text-decoration: underline; }

.auth-submit { width: 100%; margin-top: 4px; }

.auth-switch {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.auth-feedback {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--primary);
  line-height: 1.45;
}

.auth-feedback--error { color: #c0392b; }

[data-theme="dark"] .auth-feedback--error { color: #f87171; }

.nav-links a[aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 500px) {
  .auth-row { grid-template-columns: 1fr; }
  .auth-card { padding: 22px 18px; }
}

@media (max-width: 700px) {
  .services-min { grid-template-columns: 1fr; }
}

/* —— Tarifs page (minimal) —— */
.tarifs-page {
  padding: 40px 0 72px;
}

.tarifs-key {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.tarifs-key-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.page-hero--tarifs-back {
  position: relative;
}

.page-hero--tarifs-back > .nav-back {
  position: absolute;
  top: 48px;
  left: calc(max(20px, 50vw - 550px) + (min(1100px, 100vw - 40px) - 36px) / 8);
  transform: translateX(-50%);
  z-index: 2;
}

.tarifs-key-item strong {
  display: block;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.tarifs-key-item span {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}

.tarifs-note {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 28px;
  padding: 12px 16px;
  background: var(--section-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.tarifs-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 36px;
}

.tarifs-jump a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
}

.tarifs-jump a:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.tarifs-cat {
  margin-bottom: 12px;
  scroll-margin-top: 88px;
}

.tarifs-accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.tarifs-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.tarifs-accordion summary::-webkit-details-marker { display: none; }

.tarifs-accordion summary::marker { content: ''; }

.tarifs-accordion summary::after {
  content: '−';
  flex-shrink: 0;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--muted);
}

.tarifs-accordion:not([open]) summary::after { content: '+'; }

.tarifs-accordion summary:hover { color: var(--primary); }

.tarifs-accordion-body {
  border-top: 1px solid var(--border);
}

.tarifs-accordion-body .tarifs-list {
  border: none;
  border-radius: 0;
}

.tarifs-accordion-body .tarifs-cat-desc {
  padding: 12px 18px 0;
}

.tarifs-accordion-body .tarifs-sub:first-of-type {
  margin-top: 12px;
}

.tarifs-accordion-body .tarifs-footnote {
  padding: 4px 18px 16px;
  margin-top: 0;
}

.tarifs-accordion-body .tarifs-plans {
  padding: 16px 18px 8px;
}

.tarifs-faq {
  margin-top: 16px;
  margin-bottom: 32px;
}

.tarifs-faq .tarifs-accordion-body dl > div {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.tarifs-faq .tarifs-accordion-body dl > div:last-child { border-bottom: none; }

.tarifs-cat-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.tarifs-garantie {
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 16px 18px;
}

[data-theme="dark"] .tarifs-garantie {
  background: rgba(45, 159, 111, 0.12);
  border-color: rgba(45, 159, 111, 0.35);
}

.tarifs-garantie strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text);
}

.tarifs-garantie p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.tarifs-footnote {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.45;
}

.tarifs-footnote abbr {
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
}

.tarifs-sub {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 20px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.tarifs-sub:first-of-type { margin-top: 0; }

.tarifs-list {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.tarifs-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
}

.tarifs-row:last-child { border-bottom: none; }

.tarifs-row dt {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}

.tarifs-row dt em {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.45;
  max-width: 42rem;
}

.tarifs-row dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.tarifs-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tarifs-plan {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.tarifs-plan-featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.tarifs-plan h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 8px;
}

.tarifs-plan-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}

.tarifs-plan-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.tarifs-plan ul {
  list-style: none;
  text-align: left;
  font-size: 0.8rem;
  color: var(--muted);
}

.tarifs-plan li {
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}

.tarifs-plan li:last-child { border-bottom: none; }


.tarifs-faq dt {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.tarifs-faq dd {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.tarifs-cta {
  text-align: center;
}

@media (max-width: 900px) {
  .tarifs-key { grid-template-columns: repeat(2, 1fr); }
  .tarifs-plans { grid-template-columns: 1fr; }
  .page-hero--tarifs-back > .nav-back {
    left: calc(max(20px, 50vw - 550px) + (min(1100px, 100vw - 40px) - 12px) / 4);
  }
}

@media (max-width: 500px) {
  .tarifs-key { grid-template-columns: 1fr; }
  .tarifs-row { flex-direction: column; gap: 4px; }
  .tarifs-row dd { align-self: flex-start; }
  .page-hero--tarifs-back > .nav-back {
    left: calc(max(20px, 50vw - 550px) + min(1100px, 100vw - 40px) / 2);
  }
}

.nav-logout {
  background: none;
  border: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  padding: 8px 0;
}

.nav-logout:hover { color: var(--primary); }

.auth-resend-btn {
  background: none;
  border: none;
  font: inherit;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.espace-section { padding-bottom: 72px; }

.devis-list {
  display: grid;
  gap: 16px;
}

.devis-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.devis-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.devis-ref {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.devis-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.devis-badge--envoye { background: var(--primary-light); color: var(--primary); }
.devis-badge--accepte,
.devis-badge--paye,
.devis-badge--acompte_recu { background: var(--accent-light); color: var(--accent); }
.devis-badge--refuse,
.devis-badge--expire,
.devis-badge--annule { background: var(--warn-light); color: var(--warn); }
.devis-badge--termine { background: var(--border); color: var(--muted); }

.devis-title {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.devis-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.devis-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.devis-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.devis-actions { margin-top: 14px; }

.devis-soon {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

.devis-empty {
  text-align: center;
  padding: 48px 20px;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.devis-empty p {
  color: var(--muted);
  margin-bottom: 20px;
}
