:root {
  --noir: #0a0a0a;
  --surface: #111111;
  --surface2: #1a1a1a;
  --orange: #ff5c00;
  --orange2: #ff8c42;
  --blanc: #f5f0eb;
  --muted: #7e8b9b; /* Ajusté pour le contraste WCAG (Anciennement #666) */
  --border: #262626;
  --display: 'Bebas Neue', Arial Narrow, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --mono: 'DM Mono', 'Courier New', monospace;
}
/* ── CHARGEMENT DES POLICES LOCALES (ZÉRO REQUÊTE CRITIQUE) ── */

/* Bebas Neue */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/bebas-neue.woff2') format('woff2');
}

/* DM Sans - Regular */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-sans-regular.woff2') format('woff2');
}

/* DM Sans - Medium */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/dm-sans-medium.woff2') format('woff2');
}

/* DM Mono */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-mono.woff2') format('woff2');
}
/* Garantir font-display:swap même via Google Fonts */
@font-face { font-family:'Bebas Neue'; font-display:swap; src:local('Bebas Neue'); }
@font-face { font-family:'DM Sans'; font-display:swap; src:local('DM Sans'); }
@font-face { font-family:'DM Mono'; font-display:swap; src:local('DM Mono'); }

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--noir);
  color: var(--blanc);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NOISE TEXTURE ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: .4;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: all .3s;
  background: transparent;
}
nav.scrolled {
  background: rgba(10,10,10,.95);
  border-color: var(--border);
  backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: .5px;
  transition: color .2s;
}
.nav-links a:hover { color: var(--blanc); }

.nav-cta {
  background: var(--orange) !important;
  color: var(--noir) !important;
  padding: 10px 22px;
  border-radius: 2px;
  font-weight: 500 !important;
  font-family: var(--body) !important;
  font-size: 14px !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--orange2) !important; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-left {
  padding: 140px 48px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-tag::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--orange);
}

.hero-h1 {
  font-family: var(--display);
  font-size: clamp(72px, 8vw, 120px);
  line-height: .92;
  letter-spacing: 2px;
  margin-bottom: 32px;
}

.hero-h1 .accent { color: var(--orange); }

.hero-sub {
  font-size: 18px;
  font-weight: 300;
  color: #ccd6f6; /* Contraste renforcé sur fond sombre */
  max-width: 420px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero-sub strong { color: var(--blanc); font-weight: 500; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--noir);
  padding: 16px 36px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all .2s;
  letter-spacing: .3px;
}
.btn-primary:hover {
  background: var(--orange2);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--blanc);
  text-decoration: none;
  font-size: 14px;
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap .2s;
}
.btn-ghost:hover { gap: 14px; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat-item { }
.stat-num {
  font-family: var(--display);
  font-size: 42px;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-lbl { font-size: 12px; color: var(--muted); font-family: var(--mono); }

/* Hero right — visuel géométrique */
.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.geo-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(255,92,0,.15) 0%, transparent 60%);
}

.geo-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,92,0,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,92,0,.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

.geo-card {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px;
  width: 340px;
  transform: rotate(-2deg);
  box-shadow: 20px 20px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(255,92,0,.1);
}

.geo-card-inner {
  transform: rotate(2deg);
}

.geo-card-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.geo-card-price {
  font-family: var(--display);
  font-size: 72px;
  line-height: 1;
  color: var(--blanc);
  margin-bottom: 4px;
}
.geo-card-price span {
  font-size: 24px;
  color: var(--muted);
  font-family: var(--body);
  font-weight: 300;
}

.geo-card-list {
  list-style: none;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.geo-card-list li {
  font-size: 13px;
  color: #ccd6f6;
  display: flex;
  align-items: center;
  gap: 10px;
}
.geo-card-list li::before {
  content: '✓';
  color: var(--orange);
  font-weight: 500;
  font-size: 12px;
}

.geo-badge {
  position: absolute;
  top: -16px; right: -16px;
  background: var(--orange);
  color: var(--noir);
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 1px;
  text-align: center;
  line-height: 1.2;
  transform: rotate(15deg);
}

/* ── SECTIONS ── */
section { position: relative; z-index: 1; }

.section-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-tag::before { content:''; width:24px; height:1px; background:var(--orange); }

.section-h2 {
  font-family: var(--display);
  font-size: clamp(48px, 5vw, 72px);
  line-height: .95;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

/* ── OFFRES ── */
#offres {
  padding: 120px 48px;
  background: var(--surface);
}

.offres-header {
  max-width: 600px;
  margin-bottom: 72px;
}
.offres-header p { color: #ccd6f6; font-size: 17px; font-weight: 300; line-height: 1.7; }

.offres-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.offre-card {
  background: var(--noir);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: transform .3s;
  cursor: default;
}
.offre-card:hover { transform: translateY(-4px); }

.offre-card.featured {
  background: var(--orange);
  color: var(--noir);
}

.offre-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--border);
  transition: background .3s;
}
.offre-card:hover::before,
.offre-card.featured::before { background: var(--orange); }
.offre-card.featured::before { background: var(--noir); }

.offre-nom {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.offre-card.featured .offre-nom { color: var(--noir); }

.offre-desc {
  font-size: 13px;
  color: #8a97a7; /* Optimisé contraste sur fond noir */
  margin-bottom: 32px;
  font-family: var(--mono);
}
.offre-card.featured .offre-desc { color: #1e1e1e; /* Foncé sur fond orange */ font-weight: 500; }

.offre-prix {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}
.offre-prix-num {
  font-family: var(--display);
  font-size: 64px;
  line-height: 1;
  color: var(--blanc);
}
.offre-card.featured .offre-prix-num { color: var(--noir); }
.offre-prix-unit {
  font-size: 14px;
  color: var(--muted);
}
.offre-card.featured .offre-prix-unit { color: #2d2d2d; font-weight: 500; }

.offre-activation {
  font-size: 12px;
  color: #ff8c42; /* Orange clair visible sur noir */
  font-family: var(--mono);
  margin-bottom: 32px;
}
.offre-card.featured .offre-activation { color: #1e1e1e; font-weight: 500; }

.offre-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}
.offre-features li {
  font-size: 14px;
  color: #e2e8f0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}
.offre-card.featured .offre-features li { color: var(--noir); font-weight: 500; }
.offre-features li::before {
  content: '—';
  color: var(--orange);
  font-weight: 500;
  flex-shrink: 0;
  margin-top: 1px;
}
.offre-card.featured .offre-features li::before { color: var(--noir); }

.offre-btn {
  display: block;
  text-align: center;
  padding: 14px;
  border: 1px solid var(--border);
  color: var(--blanc);
  text-decoration: none;
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: .5px;
  transition: all .2s;
  border-radius: 1px;
}
.offre-btn:hover { border-color: var(--orange); color: var(--orange); }
.offre-card.featured .offre-btn {
  background: var(--noir);
  border-color: var(--noir);
  color: var(--blanc);
}
.offre-card.featured .offre-btn:hover { background: #1a1a1a; }

/* ── OPTIONS ── */
#options {
  padding: 80px 48px;
  border-top: 1px solid var(--border);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.option-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color .2s;
}
.option-card:hover { border-color: var(--orange); }

.option-icon { font-size: 28px; margin-bottom: 16px; }
.option-nom { font-weight: 500; margin-bottom: 6px; font-size: 15px; }
.option-desc { font-size: 13px; color: #a0aec0; line-height: 1.5; margin-bottom: 16px; }
.option-prix { font-family: var(--mono); font-size: 13px; color: #ff8c42; font-weight: 500; }

/* ── PROCESS ── */
#process {
  padding: 120px 48px;
  background: var(--surface);
  overflow: hidden;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 72px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--border);
}

.step {
  padding: 0 24px;
  text-align: center;
  position: relative;
}

.step-num {
  width: 56px; height: 56px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 22px;
  color: var(--muted);
  margin: 0 auto 24px;
  background: var(--surface);
  position: relative;
  z-index: 1;
  transition: all .3s;
}
.step:hover .step-num { border-color: var(--orange); color: var(--orange); }

.step-title {
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 10px;
  color: var(--blanc);
}
.step-desc { font-size: 13px; color: #a0aec0; line-height: 1.6; }

/* ── AVIS ── */
#avis {
  padding: 120px 48px;
  background: var(--noir);
  border-top: 1px solid var(--border);
}

.avis-header {
  max-width: 600px;
  margin-bottom: 56px;
}

.google-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  margin-top: 20px;
  transition: border-color .2s;
  background: var(--surface);
}
.google-rating:hover { border-color: #4285F4; }

.google-stars { display: flex; gap: 2px; }
.star { color: #FBBC05; font-size: 16px; }
.google-score { font-family: var(--mono); font-size: 14px; color: var(--blanc); font-weight: 500; }
.google-link { font-size: 12px; color: #ccd6f6; font-family: var(--mono); margin-left: 4px; }

.avis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.avis-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 2px;
  transition: border-color .2s, transform .2s;
}
.avis-card:hover { border-color: rgba(255,92,0,.3); transform: translateY(-3px); }

.avis-stars { color: #FBBC05; font-size: 18px; letter-spacing: 2px; margin-bottom: 16px; }

.avis-text {
  font-size: 14px;
  color: #e2e8f0;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
}

.avis-author { display: flex; align-items: center; gap: 12px; }

.avis-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--blanc);
  flex-shrink: 0;
}

.avis-name { font-size: 14px; font-weight: 500; color: var(--blanc); }
.avis-meta { font-size: 12px; color: var(--muted); font-family: var(--mono); margin-top: 2px; }

/* ── CONTACT ── */
#contact {
  padding: 120px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-left .section-h2 { margin-bottom: 24px; }
.contact-left p { color: #ccd6f6; font-size: 16px; font-weight: 300; line-height: 1.8; margin-bottom: 40px; }

.contact-infos { display: flex; flex-direction: column; gap: 16px; }
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: #e2e8f0;
}
.contact-info-item strong { color: var(--blanc); }
.contact-info-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* FORM */
.contact-form {
  background: var(--surface);
  padding: 48px;
  border: 1px solid var(--border);
  position: relative;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--orange);
}

.form-group {
  margin-bottom: 20px;
}

.form-label, .captcha-label {
  display: block;
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ccd6f6; /* Éclairci pour contraster sur le fond de carte gris sombre */
  margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--noir);
  border: 1px solid var(--border);
  color: var(--blanc);
  font-family: var(--body);
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 2px;
  outline: none;
  transition: border-color .2s;
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--orange);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-input::placeholder, .form-textarea::placeholder { color: #7e8b9b; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-submit {
  width: 100%;
  background: var(--orange);
  color: var(--noir);
  border: none;
  padding: 16px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--body);
  cursor: pointer;
  border-radius: 2px;
  transition: all .2s;
  letter-spacing: .3px;
  margin-top: 8px;
}
.form-submit:hover { background: var(--orange2); transform: translateY(-1px); }
.form-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: 60px 20px;
}
.form-success.show { display: block; }

.success-anim {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 32px;
}

.success-svg { width: 120px; height: 120px; }

/* Cercle qui se dessine */
.success-circle {
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  transform-origin: center;
  transform: rotate(-90deg);
}
.success-circle.draw {
  animation: drawCircle .8s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes drawCircle {
  to { stroke-dashoffset: 0; }
}

/* Check qui apparaît */
.success-check {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
}
.success-check.draw {
  animation: drawCheck .5s ease .7s forwards;
}
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

/* Particules explosion */
.success-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.s-particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  left: 50%; top: 50%;
}
.s-particle.pop {
  animation: sPop var(--dur) cubic-bezier(.2,.8,.3,1) var(--delay) forwards;
}
@keyframes sPop {
  0%   { opacity: 0; transform: translate(-50%,-50%) scale(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(.3); }
}

/* Contenu texte */
.success-content { opacity: 0; transform: translateY(20px); }
.success-content.show {
  animation: contentIn .5s ease 1s forwards;
}
@keyframes contentIn {
  to { opacity: 1; transform: translateY(0); }
}

.success-title {
  font-family: var(--display);
  font-size: 42px;
  color: var(--orange);
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.success-msg { color: #ccd6f6; font-size: 15px; line-height: 1.8; }

/* CAPTCHA */
.captcha-box {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--noir);
}
.captcha-question {
  font-size: 14px;
  color: var(--blanc);
  margin-bottom: 14px;
  line-height: 1.5;
}
.captcha-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.captcha-opt {
  padding: 9px 12px;
  background: transparent;
  border: 1px solid var(--border);
  color: #ccd6f6;
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  border-radius: 2px;
  transition: all .15s;
  text-align: left;
}
.captcha-opt:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); }
.captcha-msg { font-size: 12px; font-family: var(--mono); min-height: 18px; transition: all .2s; }

/* Submit désactivé */
#submitBtn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }

/* ── FOOTER ── */
footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 12px; color: var(--muted); text-decoration: none; font-family: var(--mono); }
.footer-links a:hover { color: var(--blanc); }

/* ── LOGO SVG ── */
.logo-svg { width: 80px; height: 32px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-tag    { animation: fadeUp .6s ease both; animation-delay: .1s; }
.hero-h1     { animation: fadeUp .6s ease both; animation-delay: .2s; }
.hero-sub    { animation: fadeUp .6s ease both; animation-delay: .35s; }
.hero-actions { animation: fadeUp .6s ease both; animation-delay: .5s; }
.hero-stats { animation: fadeUp .6s ease both; animation-delay: .65s; }
.geo-card    { animation: fadeIn .8s ease both; animation-delay: .4s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 120px 24px 60px; }
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  #offres, #options, #process, #contact { padding: 80px 24px; }
  .offres-grid { grid-template-columns: 1fr; }
  .options-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 40px; }
  .process-steps::before { display: none; }
  #contact { grid-template-columns: 1fr; gap: 48px; }
  .avis-grid { grid-template-columns: 1fr; }
  #avis { padding: 80px 24px; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
}

/* ── STYLES DU LOADER (CENTRALISÉS) ── */
#loader {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
  overflow: hidden;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* Fond pulse */
#loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(255,92,0,.07) 0%, transparent 70%),
    radial-gradient(ellipse 400px 600px at 80% 50%, rgba(255,92,0,.04) 0%, transparent 70%);
  animation: bgPulse 3s ease-in-out infinite alternate;
}
@keyframes bgPulse {
  from { opacity: .4; }
  to   { opacity: 1;  }
}

/* Grille fixe optimisée */
#loader::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,92,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,92,0,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .6;
}

.loader-inner {
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Lettres Loader */
.loader-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 108px;
  letter-spacing: 16px;
  display: flex;
  gap: 4px;
  margin-bottom: 40px;
  position: relative;
}

.loader-logo span {
  display: inline-block;
  opacity: 0;
  position: relative;
  cursor: default;
  transition: transform .15s;
  will-change: transform, opacity;
}

.l-g { animation: dropBounce .7s cubic-bezier(.34,1.56,.64,1) .2s forwards; color: #ff5c00; }
.l-u { animation: dropBounce .7s cubic-bezier(.34,1.56,.64,1) .35s forwards; color: #f5f0eb; }
.l-b { animation: dropBounce .7s cubic-bezier(.34,1.56,.64,1) .5s forwards; color: #f5f0eb; }
.l-a { animation: dropBounce .7s cubic-bezier(.34,1.56,.64,1) .65s forwards; color: #ff5c00; }

@keyframes dropBounce {
  0%    { opacity: 0; transform: translateY(-80px) rotate(-8deg) scale(.5); }
  60%   { opacity: 1; transform: translateY(12px) rotate(2deg) scale(1.15); }
  80%   { transform: translateY(-6px) rotate(-1deg) scale(.97); }
  100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}

.loader-logo span.appeared {
  animation: none !important;
  opacity: 1;
}
.loader-logo span.appeared:nth-child(odd) {
  animation: floatLetter 2.5s ease-in-out infinite !important;
}
.loader-logo span.appeared:nth-child(even) {
  animation: floatLetter 2.5s ease-in-out .4s infinite !important;
}
@keyframes floatLetter {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.loader-logo span:hover {
  transform: scale(1.3) rotate(-5deg) !important;
  color: #ff8c42 !important;
}

/* Particules Loader */
.particles {
  position: absolute;
  inset: -60px;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: #ff5c00;
  opacity: 0;
  will-change: transform, opacity;
  animation: particleFly var(--dur) ease-out var(--delay) infinite;
}
@keyframes particleFly {
  0%    { opacity: 0; transform: translate(0,0) scale(0); }
  20%   { opacity: .8; }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(.2); }
}

/* Barre de chargement */
.loader-bar {
  width: 240px;
  height: 2px;
  background: #222;
  border-radius: 2px;
  margin: 0 auto 20px;
  overflow: hidden;
  position: relative;
}
.loader-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,92,0,.3), transparent);
  animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}
.loader-fill {
  height: 100%;
  background: #ff5c00;
  border-radius: 2px;
  width: 0%;
  transition: width .3s ease;
  position: relative;
  z-index: 1;
}

.loader-txt {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: #7e8b9b; /* Rehaussé pour lisibilité */
  text-transform: uppercase;
  min-height: 16px;
  transition: opacity .3s;
}

/* ── CORRECTION DU SCORE PAGESPEED (BLOCS SPECIFIQUES) ── */
/* Sécurité pour le texte "Mobile" et les rapports de performance */
#scores div[style*="color:#444"], 
#scores div[style*="color: #444"] {
  color: #a0aec0 !important;
}