/* ============================================================
   Flo'auto — Tokens & base
   ============================================================ */

:root {
  /* Palette */
  --nuit: #0B1F3A;
  --bleu-moyen: #132D52;
  --ivoire: #F4F1EC;
  --bleu-vif: #1E6FD9;
  --blanc: #FFFFFF;
  --gris-clair: #A8B4C4;
  --gris-bordure: #1E3554;

  /* Sémantique (override-able par tweak palette) */
  --bg-dark: var(--nuit);
  --bg-dark-2: var(--bleu-moyen);
  --bg-light: var(--ivoire);
  --text-on-dark: var(--ivoire);
  --text-on-light: var(--nuit);
  --muted-on-dark: var(--gris-clair);
  --muted-on-light: #5a6877;
  --accent: var(--bleu-vif);
  --border-dark: var(--gris-bordure);
  --border-light: #d8d2c5;

  /* Typo */
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Espace */
  --maxw: 1280px;
  --pad: clamp(20px, 4vw, 56px);
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
}

/* Palette variants — appliqués sur [data-palette] */
[data-palette="alterne"] {
  /* default — rien à faire */
}
[data-palette="ardoise"] {
  --bg-light: #132D52;          /* "light" devient nuit moyen */
  --text-on-light: var(--ivoire);
  --muted-on-light: var(--gris-clair);
  --border-light: var(--gris-bordure);
}
[data-palette="lumineux"] {
  --bg-dark: #1a3a6b;            /* dark plus clair */
  --bg-dark-2: #234881;
  --bg-light: #fafaf7;
  --text-on-light: #0B1F3A;
  --muted-on-light: #6b7888;
  --border-light: #e6e0d2;
}

/* ============================================================
   Reset + base
   ============================================================ */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  font-feature-settings: "ss01", "ss02";
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

::selection { background: var(--accent); color: var(--blanc); }

/* ============================================================
   Typo utilities
   ============================================================ */
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.02em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
}
.eyebrow.no-line::before { display: none; }

.h-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 75%;        /* condensé via Archivo variable */
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
.h-xl {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}
.h-lg {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.h-md {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.body-lg {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  font-weight: 400;
  max-width: 60ch;
}
.body { font-size: 15px; line-height: 1.6; font-weight: 400; }
.small { font-size: 13px; line-height: 1.5; }

/* ============================================================
   Layout
   ============================================================ */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
section { position: relative; }

.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.section-dark-2 {
  background: var(--bg-dark-2);
  color: var(--text-on-dark);
}
.section-light {
  background: var(--bg-light);
  color: var(--text-on-light);
}

.section-pad-lg { padding: clamp(72px, 12vh, 140px) 0; }
.section-pad-md { padding: clamp(56px, 9vh, 96px) 0; }

/* Section number — coin haut-gauche fiche technique */
.section-num {
  position: absolute;
  top: clamp(16px, 3vh, 28px);
  left: var(--pad);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.5;
  z-index: 2;
}

/* ============================================================
   Logo wordmark
   ============================================================ */
.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 75%;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  line-height: 1;
}
.logo .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  margin: 0 1px 0 1px;
  align-self: center;
  transform: translateY(-2px);
}
.logo .auto { color: var(--gris-clair); font-weight: 600; }
.logo-mark {
  width: 28px;
  height: 28px;
  border: 1.5px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  position: relative;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid currentColor;
  opacity: 0.35;
}

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: color-mix(in oklab, var(--nuit) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--gris-bordure);
}
.header-left { display: flex; align-items: center; gap: 14px; }
.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 36px);
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gris-clair);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--ivoire); }
.nav-link.active { color: var(--ivoire); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
}
.nav-link .num {
  color: var(--accent);
  margin-right: 6px;
  font-weight: 600;
}

@media (max-width: 880px) {
  .header-nav { display: none; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  position: relative;
}
.btn-primary {
  background: var(--accent);
  color: var(--blanc);
}
.btn-primary:hover {
  background: #1860c0;
  transform: translateY(-1px);
}
.btn-primary .arrow,
.btn-secondary .arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}
.btn-primary:hover .arrow,
.btn-secondary:hover .arrow {
  transform: translateX(3px);
}
.btn-secondary {
  background: transparent;
  color: currentColor;
  border: 1px solid currentColor;
}
.btn-secondary:hover {
  background: currentColor;
  color: var(--nuit);
}
.btn-ghost {
  padding: 8px 0;
  background: transparent;
  color: currentColor;
  border-bottom: 1px solid currentColor;
}

/* Badge "Uniquement sur RDV" */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  position: relative;
}
.badge .pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid #4ade80;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ============================================================
   Image placeholder (encadré bleu artisan)
   ============================================================ */
.img-placeholder {
  position: relative;
  background:
    linear-gradient(135deg, var(--bleu-moyen) 0%, var(--nuit) 100%);
  border: 1px solid var(--gris-bordure);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--gris-clair);
}
.img-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--gris-bordure) 1px, transparent 1px),
    linear-gradient(90deg, var(--gris-bordure) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.25;
  mask: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.img-placeholder .ph-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 16px;
}
.img-placeholder .ph-icon {
  width: 36px;
  height: 36px;
  opacity: 0.7;
}
.img-placeholder .ph-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
}
.img-placeholder .ph-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  z-index: 3;
}
.img-placeholder .corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--accent);
  z-index: 3;
}
.img-placeholder .corner.tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.img-placeholder .corner.tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.img-placeholder .corner.bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.img-placeholder .corner.br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

/* ============================================================
   Service card variants (tweak: line / filled / photo)
   ============================================================ */
.svc-card {
  position: relative;
  padding: 28px 24px 24px;
  border: 1px solid var(--border-dark);
  background: transparent;
  transition: transform 0.25s, background 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
}
.section-light .svc-card { border-color: var(--border-light); }
.svc-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.svc-card .svc-num {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.5;
  letter-spacing: 0.1em;
}
.svc-card .svc-icon {
  width: 44px !important;
  height: 44px !important;
  color: var(--accent);
  flex-shrink: 0;
}
.svc-card .svc-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.svc-card .svc-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted-on-dark);
  flex: 1;
}
.section-light .svc-card .svc-desc { color: var(--muted-on-light); }
.svc-card .svc-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--border-dark);
  margin-top: 4px;
  padding-top: 16px;
  transition: gap 0.2s;
}
.section-light .svc-card .svc-cta { border-top-color: var(--border-light); }
.svc-card:hover .svc-cta { gap: 14px; }
.svc-card .svc-cta::after {
  content: "→";
  font-family: var(--font-display);
}

/* Filled variant */
.svc-card.filled { background: var(--bleu-moyen); border-color: transparent; }
.section-light .svc-card.filled { background: var(--nuit); color: var(--ivoire); border-color: transparent; }
.section-light .svc-card.filled .svc-desc { color: var(--gris-clair); }
.section-light .svc-card.filled .svc-cta { border-top-color: var(--gris-bordure); }
.svc-card.filled:hover { background: #1a3866; }
.section-light .svc-card.filled:hover { background: #15264a; }

/* Photo variant */
.svc-card.photo { padding: 0; min-height: 320px; }
.svc-card.photo .svc-photo {
  height: 140px;
  position: relative;
}
.svc-card.photo .svc-body {
  padding: 22px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.svc-card.photo .svc-icon {
  width: 32px;
  height: 32px;
  position: absolute;
  bottom: 14px;
  left: 18px;
  color: var(--blanc);
}
.svc-card.photo .svc-num { top: 14px; left: 18px; right: auto; color: var(--accent); }

/* ============================================================
   Floating call button (mobile + desktop)
   ============================================================ */
.floating-call {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--accent);
  color: var(--blanc);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1) inset;
  transition: transform 0.2s, box-shadow 0.2s;
}
.floating-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.15) inset;
}
.floating-call svg { width: 18px; height: 18px; }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

.stagger > * { transition-delay: calc(var(--i, 0) * 60ms); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: #07152a;
  color: var(--ivoire);
  padding: 64px var(--pad) 32px;
  border-top: 1px solid var(--gris-bordure);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--gris-clair);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--ivoire); }
.footer-bottom {
  max-width: var(--maxw);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--gris-bordure);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gris-clair);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ============================================================
   Page transition
   ============================================================ */
.page-enter {
  animation: pageIn 0.5s cubic-bezier(.2,.7,.2,1);
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   Decorative
   ============================================================ */
.divider-tech {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
}
.divider-tech::before,
.divider-tech::after {
  content: "";
  height: 1px;
  background: currentColor;
  flex: 1;
  opacity: 0.4;
}

.ticker {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: tick 30s linear infinite;
}
@keyframes tick {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-wrap {
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}
.section-light .ticker-wrap { border-color: var(--border-light); }
.ticker > span {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.ticker > span::after {
  content: "◆";
  color: var(--accent);
  font-size: 10px;
}

/* ============================================================
   Star rating
   ============================================================ */
.stars { display: inline-flex; gap: 2px; color: #fbbf24; }
.stars svg { width: 18px; height: 18px; }
