/* ==========================================================================
   Chrono TP 89 - Feuille de style principale
   Couleurs : blanc / gris / jaune chantier / anthracite
   ========================================================================== */

:root {
  --blanc: #ffffff;
  --gris-clair: #f4f4f2;
  --gris-moyen: #e4e4e1;
  --gris-texte: #5b5f66;
  --anthracite: #24262b;
  --noir: #17181b;
  --jaune: #ffc400;
  --jaune-fonce: #e0ac00;
  --rayon: 12px;
  --ombre: 0 8px 24px rgba(23, 24, 27, 0.08);
  --ombre-forte: 0 12px 32px rgba(23, 24, 27, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--anthracite);
  background-color: var(--blanc);
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

.bg-gris {
  background-color: var(--gris-clair);
}

.bg-jaune-leger {
  background-color: #fff8e2;
}

.bg-anthracite {
  background-color: var(--anthracite);
  color: var(--blanc);
}

/* Titres de section */
.section-eyebrow {
  display: inline-block;
  color: var(--jaune-fonce);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--anthracite);
}

.bg-anthracite .section-title {
  color: var(--blanc);
}

.section-text {
  color: var(--gris-texte);
  max-width: 760px;
  font-size: 1.05rem;
}

.bg-anthracite .section-text {
  color: #d8d8d8;
}

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

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-jaune {
  background-color: var(--jaune);
  color: var(--noir);
}

.btn-jaune:hover {
  background-color: var(--jaune-fonce);
  transform: translateY(-2px);
}

.btn-fonce {
  background-color: var(--anthracite);
  color: var(--blanc);
}

.btn-fonce:hover {
  background-color: var(--noir);
  transform: translateY(-2px);
}

.btn-contour {
  background-color: transparent;
  border-color: var(--blanc);
  color: var(--blanc);
}

.btn-contour:hover {
  background-color: var(--blanc);
  color: var(--anthracite);
}

.btn-contour-fonce {
  background-color: transparent;
  border-color: var(--anthracite);
  color: var(--anthracite);
}

.btn-contour-fonce:hover {
  background-color: var(--anthracite);
  color: var(--blanc);
}

.boutons-groupe {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--blanc);
  border-bottom: 1px solid var(--gris-moyen);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1180px;
  margin: 0 auto;
  gap: 20px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--anthracite);
  white-space: nowrap;
}

.logo span {
  color: var(--jaune-fonce);
}

.nav-principale {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-principale a:hover {
  color: var(--jaune-fonce);
}

.header-cta {
  display: flex;
  align-items: center;
}

/* Menu mobile (checkbox-less : navigation empilée en CSS pur) */
.menu-toggle {
  display: none;
}

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

.hero {
  position: relative;
  color: var(--blanc);
  background-image: linear-gradient(180deg, rgba(23, 24, 27, 0.82), rgba(23, 24, 27, 0.72)),
    url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  padding: 130px 0 100px;
}

.hero-contenu {
  max-width: 720px;
}

.hero-titre {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-titre span {
  color: var(--jaune);
}

.hero-sous-titre {
  font-size: 1.1rem;
  color: #e7e7e5;
  margin-bottom: 32px;
  max-width: 640px;
}

.hero-tags {
  margin-top: 30px;
  font-size: 0.95rem;
  color: var(--jaune);
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   BADGE / ENCART
   ========================================================================== */

.badge {
  display: inline-block;
  background-color: var(--jaune);
  color: var(--noir);
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.encart {
  background-color: var(--blanc);
  border-left: 5px solid var(--jaune);
  padding: 22px 26px;
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  margin-top: 28px;
  max-width: 720px;
  color: var(--gris-texte);
}

.intro-grille {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.intro-image img {
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}

/* ==========================================================================
   CHIFFRES CLES
   ========================================================================== */

.chiffres-bande {
  background-color: var(--anthracite);
  color: var(--blanc);
  padding: 56px 0;
}

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

.chiffre-item .valeur {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--jaune);
  display: block;
  margin-bottom: 6px;
}

.chiffre-item .libelle {
  font-size: 0.92rem;
  color: #dcdcdc;
}

/* ==========================================================================
   CARTES (services / atouts / realisations)
   ========================================================================== */

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

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

.cartes-grille.cols-6 {
  grid-template-columns: repeat(3, 1fr);
}

.carte {
  background-color: var(--blanc);
  border-radius: var(--rayon);
  padding: 30px 24px;
  box-shadow: var(--ombre);
  border-top: 4px solid var(--jaune);
  transition: transform 0.15s ease;
}

.carte:hover {
  transform: translateY(-4px);
}

.carte-pictogramme {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background-color: #fff2c4;
  color: var(--jaune-fonce);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.carte h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--anthracite);
}

.carte p {
  color: var(--gris-texte);
  font-size: 0.96rem;
}

/* Section image + texte alternée */
.section-image-texte {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.section-image-texte img {
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}

/* Références transport */
.references-transport {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--gris-moyen);
}

.references-titre {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.references-texte {
  color: var(--gris-texte);
  margin-bottom: 22px;
  max-width: 700px;
}

.badges-clients {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.badge-client {
  background-color: var(--blanc);
  border: 2px solid var(--gris-moyen);
  color: var(--anthracite);
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 0.98rem;
}

/* Avis clients */
.avis-bloc {
  background-color: var(--blanc);
  border-radius: var(--rayon);
  padding: 40px;
  box-shadow: var(--ombre);
  max-width: 820px;
  border-left: 5px solid var(--jaune);
}

.avis-bloc p {
  font-size: 1.1rem;
  color: var(--anthracite);
  font-style: italic;
}

/* Zone d'intervention */
.zone-villes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ville-tag {
  background-color: var(--blanc);
  border: 1px solid var(--gris-moyen);
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.92rem;
}

.departements-liste {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 20px 0 6px;
}

.departement-item {
  background-color: var(--jaune);
  color: var(--noir);
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
}

/* Infos pratiques */
.infos-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.infos-bloc h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: var(--jaune);
}

.infos-bloc p {
  margin-bottom: 10px;
  color: #d8d8d8;
}

.infos-bloc strong {
  color: var(--blanc);
}

.infos-boutons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.infos-boutons .btn {
  width: 100%;
}

.horaires-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
}

.horaires-table td {
  padding: 8px 0;
  color: #d8d8d8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.horaires-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--blanc);
}

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

.site-footer {
  background-color: var(--noir);
  color: #c9c9c9;
  padding: 60px 0 24px;
}

.footer-grille {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--blanc);
  margin-bottom: 14px;
  display: block;
}

.footer-logo span {
  color: var(--jaune);
}

.footer-col h4 {
  color: var(--blanc);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col li {
  margin-bottom: 10px;
  font-size: 0.94rem;
}

.footer-col a:hover {
  color: var(--jaune);
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--anthracite);
  color: var(--blanc);
  font-weight: 800;
  margin-top: 4px;
}

.footer-social:hover {
  background-color: var(--jaune);
  color: var(--noir);
}

.footer-bas {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: #9a9a9a;
}

.footer-bas a:hover {
  color: var(--jaune);
}

/* ==========================================================================
   PAGE MENTIONS LEGALES
   ========================================================================== */

.page-legale {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px 90px;
}

.page-legale h1 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--anthracite);
}

.page-legale h2 {
  font-size: 1.2rem;
  margin: 34px 0 12px;
  color: var(--jaune-fonce);
}

.page-legale p,
.page-legale li {
  color: var(--gris-texte);
  margin-bottom: 8px;
}

.retour-accueil {
  margin-top: 40px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 992px) {
  .cartes-grille,
  .cartes-grille.cols-3,
  .cartes-grille.cols-6 {
    grid-template-columns: repeat(2, 1fr);
  }

  .chiffres-grille {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 30px;
  }

  .intro-grille,
  .section-image-texte,
  .infos-grille {
    grid-template-columns: 1fr;
  }

  .footer-grille {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-principale {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
  }

  section {
    padding: 56px 0;
  }

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

  .cartes-grille,
  .cartes-grille.cols-3,
  .cartes-grille.cols-6 {
    grid-template-columns: 1fr;
  }

  .footer-grille {
    grid-template-columns: 1fr;
  }

  .footer-bas {
    flex-direction: column;
    text-align: center;
  }

  .boutons-groupe {
    flex-direction: column;
    align-items: stretch;
  }

  .hero {
    padding: 100px 0 70px;
  }
}
