/* ==========================================================================
   ATB LOGISTIQUE — feuille de style
   --------------------------------------------------------------------------
   Couleurs reprises du logo :
     bleu marine  #0A0A6E   (lettrage « ATB »)
     orange       #E4551B   (motif du logo)
     or           #F2C64C   (filet du logo)
   Une seule police : Inter.
   ========================================================================== */

:root {
  --marine: #0A0A6E;
  --marine-fonce: #070748;
  --marine-clair: #1C2C86;
  --orange: #D8480F;
  --orange-clair: #E4551B;
  --or: #F2C64C;

  --texte: #2A2E42;
  --texte-doux: #5C6180;
  --texte-clair: #8A8FA8;

  --blanc: #FFFFFF;
  --gris: #F6F7FA;
  --gris-bord: #E3E5EE;

  --rayon: 8px;
  --ombre: 0 2px 12px rgba(10, 10, 110, .06);
  --ombre-forte: 0 12px 32px rgba(10, 10, 110, .12);
  --gouttiere: 24px;
  --largeur: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; transition: color .2s, background .2s, border-color .2s; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

h1, h2, h3 { color: var(--marine); line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 19px; }
p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }
.section { padding: clamp(56px, 7vw, 88px) 0; }
.section--gris { background: var(--gris); }
.section--centre { text-align: center; }

.surtitre {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
}

.titre-section { margin-bottom: 40px; max-width: 720px; }
.titre-section p:not(.surtitre) { margin-top: 12px; color: var(--texte-doux); }
.titre-section--centre { margin-inline: auto; text-align: center; }

.note { margin-top: 24px; font-size: 14.5px; color: var(--texte-clair); }
.note--large { max-width: 520px; margin-inline: auto; font-size: 16px; color: var(--texte-doux); }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--rayon);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.bouton--plein { background: var(--orange); color: var(--blanc); }
.bouton--plein:hover { background: #B93A0B; }
.bouton--clair { background: var(--blanc); color: var(--marine); }
.bouton--clair:hover { background: #EFF0F6; }
.bouton--contour { border-color: rgba(255, 255, 255, .55); color: var(--blanc); }
.bouton--contour:hover { background: rgba(255, 255, 255, .12); border-color: var(--blanc); }
.bouton--contour-fonce { border-color: var(--gris-bord); color: var(--marine); }
.bouton--contour-fonce:hover { border-color: var(--marine); background: var(--gris); }
.bouton--petit { min-height: 42px; padding: 10px 18px; font-size: 14px; }

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--orange);
}
.lien-fleche i { font-size: 12px; transition: transform .2s; }

/* --------------------------------------------------------------------------
   Barre d'information et en-tête
   -------------------------------------------------------------------------- */
.barre-info {
  background: var(--marine-fonce);
  color: rgba(255, 255, 255, .78);
  font-size: 13.5px;
}
.barre-info .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
  flex-wrap: wrap;
}
.barre-info i { color: var(--or); margin-right: 7px; font-size: 12px; }
.barre-info-droite { display: flex; gap: 22px; flex-wrap: wrap; }
.barre-info a:hover { color: var(--blanc); }

.entete {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blanc);
  border-bottom: 1px solid var(--gris-bord);
}
.entete.est-fixe { box-shadow: var(--ombre); }
.entete .conteneur { display: flex; align-items: center; gap: 28px; min-height: 78px; }

.logo { flex-shrink: 0; }
.logo img { height: 52px; width: auto; }

.menu { margin-left: auto; }
.menu ul { display: flex; align-items: center; gap: 6px; }
.menu a {
  display: block;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--texte);
}
.menu a:hover { background: var(--gris); color: var(--marine); }
.menu .actif a { color: var(--marine); font-weight: 600; }
.menu .actif a::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 5px;
  background: var(--orange);
}

.entete-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gris-bord);
  border-radius: 6px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span { width: 20px; height: 2px; background: var(--marine); transition: transform .2s, opacity .2s; }
.burger.est-ouvert span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.est-ouvert span:nth-child(2) { opacity: 0; }
.burger.est-ouvert span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--marine) center / cover no-repeat;
  color: var(--blanc);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(7, 7, 72, .94) 0%, rgba(7, 7, 72, .82) 45%, rgba(7, 7, 72, .45) 100%);
}
.hero .conteneur { position: relative; z-index: 1; }
.hero-texte { max-width: 660px; padding: clamp(64px, 9vw, 118px) 0; }
.hero h1 { color: var(--blanc); font-size: clamp(30px, 4.4vw, 48px); }
.hero .surtitre { color: var(--or); }
.hero-intro { margin-top: 20px; font-size: 17.5px; color: rgba(255, 255, 255, .88); }
.hero-boutons { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-boutons--centre { justify-content: center; margin-top: 28px; }

/* --------------------------------------------------------------------------
   Bannière des pages intérieures
   -------------------------------------------------------------------------- */
.banniere {
  padding: clamp(40px, 5vw, 60px) 0;
  background: var(--marine);
  color: var(--blanc);
}
.banniere h1 { color: var(--blanc); margin-top: 14px; }
.banniere p { margin-top: 14px; max-width: 620px; color: rgba(255, 255, 255, .82); }
.fil { font-size: 13.5px; color: rgba(255, 255, 255, .6); }
.fil a:hover { color: var(--or); }
.fil span { margin: 0 6px; }
.fil .actuel { color: var(--blanc); margin: 0; }

/* --------------------------------------------------------------------------
   Cartes de service
   -------------------------------------------------------------------------- */
.grille-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.carte-service {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--blanc);
  border: 1px solid var(--gris-bord);
  border-radius: var(--rayon);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.carte-service:hover {
  border-color: rgba(10, 10, 110, .2);
  box-shadow: var(--ombre-forte);
  transform: translateY(-3px);
}
.carte-service:hover .lien-fleche i { transform: translateX(3px); }
.carte-service h3 { margin-bottom: 10px; }
.carte-service p { font-size: 15px; color: var(--texte-doux); margin-bottom: 20px; }
.carte-service .lien-fleche { margin-top: auto; }

.carte-icone {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: var(--rayon);
  background: rgba(228, 85, 27, .1);
  color: var(--orange);
  font-size: 19px;
}

/* --------------------------------------------------------------------------
   Deux colonnes texte / image
   -------------------------------------------------------------------------- */
.deux-colonnes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.deux-colonnes--inverse .colonne-image { order: 2; }
.deux-colonnes h2 { margin-bottom: 18px; }
.deux-colonnes p { color: var(--texte-doux); }

.colonne-image {
  min-height: 320px;
  height: 100%;
  border-radius: var(--rayon);
  background: var(--gris) center / cover no-repeat;
}
.colonne-image--haute { min-height: 420px; }

.liste-points { margin: 22px 0 26px; }
.liste-points li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 11px;
  color: var(--texte-doux);
}
.liste-points li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 12px;
  color: var(--orange);
}

/* --------------------------------------------------------------------------
   Carte et villes
   -------------------------------------------------------------------------- */
.grille-carte {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}
#map {
  min-height: 420px;
  height: 100%;
  border: 1px solid var(--gris-bord);
  border-radius: var(--rayon);
  background: var(--gris);
}
.leaflet-popup-content { font-family: 'Inter', Arial, sans-serif; font-size: 13px; }

.tableau-villes { border-top: 1px solid var(--gris-bord); }
.tableau-villes div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--gris-bord);
  font-size: 15px;
}
.tableau-villes span:first-child { font-weight: 600; color: var(--marine); }
.tableau-villes span:last-child { color: var(--texte-doux); }

/* --------------------------------------------------------------------------
   Tableau du parc
   -------------------------------------------------------------------------- */
.tableau-parc {
  border: 1px solid var(--gris-bord);
  border-radius: var(--rayon);
  overflow: hidden;
}
.tableau-entete, .tableau-ligne {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 1fr .9fr;
  gap: 16px;
  padding: 16px 20px;
  align-items: center;
}
.tableau-entete {
  background: var(--marine);
  color: var(--blanc);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.tableau-ligne { border-top: 1px solid var(--gris-bord); font-size: 15px; color: var(--texte-doux); }
.tableau-ligne:nth-child(even) { background: var(--gris); }
.cellule-titre { font-weight: 600; color: var(--marine); }

/* --------------------------------------------------------------------------
   Atouts
   -------------------------------------------------------------------------- */
.grille-atouts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.atout {
  padding: 28px 24px;
  background: var(--blanc);
  border: 1px solid var(--gris-bord);
  border-radius: var(--rayon);
}
.atout h3 { margin-bottom: 10px; }
.atout p { font-size: 15px; color: var(--texte-doux); }

.identifiants { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 26px; }
.identifiants span {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--texte-clair);
}
.identifiants strong { font-size: 16px; color: var(--marine); }

/* --------------------------------------------------------------------------
   Galerie
   -------------------------------------------------------------------------- */
.galerie {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.galerie figure {
  position: relative;
  min-height: 260px;
  border-radius: var(--rayon);
  overflow: hidden;
  background: var(--gris) center / cover no-repeat;
}
.galerie figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 18px 16px;
  color: var(--blanc);
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(transparent, rgba(7, 7, 72, .85));
}

/* --------------------------------------------------------------------------
   Bandeau d'appel
   -------------------------------------------------------------------------- */
.appel { padding: clamp(44px, 5vw, 64px) 0; background: var(--marine); color: var(--blanc); }
.appel .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.appel h2 { color: var(--blanc); }
.appel p { margin-top: 8px; color: rgba(255, 255, 255, .8); }
.appel-boutons { display: flex; gap: 14px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.grille-contact {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: start;
}
.bloc-coordonnees {
  padding: clamp(24px, 3vw, 36px);
  background: var(--marine);
  color: var(--blanc);
  border-radius: var(--rayon);
}
.bloc-coordonnees h2 { color: var(--blanc); margin-bottom: 24px; }
.coordonnee { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.coordonnee:first-of-type { border-top: 0; padding-top: 0; }
.coordonnee > i {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, .1);
  color: var(--or);
  font-size: 14px;
}
.coordonnee strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 3px;
}
.coordonnee p { color: var(--blanc); font-size: 15px; margin: 0; }
.coordonnee a:hover { color: var(--or); }

.bouton-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 24px;
  border-radius: var(--rayon);
  background: #1FA855;
  color: var(--blanc);
  font-weight: 600;
}
.bouton-whatsapp:hover { background: #178643; }

.bloc-formulaire {
  padding: clamp(24px, 3vw, 36px);
  background: var(--blanc);
  border: 1px solid var(--gris-bord);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}
.bloc-formulaire h2 { margin-bottom: 8px; }
.bloc-formulaire > p { color: var(--texte-doux); font-size: 15px; margin-bottom: 26px; }

.champ { display: block; margin-bottom: 18px; }
.champ label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--marine);
}
.champ label span { color: var(--orange); }
.champ input, .champ select, .champ textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--texte);
  background: var(--blanc);
  border: 1px solid var(--gris-bord);
  border-radius: 6px;
  transition: border-color .2s, box-shadow .2s;
}
.champ textarea { min-height: 130px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  border-color: var(--marine-clair);
  box-shadow: 0 0 0 3px rgba(28, 44, 134, .12);
  outline: none;
}
.champs-deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.champ-cache { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.etat-formulaire { min-height: 22px; margin: 14px 0 0; font-size: 14.5px; font-weight: 500; }
.etat-formulaire.est-ok { color: #15803D; }
.etat-formulaire.est-erreur { color: #B91C1C; }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.pied { background: var(--marine-fonce); color: rgba(255, 255, 255, .72); padding-top: clamp(48px, 6vw, 68px); }
.pied-grille {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 44px;
}
.pied-logo { height: 54px; width: auto; margin-bottom: 20px; background: var(--blanc); border-radius: 6px; padding: 5px 8px; }
.pied p { font-size: 14.5px; max-width: 36ch; }
.pied h3 { color: var(--blanc); font-size: 14px; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 18px; }
.pied li { margin-bottom: 10px; font-size: 14.5px; }
.pied a:hover { color: var(--or); }
.pied-contact li { display: flex; gap: 10px; }
.pied-contact i { color: var(--or); font-size: 12px; margin-top: 6px; flex-shrink: 0; }

.reseaux { display: flex; gap: 10px; margin-top: 22px; }
.reseaux a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  color: rgba(255, 255, 255, .8);
}
.reseaux a:hover { background: var(--or); border-color: var(--or); color: var(--marine-fonce); }

.pied-bas {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13.5px;
  color: rgba(255, 255, 255, .55);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .menu a { padding: 9px 10px; font-size: 14px; }
  .grille-services, .grille-atouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grille-carte, .grille-contact { grid-template-columns: 1fr; }
  #map { min-height: 340px; }
  .pied-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .deux-colonnes { grid-template-columns: 1fr; }
  .deux-colonnes--inverse .colonne-image { order: 0; }
  .colonne-image, .colonne-image--haute { min-height: 260px; }
  .tableau-entete { display: none; }
  .tableau-ligne { grid-template-columns: 1fr; gap: 6px; padding: 18px 16px; }
  .tableau-ligne span[data-libelle]::before {
    content: attr(data-libelle) " : ";
    font-weight: 600;
    color: var(--marine);
  }
}

@media (max-width: 720px) {
  :root { --gouttiere: 18px; }
  .barre-info { display: none; }
  .entete .conteneur { min-height: 66px; gap: 12px; }
  .logo img { height: 42px; }
  .entete-actions .bouton { display: none; }
  .burger { display: flex; margin-left: auto; }
  .menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    padding: 90px 22px 40px;
    background: var(--blanc);
    overflow-y: auto;
  }
  .menu.est-ouvert { display: block; }
  .menu ul { flex-direction: column; align-items: stretch; gap: 0; }
  .menu a { padding: 15px 0; font-size: 17px; border-bottom: 1px solid var(--gris-bord); border-radius: 0; }
  .menu .actif a::after { display: none; }
  .grille-services, .grille-atouts, .galerie, .champs-deux { grid-template-columns: 1fr; }
  .appel .conteneur { flex-direction: column; align-items: flex-start; }
  .pied-grille { grid-template-columns: 1fr; gap: 30px; }
  .hero-boutons .bouton, .appel-boutons .bouton { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
