/* ============================================================
   Witrans SRL — Custom Stylesheet
   Complément à Tailwind CDN avec config personnalisée
   ============================================================ */

/* --- Polices --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Open+Sans:wght@400;500;600;700&display=swap');

/* --- Variables CSS --- */
:root {
  --color-primary:    #1e3a8a;
  --color-secondary:  #1a1a2e;
  --color-accent:     #e67e22;
  --color-accent-dark:#d35400;
  --font-body:        'Open Sans', sans-serif;
  --font-heading:     'Montserrat', sans-serif;
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }

/* --- Barre de progression de scroll --- */
#scroll-progress {
  transition: width 0.1s linear;
}

/* --- CTA pulsé --- */
.pulse-cta {
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(230, 126, 34, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0); }
}

/* --- Sections légales --- */
.legal-section { scroll-margin-top: 100px; }
.legal-body h3 { font-size: 1.1rem; font-weight: 700; color: #1a1a2e; margin: 1.5rem 0 0.5rem; }
.legal-body h4 { font-size: 0.95rem; font-weight: 700; color: var(--color-primary); margin: 1.2rem 0 0.4rem; text-transform: uppercase; letter-spacing: 0.05em; }
.legal-body p  { color: #4b5563; line-height: 1.75; margin-bottom: 0.75rem; font-size: 0.9375rem; }
.legal-body ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 0.75rem; color: #4b5563; }
.legal-body ul li { margin-bottom: 0.3rem; line-height: 1.6; font-size: 0.9375rem; }
.legal-body a  { color: var(--color-primary); text-decoration: underline; }
.legal-body a:hover { color: var(--color-primary); }
.legal-body .info-box { background: #f8f9fa; border-left: 4px solid var(--color-primary); padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; margin: 1rem 0; }
.legal-body .info-box p { margin-bottom: 0; color: #374151; }
.toc-link { display: block; padding: 8px 12px; border-radius: 6px; font-size: 0.875rem; color: #4b5563; transition: all 0.15s; border-left: 3px solid transparent; }
.toc-link:hover { background: #f3f4f6; border-left-color: var(--color-primary); color: #1a1a2e; }

/* --- Utilitaires hero --- */
.hero-gradient {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #16213e 60%, #0f3460 100%);
}

/* --- Card hover lift --- */
.card-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* --- Soulignement animé pour les liens nav --- */
.nav-underline {
  position: relative;
}
.nav-underline::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--color-accent);
  transition: width 0.25s ease;
}
.nav-underline:hover::after { width: 100%; }

/* --- Stats counter --- */
.stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-accent);
  line-height: 1;
}

/* --- Séparateur décoratif --- */
.section-divider {
  width: 60px; height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
  margin: 0 auto 1.5rem;
}

/* --- Badge service --- */
.badge-service {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(230, 126, 34, 0.12);
  color: var(--color-accent);
  border: 1px solid rgba(230, 126, 34, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Formulaire de contact --- */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: #1f2937;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  background: #fff;
}
.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}
.form-input::placeholder { color: #9ca3af; }

/* --- Scroll progress bar --- */
body::-webkit-scrollbar { width: 6px; }
body::-webkit-scrollbar-track { background: #f1f5f9; }
body::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 3px; }

/* --- Responsive helpers --- */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}

/* --- Hero des pages services/villes --- */
.page-hero {
  background: linear-gradient(105deg, rgba(15,15,30,0.97) 0%, rgba(26,26,46,0.98) 100%);
  background-color: var(--color-secondary);
  min-height: 42vh;
  display: flex;
  align-items: center;
  position: relative;
}

/* --- Bouton d'appel flottant mobile --- */
.mobile-call-button {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--color-accent);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(230, 126, 34, 0.5);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mobile-call-button:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(230, 126, 34, 0.65);
}
@media (max-width: 1024px) {
  .mobile-call-button { display: flex; }
}

/* --- Zone badges (section zones d'intervention) --- */
.zone-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.25);
  transition: all 0.2s ease;
  text-decoration: none;
}
.zone-badge:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  transform: translateY(-2px);
}
