/* ============================================================
   SOS CLÉ — Design System partagé
   Mobile-first · Sobre · Rassurant
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Variables ────────────────────────────────────────────── */
:root {
  --bleu:       #1a2e4a;
  --bleu-clair: #2a4a72;
  --bleu-pale:  #e8f0fb;
  --orange:     #f97316;
  --orange-hover: #ea6c0a;
  --blanc:      #ffffff;
  --gris-clair: #f8fafc;
  --gris:       #64748b;
  --gris-bord:  #e2e8f0;
  --texte:      #1e293b;
  --ombre:      0 4px 24px rgba(26,46,74,0.10);
  --ombre-lg:   0 12px 48px rgba(26,46,74,0.16);
  --radius:     12px;
  --radius-lg:  20px;
  --transition: 0.22s ease;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--blanc);
  color: var(--texte);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Typography ───────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: clamp(1.1rem, 2vw, 1.375rem); font-weight: 600; }
p  { color: var(--gris); line-height: 1.7; }

/* ── Layout helpers ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}

.section--grey {
  background: var(--gris-clair);
}

.section--bleu {
  background: var(--bleu);
  color: var(--blanc);
}
.section--bleu p { color: rgba(255,255,255,0.75); }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gris-bord);
  box-shadow: 0 2px 12px rgba(26,46,74,0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--bleu);
  white-space: nowrap;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--orange);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--blanc);
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gris);
  transition: color var(--transition);
}

.site-nav a:hover,
.site-nav a.actif {
  color: var(--bleu);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
}

.btn-urgence {
  background: var(--orange);
  color: var(--blanc);
  box-shadow: 0 4px 18px rgba(249,115,22,0.35);
  animation: pulsebtn 2.2s infinite;
}

.btn-urgence:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(249,115,22,0.45);
}

.btn-primaire {
  background: var(--bleu);
  color: var(--blanc);
  box-shadow: var(--ombre);
}

.btn-primaire:hover {
  background: var(--bleu-clair);
  transform: translateY(-2px);
  box-shadow: var(--ombre-lg);
}

.btn-contour {
  background: transparent;
  color: var(--bleu);
  border: 2px solid var(--bleu);
}

.btn-contour:hover {
  background: var(--bleu);
  color: var(--blanc);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

@keyframes pulsebtn {
  0%   { box-shadow: 0 4px 18px rgba(249,115,22,0.35); }
  50%  { box-shadow: 0 4px 32px rgba(249,115,22,0.6); }
  100% { box-shadow: 0 4px 18px rgba(249,115,22,0.35); }
}

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-orange {
  background: rgba(249,115,22,0.12);
  color: var(--orange);
}

.badge-bleu {
  background: rgba(26,46,74,0.09);
  color: var(--bleu);
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--blanc);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gris-bord);
  padding: 32px;
  box-shadow: var(--ombre);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-lg);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bleu-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--bleu);
}

.card-icon--orange { background: rgba(249,115,22,0.1); }
.card-icon--orange svg { fill: var(--orange); }

/* ── Grid helpers ─────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── Section header ───────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}

.section-header .badge {
  margin-bottom: 12px;
}

.section-header p {
  margin-top: 12px;
  font-size: 1.05rem;
}

/* ── FAQ accordion ────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--gris-bord);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--texte);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--orange); }

.faq-chevron {
  width: 22px;
  height: 22px;
  fill: var(--gris);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.ouvert .faq-chevron {
  transform: rotate(180deg);
}

.faq-reponse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
}

.faq-item.ouvert .faq-reponse {
  max-height: 400px;
  padding-bottom: 20px;
}

.faq-reponse p { color: var(--gris); line-height: 1.7; }

/* ── Pricing cards ────────────────────────────────────────── */
.tarif-card {
  background: var(--blanc);
  border: 1px solid var(--gris-bord);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.tarif-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-lg);
}

.tarif-card.populaire {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}

.tarif-card .populaire-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--blanc);
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.tarif-prix {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--bleu);
  line-height: 1;
  margin: 18px 0 6px;
}

.tarif-prix span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gris);
}

.tarif-desc {
  font-size: 0.9rem;
  color: var(--gris);
  margin-bottom: 24px;
}

.tarif-liste {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.tarif-liste li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.92rem;
  color: var(--texte);
  border-bottom: 1px solid var(--gris-bord);
}

.tarif-liste li:last-child { border-bottom: none; }

.tarif-liste li::before {
  content: '';
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231a2e4a'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Steps / How it works ─────────────────────────────────── */
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--blanc);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-body h3 { margin-bottom: 6px; }

/* ── Testimonials ─────────────────────────────────────────── */
.avis-card {
  background: var(--blanc);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gris-bord);
  padding: 28px;
  box-shadow: var(--ombre);
}

.avis-etoiles {
  color: var(--orange);
  font-size: 1.1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.avis-texte {
  font-size: 0.95rem;
  color: var(--texte);
  line-height: 1.65;
  margin-bottom: 18px;
}

.avis-auteur {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--bleu);
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: var(--bleu);
  border-radius: var(--radius-lg);
  padding: 56px 36px;
  text-align: center;
  color: var(--blanc);
}

.cta-banner h2 { color: var(--blanc); margin-bottom: 12px; }
.cta-banner p  { color: rgba(255,255,255,0.75); margin-bottom: 32px; }

/* ── Hero urgence ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--bleu) 0%, var(--bleu-clair) 100%);
  color: var(--blanc);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3C/svg%3E") repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 { color: var(--blanc); margin-bottom: 18px; }
.hero .subtitle {
  color: rgba(255,255,255,0.82);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 40px;
}

/* Radar animation on hero */
.radar-wrap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 60px;
  padding: 12px 24px;
  margin-bottom: 36px;
  backdrop-filter: blur(6px);
}

.radar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ade80;
  position: relative;
  flex-shrink: 0;
}

.radar-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(74,222,128,0.4);
  animation: radar-pulse 1.6s infinite;
}

@keyframes radar-pulse {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

.radar-wrap span {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}

/* ── Stats strip ──────────────────────────────────────────── */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-top: 56px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}

/* ── Trust bar ────────────────────────────────────────────── */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: center;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--gris-bord);
  border-bottom: 1px solid var(--gris-bord);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bleu);
}

.trust-item svg {
  width: 20px;
  height: 20px;
  fill: var(--orange);
  flex-shrink: 0;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--bleu);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blanc);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--blanc);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 9px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--blanc);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-legal a:hover { color: var(--blanc); }

/* ── Nav mobile ───────────────────────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
  fill: var(--bleu);
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--blanc);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gris-bord);
    gap: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .site-nav.ouvert { display: flex; }
  .nav-toggle { display: flex; }

  .site-header { position: relative; }

  .hero { padding: 56px 0 48px; }
  .section { padding: 52px 0; }
  .cta-banner { padding: 40px 20px; }
}

/* ── Utilitaires ──────────────────────────────────────────── */
.text-center { text-align: center; }
.text-blanc  { color: var(--blanc); }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.gap-16 { gap: 16px; }

.inline-flex { display: inline-flex; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.wrap { flex-wrap: wrap; }

/* ── Separator ────────────────────────────────────────────── */
.sep {
  border: none;
  border-top: 1px solid var(--gris-bord);
  margin: 0;
}

/* ── Alert box ────────────────────────────────────────────── */
.alert-box {
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.25);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.alert-box svg {
  width: 22px;
  height: 22px;
  fill: var(--orange);
  flex-shrink: 0;
}

.alert-box p {
  font-size: 0.92rem;
  color: var(--texte);
  margin: 0;
}

/* ── Local SEO section ────────────────────────────────────── */
.ville-hero {
  background: linear-gradient(135deg, var(--bleu) 0%, #1e3a5f 100%);
  color: var(--blanc);
  padding: 64px 0 56px;
}

.ville-hero h1 { color: var(--blanc); margin-bottom: 14px; }
.ville-hero .subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 36px;
}

.zone-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.zone-tag {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
}

/* ── Intervention card ────────────────────────────────────── */
.intervention-card {
  border-left: 4px solid var(--orange);
  padding-left: 18px;
  margin-bottom: 20px;
}

.intervention-card h3 { margin-bottom: 4px; }
.intervention-card p { font-size: 0.92rem; }
