/* ============================================
   A4 Taxis — Feuille de style principale
   Design : bleu clair, blanc, sobre, rassurant
   ============================================ */

/* --- Variables CSS --- */
:root {
  --blue-primary: #1E6FBF;
  --blue-deep: #0D3C6E;
  --blue-light: #EBF5FF;
  --blue-medium: #2E80CC;
  --blue-hover: #155FA0;
  --white: #FFFFFF;
  --gray-light: #F7F9FC;
  --gray-bg: #F0F4F8;
  --gray-border: #E1EBF5;
  --text-dark: #1A2C40;
  --text-gray: #4A5568;
  --text-light: #718096;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.10);
  --shadow-blue: 0 4px 20px rgba(30, 111, 191, 0.35);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

h1, h2, h3, h4 {
  line-height: 1.25;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   BOUTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--blue-primary);
  color: var(--white);
  border-color: var(--blue-primary);
}

.btn-primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
  color: var(--white);
}

.btn-secondary {
  background: var(--blue-deep);
  color: var(--white);
  border-color: var(--blue-deep);
}

.btn-secondary:hover {
  background: #0a2e55;
  border-color: #0a2e55;
  transform: translateY(-1px);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--blue-primary);
  border-color: var(--blue-primary);
}

.btn-outline:hover {
  background: var(--blue-primary);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--blue-deep);
  border-color: var(--white);
}

.btn-white:hover {
  background: #e0eeff;
  transform: translateY(-1px);
  color: var(--blue-deep);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.75);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1rem;
  width: 100%;
}

/* ============================================
   PASTILLE TÉLÉPHONE FLOTTANTE
   ============================================ */

.floating-phone {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  background: var(--blue-primary);
  color: var(--white);
  border-radius: 50px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: var(--shadow-blue);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.floating-phone:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--white);
  box-shadow: 0 6px 28px rgba(30, 111, 191, 0.45);
}

.floating-phone .phone-icon {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* Logo */
.logo a {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--blue-deep);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.logo a:hover {
  text-decoration: none;
  color: var(--blue-primary);
}

/* Navigation desktop */
.nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav ul li a {
  padding: 7px 11px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-gray);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.nav ul li a:hover {
  color: var(--blue-primary);
  background: var(--blue-light);
}

.header-cta {
  flex-shrink: 0;
}

/* Hamburger toggle — caché par défaut */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px 4px;
  background: none;
  border: none;
  flex-shrink: 0;
}

.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-image: url('https://images.unsplash.com/photo-1568605117036-5fe5e7bab0b7?w=1920&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center 40%;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 60, 110, 0.90) 0%, rgba(30, 111, 191, 0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 760px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-content h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 36px;
  opacity: 0.93;
  max-width: 620px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-tags {
  font-size: 0.85rem;
  opacity: 0.78;
  letter-spacing: 0.4px;
}

/* ============================================
   SECTIONS GÉNÉRIQUES
   ============================================ */

.section {
  padding: 88px 0;
}

.section-white {
  background: var(--white);
}

.section-blue-light {
  background: var(--blue-light);
}

.section-gray {
  background: var(--gray-light);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-gray);
  line-height: 1.75;
}

/* ============================================
   INTRO / QUI SOMMES-NOUS
   ============================================ */

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.intro-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 20px;
  margin-top: 16px;
}

.intro-text p {
  color: var(--text-gray);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.badge {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-primary);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(30, 111, 191, 0.22);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.ambulancier-block {
  background: var(--gray-light);
  border-left: 4px solid var(--blue-primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 4px;
}

.ambulancier-block p {
  font-size: 0.95rem;
  color: var(--text-gray);
  margin: 0;
  line-height: 1.6;
}

.intro-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ============================================
   BANDE CHIFFRES CLÉS
   ============================================ */

.stats-band {
  background: linear-gradient(135deg, var(--blue-deep) 0%, #1A5C9E 100%);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px;
}

.stat-number {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
  max-width: 140px;
}

/* Séparateur entre stats */
.stat-item:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

/* ============================================
   GRILLE DE CARTES
   ============================================ */

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

.cards-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

/* Icônes CSS simples dans les cartes */
.card-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
  color: var(--blue-primary);
  flex-shrink: 0;
}

.card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 10px;
}

.card p {
  font-size: 0.93rem;
  color: var(--text-gray);
  line-height: 1.65;
  margin: 0;
}

/* Cartes articles */
.card-article .article-category {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-primary);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.card-article h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.card-article p {
  font-size: 0.92rem;
  color: var(--text-light);
}

/* ============================================
   NOTE D'INFORMATION MÉDICALE
   ============================================ */

.info-note {
  margin-top: 44px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(30, 111, 191, 0.18);
  border-radius: var(--radius-sm);
  padding: 18px 28px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.info-note p {
  font-size: 0.88rem;
  color: var(--text-light);
  text-align: center;
  margin: 0;
  line-height: 1.6;
}

/* ============================================
   AVIS CLIENTS
   ============================================ */

.testimonial-block {
  max-width: 680px;
  margin: 0 auto;
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 48px 48px;
  text-align: center;
  border: 1px solid var(--gray-border);
  position: relative;
}

.testimonial-block::before {
  content: '\201C';
  position: absolute;
  top: 20px;
  left: 32px;
  font-size: 4rem;
  color: var(--blue-primary);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-block p {
  font-size: 1.1rem;
  color: var(--text-gray);
  line-height: 1.75;
  font-style: italic;
  margin: 0;
}

/* ============================================
   ZONE D'INTERVENTION
   ============================================ */

.cities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.city-tag {
  background: var(--white);
  color: var(--blue-primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(30, 111, 191, 0.22);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.city-tag:hover {
  background: var(--blue-light);
  border-color: var(--blue-primary);
}

/* ============================================
   BANDE CTA
   ============================================ */

.cta-band {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-primary) 100%);
  padding: 80px 0;
}

.cta-content {
  text-align: center;
  color: var(--white);
  max-width: 720px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.cta-content p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 36px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ============================================
   INFOS PRATIQUES / CONTACT
   ============================================ */

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

.contact-block {
  margin-bottom: 28px;
}

.contact-block:last-child {
  margin-bottom: 0;
}

.contact-block h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-deep);
  margin-bottom: 12px;
}

.contact-block p {
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.75;
}

.contact-block p strong {
  color: var(--text-dark);
  display: block;
  margin-bottom: 4px;
}

.contact-block address {
  color: var(--text-gray);
  line-height: 1.75;
  font-size: 1rem;
}

.contact-block a {
  color: var(--blue-primary);
  font-weight: 500;
  font-size: 1.05rem;
}

.contact-block a:hover {
  color: var(--blue-hover);
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}

.footer-col address,
.footer-col p {
  font-size: 0.9rem;
  line-height: 1.85;
  margin-bottom: 6px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.78);
  transition: color var(--transition);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 20px;
  opacity: 0.6;
}

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

.footer-col ul li a {
  font-size: 0.9rem;
}

.footer-col ul li span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 0.83rem;
  text-align: center;
  opacity: 0.65;
  line-height: 1.7;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-bottom a:hover {
  color: var(--white);
}

.footer-bottom strong {
  color: var(--white);
  opacity: 1;
}

/* ============================================
   PAGE MENTIONS LÉGALES
   ============================================ */

.page-hero {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-primary) 100%);
  padding: 64px 0 56px;
  text-align: center;
  color: var(--white);
}

.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1rem;
  opacity: 0.85;
}

.page-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 24px;
}

.page-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-top: 44px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue-light);
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p {
  color: var(--text-gray);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.page-content address {
  color: var(--text-gray);
  font-size: 0.97rem;
  line-height: 1.85;
  margin-bottom: 12px;
}

.page-content a {
  color: var(--blue-primary);
}

.back-link {
  margin-top: 48px;
  text-align: center;
}

/* ============================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================ */

@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

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

  .stat-item:nth-child(3) {
    border-right: none;
  }

  .stat-item:nth-child(4),
  .stat-item:nth-child(5) {
    border-right: none;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .intro-image {
    order: -1;
  }

  .intro-image img {
    height: 300px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-inner .footer-col:first-child {
    grid-column: 1 / -1;
  }
}

/* ============================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================ */

@media (max-width: 768px) {

  /* --- Menu hamburger --- */
  .nav-toggle-label {
    display: flex;
    order: 3;
    margin-left: auto;
  }

  .header-cta {
    display: none;
  }

  /* Animation X quand ouvert */
  .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
    width: 0;
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Menu déroulant mobile */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-top: 1px solid var(--gray-border);
    z-index: 200;
  }

  .nav-toggle:checked ~ .nav {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    padding: 12px 16px 20px;
    gap: 0;
  }

  .nav ul li {
    border-bottom: 1px solid var(--gray-border);
  }

  .nav ul li:last-child {
    border-bottom: none;
  }

  .nav ul li a {
    display: block;
    padding: 14px 8px;
    font-size: 0.97rem;
    border-radius: 0;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  /* --- Hero mobile --- */
  .hero {
    min-height: 100svh;
    background-attachment: scroll;
  }

  .hero-content {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.97rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  /* --- Sections mobile --- */
  .section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  /* --- Stats mobile --- */
  .stats-band {
    padding: 48px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .stats-grid .stat-item:last-child {
    grid-column: 1 / -1;
    border-right: none;
  }

  .stat-item {
    border-right: none !important;
  }

  /* --- Cartes mobile --- */
  .cards-grid,
  .cards-grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* --- Contact mobile --- */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* --- CTA mobile --- */
  .cta-content h2 {
    font-size: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    max-width: 360px;
    margin: 0 auto;
  }

  /* --- Footer mobile --- */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* --- Pastille téléphone mobile : cercle compact --- */
  .floating-phone .phone-text {
    display: none;
  }

  .floating-phone {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 0;
    bottom: 20px;
    right: 20px;
  }

  .floating-phone .phone-icon {
    font-size: 1.5rem;
  }

  /* --- Testimonial mobile --- */
  .testimonial-block {
    padding: 32px 24px;
  }

  /* --- Mentions légales mobile --- */
  .page-content {
    padding: 48px 24px;
  }
}

/* ============================================
   RESPONSIVE — PETIT MOBILE (≤ 480px)
   ============================================ */

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-content h1 {
    font-size: 1.55rem;
  }

  .stat-number {
    font-size: 1.7rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-hero h1 {
    font-size: 1.7rem;
  }
}
