/* layout.css — enveloppe, en-tête, pied de page */

.enveloppe {
  width: 100%;
  max-width: var(--largeur-max);
  margin-inline: auto;
  padding-inline: var(--e-5);
}

.section { padding-block: var(--e-9); }
.section--serree { padding-block: var(--e-8); }
.section--sombre { background: var(--fond-sombre); color: var(--texte-inverse); }
.section--douce { background: var(--fond-alt); }
.section--orange { background: var(--accent); color: var(--accent-contraste); }

/* ---------- En-tête ---------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-noir);
  color: var(--texte-inverse);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

body[data-entete="transparent"] .entete {
  background: transparent;
  border-bottom-color: transparent;
  transition: background var(--transition), border-color var(--transition);
}
body[data-entete="transparent"] .entete.entete--posee {
  background: var(--c-noir);
  border-bottom-color: rgba(255, 255, 255, .08);
}

.entete__interieur {
  height: var(--en-tete-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-5);
}

.entete__logo { display: flex; align-items: center; flex: 0 0 auto; }
.entete__logo img { height: 46px; width: auto; }
.entete__logo:hover { color: inherit; }

.entete__nav { display: flex; align-items: center; gap: 0; }

.entete__nav a {
  position: relative;
  padding: var(--e-2) var(--e-4);
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: var(--t-md);
  text-decoration: none;
  white-space: nowrap;
}
.entete__nav a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 1em;
  background: rgba(255, 255, 255, .35);
}
.entete__nav a[aria-current="page"] { color: var(--accent); }

.entete__actions { display: flex; align-items: center; gap: var(--e-3); }

.entete__louer {
  font-family: var(--police-titre);
  font-weight: var(--gras-titre);
  font-size: var(--t-xl);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.entete__louer .point { color: var(--accent); }

.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  position: relative;
  transition: background var(--transition);
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px; height: 2px;
  background: currentColor;
  transition: transform var(--transition);
}
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

.menu-mobile {
  position: fixed;
  inset: var(--en-tete-h) 0 0 0;
  background: var(--c-noir);
  color: var(--texte-inverse);
  padding: var(--e-6) var(--e-5) var(--e-8);
  display: flex;
  flex-direction: column;
  gap: var(--e-2);
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 99;
  overflow-y: auto;
}
.menu-mobile[data-ouvert="true"] { transform: translateX(0); }
.menu-mobile a {
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: var(--t-xl);
  text-decoration: none;
  padding: var(--e-3) 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

@media (max-width: 980px) {
  .entete__nav, .entete__louer { display: none; }
  .burger { display: flex; }
}
@media (min-width: 981px) {
  .menu-mobile { display: none; }
}

/* ---------- Pied de page ---------- */

.texte-marque { background: var(--fond-alt); }
.texte-marque .enveloppe { max-width: 980px; }
.texte-marque p { color: var(--texte-doux); }

.pied {
  background: var(--c-noir);
  color: var(--texte-inverse);
  padding-block: var(--e-8) var(--e-5);
}

.pied__haut {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--e-7);
}

.pied__logo img { height: 54px; width: auto; }
.pied__reseaux { display: flex; gap: var(--e-3); margin-top: var(--e-5); }
.pied__reseaux a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--r-pilule);
  transition: background var(--transition), border-color var(--transition);
}
.pied__reseaux a:hover { background: var(--accent); border-color: var(--accent); color: var(--c-noir); }
.pied__reseaux svg { width: 17px; height: 17px; fill: currentColor; }

.pied h3 {
  font-size: var(--t-md);
  color: var(--c-gris-4);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: var(--e-4);
}

.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: var(--e-3); }
.pied a { text-decoration: none; color: var(--c-gris-3); font-size: var(--t-sm); }
.pied a:hover { color: var(--accent); }
.pied__coord { color: var(--c-gris-3); font-size: var(--t-sm); }
.pied__coord p { margin-bottom: var(--e-2); }

.pied__vehicules {
  margin-top: var(--e-8);
  padding-top: var(--e-6);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.pied__vehicules ul {
  columns: 3;
  column-gap: var(--e-6);
}
.pied__vehicules li { break-inside: avoid; }

.pied__bas {
  margin-top: var(--e-6);
  padding-top: var(--e-5);
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  justify-content: space-between;
  gap: var(--e-4);
  flex-wrap: wrap;
  color: var(--c-gris-4);
  font-size: var(--t-xs);
}

@media (max-width: 900px) {
  .pied__haut { grid-template-columns: 1fr; gap: var(--e-6); }
  .pied__vehicules ul { columns: 2; }
}
@media (max-width: 560px) {
  .pied__vehicules ul { columns: 1; }
}

/* ---------- Bouton WhatsApp flottant ---------- */

.flottant {
  position: fixed;
  right: var(--e-5);
  bottom: var(--e-5);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: var(--e-3);
  padding: var(--e-3) var(--e-5);
  background: var(--c-noir);
  color: var(--c-blanc);
  border-radius: var(--r-pilule);
  text-decoration: none;
  font-family: var(--police-titre);
  font-weight: 600;
  box-shadow: var(--ombre-3);
  transition: transform var(--transition), background var(--transition);
}
.flottant:hover { transform: translateY(-2px); background: var(--accent); color: var(--c-noir); }
.flottant svg { width: 22px; height: 22px; fill: currentColor; }

@media (max-width: 560px) {
  .flottant { right: var(--e-4); bottom: var(--e-4); padding: var(--e-3) var(--e-4); }
  .flottant span { display: none; }
}
