/* TRANSPORTS ILLICO PRESTO — style.css
   Ordre du fichier :
   1. Variables (couleurs, tailles...)
   2. Reset de base
   3. Éléments communs (container, boutons)
   4. Header
   5. Hero (accueil)
   6. À propos
   7. Services
   8. Contact
   9. Footer
   10. Accessibilité
   11. Responsive (tablette + desktop)
*/


/* --- 1. VARIABLES --- */
:root {
  --color-navy: #003a73;
  --color-orange: #fea040;
  --color-orange-dark: #df7c1e;
  --color-orange-darker: #c96c14;
  --color-bg: #ffffff;
  --color-bg-light: #eeeeee;
  --color-text: #1a1a1a;
  --color-text-light: #555555;
  --color-border: rgba(0, 58, 115, 0.25);
  --font-main: "Segoe UI", Arial, Helvetica, sans-serif;
  --header-height: 130px;
  --radius: 16px;
  --max-width: 1180px;
  --transition: 0.25s ease;
}


/* --- 2. RESET --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  padding-top: var(--header-height);
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3 {
  color: var(--color-navy);
  line-height: 1.2;
}

section {
  scroll-margin-top: var(--header-height);
}


/* --- 3. ÉLÉMENTS COMMUNS --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  transition: background-color var(--transition), transform var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-orange-dark), var(--color-orange-darker));
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
}


/* --- 4. HEADER --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: var(--color-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Sur mobile : logo et nav empilés en colonne et centrés */
.header-row {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.main-nav ul {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
}

.main-nav a {
  display: block;
  padding: 0.25rem 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-navy);
  transition: color var(--transition);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--color-orange-dark);
}

/* Bande orange sous le header */
.header-accent {
  height: 8px;
  background-color: var(--color-orange);
}


/* --- 5. HERO (ACCUEIL) --- */
.hero {
  position: relative;
  min-height: clamp(420px, 80vh, 680px);
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.55) 65%,
    rgba(255, 255, 255, 0.8) 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 2rem 1.25rem;
  gap: 1.5rem;
}

.hero-title {
  text-transform: uppercase;
  font-size: clamp(1.9rem, 8vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.hero-title span {
  display: block;
}

.hero-btn {
  align-self: center;
}


/* --- 6. À PROPOS --- */
.about {
  padding: 4rem 0;
}

.about-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.about-text h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin-bottom: 1.25rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

.about-list li {
  margin-bottom: 0.85rem;
  color: var(--color-text-light);
}

.about-list strong {
  color: var(--color-navy);
}

.about-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.about-img-driver {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-logo {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  width: 130px;
  height: auto;
  object-fit: contain;
  justify-self: end;
  align-self: start;
}

.about-img-van {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--color-border);
}


/* --- 7. SERVICES --- */
.services {
  background-color: var(--color-bg-light);
  padding: 4rem 0;
}

.services-title {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 2.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--color-text-light);
}


/* --- 8. CONTACT --- */
.contact {
  padding: 3rem 0;
}

.contact h2 {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.contact-intro {
  text-align: center;
  color: var(--color-text-light);
  max-width: 540px;
  margin: 0.75rem auto 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-info a:hover,
.contact-info a:focus-visible {
  color: var(--color-orange-dark);
}


/* --- 9. FOOTER --- */
.site-footer {
  background-color: var(--color-navy);
  color: #ffffff;
  padding-top: 3rem;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-brand p {
  margin-top: 0.75rem;
  color: #cfd9e6;
}

.footer-logo {
  height: 42px;
  filter: brightness(0) invert(1);
}

.footer-nav h3,
.footer-contact h3 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}

.footer-nav a {
  color: #cfd9e6;
  display: inline-block;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--color-orange);
}

.footer-contact p {
  color: #cfd9e6;
  margin-bottom: 0.4rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: #b9c6d6;
}


/* --- 10. ACCESSIBILITÉ --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-orange-dark);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* --- 11. RESPONSIVE --- */

/* à partir de 768px : logo et nav côte à côte, mise en page en colonnes */
@media (min-width: 768px) {
  :root {
    --header-height: 100px;
  }

  .header-row {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 1.25rem;
    height: calc(var(--header-height) - 8px);
  }

  .logo-img {
    height: 80px;
  }

  .main-nav a {
    font-size: 1rem;
  }

  .about-container {
    flex-direction: row;
    align-items: center;
  }

  .about-text,
  .about-media {
    flex: 1;
  }

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

  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-brand {
    max-width: 280px;
  }
}

/* à partir de 1024px : titre du hero aligné à droite comme sur la maquette */
@media (min-width: 1024px) {
  .hero-content {
    align-items: flex-end;
    text-align: right;
  }

  .hero-title {
    text-align: right;
  }

  .hero-btn {
    align-self: flex-start;
  }
}
