/* === Variables === */
:root {
  --primary: #0056b3;
  --accent: #e30613;
  --dark: #222;
  --light: #f4f4f4;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #0056b3, #003d82);
}

/* === Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--light);
  color: #333;
  line-height: 1.6;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* === Header === */
header {
  background: var(--gradient);
  color: var(--white);
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header h1 {
  font-size: 32px;
  font-weight: 700;
}

/* === Hero === */
.hero {
  background: url('https://www.12h15.fr/wp-content/uploads/2019/06/conseils-expedition-colis.jpg') center/cover no-repeat;
  position: relative;
  padding: 100px 20px;
  text-align: center;
  color: white;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 86, 179, 0.7);
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero h2 {
  font-size: 28px;
  margin-bottom: 20px;
}
.hero form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero input, .hero button {
  padding: 14px;
  font-size: 16px;
  width: 100%;
  max-width: 400px;
  border: none;
  border-radius: 5px;
}
.hero input {
  border: 2px solid #ccc;
}
.hero input:focus {
  border-color: var(--primary);
  outline: none;
}
.hero button {
  background-color: var(--accent);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.hero button:hover {
  background-color: #bf0510;
}
#loading, #tracking-error {
  margin-top: 10px;
  font-size: 14px;
}
#tracking-error {
  color: yellow;
  font-weight: bold;
}

/* === About & Sections === */
section {
  padding: 60px 0;
  background-color: var(--white);
}
section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
  font-weight: 600;
  color: var(--primary);
}
.about p, .faq p, .faq-item h3 {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 20px;
}
.about img {
  max-width: 100%;
  border-radius: 10px;
  display: block;
  margin: 20px auto;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* === Services === */
.services {
  background: #f9fafc;
}
.services-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.service-box {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 330px;
  text-align: center;
  transition: all 0.3s ease;
}
.service-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}
.service-box i {
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 15px;
}
.service-box h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--primary);
}
.service-box p {
  font-size: 15px;
  color: #555;
}

/* === Testimonials === */
.testimonial {
  background-color: #f0f0f0;
  margin: 10px auto;
  padding: 25px;
  border-radius: 8px;
  max-width: 700px;
  font-style: italic;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  line-height: 1.8;
}
.testimonial strong {
  color: var(--primary);
}

/* === FAQ === */
.faq-item {
  margin-bottom: 30px;
  text-align: center;
}
.faq-item h3 {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

/* === Footer === */
footer {
  background: var(--dark);
  color: #ccc;
  padding: 40px 20px;
  text-align: center;
}
.footer-search input {
  padding: 10px;
  border-radius: 5px 0 0 5px;
  border: none;
  width: 200px;
}
.footer-search button {
  padding: 10px;
  background-color: var(--accent);
  border: none;
  color: white;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}
.footer-search button:hover {
  background-color: #c50411;
}

/* === Tracking Info === */
.tracking-info {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  max-width: 750px;
  margin: 30px auto;
  display: none;
}
.tracking-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 18px;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
  animation: fadeInUp 0.4s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}
.step-icon {
  color: var(--accent);
  font-size: 20px;
  margin-top: 2px;
}
.step-text {
  font-size: 16px;
  flex: 1;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Transporteurs partenaires === */
.trusted-carriers {
  background: #f9f9f9;
  padding: 60px 0;
  text-align: center;
}
.trusted-carriers h2 {
  color: #0056b3;
  font-size: 28px;
  margin-bottom: 10px;
}
.trusted-carriers .carrier-subtitle {
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #555;
}
.carrier-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  margin-bottom: 30px;
}
.carrier-logos a img {
  height: 60px;
  object-fit: contain;
  max-width: 160px;
  transition: transform 0.3s ease;
}
.carrier-logos a:hover img {
  transform: scale(1.1);
}

/* === Texte animé (machine à écrire) === */
.typing-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 20px;
  color: white;
  font-weight: bold;
  flex-wrap: wrap;
}

.typewriter-text {
  color: white !important;
}

}
@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* === Responsive === */
@media (max-width: 768px) {
  header h1 {
    font-size: 26px;
  }
  .hero h2 {
    font-size: 22px;
  }
  .hero form {
    flex-direction: column;
  }
  .hero input,
  .hero button {
    max-width: 100%;
    width: 100%;
  }
  .services-row {
    flex-direction: column;
    align-items: center;
  }
  .service-box {
    max-width: 100%;
  }
  .tracking-info {
    margin: 20px;
  }
  .tracking-step {
    flex-direction: column;
    border-left: none;
    border-top: 2px solid var(--accent);
    padding-top: 10px;
    padding-left: 0;
  }
}
