﻿/* ============================================
   FUITE-ENTERREE.FR — v3.0 "Artisan Blanc"
   Palette : Blanc + Bleu pétrole + Orange
   Fonts   : Plus Jakarta Sans + Inter
   ============================================ */

/* ===== Variables ===== */
:root {
  --brand:         #0c4a6e;
  --brand-mid:     #0369a1;
  --brand-light:   #0ea5e9;
  --brand-pale:    #f0f9ff;
  --brand-border:  #bae6fd;
  --action:        #c2410c;
  --action-hover:  #9a3412;
  --action-pale:   #fff7ed;
  --action-border: #fed7aa;
  --ink:           #111827;
  --ink-soft:      #374151;
  --muted:         #6b7280;
  --muted-light:   #9ca3af;
  --bg:            #ffffff;
  --surface:       #f9fafb;
  --surface-2:     #f3f4f6;
  --border:        #e5e7eb;
  --border-light:  #f3f4f6;
  --font-head:     "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body:     "Inter", system-ui, sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--bg);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.7;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--brand-mid); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ===== Typographie ===== */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ===== NAVIGATION (blanche) ===== */
#main-nav {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
#main-nav.nav-scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.09);
  border-color: transparent;
}
.nav-link {
  position: relative;
  color: var(--ink-soft);
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--brand); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--brand-mid);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--brand); font-weight: 600; }

/* Hamburger animé */
.menu-open .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-open .hamburger-line:nth-child(2) { opacity: 0; }
.menu-open .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); width: 1.5rem; align-self: center; }

/* ===== BOUTONS ===== */
/* Primary CTA (orange) */
.btn-action, .btn-primary {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--action);
  color: #fff !important;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-weight: 700;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-action:hover, .btn-primary:hover {
  background: var(--action-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(194,65,12,0.35);
}
/* Brand CTA (bleu) */
.btn-brand {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand);
  color: #fff !important;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-weight: 700;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-brand:hover {
  background: var(--brand-mid);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(12,74,110,0.28);
}
/* Ghost / outline */
.btn-ghost, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  color: var(--brand) !important;
  border: 2px solid var(--brand-border);
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.2s;
}
.btn-ghost:hover, .btn-outline:hover {
  border-color: var(--brand);
  background: var(--brand-pale);
  color: var(--brand) !important;
  transform: translateY(-2px);
}
.btn-ripple { position: relative; overflow: hidden; }

/* ===== HERO ===== */
.hero-section {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
/* Gradient décoratif */
.hero-deco-circle {
  position: absolute;
  right: -180px; top: -120px;
  width: 650px; height: 650px;
  background: radial-gradient(circle at 55% 45%, #f0f9ff 0%, rgba(186,230,253,0.25) 45%, transparent 72%);
  border-radius: 50%;
  pointer-events: none;
}
/* Barre de stat héro */
.hero-stat-bar {
  background: var(--brand);
  color: rgba(255,255,255,0.9);
}
/* Card urgence héro */
.hero-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.09), 0 0 0 4px rgba(12,74,110,0.04);
  overflow: hidden;
}
.hero-card-head {
  background: var(--brand);
  color: #fff;
  padding: 1rem 1.4rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.check-item {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.check-item:last-of-type { border-bottom: none; }
.check-icon { color: var(--brand-mid); flex-shrink: 0; margin-top: 0.05rem; font-weight: 700; }

/* ===== TICKER ===== */
.ticker-wrap { background: var(--brand); overflow: hidden; }
.ticker-inner {
  display: flex;
  width: max-content;
  animation: tickerScroll 30s linear infinite;
}
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== SECTION LABEL ===== */
.section-label {
  display: inline-block;
  padding: 0.22rem 0.85rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-family: var(--font-head);
  background: var(--brand-pale);
  color: var(--brand);
  border: 1px solid var(--brand-border);
}

/* ===== ANIMATIONS REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed { opacity: 1; transform: none; }
.reveal-left {
  opacity: 0; transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left.revealed { opacity: 1; transform: none; }
.reveal-right {
  opacity: 0; transform: translateX(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-right.revealed { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }

/* Anneau pulsant (bouton flottant) */
@keyframes pulseRing {
  0%   { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.7); opacity: 0; }
}
.pulse-ring { position: relative; }
.pulse-ring::before, .pulse-ring::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: rgba(194,65,12,0.3);
  animation: pulseRing 2.2s ease-out infinite;
}
.pulse-ring::after { animation-delay: 1.1s; }

/* ===== STATS ===== */
.stat-number {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
}

/* ===== SECTION BACKGROUNDS ===== */
.section-light { background: var(--surface); }
.section-alt   { background: var(--surface-2); }
.section-white { background: #fff; }
.section-dark  {
  background: linear-gradient(135deg, var(--brand) 0%, #0c3d5c 100%);
  color: #fff;
}
.section-blue  {
  background: linear-gradient(135deg, var(--action) 0%, #b43e0c 100%);
  color: #fff;
}
.bg-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== CARTES SERVICES ===== */
.service-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(12,74,110,0.11);
  border-color: var(--brand-border);
}
.service-icon-wrap { transition: transform 0.3s ease; }
.service-card:hover .service-icon-wrap { transform: scale(1.1); }

/* ===== TÉMOIGNAGES ===== */
.testimonial-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  position: relative;
  transition: box-shadow 0.25s ease;
}
.testimonial-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.testimonial-card::before {
  content: '\201C';
  position: absolute; top: 12px; right: 18px;
  font-size: 4.5rem;
  font-family: var(--font-head);
  color: var(--brand-pale);
  line-height: 1;
  pointer-events: none;
}
/* Compatibilité ancien nom */
.sketch-card { border: 1.5px solid var(--border); border-radius: 16px; transition: transform .25s, box-shadow .25s; }
.sketch-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(12,74,110,0.1); }
.sketch-card-sm { border: 1.5px solid rgba(12,74,110,0.15); border-radius: 16px; background: rgba(255,255,255,0.06); transition: border-color .25s; }
.sketch-card-sm:hover { border-color: rgba(255,255,255,0.3); }

/* ===== BLOG ===== */
.blog-card {
  overflow: hidden;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.09);
}
.blog-card .blog-img-wrap img { transition: transform 0.5s ease; }
.blog-card:hover .blog-img-wrap img { transform: scale(1.05); }
.blog-tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--brand-pale);
  color: var(--brand);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-head);
  border: 1px solid var(--brand-border);
}

/* ===== FORMULAIRE ===== */
.form-input {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  background: #fff;
}
.form-input:focus {
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(3,105,161,0.1);
  outline: none;
}

/* ===== BOUTON FLOTTANT ===== */
#floating-call {
  background: var(--action) !important;
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}
#floating-call:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 16px 36px rgba(194,65,12,0.45) !important;
}

/* ===== ÉTAPES ===== */
.step-number {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255,255,255,0.12);
}
.step-connector {
  position: absolute; top: 2rem; left: 50%; right: -50%;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.25) 0, rgba(255,255,255,0.25) 5px, transparent 5px, transparent 11px);
}

/* ===== ARTICLES BLOG ===== */
.article-content h2 {
  font-family: var(--font-head);
  font-size: 1.45rem; font-weight: 700;
  color: var(--ink);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-pale);
}
.article-content h3 {
  font-family: var(--font-head);
  font-size: 1.15rem; font-weight: 600;
  color: var(--brand);
  margin: 1.5rem 0 0.75rem;
}
.article-content p { margin-bottom: 1.1rem; line-height: 1.85; }
.article-content ul { list-style: none; padding-left: 0; margin-bottom: 1rem; }
.article-content ul li {
  padding-left: 1.6rem; position: relative;
  margin-bottom: 0.5rem; line-height: 1.7;
}
.article-content ul li::before { content: "💧"; position: absolute; left: 0; top: 0.05rem; }
.article-content strong { color: var(--brand); }
.article-content blockquote {
  border-left: 4px solid var(--brand-mid);
  padding: 1rem 1.5rem; margin: 1.5rem 0;
  background: var(--brand-pale);
  border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--ink-soft);
}

/* ===== BREADCRUMB ===== */
.breadcrumb a { color: var(--brand-mid); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--brand); }

/* ===== WAVE DIVIDER ===== */
.wave-divider { overflow: hidden; line-height: 0; }
.wave-divider svg { display: block; width: 100%; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .stat-number { font-size: 2.4rem; }
  .step-connector { display: none; }
}

/* ===== PRINT ===== */
@media print {
  #main-nav, #floating-call, footer { display: none; }
  body { color: black; }
}
