/* =============================================================================
   style.css — Feuille de style commune
   Taxi Course En Ligne
   ============================================================================= */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.55;
}

a { color: #0055a5; }

/* ===== HEADER ===== */
header {
  background: linear-gradient(135deg, #003366 0%, #0055a5 100%);
  color: #fff;
  padding: 22px 0 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
header h1 { font-size: 2.3em; letter-spacing: 1px; }
header p { font-size: 1em; opacity: 0.85; margin-top: 6px; }
header p.header-tagline {
  font-size: 0.95em;
  font-weight: 600;
  opacity: 1;
  margin-top: 8px;
  color: #ffd966;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

/* ===== TEXTE D'ACCROCHE (HOME) ===== */
.lead-text {
  font-size: 1.1em;
  line-height: 1.6;
  color: #003366;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
}
.lead-text-2 {
  font-style: italic;
  color: #0055a5;
  margin-top: -8px;
  margin-bottom: 22px;
  font-size: 1.05em;
}

/* ===== NAV ===== */
nav {
  background-color: #0055a5;
  text-align: center;
  padding: 10px 0;
}
nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 15px;
  font-size: 1.1em;
  transition: opacity 0.2s;
}
nav a:hover { opacity: 0.75; text-decoration: underline; }
nav a.active { font-weight: bold; text-decoration: underline; }

/* ===== MAIN ===== */
main {
  padding: 40px 20px 120px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}
main h2 { font-size: 2em; margin-bottom: 16px; color: #003366; }
main > p { font-size: 1.15em; margin-bottom: 20px; color: #555; }
main h3 { color: #003366; margin: 20px 0 12px; font-size: 1.3em; }

/* ===== HERO 2 COLONNES (HOME) ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  text-align: left;
  max-width: 1180px;
  margin: 0 auto 40px;
  padding: 0 20px;
  animation: hero-fade-in 1.2s ease-out both;
}

/* Apparition au chargement de la page */
@keyframes hero-fade-in {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-image {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.25);
  aspect-ratio: 16/10;
  cursor: pointer;
  animation: hero-float 6s ease-in-out infinite;
}

/* L'image "respire" légèrement */
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Effet Ken Burns : zoom + déplacement lent en boucle */
  animation: ken-burns 16s ease-in-out infinite alternate;
  transition: transform 0.6s ease, filter 0.4s ease;
  will-change: transform;
}

@keyframes ken-burns {
  0%   { transform: scale(1.00) translate(0, 0); }
  100% { transform: scale(1.10) translate(-1.5%, -1.5%); }
}

.hero-image:hover img {
  /* Pause le Ken Burns pendant le survol + agrandit */
  animation-play-state: paused;
  transform: scale(1.08);
  filter: brightness(1.08) saturate(1.1);
}

/* Reflet lumineux qui traverse l'image */
.hero-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(255, 255, 255, 0.0) 40%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.0) 60%,
    transparent 70%
  );
  transform: translateX(-150%) skewX(-20deg);
  animation: shine 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes shine {
  0%   { transform: translateX(-150%) skewX(-20deg); }
  55%  { transform: translateX(220%)  skewX(-20deg); }
  100% { transform: translateX(220%)  skewX(-20deg); }
}

/* Petit badge "24/7" qui pulse en haut à droite */
.hero-image::before {
  content: '🚖 24/7';
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 51, 102, 0.92);
  color: #ffd966;
  font-size: 0.72em;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 50px;
  z-index: 3;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: pulse-dot 1.8s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(0, 51, 102, 0.4);
  backdrop-filter: blur(4px);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.75; transform: scale(1.05); }
}

.hero-content { padding: 0 10px; }
.hero-pill {
  display: inline-block;
  background: linear-gradient(135deg, #ffb84d, #ff8c1a);
  color: #fff;
  font-weight: 700;
  font-size: 0.95em;
  padding: 10px 18px;
  border-radius: 50px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(255,140,26,0.35);
  letter-spacing: 0.3px;
  animation: pill-glow 3s ease-in-out infinite;
}

@keyframes pill-glow {
  0%, 100% { box-shadow: 0 4px 14px rgba(255,140,26,0.35); }
  50%      { box-shadow: 0 4px 22px rgba(255,140,26,0.6); }
}

.hero-content h2 {
  text-align: left;
  font-size: 2.1em;
  margin-bottom: 18px;
  line-height: 1.25;
  color: #003366;
  animation: fade-in-up 1s ease-out 0.2s both;
}
.hero-content .lead-text {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  font-size: 1.08em;
  line-height: 1.6;
  margin-bottom: 14px;
  animation: fade-in-up 1s ease-out 0.4s both;
}
.hero-content .lead-text-2 {
  text-align: left;
  margin-bottom: 28px;
  animation: fade-in-up 1s ease-out 0.6s both;
}
.hero-cta {
  display: inline-block;
  margin-top: 6px;
  animation: fade-in-up 1s ease-out 0.8s both;
}

@keyframes fade-in-up {
  0%   { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .hero-content { padding: 0; }
  .hero-content h2 { text-align: center; font-size: 1.7em; }
  .hero-content .lead-text,
  .hero-content .lead-text-2 { text-align: center; }
  .hero-pill { display: inline-block; }
  .hero-image { max-width: 520px; margin: 0 auto; }
}

/* ===== BOUTONS GÉNÉRIQUES ===== */
.btn-reservation, .btn-call, .btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.25s;
  border-radius: 8px;
}

.btn-reservation, .btn-primary {
  background: linear-gradient(135deg, #28a745, #20913a);
  color: white;
  padding: 16px 44px;
  font-size: 1.25em;
  box-shadow: 0 4px 14px rgba(40,167,69,0.35);
}
.btn-reservation:hover, .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(40,167,69,0.45);
}

.btn-secondary {
  background: linear-gradient(135deg, #0055a5, #003366);
  color: #fff;
  padding: 13px 28px;
  font-size: 1.05em;
  margin-top: 14px;
  box-shadow: 0 3px 10px rgba(0,85,165,0.2);
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,85,165,0.3); }

/* ===== CARTES (services, avantages…) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 26px 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}
.card .icon { font-size: 2.6em; margin-bottom: 10px; display: block; }
.card h3 { color: #0055a5; margin-bottom: 10px; font-size: 1.15em; }
.card p  { color: #555; font-size: 0.95em; }

/* ===== AVANTAGES (homepage) ===== */
.advantages {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  gap: 12px;
}
.advantage {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 22px 18px;
  width: 220px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}
.advantage:hover { transform: translateY(-3px); }
.advantage h3 { font-size: 1.1em; margin-bottom: 8px; color: #0055a5; }
.advantage p  { font-size: 0.95em; color: #555; }

/* ===== TABLEAU TARIFS ===== */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin: 20px auto;
  text-align: left;
}
.pricing-table th, .pricing-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #eee;
}
.pricing-table thead { background: #003366; color: #fff; }
.pricing-table thead th { font-size: 1.05em; }
.pricing-table tbody tr:nth-child(even) { background: #f7f9fc; }
.pricing-table td.price { color: #0055a5; font-weight: bold; text-align: right; }

.distance-list { list-style: none; padding: 0; max-width: 600px; margin: 20px auto; }
.distance-list li {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; padding: 14px 18px; margin: 8px 0;
  border-radius: 8px; border: 1px solid #e0e0e0;
  text-align: left;
}
.distance-list .price { color: #0055a5; font-weight: bold; }

.note-box {
  background: #eef4fb;
  border-left: 4px solid #0055a5;
  padding: 18px 22px;
  border-radius: 8px;
  margin: 30px auto;
  max-width: 800px;
  text-align: left;
  color: #444;
}

/* ===== PAGE CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
  text-align: left;
}
.contact-block {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.contact-block h3 { color: #0055a5; margin-bottom: 16px; }
.contact-line { margin: 12px 0; }
.contact-line .label { font-size: 0.85em; color: #777; font-weight: bold; }
.contact-line a { color: #0055a5; font-size: 1.05em; font-weight: 600; }

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-size: 0.97em;
  font-family: Arial, sans-serif;
  margin-bottom: 12px;
  background: #fafafa;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: #0055a5;
  box-shadow: 0 0 0 3px rgba(0,85,165,0.12);
  background: #fff;
}
.contact-form button {
  width: 100%;
  background: linear-gradient(135deg, #0055a5, #003366);
  color: #fff;
  padding: 13px;
  border: none;
  border-radius: 7px;
  font-size: 1.05em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.25s;
}
.contact-form button:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,85,165,0.3); }

.success-message {
  display: none;
  background: #d4edda;
  color: #155724;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 14px;
  border: 1px solid #c3e6cb;
}
.success-message.show { display: block; }

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, #003366, #0055a5);
  color: #fff;
  text-align: center;
  padding: 18px 0;
  font-size: 0.95em;
  margin-top: 60px;
}
footer a { color: #fff; opacity: 0.9; text-decoration: underline; }

/* ===== CTA FINAL (Prêt à partir ?) ===== */
.cta-final {
  background: linear-gradient(135deg, #001f3f 0%, #003366 60%, #001a2e 100%);
  color: #fff;
  text-align: center;
  padding: 70px 20px;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,217,102,0.10) 0%, rgba(0,0,0,0) 60%);
  pointer-events: none;
}
.cta-final-inner { position: relative; max-width: 800px; margin: 0 auto; }
.cta-eyebrow {
  color: #ffd966;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.95em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.cta-title {
  font-size: 2.6em;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  color: #fff;
}
.cta-desc {
  font-size: 1.1em;
  color: rgba(255,255,255,0.85);
  margin: 0 0 32px;
  line-height: 1.55;
}
.cta-buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-cta-primary, .btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  font-size: 1.1em;
  font-weight: 700;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  min-width: 280px;
  justify-content: center;
}
.btn-cta-primary {
  background: linear-gradient(135deg, #ffb84d, #ff8c1a);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255,140,26,0.4);
}
.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255,140,26,0.55);
}
.btn-cta-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-cta-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: #fff;
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .cta-final { padding: 50px 16px; }
  .cta-title { font-size: 1.9em; }
  .btn-cta-primary, .btn-cta-secondary { min-width: 100%; padding: 16px 20px; }
}

/* ===== FOOTER 4 COLONNES ===== */
.site-footer {
  background: linear-gradient(135deg, #003366, #0055a5);
  color: #fff;
  padding: 60px 20px 0;
  margin-top: 0;
  text-align: left;
}
.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-col { font-size: 0.95em; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 1.35em;
  font-weight: 800;
  margin-bottom: 14px;
}
.footer-brand:hover { text-decoration: none; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #fff;
  border-radius: 8px;
  font-size: 1.2em;
}
.footer-brand-name .brand-accent { color: #ffd966; }
.footer-tagline {
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
  margin-bottom: 18px;
  font-size: 0.95em;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  color: #fff;
  transition: all 0.2s;
  text-decoration: none;
}
.social-icon:hover {
  background: #ffd966;
  color: #003366;
  transform: translateY(-2px);
}
.footer-title {
  font-size: 1.15em;
  font-weight: 800;
  margin: 0 0 16px;
  color: #fff;
}
.footer-links, .footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li, .footer-contact li {
  margin-bottom: 10px;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #ffd966;
}
.footer-contact a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.footer-contact a:hover { color: #ffd966; }
.footer-contact .contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  color: #ffd966;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 18px 0;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88em;
  color: rgba(255,255,255,0.75);
  text-align: left;
}
.footer-bottom a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.footer-bottom a:hover { color: #ffd966; }
.footer-legal { text-align: right; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { text-align: center; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  main { padding: 24px 12px 80px; }
  main h2 { font-size: 1.6em; }
  nav a { margin: 0 8px; font-size: 0.95em; }
  header h1 { font-size: 1.7em; }
  header p  { font-size: 0.9em; }
  .card { padding: 18px 12px; }
  .pricing-table th, .pricing-table td { padding: 10px 12px; font-size: 0.92em; }
  .btn-reservation, .btn-primary { padding: 14px 24px; font-size: 1.1em; }
}
