/* Menu flottant, repris des Deux Marronniers aux couleurs du logo TRANSPORTS PELLÉ. */
#main-header {
  left: 50% !important;
  right: auto !important;
  width: calc(100% - 32px) !important;
  max-width: 1088px !important;
  margin-top: 12px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(4, 49, 77, .22);
}
#main-header .container {
  width: calc(100% - 60px);
  max-width: none;
}
#top-menu > li {
  padding-right: 12px;
}
#main-header #top-menu > li > a {
  color: #343a3e;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 1.4px !important;
  text-transform: uppercase;
}
#main-header #top-menu > li > a:hover,
#main-header #top-menu > li > a:focus-visible {
  color: #0b6fb8 !important;
  opacity: 1;
}
#top-menu > li.menu-devis {
  padding-right: 0;
}
#main-header #top-menu > li.menu-devis > a {
  margin-top: -10px;
  padding: 10px 18px !important;
  border-radius: 999px;
  background: #074b75;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 1.2px !important;
  line-height: 1.4;
}
#main-header #top-menu > li.menu-devis > a:hover,
#main-header #top-menu > li.menu-devis > a:focus-visible {
  background: #0b6fb8;
  color: #fff !important;
  opacity: 1;
}
@media (min-width: 981px) and (max-width: 1099px) {
  #main-header .container {
    width: calc(100% - 40px);
  }
  #main-header #logo {
    max-width: 195px;
  }
  #et-top-navigation {
    padding-left: 195px !important;
  }
  #top-menu > li {
    padding-right: 8px;
  }
  #main-header #top-menu > li > a {
    font-size: 13px !important;
    letter-spacing: 1px !important;
  }
  #main-header #top-menu > li.menu-devis > a {
    padding-inline: 14px !important;
    letter-spacing: .8px !important;
  }
}
@media (max-width: 980px) {
  #main-header {
    width: calc(100% - 24px) !important;
    max-width: none !important;
  }
  #main-header .container {
    width: calc(100% - 38px);
  }
  #main-header .mobile_menu_bar:before {
    color: #074b75;
  }
  #main-header .mobile_menu_bar:hover:before,
  #main-header .mobile_menu_bar:focus-visible:before {
    color: #0b6fb8;
  }
  #mobile_menu {
    border-top: 0;
    border-radius: 12px;
    overflow: hidden;
  }
  #mobile_menu > li > a {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 17px !important;
    font-weight: 500;
    letter-spacing: .2px;
  }
  #mobile_menu > li > a:hover,
  #mobile_menu > li > a:focus-visible {
    color: #0b6fb8 !important;
  }
  #mobile_menu li.menu-devis > a {
    background: #074b75;
    color: #fff !important;
    font-weight: 600;
    text-align: center;
  }
  #mobile_menu li.menu-devis > a:hover,
  #mobile_menu li.menu-devis > a:focus-visible {
    background: #0b6fb8;
    color: #fff !important;
  }
}

/* Nouveau logo SVG (14/10) : hauteur fixée, largeur proportionnelle. */
#main-header #logo { height: 64px !important; width: auto !important; max-height: none !important; max-width: none !important; }
@media (min-width: 981px) and (max-width: 1199px) { #main-header #logo { height: 45px !important; } }
@media (max-width: 980px) { #main-header #logo { height: 45px !important; } }
/* Barre réduite au défilement (54 px) : le logo se réduit avec elle. */
#main-header #logo { transition: height .3s ease !important; }
#main-header.et-fixed-header #logo { height: 42px !important; }
@media (min-width: 981px) and (max-width: 1199px) { #main-header.et-fixed-header #logo { height: 38px !important; } }

/* Flèche du logo sous le lien de la section affichée (classe site-active posée par accueil.js) et au survol. */
#top-menu > li:not(.menu-devis) > a.site-active::after,
#top-menu > li:not(.menu-devis) > a:hover::after,
#top-menu > li:not(.menu-devis) > a:focus-visible::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 50%;
  width: 22px;
  height: 9px;
  margin-left: -11px;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 10'><path d='M0 4h17V0l9 5-9 5V6H0z' fill='%23074b75'/></svg>") center / contain no-repeat;
  pointer-events: none;
}
#main-header.et-fixed-header #top-menu > li > a.site-active::after,
#main-header.et-fixed-header #top-menu > li:not(.menu-devis) > a:hover::after { top: 21px; width: 18px; height: 8px; margin-left: -9px; }
.et_mobile_menu li a.site-active::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 8px;
  margin-right: 10px;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 10'><path d='M0 4h17V0l9 5-9 5V6H0z' fill='%23074b75'/></svg>") center / contain no-repeat;
}

/* Pas de loupe de recherche ni de bandeau supérieur, pas d'icônes de réseaux sociaux. */
#et_top_search, #top-header, #footer-bottom .et-social-icons { display: none !important; }
#main-header { top: 0 !important; }

/* Pleine largeur, sans cadre. */
body:not(.et_boxed_layout) #page-container { width: 100%; max-width: none; box-shadow: none; }
#main-content .container::before { display: none; }
.tp-page .et_pb_row, .home #main-content .et_pb_row { width: 100%; max-width: none; padding: 0; }
.home #main-content .et_pb_section { padding: 0; }
.home #main-content .et_pb_text { margin: 0; }

/* Accueil : la photo de nuit monte jusqu'en haut, la barre flotte par-dessus. */
body.home #page-container { padding-top: 0 !important; }
body.home #main-content #accueil {
  min-height: 100svh;
  display: block;
  background: #03080f url("/wp-content/uploads/2026/10/camions-transports-pelle.webp") center bottom / cover no-repeat;
}
@media (max-width: 980px) {
  body.home #main-content #accueil { background-image: url("/wp-content/uploads/2026/10/camions-transports-pelle-1600.webp"); background-position: 84% bottom; }
}
.tp-hero { padding: calc(96px + 7vh) 20px 0; max-width: 900px; margin: 0 auto; text-align: center; color: #fff; }
.tp-hero h1 { margin: 0; padding: 0; color: #fff; font-weight: 700; line-height: 1; }
.tp-hero h1 .l1 { display: block; font-size: clamp(34px, 6.2vw, 78px); letter-spacing: .32em; margin-right: -.32em; }
.tp-hero h1 .l2 { display: block; margin-top: .35em; font-size: clamp(20px, 3.2vw, 40px); font-weight: 300; font-style: italic; letter-spacing: .6em; margin-right: -.6em; color: #9fc3dc; }
.tp-separateur { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 28px auto 22px; }
.tp-separateur::before, .tp-separateur::after { content: ""; width: 90px; height: 1px; background: rgba(159, 195, 220, .7); }
.tp-separateur span { width: 30px; height: 12px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 10'><path d='M0 4h17V0l9 5-9 5V6H0z' fill='%239fc3dc'/></svg>") center / contain no-repeat; }
.tp-hero__sous-titre { margin: 0; padding: 0; font-size: clamp(15px, 1.6vw, 19px); letter-spacing: 2px; text-transform: uppercase; color: #e3edf4; }
.tp-boutons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.tp-btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; line-height: 1.3; }
.tp-btn--plein { background: #fff; color: #074b75 !important; }
.tp-btn--plein:hover, .tp-btn--plein:focus-visible { background: #9fc3dc; }
.tp-btn--ligne { border: 1.5px solid rgba(255, 255, 255, .85); color: #fff !important; }
.tp-btn--ligne:hover, .tp-btn--ligne:focus-visible { background: rgba(255, 255, 255, .12); }
@media (max-width: 980px) {
  .tp-hero { padding-top: calc(82px + 8vh); }
  .tp-separateur::before, .tp-separateur::after { width: 50px; }
}

/* Sections de l'accueil */
.tp-bloc { max-width: 1088px; margin: 0 auto; padding: 90px 20px; }
.tp-bloc h2, .tp-contact h2 { margin: 0 0 8px; padding: 0; color: #074b75; font-size: 32px; font-weight: 700; letter-spacing: .5px; line-height: 1.2; }
.tp-sur { margin: 0 0 10px; padding: 0; color: #5c6b73; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.tp-intro { margin: 0 0 30px; padding: 0; font-size: 17px; color: #343a3e; }
.tp-cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
.tp-carte { border: 1px solid #e3e9ee; border-radius: 14px; padding: 28px; background: #fff; }
.tp-carte h3 { margin: 0 0 10px; padding: 0; color: #074b75; font-size: 20px; font-weight: 700; }
.tp-carte p { margin: 0; padding: 0; color: #343a3e; font-size: 16px; line-height: 1.6; }
#flotte { background: #f3f6f8; }
.tp-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tp-photos figure { margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 2; background: #dfe6eb; }
.tp-photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.home #main-content #contact {
  background: #1a1410 url("/wp-content/uploads/2026/10/camions-coucher-soleil.webp") center 62% / cover no-repeat;
}
@media (max-width: 980px) {
  body.home #main-content #contact { background-image: url("/wp-content/uploads/2026/10/camions-coucher-soleil-1600.webp"); background-position: 47% 62%; }
}
.tp-contact { padding: 120px 20px; text-align: center; color: #fff; background: linear-gradient(rgba(3, 8, 15, .55), rgba(3, 8, 15, .35)); }
.tp-contact h2 { color: #fff; }
.tp-contact p { margin: 0; padding: 0; font-size: 18px; color: #f1e9e2; }
.tp-contact .tp-adresse { margin-top: 26px; font-size: 15px; color: #e8ddd3; }
@media (max-width: 760px) {
  .tp-cartes, .tp-photos { grid-template-columns: 1fr; }
  .tp-bloc { padding: 64px 20px; }
  .tp-contact { padding: 90px 20px; }
}

/* Pied de page : bandeau du bas seul. */
#main-footer { background: #03080f; }
#footer-bottom { background: #03080f; }
#footer-info, #footer-info a { color: #bbbbbb; }
#footer-info a { text-decoration: underline; }

/* Pages légales */
.tp-legal #main-content .container { max-width: 860px; padding-top: 150px; padding-bottom: 60px; }
.tp-legal h1.entry-title { color: #074b75; }
.tp-legal .entry-content h2 { margin-top: 1.4em; color: #074b75; }
.tp-btn--mail { text-transform: none; letter-spacing: .3px; }
@media (max-width: 480px) { .tp-btn--mail { font-size: 13px; padding-inline: 20px; } }
