/* ========================================
   TAXI AUTOUR DE MOI – CSS Global v1.0
   Design: Bleu Taxi + Jaune/Blanc Accent
   Mobile-first, Responsive, Performance-optimized
   ======================================== */

/* Critical CSS – Inline for LCP */
:root {
  --blue-primary: #003d82;
  --blue-light: #0052b3;
  --yellow-accent: #ffc107;
  --white: #ffffff;
  --gray-light: #f8f9fa;
  --gray-medium: #e9ecef;
  --gray-dark: #495057;
  --text-dark: #212529;
  --text-light: #6c757d;
  --border-color: #dee2e6;
  --success: #28a745;
  --error: #dc3545;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 61, 130, 0.15);
  --radius: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  color: var(--blue-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--blue-light);
  text-decoration: underline;
}

/* ========== HEADER ========== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-light) 100%);
  box-shadow: var(--shadow-md);
  padding: 1rem 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo { height: 40px; transition: transform 0.3s; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
    header.scrolled .logo { filter: drop-shadow(0 1px 2px rgba(212,175,55,0.5)); }
    .logo:hover { transform: scale(1.05); }

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.phone-link {
  color: var(--yellow-accent);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.phone-link:hover {
  color: var(--white);
  text-decoration: none;
}

.lang-switcher {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.lang-flag {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--white);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.lang-flag:hover {
  transform: scale(1.1);
  border-color: var(--yellow-accent);
}

.lang-flag.active {
  border-color: var(--yellow-accent);
  background-color: var(--yellow-accent);
}

.cta-btn {
  background-color: var(--yellow-accent);
  color: var(--blue-primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.cta-btn:hover {
  background-color: #ffb300;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

/* ========== MAIN CONTENT ========== */
main {
  margin-top: 80px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--yellow-accent), var(--blue-primary));
  border-radius: 2px;
}

/* ========== HERO SECTION ========== */
.hero {
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-light) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
}

.hero .intro-text {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
}

/* ========== SEARCH BAR ========== */
.search-bar {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.search-input {
  padding: 0.875rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  flex: 1;
  min-width: 250px;
  max-width: 400px;
  box-shadow: var(--shadow-sm);
}

.search-input::placeholder {
  color: var(--text-light);
}

.search-btn {
  padding: 0.875rem 2rem;
  background-color: var(--yellow-accent);
  color: var(--blue-primary);
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.search-btn:hover {
  background-color: #ffb300;
  box-shadow: var(--shadow-md);
}

/* ========== CARDS GRID ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--gray-light), var(--gray-medium));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.95rem;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.btn-primary {
  flex: 1;
  padding: 0.75rem 1rem;
  background-color: var(--blue-primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background-color: var(--blue-light);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  flex: 1;
  padding: 0.75rem 1rem;
  background-color: transparent;
  color: var(--blue-primary);
  border: 2px solid var(--blue-primary);
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-secondary:hover {
  background-color: var(--blue-primary);
  color: var(--white);
}

/* ========== ACCORDION ========== */
.accordion {
  margin-bottom: 2rem;
}

.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.accordion-header {
  background-color: var(--gray-light);
  padding: 1.25rem;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  user-select: none;
}

.accordion-header:hover {
  background-color: var(--gray-medium);
}

.accordion-header.active {
  background-color: var(--blue-primary);
  color: var(--white);
}

.accordion-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.accordion-header.active .accordion-toggle {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 1.25rem;
  background-color: var(--white);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-content.active {
  max-height: 1000px;
  transition: max-height 0.5s ease-in;
}

/* ========== FORMS ========== */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-submit {
  background-color: var(--blue-primary);
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.form-submit:hover {
  background-color: var(--blue-light);
  box-shadow: var(--shadow-lg);
}

/* ========== FOOTER ========== */
footer {
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-light) 100%);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
  color: var(--yellow-accent);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.social-icon:hover {
  background-color: var(--yellow-accent);
  color: var(--blue-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* ========== MODALS & POPUPS ========== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  animation: slideIn 0.3s;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.modal h2 {
  color: var(--success);
  margin-bottom: 1rem;
}

.modal p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.modal-btn {
  background-color: var(--blue-primary);
  color: var(--white);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.modal-btn:hover {
  background-color: var(--blue-light);
}

/* ========== BREADCRUMBS ========== */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.breadcrumbs a {
  color: var(--blue-primary);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* ========== UTILITY ========== */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-light);
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .header-container {
    padding: 0 1rem;
  }

  .header-right {
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
    order: 3;
  }

  .logo {
    flex: 1;
  }

  .lang-switcher {
    gap: 0.5rem;
  }

  .lang-flag {
    width: 24px;
    height: 24px;
  }

  .hero {
    padding: 2rem 0;
  }

  .search-bar {
    flex-direction: column;
  }

  .search-input {
    max-width: 100%;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  section {
    padding: 2rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .phone-link {
    font-size: 0.95rem;
  }

  .cta-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }

  .modal {
    padding: 1.5rem;
  }

  .search-input {
    min-width: 100%;
  }
}