/* =============================================
   G-Tech — Style principal
   Thème : Sombre / Premium / Sobre
   v3 — Refonte premium
   ============================================= */

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

:root {
  /* Couleurs */
  --bg:           #0a0e1a;
  --bg2:          #0d1326;
  --bg3:          #0f1830;
  --surface:      #131b2e;
  --surface2:    #1a2240;
  --border:       #1c2641;
  --border-soft:  #182137;

  --accent:       #00b4d8;
  --accent-hover: #48cae4;
  --accent-soft:  #7fd5e8;
  --accent-glow:  rgba(0, 180, 216, 0.10);

  --text:         #e6edf7;
  --text-soft:    #b9c5d8;
  --text-muted:   #8392a8;
  --white:        #ffffff;

  /* Typo */
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Fraunces', 'Inter', serif;
  --font-mono:    ui-monospace, 'SF Mono', Menlo, monospace;

  /* Géométrie */
  --radius-lg:    16px;
  --radius:       12px;
  --radius-sm:    8px;
  --nav-h:        72px;
  --max-w:        1180px;
  --transition:   0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent); }
.accent-soft {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  background: linear-gradient(90deg, var(--accent-soft) 0%, var(--accent-hover) 50%, var(--accent-soft) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 7s linear infinite;
}

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

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border); }

/* =============================================
   TYPOGRAPHIE & SECTIONS
   ============================================= */
.section {
  padding: 130px 0;
  position: relative;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
}
.section-eyebrow.centered { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--text);
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 620px;
  margin: 0 auto 60px;
  line-height: 1.7;
}

/* =============================================
   NAVIGATION
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(10, 14, 26, 0.80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color var(--transition), background var(--transition);
}
#navbar.scrolled {
  border-bottom-color: var(--border-soft);
  background: rgba(10, 14, 26, 0.95);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; }
.logo-img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--accent);
  color: var(--bg) !important;
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--accent-hover); color: var(--bg) !important; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost::after {
  content: '→';
  margin-left: 4px;
  transition: transform var(--transition);
}
.btn-ghost:hover { color: var(--accent); }
.btn-ghost:hover::after { transform: translateX(4px); }

.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 92vh;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 24px 60px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  min-height: calc(92vh - var(--nav-h) - 100px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Halo de fond très discret pour donner de la profondeur (sans clash) */
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255, 255, 255, 0.025) 0%, transparent 70%);
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,180,216,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,216,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 640px;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  color: var(--text);
}
.hero-sub {
  color: var(--text-soft);
  font-size: 1.06rem;
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-trust svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.hero-visual {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* =============================================
   HERO BROWSER MOCKUP
   ============================================= */
.hero-browser {
  width: 380px;
  background: #0d1220;
  border: 1px solid rgba(0, 180, 216, 0.18);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,180,216,0.06),
    0 24px 60px rgba(0,0,0,0.5),
    0 8px 20px rgba(0,0,0,0.3);
  animation: browserFloat 7s ease-in-out infinite;
  will-change: transform;
}

@keyframes browserFloat {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); }
  50%       { transform: translateY(-10px) rotate(0.5deg); }
}

/* Barre du navigateur */
.hb-bar {
  background: #111827;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hb-dots { display: flex; gap: 5px; flex-shrink: 0; }
.hb-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
}
.hb-dot--red    { background: #ff5f57; }
.hb-dot--yellow { background: #ffbd2e; }
.hb-dot--green  { background: #28ca41; }

.hb-url-wrap {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 5px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
}
.hb-url-icon { color: rgba(255,255,255,0.3); flex-shrink: 0; display: flex; }
.hb-url {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.3s;
}

/* Viewport */
.hb-viewport {
  position: relative;
  height: 320px;
  overflow: hidden;
}

/* Slides */
.hb-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
}
.hb-slide--active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.hb-slide--exit {
  opacity: 0;
  transform: translateX(-30px);
}

/* Header de chaque slide */
.hbs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  flex-shrink: 0;
}
.hbs-header--blue   { background: #1e3a5f; }
.hbs-header--warm   { background: #3d1f0a; }
.hbs-header--dark   { background: #111111; }

.hbs-logo-block {
  width: 52px; height: 9px;
  border-radius: 3px;
  background: rgba(255,255,255,0.25);
}
.hbs-logo-block--light { background: rgba(255,255,255,0.2); }

.hbs-nav-dots { display: flex; gap: 10px; }
.hbs-nav-dots span {
  width: 20px; height: 5px;
  border-radius: 2px;
  background: rgba(255,255,255,0.2);
}
.hbs-nav-dots--light span { background: rgba(255,255,255,0.15); }

/* Hero de chaque slide */
.hbs-hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px;
}
.hbs-hero--blue { background: linear-gradient(135deg, #0f2847 0%, #1a3d6e 100%); }
.hbs-hero--warm { background: linear-gradient(135deg, #1a0a00 0%, #3d1800 100%); }
.hbs-hero--dark { background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%); }

.hbs-hero-text { flex: 1; display: flex; flex-direction: column; gap: 5px; }

.hbs-line { border-radius: 3px; }
.hbs-line--eyebrow {
  width: 40%;
  height: 4px;
  background: rgba(0,180,216,0.5);
  margin-bottom: 4px;
}
.hbs-line--gold    { background: rgba(255,196,57,0.6); }
.hbs-line--title   { width: 88%; height: 10px; background: rgba(255,255,255,0.7); }
.hbs-line--light   { background: rgba(255,255,255,0.55); }
.hbs-line--sub     { height: 6px; background: rgba(255,255,255,0.25); }

.hbs-btn {
  margin-top: 10px;
  width: 68px; height: 18px;
  border-radius: 4px;
  background: rgba(0,180,216,0.8);
}
.hbs-btn--warm { background: rgba(220,90,30,0.8); }
.hbs-btn--gold { background: rgba(255,196,57,0.8); }

.hbs-hero-img {
  flex-shrink: 0;
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  margin-left: 12px;
}
.hbs-hero-img--wrench { color: rgba(0,180,216,0.6); }
.hbs-hero-img--fork   { color: rgba(220,90,30,0.6); }
.hbs-hero-img--chart  { color: rgba(255,196,57,0.6); }

/* Cards du bas */
.hbs-cards {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.25);
  flex-shrink: 0;
}
.hbs-cards--row { justify-content: space-between; }
.hbs-card {
  flex: 1;
  height: 36px;
  border-radius: 5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.05);
}
.hbs-card--tall { height: 44px; }
.hbs-stat {
  flex: 1;
  height: 36px;
  border-radius: 5px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,196,57,0.1);
}

/* Label du type de site */
.hb-label-wrap {
  background: #0d1220;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hb-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: opacity 0.3s;
}

/* Screenshot réel dans le browser */
.hbs-screenshot {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.hbs-screenshot img {
  width: 150%;
  display: block;
  object-fit: cover;
  object-position: top left;
  height: 100%;
  transition: transform 6s ease;
}
.hb-slide--active .hbs-screenshot img {
  transform: translateY(-6%);
}
.hb-slide .hbs-screenshot img {
  transform: translateY(0);
}

/* Indicateurs de slides */
.hb-indicators {
  display: flex;
  gap: 5px;
  padding: 0 14px 10px;
  background: #0d1220;
  justify-content: center;
}
.hb-dot-nav {
  width: 18px; height: 3px;
  border-radius: 2px;
  border: none;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, width 0.3s;
}
.hb-dot-nav--active {
  background: var(--accent);
  width: 28px;
}

/* =============================================
   PRÉSENTATION
   ============================================= */
.presentation-section {
  background: var(--bg2);
  border-top: 1px solid var(--border-soft);
}

.presentation-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: center;
}

.presentation-portrait {
  position: relative;
}

.portrait-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 44px 28px 38px;
  text-align: center;
}
.portrait-card img {
  width: min(55%, 150px);
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 10px 30px var(--accent-glow));
}
.portrait-card strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.3px;
}
.portrait-card span {
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.7;
}

.presentation-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 28px;
  line-height: 1.2;
}
.presentation-text p {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 18px;
}
.presentation-sign {
  margin-top: 32px !important;
  font-style: italic;
  color: var(--text-muted) !important;
  font-size: 0.92rem !important;
}
.presentation-sign span {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: normal;
  font-family: var(--font-mono);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* =============================================
   SERVICES WEB
   ============================================= */
.services-section { background: var(--bg); }

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

.service-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: border-color var(--transition), transform var(--transition);
}
.service-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 24px;
}
.service-icon svg { width: 24px; height: 24px; }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
  color: var(--text);
}
.service-card p {
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* =============================================
   OFFRES
   ============================================= */
.offers-section {
  background: var(--bg2);
  border-top: 1px solid var(--border-soft);
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 60px;
}

.offer-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.offer-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
}

.offer-card--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface2) 100%);
}
.offer-card--featured:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}

.offer-ribbon {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.offer-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
}
.offer-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
  color: var(--text);
}
.offer-tagline {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
  margin-bottom: 24px;
}
.offer-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.offer-price-prefix {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.offer-price strong {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -1px;
}
.offer-card--featured .offer-price strong { color: var(--accent); }

.offer-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.offer-features li {
  position: relative;
  padding-left: 26px;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.55;
}
.offer-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  background: var(--accent-glow);
  border-radius: 50%;
}
.offer-features li::after {
  content: '';
  position: absolute;
  left: 4px; top: 10px;
  width: 8px; height: 4px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* Maintenance banner */
.maintenance-banner {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
}
.maintenance-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.maintenance-icon svg { width: 26px; height: 26px; }

.maintenance-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.maintenance-title strong { color: var(--accent); font-style: normal; }
.maintenance-sub {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 18px;
}
.maintenance-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px 24px;
}
.maintenance-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--text-soft);
}
.maintenance-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* =============================================
   PROCESS
   ============================================= */
.process-section { background: var(--bg); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.process-step {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: border-color var(--transition);
}
.process-step:hover { border-color: var(--border); }

.process-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
  opacity: 0.85;
  letter-spacing: -1px;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}
.process-step p {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 16px;
}
.process-meta {
  display: inline-block;
  font-size: 0.74rem;
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  width: 100%;
}

/* =============================================
   PORTFOLIO
   ============================================= */
.portfolio-section {
  background: var(--bg2);
  border-top: 1px solid var(--border-soft);
}

/* ➊ Compteurs */
.portfolio-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.pstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 40px;
  text-align: center;
  position: relative;
}
.pstat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -1px;
  line-height: 1;
}
.pstat-suffix {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  vertical-align: top;
}
.pstat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: var(--font-mono);
  white-space: nowrap;
}
.pstat-sep {
  width: 1px;
  height: 40px;
  background: var(--border-soft);
  flex-shrink: 0;
}

/* Grille */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.portfolio-col-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Carte de base */
.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.portfolio-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
}

/* ➊ Hover scroll sur le screenshot */
.portfolio-preview {
  display: block;
  padding: 18px 18px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.portfolio-preview:hover .browser-url { color: var(--accent); }

.portfolio-screen {
  border: 1px solid var(--border-soft);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}
.portfolio-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border-soft);
}
.browser-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.browser-url {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color var(--transition);
}
.browser-url--dim { opacity: 0.4; }

.portfolio-screen-body {
  background: var(--bg);
  aspect-ratio: 16 / 7;
  overflow: hidden;
  position: relative;
}
.portfolio-image {
  width: 100%;
  height: 220%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transform: translateY(0);
  transition: transform 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.portfolio-card:hover .portfolio-image {
  transform: translateY(-30%);
}

/* ➋ Badge "Voir le site" */
.portfolio-visit-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}
.portfolio-preview:hover .portfolio-visit-badge {
  opacity: 1;
  transform: translateY(0);
}

/* Info zone */
.portfolio-info { padding: 24px 28px 28px; }
.portfolio-info--wip { padding: 18px 22px 22px; }

.portfolio-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.ptag {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--surface2);
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
}
/* ➌ Tags typés */
.ptag--meta  { background: rgba(0,180,216,0.07);  color: var(--accent);  border-color: rgba(0,180,216,0.2); }
.ptag--type  { background: rgba(124,77,255,0.07); color: #a78bfa;        border-color: rgba(124,77,255,0.2); }
.ptag--seo   { background: rgba(52,199,89,0.07);  color: #4ade80;        border-color: rgba(52,199,89,0.2); }
.ptag--wip   { background: rgba(250,173,20,0.08); color: #faad14;        border-color: rgba(250,173,20,0.25); }

.portfolio-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.portfolio-info p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 18px;
}
.portfolio-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}
.portfolio-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}
.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition), color var(--transition);
  background: rgba(0,180,216,0.08);
  border: 1px solid rgba(0,180,216,0.2);
  padding: 6px 12px;
  border-radius: 6px;
}
.portfolio-link:hover { gap: 10px; background: rgba(0,180,216,0.14); }

/* ➎ Carte skeleton "En cours" */
.portfolio-card--wip {
  cursor: default;
}
.portfolio-card--wip:hover {
  transform: none;
  border-color: var(--border-soft);
}
.portfolio-screen--wip .portfolio-browser-bar {
  background: var(--surface);
}
.portfolio-skeleton-body {
  background: var(--bg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  aspect-ratio: 16 / 7;
}
.skel {
  border-radius: 4px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.8s ease-in-out infinite;
}
@keyframes skeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skel--header { height: 20px; width: 100%; }
.skel--hero   { height: 50px; width: 100%; }
.skel-row     { display: flex; gap: 6px; flex: 1; }
.skel--card   { flex: 1; height: 100%; }

.wip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #faad14;
  background: rgba(250,173,20,0.08);
  border: 1px solid rgba(250,173,20,0.2);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.wip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #faad14;
  animation: wipPulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes wipPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}
.portfolio-info--wip h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--text-soft);
}
.portfolio-info--wip p {
  font-size: 0.82rem;
  margin-bottom: 0;
}

/* CTA */
.portfolio-card--cta {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface2) 100%);
  border-style: dashed;
  border-color: var(--border);
  flex: 1;
}
.portfolio-card--cta:hover { border-color: var(--accent); border-style: solid; }
.portfolio-cta-inner {
  padding: 36px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.portfolio-cta-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.portfolio-cta-inner h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
.portfolio-cta-inner p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.65;
  max-width: 240px;
}

/* =============================================
   TÉMOIGNAGES
   ============================================= */
.testimonials-section { background: var(--bg); }

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

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: border-color var(--transition);
}
.testimonial-card:hover { border-color: var(--border); }

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px; right: 28px;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.15;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  color: var(--accent);
  font-size: 1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.75;
  flex: 1;
  font-style: italic;
}

.testimonial-author {
  border-top: 1px solid var(--border-soft);
  padding-top: 16px;
  font-style: normal;
}
.testimonial-author strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 2px;
}
.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.testimonial-card--placeholder { opacity: 0.55; }
.testimonial-card--placeholder .testimonial-text { font-style: italic; color: var(--text-muted); }

/* =============================================
   POURQUOI ME FAIRE CONFIANCE (Trust)
   ============================================= */
.trust-section {
  background: var(--bg2);
  border-top: 1px solid var(--border-soft);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 920px;
  margin: 0 auto;
}

.trust-pillar {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.trust-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.trust-icon svg { width: 22px; height: 22px; }

.trust-content {
  flex: 1;
  min-width: 0;
}

.trust-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
  line-height: 1.3;
}
.trust-content p {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* =============================================
   AUTRES SERVICES
   ============================================= */
.other-services-section { background: var(--bg); }

.other-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.other-service-item {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition);
}
.other-service-item:hover { border-color: var(--border); }

.other-service-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
}
.other-service-icon svg { width: 20px; height: 20px; }

.other-service-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.other-service-item p {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.other-services-cta {
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.other-services-cta a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =============================================
   FAQ
   ============================================= */
.faq-section {
  background: var(--bg2);
  border-top: 1px solid var(--border-soft);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover,
.faq-item.open { border-color: var(--border); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--accent); }
.faq-item.open .faq-question { color: var(--accent); }

.faq-chevron {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--accent); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p {
  padding: 0 26px 22px;
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.75;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-section {
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}

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

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  background: var(--accent-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.contact-icon svg { width: 18px; height: 18px; }

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.contact-value {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
  display: block;
}
.contact-sub {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}
a.contact-value:hover { color: var(--accent); }

.contact-facebook {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
  margin-top: 12px;
  align-self: flex-start;
}
.contact-facebook svg { color: #1877f2; flex-shrink: 0; }
.contact-facebook:hover {
  border-color: var(--border);
  color: var(--white);
}

/* Form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hidden-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-soft);
}
.form-optional {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.8rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 16px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
}
.form-group select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238392a8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; padding-right: 40px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--bg);
}
.form-group textarea { resize: vertical; min-height: 110px; line-height: 1.6; }

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -4px;
}

.form-success {
  background: rgba(0,180,216,0.08);
  border: 1px solid rgba(0,180,216,0.25);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 14px 18px;
  text-align: center;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border-soft);
  padding: 56px 0 40px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer-logo-img { height: 44px; width: auto; opacity: 0.85; }
.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 12px;
}
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-soft);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

.footer-social { display: flex; gap: 12px; }
.footer-social-link {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  transition: all var(--transition);
}
.footer-social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer-legal {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.footer-legal:hover { color: var(--accent); }

/* =============================================
   BOUTON RETOUR EN HAUT
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), border-color var(--transition), color var(--transition);
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* =============================================
   PAGE MENTIONS LÉGALES
   ============================================= */
.legal-page { padding: calc(var(--nav-h) + 60px) 0 80px; }
.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.legal-updated {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-family: var(--font-mono);
}
.legal-section { margin-bottom: 40px; }
.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--accent);
}
.legal-section p {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 12px;
}
.legal-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-table {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.legal-row {
  display: flex;
  padding: 14px 22px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border-soft);
  gap: 18px;
}
.legal-row:last-child { border-bottom: none; }
.legal-label {
  min-width: 150px;
  font-weight: 500;
  color: var(--text);
  flex-shrink: 0;
}
.legal-row span:last-child { color: var(--text-soft); }
.legal-row a { color: var(--accent); }
.legal-back { margin-top: 48px; text-align: center; }

/* =============================================
   BARRE DE PROGRESSION DE LECTURE
   ============================================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
  z-index: 200;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(0, 180, 216, 0.4);
  transition: width 0.05s linear;
}

/* =============================================
   ENTRÉE ANIMÉE DU HERO (cascade)
   ============================================= */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes heroLogoEnter {
  from {
    opacity: 0;
    transform: scale(0.88);
    filter: blur(12px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}


.hero-eyebrow,
.hero h1,
.hero-sub,
.hero-actions,
.hero-trust,
.hero-visual {
  opacity: 0;
  animation: heroFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-eyebrow { animation-delay: 0.1s; }
.hero h1      { animation-delay: 0.25s; }
.hero-sub     { animation-delay: 0.45s; }
.hero-actions { animation-delay: 0.65s; }
.hero-trust   { animation-delay: 0.85s; }

.hero-visual {
  animation: heroLogoEnter 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}


/* =============================================
   PARTICULES AMBIANTES
   ============================================= */
.particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  opacity: 0;
  filter: blur(1px);
  animation: particleFloat var(--dur, 20s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform, opacity;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.6);
  }
  20% { opacity: var(--max-op, 0.5); }
  80% { opacity: var(--max-op, 0.5); }
  100% {
    opacity: 0;
    transform: translate(var(--tx, 30px), var(--ty, -80px)) scale(1);
  }
}

/* =============================================
   BOUTON MAGNÉTIQUE
   ============================================= */
.btn-magnetic {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              background var(--transition),
              border-color var(--transition),
              box-shadow 0.3s ease;
  will-change: transform;
}
.btn-magnetic.btn-primary:hover {
  /* On retire le translateY:-1px du :hover par défaut pour laisser
     l'effet magnétique gérer la position. On compense visuellement
     avec un glow doux. */
  transform: translate(var(--mx, 0), var(--my, 0));
  box-shadow: 0 8px 28px rgba(0, 180, 216, 0.28);
}


/* Respect des préférences utilisateur (réduit les animations) */
@media (prefers-reduced-motion: reduce) {
  .accent-soft,
  .hero-browser,
  .particle {
    animation: none !important;
  }
  .hero-eyebrow,
  .hero h1,
  .hero-sub,
  .hero-actions,
  .hero-trust,
  .hero-visual {
    opacity: 1 !important;
    animation: none !important;
  }
  .accent-soft {
    color: var(--accent-soft);
    -webkit-text-fill-color: var(--accent-soft);
  }
}

/* =============================================
   ANIMATION REVEAL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-col-right { flex-direction: row; }
  .services-grid,
  .offers-grid,
  .other-services-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonial-card:nth-child(3) { grid-column: 1 / -1; max-width: 540px; margin: 0 auto; }

  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; gap: 24px; max-width: 600px; }

  .presentation-grid { gap: 48px; }
  .presentation-portrait { max-width: 280px; margin: 0 auto; }
}

@media (max-width: 900px) {
  .section { padding: 90px 0; }

  .hero { padding-top: calc(var(--nav-h) + 50px); }
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { display: none; }

  .presentation-grid { grid-template-columns: 1fr; gap: 40px; }
  .presentation-portrait { max-width: 240px; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .maintenance-banner { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .maintenance-icon { margin: 0 auto; }
  .maintenance-list { text-align: left; }
}

@media (max-width: 640px) {
  .burger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(10,14,26,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 28px;
    gap: 22px;
    border-bottom: 1px solid var(--border-soft);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.05rem; }
  .nav-cta { text-align: center; padding: 12px; }

  .section { padding: 70px 0; }

  .services-grid,
  .offers-grid,
  .other-services-grid,
  .testimonials-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }
  .testimonial-card:nth-child(3) { max-width: 100%; }

  .contact-form { padding: 28px 22px; }

  .portfolio-stats { padding: 20px; gap: 0; }
  .pstat { padding: 12px 20px; }
  .pstat-sep { display: none; }
  .portfolio-col-right { flex-direction: column; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { flex-direction: column; gap: 10px; align-items: center; }

  .trust-pillar { flex-direction: column; gap: 14px; text-align: center; align-items: center; }

  .legal-row { flex-direction: column; gap: 4px; }
  .legal-label { min-width: 0; }
}

/* =============================================
   ZONE D'INTERVENTION
   ============================================= */
.zone-section {
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
}
.zone-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}
.zone-map-area {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,180,216,0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.zone-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.zone-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.zone-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}
.zone-dot--primary   { background: #00b4d8; box-shadow: 0 0 8px rgba(0,180,216,0.5); }
.zone-dot--secondary { background: #48cae4; }
.zone-dot--outer     { background: transparent; border: 2px dashed rgba(0,180,216,0.4); }
.zone-dot--visio     { background: rgba(0,180,216,0.15); border: 1px solid rgba(0,180,216,0.3); }
.zone-item strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.zone-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .zone-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* =============================================
   LEAFLET MAP — ZONE D'INTERVENTION
   ============================================= */

/* Conteneur carte */
#zone-map {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  z-index: 0;
}

/* Override attribution Leaflet pour thème sombre */
.leaflet-control-attribution {
  background: rgba(10,14,26,0.75) !important;
  color: rgba(255,255,255,0.3) !important;
  font-size: 10px !important;
  backdrop-filter: blur(4px);
}
.leaflet-control-attribution a { color: rgba(0,180,216,0.6) !important; }

/* Boutons zoom */
.leaflet-control-zoom a {
  background: rgba(13,18,32,0.9) !important;
  color: #e6edf7 !important;
  border-color: rgba(255,255,255,0.1) !important;
}
.leaflet-control-zoom a:hover {
  background: rgba(0,180,216,0.15) !important;
  color: #00b4d8 !important;
}

/* Marqueur base — Labruguière */
.lmap-marker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}
.lmap-pulse {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,180,216,0.15);
  border: 1.5px solid rgba(0,180,216,0.5);
  animation: mapPulse 2.2s ease-out infinite;
}
@keyframes mapPulse {
  0%   { transform: scale(0.7); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}
.lmap-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00b4d8;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 0 10px rgba(0,180,216,0.6);
  position: relative;
  z-index: 1;
}
.lmap-marker--secondary .lmap-dot--sm {
  width: 9px;
  height: 9px;
  background: #48cae4;
  border: 2px solid rgba(255,255,255,0.7);
  box-shadow: 0 0 6px rgba(72,202,228,0.4);
}

/* Popup Leaflet */
.lmap-popup .leaflet-popup-content-wrapper {
  background: rgba(13,18,32,0.96) !important;
  border: 1px solid rgba(0,180,216,0.25) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important;
  backdrop-filter: blur(8px);
  color: #e6edf7 !important;
  font-family: var(--font-sans) !important;
  font-size: 0.85rem !important;
}
.lmap-popup .leaflet-popup-content strong {
  color: #00b4d8;
  display: block;
  margin-bottom: 2px;
}
.lmap-popup .leaflet-popup-tip {
  background: rgba(13,18,32,0.96) !important;
}
.lmap-popup .leaflet-popup-close-button {
  color: rgba(255,255,255,0.4) !important;
}
.lmap-popup .leaflet-popup-close-button:hover {
  color: #00b4d8 !important;
}

/* =============================================
   COMPARATIF 3 ANS (acheter vs louer)
   ============================================= */
.compare-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px 36px 28px;
}
.compare-row {
  display: grid;
  grid-template-columns: minmax(0, 250px) 1fr 110px;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}
.compare-row + .compare-row { border-top: 1px solid var(--border-soft); }
.compare-who { font-size: 0.95rem; color: var(--text-soft); line-height: 1.3; }
.compare-who span { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; }
.compare-bar-wrap {
  background: var(--bg2);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  height: 22px;
  overflow: hidden;
}
.compare-bar {
  height: 100%;
  width: 0;
  border-radius: 6px;
  background: var(--text-muted);
  transition: width 1.3s cubic-bezier(0.22, 0.7, 0.25, 1);
}
.compare-card.visible .compare-bar { width: var(--w); }
.compare-amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  text-align: right;
  color: var(--text-soft);
  white-space: nowrap;
}
.compare-row--me .compare-who { color: var(--text); }
.compare-row--me .compare-who strong { color: var(--accent-soft); }
.compare-row--me .compare-bar {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
  box-shadow: 0 0 18px var(--accent-glow);
}
.compare-row--me .compare-amount { color: var(--accent-hover); }
.compare-key {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  font-size: 1rem;
  color: var(--text-soft);
}
.compare-key strong { color: var(--white); }
.compare-note { margin-top: 10px; font-size: 0.72rem; color: var(--text-muted); }

/* Témoignage unique centré (double classe : prime sur les media queries) */
.testimonials-grid.testimonials-grid--single {
  grid-template-columns: minmax(0, 660px);
  justify-content: center;
}
.testimonials-grid--single .testimonial-card {
  width: 100%;
  margin: 0 auto;
}

/* CTA portfolio : occupe la hauteur quand il est seul dans la colonne */
.portfolio-col-right .portfolio-card--cta { flex: 1; }

@media (max-width: 720px) {
  .compare-card { padding: 24px 18px 20px; }
  .compare-row {
    grid-template-columns: 1fr 90px;
    grid-template-areas:
      "who amt"
      "bar bar";
    gap: 8px 12px;
    padding: 12px 0;
  }
  .compare-who { grid-area: who; }
  .compare-amount { grid-area: amt; font-size: 1.1rem; }
  .compare-bar-wrap { grid-area: bar; height: 16px; }
}
