/* ==========================================================================
   site.css -- la charte commune a toutes les pages : reset, en-tete, boutons,
   boutons flottants, modales, formulaires, pied de page, bandeau mobile.

   Lot 2 (23/10/2026) : ce fichier remplace le bloc « SITE CHROME » qui etait
   copie a l'identique dans 34 pages (1 461 lignes chacune). Une regle qui
   change ici change partout. Charge en premier, avant le <style> propre a
   chaque page, qui garde le dernier mot dans la cascade.
   build.sh ajoute ?v=<empreinte> a l'URL : le cache suit le contenu.
   ========================================================================== */
/* ==================================================
   SITE CHROME CSS — header/footer/modales/floating/sticky
   Version unifiée depuis index.html
   ================================================== */

/* ========================================
   RESET & BASE STYLES
   ======================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

:root {
  --bg-gradient-start: #ffffff;
  --bg-gradient-end: #f5f5f4;
  --bg-card: #fafaf9;
  --bg: #ffffff;
  --accent: #2563EB;
  --accent-secondary: #1e40af;
  --accent-tertiary: #3b82f6;
  --accent-glow: rgba(37, 99, 235, 0.15);
  --accent-red: #ef4444;
  --accent-red-soft: rgba(239, 68, 68, 0.08);
  --text: #1c1917;
  --text-muted: #6B7280;
  --border: rgba(107, 114, 128, 0.25);
  --danger: #ef4444;
  --brown: #8B7355;
  --brown-light: #a1887f;
  --gray: #6B7280;
  --blue: #2563EB;
  --blue-light: #3b82f6;
  
  /* Safe area insets for notched devices */
  --safe-area-inset-top: env(safe-area-inset-top, 0px);
  --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-inset-left: env(safe-area-inset-left, 0px);
  --safe-area-inset-right: env(safe-area-inset-right, 0px);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  color: var(--text);
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
  min-height: 100vh;
  line-height: 1.5;
  padding-top: var(--safe-area-inset-top);
  padding-bottom: var(--safe-area-inset-bottom);
}

/* Protection des images */
img {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Overlays invisibles sur les conteneurs d'images */
.hero-image,
.hero-image-mobile,
.service-card,
.pourquoi-card,
.workflow-showcase,
.testimonial-author,
.apropos-image {
  position: relative;
}

.hero-image::after,
.hero-image-mobile::after {
  display: none;
}

.service-card::after,
.pourquoi-card::after,
.workflow-showcase::after,
.apropos-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  pointer-events: auto;
  z-index: 10;
}



/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* Animation variants */
.animate-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-fade-up.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-fade-left.animated {
  opacity: 1;
  transform: translateX(0);
}

.animate-fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-fade-right.animated {
  opacity: 1;
  transform: translateX(0);
}

.animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-scale.animated {
  opacity: 1;
  transform: scale(1);
}

/* ========================================
   ACTIVE NAV INDICATOR
   ======================================== */
.nav-link.active {
  color: var(--brown);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brown);
  border-radius: 1px;
}

.nav-mobile-link.active {
  color: var(--brown);
  background: rgba(139, 115, 85, 0.1);
  font-weight: 600;
}

body.dark-mode {
  --bg-gradient-start: #0c0a09;
  --bg-gradient-end: #1c1917;
  --bg-card: #1c1917;
  --bg: #0c0a09;
  --text: #e7e5e4;
  --text-muted: #a8a29e;
  --border: rgba(168, 162, 158, 0.2);
  --accent: #3b82f6;
  --accent-secondary: #2563EB;
  --accent-glow: rgba(59, 130, 246, 0.2);
}

body.dark-mode .page-loader {
  background: var(--bg-gradient-start);
}

/* Fix for iOS input zoom */
input, select, textarea {
  font-size: 16px;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* Exception : le bandeau logos reste animé (scroll lent non gênant) */
  .logos-track {
    animation-duration: 25s !important;
    animation-iteration-count: infinite !important;
  }
  html {
    scroll-behavior: auto;
  }
}


/* ========================================
   CONTAINER
   ======================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 40px);
  padding-left: max(clamp(16px, 5vw, 40px), var(--safe-area-inset-left));
  padding-right: max(clamp(16px, 5vw, 40px), var(--safe-area-inset-right));
  position: relative;
  z-index: 1;
}

/* ========================================
   HEADER
   ======================================== */
header {
  padding: 12px 0;
  position: sticky;
  top: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
}

body.dark-mode header {
  background: rgba(12, 10, 9, 0.95);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown);
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.logo-back:hover {
  background: var(--brown);
  border-color: var(--brown);
  color: white;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* Verrou de marque (lot C) : AvisPilot en principal, l'éditeur en dessous.
   Lot 8 (24/10/2026) : remonté ici depuis le <style> de chaque page ; les
   pages qui ne l'avaient pas (/, /vsl, /cas/) affichaient « AvisPilot par IA
   Conseil » sur une ligne, coupée en deux sur téléphone. */
.logo-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-brand {
  font-size: clamp(16px, 4vw, 19px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo-editor {
  font-size: clamp(9px, 2.2vw, 11px);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Navigation desktop */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}

.nav-link {
  font-size: clamp(13px, 1.05vw, 14px);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
  position: relative;
}

.nav-link:hover {
  color: var(--brown);
}

/* Menu hamburger */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.menu-toggle:hover {
  border-color: var(--brown);
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation mobile */
.nav-mobile {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
}

.nav-mobile.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-mobile-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.nav-mobile-link:hover {
  background: var(--bg-card);
  color: var(--brown);
}

.nav-mobile-cta {
  margin-top: 12px;
  justify-content: center;
}

/* Responsive navigation */
/* Responsive navigation */
@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .btn-desktop-only {
    display: none;
  }
}

@media (min-width: 1025px) {
  .nav-mobile {
    display: none !important;
  }
}

/* Theme toggle */
.theme-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.theme-toggle:hover, .theme-toggle:focus {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.theme-toggle-icon {
  font-size: 18px;
}


/* ========================================
   BUTTONS
   ======================================== */
.btn {
  padding: clamp(10px, 2.5vw, 14px) clamp(16px, 4vw, 26px);
  border-radius: 50px;
  font-size: clamp(13px, 3vw, 15px);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 44px; /* Minimum touch target size */
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.btn-primary:focus::before {
  width: 280px;
  height: 280px;
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(37, 99, 235, 0.06);
  border-color: var(--accent);
}

.btn-secondary-blue {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.btn-secondary-blue:hover,
.btn-secondary-blue:focus {
  background: rgba(37, 99, 235, 0.15);
  border-color: var(--accent);
}

@media (max-width: 480px) {
  .btn-secondary-blue {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .btn-primary {
    width: 100%;
  }
}


/* ========================================
   BOUTONS FLOTTANTS (WhatsApp + Calendar)
   ======================================== */
.floating-buttons {
  position: fixed;
  bottom: clamp(20px, 4vw, 30px);
  right: clamp(20px, 4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.floating-btn:active {
  transform: scale(1.05);
}

.floating-icon {
  width: 32px;
  height: 32px;
  color: white;
}

/* Bouton Calendar - Google Calendar colors */
.calendar-float {
  background: #4285f4;
  box-shadow: 0 4px 20px rgba(66, 133, 244, 0.4);
}

.calendar-float:hover {
  background: #3367d6;
  box-shadow: 0 6px 30px rgba(66, 133, 244, 0.6);
}

/* Bouton WhatsApp */
.whatsapp-float {
  background: #25D366;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  animation: whatsappBlink 1.2s ease-in-out infinite;
}

.whatsapp-float:hover {
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
  animation: none;
}

@keyframes whatsappBlink {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 35px rgba(37, 211, 102, 0.8);
    transform: scale(1.05);
  }
}

/* Responsive */
@media (max-width: 480px) {
  .floating-btn {
    width: 56px;
    height: 56px;
  }
  .floating-icon {
    width: 28px;
    height: 28px;
  }
}

/* Respecter le safe-area sur mobile */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .floating-buttons {
    bottom: calc(clamp(20px, 4vw, 30px) + env(safe-area-inset-bottom));
    right: calc(clamp(20px, 4vw, 30px) + env(safe-area-inset-right));
  }
}


/* ========================================
   MODALES
   ======================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: clamp(16px, 4vw, 24px);
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.modal-title {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 800;
  color: var(--text);
  padding: clamp(24px, 5vw, 32px);
  padding-right: 60px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-content {
  padding: clamp(20px, 5vw, 32px);
  overflow-y: auto;
  color: var(--text-muted);
  font-size: clamp(13px, 2.5vw, 15px);
  line-height: 1.7;
}

.modal-content h3 {
  font-size: clamp(16px, 3vw, 18px);
  font-weight: 700;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 12px;
}

.modal-content h3:first-child {
  margin-top: 0;
}

.modal-content p {
  margin-bottom: 12px;
}

.modal-content ul {
  margin: 12px 0;
  padding-left: 24px;
}

.modal-content ul li {
  margin-bottom: 8px;
}

.modal-content strong {
  color: var(--text);
}

/* Empêcher le scroll du body quand modal ouverte */
body.modal-open {
  overflow: hidden;
}

/* ========================================
   FORMULAIRE DE CONTACT
   ======================================== */
.modal-form {
  max-width: 520px;
}

.form-intro {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: clamp(14px, 2.5vw, 15px);
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Honeypot - invisible */
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.form-group .required {
  color: #ef4444;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 16px;
  font-size: 15px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2322c55e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Checkbox personnalisée */
.form-checkbox {
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkmark::after {
  content: '';
  display: none;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark::after {
  display: block;
}

.checkbox-label input[type="checkbox"]:focus ~ .checkmark {
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.checkbox-text {
  flex: 1;
}

.checkbox-text a {
  color: var(--accent);
  text-decoration: underline;
}

.checkbox-text a:hover {
  color: var(--accent-secondary);
}

/* Modal inscription - plus large */
.modal-inscription {
  max-width: 820px;
  /* Sans plancher, l'étape 1 ne fait que trois lignes et la modale paraît
     tassée au milieu de l'écran. */
  min-height: min(520px, 80vh);
  /* Le parcours d'inscription est plus haut qu'un simple formulaire :
     recherche, carte établissement, carte société, puis coordonnées.
     À 85vh le contenu passait sous la ligne de flottaison. */
  max-height: 92vh;
}

/* Lignes de 2 champs côte à côte */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Bouton vert pour inscription */
.btn-submit-green {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
}

.loading-spinner {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.stripe-notice {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 16px;
  line-height: 1.5;
}

/* Validation visuelle */
.form-group input:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
}

.form-group input:valid:not(:placeholder-shown) {
  border-color: var(--accent);
}

.btn-submit {
  margin-top: 8px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #000;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-submit .spinner {
  width: 20px;
  height: 20px;
}

.form-privacy {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* États succès et erreur */
.form-success,
.form-error {
  text-align: center;
  padding: 20px;
}

.success-icon,
.error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.form-success h3 {
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 12px;
}

.form-success p {
  color: var(--text-muted);
  line-height: 1.6;
}

.form-error h3 {
  color: #ef4444;
  font-size: 20px;
  margin-bottom: 12px;
}

.form-error p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.btn-retry {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-retry:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* ========================================
   FOOTER
   ======================================== */
footer {
  border-top: 1px solid var(--border);
  padding: clamp(24px, 5vw, 32px) 0 clamp(30px, 6vw, 40px);
  text-align: center;
  color: var(--text-muted);
  font-size: clamp(12px, 2.5vw, 14px);
  background: rgba(248, 250, 254, 0.5);
  transition: background 0.3s ease, border-color 0.3s ease;
  padding-bottom: max(clamp(30px, 6vw, 40px), var(--safe-area-inset-bottom));
}

body.dark-mode footer {
  background: rgba(15, 23, 42, 0.95);
}

.footer-top {
  margin-bottom: 16px;
}

/* Réseaux sociaux footer */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.social-icon {
  width: 22px;
  height: 22px;
}

.footer-links {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(6px, 2vw, 10px);
  font-size: clamp(11px, 2.5vw, 13px);
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  text-decoration: underline;
  color: var(--accent);
}

.footer-links span {
  color: var(--text-muted);
  opacity: 0.5;
}

/* Hide separators on mobile */
@media (max-width: 480px) {
  .footer-links span {
    display: none;
  }
  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}

.footer-bottom {
  margin-top: clamp(10px, 2vw, 12px);
  opacity: 0.7;
  font-size: clamp(10px, 2vw, 12px);
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .theme-toggle,
  .cta-final::before {
    display: none !important;
  }
  
  header {
    position: relative;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .btn {
    box-shadow: none !important;
    border: 1px solid #000 !important;
  }
}

/* ========================================
   HIGH CONTRAST MODE
   ======================================== */
@media (prefers-contrast: high) {
  :root {
    --border: rgba(0, 0, 0, 0.5);
  }
  
  body.dark-mode {
    --border: rgba(255, 255, 255, 0.5);
  }
  
  .btn {
    border: 2px solid currentColor !important;
  }
}

/* ========================================
   LANDSCAPE PHONE ADJUSTMENTS
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 20px 0;
  }
  
  .section {
    padding: 30px 0;
  }
  
  .cta-final {
    padding: 30px 0;
  }
}

/* ========================================
   TABLET SPECIFIC (768px - 1024px)
   ======================================== */
@media (min-width: 768px) and (max-width: 1024px) {
  .services-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   LARGE DESKTOP (1400px+)
   ======================================== */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}


/* ========================================
   FOOTER NAV — menu structurel
   ======================================== */
.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 20px 0 18px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--brown);
}
.footer-nav .footer-sep {
  color: var(--text-muted);
  opacity: 0.4;
  font-size: 12px;
}
.footer-nav .footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #ffffff;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.22);
}
.footer-nav .footer-cta:hover, .footer-nav .footer-cta:focus {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(37, 99, 235, 0.3);
}
body.dark-mode .footer-nav a {
  color: var(--text-muted);
}
body.dark-mode .footer-nav a:hover {
  color: #e5e7eb;
}

@media (max-width: 600px) {
  .footer-nav {
    gap: 6px 10px;
    padding-top: 16px;
  }
  .footer-nav a {
    font-size: 13px;
  }
  .footer-nav .footer-sep {
    display: none;
  }
  .footer-nav .footer-cta {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* ========================================
   MOBILE STICKY CTA — apparaît au scroll
   Décale les floating-buttons pour ne pas chevaucher
   ======================================== */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  padding: 10px 14px;
  padding-left: calc(14px + env(safe-area-inset-left, 0px));
  padding-right: calc(96px + env(safe-area-inset-right, 0px));
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  transform: translateY(110%);
  transition: transform 0.35s ease;
  align-items: center;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}
body.dark-mode .mobile-sticky-cta {
  background: rgba(28, 25, 23, 0.96);
}
.mobile-sticky-cta.show {
  transform: translateY(0);
}
.mobile-sticky-cta .ms-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.mobile-sticky-cta .ms-text strong {
  color: var(--brown);
  font-weight: 700;
}
.mobile-sticky-cta .ms-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  padding: 11px 16px;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}
.mobile-sticky-cta .ms-btn:hover, .mobile-sticky-cta .ms-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(37, 99, 235, 0.4);
}

/* Uniquement mobile */
@media (max-width: 900px) {
  .mobile-sticky-cta {
    display: flex;
  }
  /* Remonter les floating-buttons quand le sticky est visible */
  .mobile-sticky-cta.show ~ .floating-buttons,
  body:has(.mobile-sticky-cta.show) .floating-buttons {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 380px) {
  .mobile-sticky-cta {
    padding-right: calc(84px + env(safe-area-inset-right, 0px));
    gap: 8px;
  }
  .mobile-sticky-cta .ms-text {
    font-size: 12px;
  }
  .mobile-sticky-cta .ms-btn {
    font-size: 12px;
    padding: 10px 13px;
  }
}

/* ============================================================
   Encart « Votre fiche Google, en chiffres » des articles (lot 4)
   partials/encart-audit.html · assets/js/audit-form.js
   Règles préfixées par .encart-audit pour passer devant celles
   de l'article (.article-body p, .main p).
   ============================================================ */
.encart-audit {
  margin: 36px 0;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: 0 14px 34px -24px rgba(15, 23, 42, 0.35);
}
.encart-audit .encart-audit-sur { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.encart-audit .encart-audit-titre { margin: 0 0 8px; font-size: 22px; font-weight: 800; line-height: 1.25; color: var(--text); }
.encart-audit .encart-audit-p { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.encart-audit .encart-audit-champ { position: relative; }
.encart-audit .encart-audit-label { display: block; margin: 0 0 8px; font-weight: 600; font-size: 14px; color: var(--text); }
.encart-audit .encart-audit-row { display: flex; gap: 10px; flex-wrap: wrap; }
.encart-audit .encart-audit-row input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
}
.encart-audit .encart-audit-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
/* Bouton auto-suffisant : les articles redéfinissent `a` (.article-body a : bleu souligné) et `.btn`. */
.encart-audit .encart-audit-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.encart-audit .encart-audit-btn:hover, .encart-audit .encart-audit-btn:focus-visible { color: #fff; text-decoration: none; filter: brightness(1.08); transform: translateY(-1px); }
.encart-audit .encart-suggestions { margin-top: 8px; }
.encart-audit .encart-audit-reassurance { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
@media (max-width: 640px) {
  .encart-audit { padding: 20px 18px; margin: 28px 0; }
  .encart-audit .encart-audit-titre { font-size: 20px; }
  .encart-audit .encart-audit-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   Pages de cas (lot 6, 24/10/2026) : /cas/ et /cas/<client>/
   ------------------------------------------------------------
   Pages sur le socle (site.css + partiels), sans style inline.
   Les chiffres viennent de la home (vérifiés le 03/09/2026) et
   de kpi_monthly ; chaque page a sa section « D'où viennent ces
   chiffres ». Le champ unique et la liste de suggestions
   reprennent les règles .hero-search / .insc-suggestions de la
   home et de /vsl (définies inline là-bas).
   ============================================================ */
.cas-page { display: flex; flex-direction: column; min-height: 100vh; }
.cas-page main { flex: 1; }
.cas-page .section { padding: clamp(36px, 6vw, 64px) 0; }
.cas-page .section-title { font-size: clamp(22px, 4vw, 32px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 10px; }
.cas-page .section-sub { color: var(--text-muted); font-size: clamp(15px, 2.6vw, 17px); max-width: 640px; margin: 0; line-height: 1.6; }
.cas-page .centre { text-align: center; }
.cas-page .centre .section-sub { margin: 0 auto; }
.cas-header-note { font-size: 13px; color: var(--text-muted); }
@media (max-width: 640px) { .cas-header-note { display: none; } }

.cas-hero { padding: clamp(32px, 6vw, 56px) 0 clamp(24px, 4vw, 40px); }
.cas-kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: var(--accent-glow); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.cas-hero h1 { font-size: clamp(26px, 5vw, 44px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; max-width: 820px; margin: 0 auto 12px; }
.cas-hero .section-sub { margin: 0 auto; max-width: 680px; }
.cas-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 20px); max-width: 900px; margin: clamp(22px, 4vw, 32px) auto 0; }
@media (max-width: 720px) { .cas-chiffres { grid-template-columns: 1fr; } }
.cas-tuile { background: var(--bg-card); border: 1px solid var(--border); border-radius: clamp(14px, 3vw, 20px); padding: clamp(18px, 3vw, 26px) clamp(16px, 2.5vw, 22px); text-align: center; }
.cas-tuile-l { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.cas-tuile-v { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 8px; font-size: clamp(26px, 5vw, 36px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.cas-tuile-v .avant { color: var(--text-muted); font-size: 0.72em; }
.cas-tuile-v .fleche { color: var(--brown); font-size: 0.6em; }
.cas-tuile-n { margin-top: 8px; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.cas-verif { margin: 14px auto 0; font-size: 13px; color: var(--text-muted); }

.cas-texte { max-width: 760px; margin: 14px auto 0; font-size: clamp(15px, 2.6vw, 17px); line-height: 1.7; color: var(--text); }
.cas-texte p + p { margin-top: 12px; }
.cas-texte a { color: var(--accent); font-weight: 600; text-decoration: none; }
.cas-texte a:hover, .cas-texte a:focus-visible { text-decoration: underline; }

.cas-tableau-wrap { max-width: 760px; margin: 18px auto 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card); }
.cas-tableau { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.cas-tableau th, .cas-tableau td { padding: 9px 14px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
.cas-tableau th:first-child, .cas-tableau td:first-child { text-align: left; }
.cas-tableau thead th { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.cas-tableau tbody tr:last-child td { border-bottom: 0; }
.cas-tableau tr.cas-avant td { color: var(--text-muted); }
.cas-tableau tr.cas-contrat td { color: var(--accent); font-weight: 700; }
.cas-tableau tr.cas-contrat td:first-child::after { content: ' · AvisPilot'; font-size: 11px; letter-spacing: 0.04em; }
.cas-legende { max-width: 760px; margin: 10px auto 0; font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.cas-caisse-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 20px); max-width: 900px; margin: clamp(18px, 3vw, 26px) auto 0; }
@media (max-width: 720px) { .cas-caisse-grid { grid-template-columns: 1fr; } }
.cas-caisse-grid .cas-tuile-v { color: var(--brown); }
.cas-caisse-grid .cas-tuile-v .avant { color: var(--text-muted); }
.cas-caisse-grid .cas-tuile-v .apres { color: var(--text); }

.cas-liste { max-width: 760px; margin: 18px auto 0; list-style: none; padding: 0; text-align: left; }
.cas-liste li { position: relative; padding: 8px 0 8px 28px; font-size: clamp(15px, 2.6vw, 16px); line-height: 1.6; }
.cas-liste li::before { content: '✓'; position: absolute; left: 0; top: 8px; color: var(--accent); font-weight: 800; }
.cas-liste li strong { font-weight: 700; }

.cas-sources { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cas-sources .cas-texte { font-size: 14px; color: var(--text-muted); }

.cas-porte .porte-card { max-width: 720px; margin: 0 auto; }
.cas-porte .hero-search { position: relative; margin: 22px auto 0; max-width: 620px; }
.cas-porte .hero-search-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--text); text-align: left; }
.cas-porte .hero-search-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cas-porte .hero-search-row input { flex: 1 1 240px; min-width: 0; padding: 14px 16px; border: 2px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
.cas-porte .hero-search-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.cas-porte .hero-search-btn { flex: 0 0 auto; }
.cas-porte .hero-suggestions { margin-top: 8px; text-align: left; }
.cas-porte .hero-reassurance { margin-top: 12px; font-size: 13px; color: var(--text-muted); }
@media (max-width: 640px) { .cas-porte .hero-search-btn { width: 100%; } }
.cas-tarif { max-width: 620px; margin: 28px auto 0; padding-top: 22px; border-top: 1px solid var(--border); }
.cas-tarif p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }
.cas-tarif p strong { color: var(--text); }
.cas-actions { margin-top: 16px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cas-actions .btn { min-width: 220px; justify-content: center; }
.cas-autres { margin-top: 18px; font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.cas-autres a { color: var(--accent); font-weight: 600; text-decoration: none; }
.cas-autres a:hover, .cas-autres a:focus-visible { text-decoration: underline; }

/* /cas/ : une carte par établissement */
.cas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 24px); max-width: 1000px; margin: clamp(22px, 4vw, 32px) auto 0; }
@media (max-width: 900px) { .cas-grid { grid-template-columns: 1fr; } }
.cas-card { display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: clamp(14px, 3vw, 20px); padding: clamp(22px, 4vw, 30px) clamp(18px, 3vw, 24px); text-decoration: none; color: inherit; text-align: left; }
.cas-card:hover, .cas-card:focus-visible { border-color: var(--brown); text-decoration: none; }
.cas-card-nom { font-size: 15px; font-weight: 700; color: var(--text-muted); margin-bottom: 12px; line-height: 1.35; }
.cas-card-nom span { font-weight: 500; }
.cas-card-chiffre { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; font-size: clamp(26px, 5vw, 36px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 10px; color: var(--text); font-variant-numeric: tabular-nums; }
.cas-card-chiffre .avant { color: var(--text-muted); font-size: 0.75em; }
.cas-card-chiffre .fleche { color: var(--brown); font-size: 0.6em; }
.cas-card-volume { font-size: 15px; font-weight: 600; color: var(--brown); margin-bottom: 10px; }
.cas-card-texte { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.cas-card-lien { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--accent); }

/* /cas/ : « Et dans la caisse ? », une ligne par établissement */
.cas-caisse-liste { max-width: 760px; margin: 18px auto 0; list-style: none; padding: 0; text-align: left; }
.cas-caisse-liste li { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: clamp(15px, 2.6vw, 16px); line-height: 1.6; }
.cas-caisse-liste li:last-child { border-bottom: 0; }
.cas-caisse-liste strong { display: block; color: var(--text); }
.cas-caisse-liste .cas-caisse-chiffres { color: var(--brown); font-weight: 700; }
.cas-caisse-liste a { color: var(--accent); font-weight: 600; text-decoration: none; }
.cas-caisse-liste a:hover, .cas-caisse-liste a:focus-visible { text-decoration: underline; }
