/* Fred Express: the look of the old site (eConcept), rebuilt without its CMS. */
@font-face {
  font-family: "Open Sans";
  src: url(fonts/open-sans-latin.woff2) format("woff2");
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --blue: #009ee0;
  --text: #666;
  --dark: #363636;
  --footer: #2e2e2e;
  --footer-text: #b4b4b4;
}

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

body {
  font: 14px/20px "Open Sans", "Trebuchet MS", Arial, sans-serif;
  color: var(--text);
  background: #fff;
}

a {
  color: inherit;
}

a:hover {
  color: var(--blue);
}

img {
  max-width: 100%;
  height: auto;
}

/* "Open Sans Condensed" of the old site: the condensed width of Open Sans. */
h1,
.menu a,
.col h2,
.airport strong {
  font-stretch: 75%;
  font-weight: 700;
}

h1 {
  font-size: 36px;
  line-height: 40px;
  color: var(--blue);
  padding-bottom: 10px;
}

h2 {
  font-size: 23px;
  line-height: 29px;
  color: #444;
  padding-bottom: 10px;
}

h3 {
  font-size: 19px;
  font-weight: 400;
  line-height: 25px;
  color: #333;
  padding-bottom: 10px;
}

p,
.content ul {
  margin-bottom: 20px;
}

.content ul {
  padding-left: 25px;
  list-style-image: url(images/puce.png);
  line-height: 22px;
}

li {
  padding-left: 5px;
}

.wrap {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 10px;
}

/* Header: logo and menu, the mini menu on small screens. */
.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 150px;
  margin-bottom: 20px;
}

.logo {
  margin-top: 5px;
}

.menu {
  display: flex;
  align-self: stretch;
}

.menu a {
  display: block;
  width: 110px;
  margin-left: 20px;
  padding-top: 65px;
  font-size: 18px;
  line-height: 22px;
  text-align: center;
  text-decoration: none;
  color: #434343;
}

.menu a[aria-current],
.menu a:hover {
  color: var(--blue);
}

.menu-mini {
  display: none;
  position: relative;
}

.menu-mini summary {
  list-style: none;
  cursor: pointer;
  padding: 6px 12px;
  font-size: 28px;
  line-height: 36px;
  color: #fff;
  background: var(--blue);
}

.menu-mini summary::-webkit-details-marker {
  display: none;
}

.menu-mini nav {
  position: absolute;
  right: 0;
  z-index: 2;
  width: 260px;
  background: var(--blue);
}

.menu-mini a {
  display: block;
  padding: 12px 20px;
  color: #fff;
  text-decoration: none;
  border-top: 1px solid rgb(255 255 255 / 0.3);
}

.menu-mini a:hover {
  background: var(--dark);
}

.line {
  height: 3px;
  margin-bottom: 15px;
  background: var(--blue);
}

/* Photos of the home and contact pages, in a white frame on a blue band. */
.slides-band {
  background: linear-gradient(#fff 16px, var(--blue) 16px calc(100% - 16px), #fff calc(100% - 16px));
}

.slides {
  position: relative;
  aspect-ratio: 975 / 388;
  border: 15px solid #fff;
  outline: 1px solid #ccc;
  outline-offset: -1px;
  box-sizing: content-box;
  background: #fff;
}

.slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: slide 35s infinite;
}

.slides img:nth-child(1) { animation-delay: -1s; }
.slides img:nth-child(2) { animation-delay: 4s; }
.slides img:nth-child(3) { animation-delay: 9s; }
.slides img:nth-child(4) { animation-delay: 14s; }
.slides img:nth-child(5) { animation-delay: 19s; }
.slides img:nth-child(6) { animation-delay: 24s; }
.slides img:nth-child(7) { animation-delay: 29s; }

@keyframes slide {
  0% { opacity: 0; }
  3% { opacity: 1; }
  15% { opacity: 1; }
  18% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .slides img { animation: none; }
  .slides img:first-child { opacity: 1; }
}

.slides-shadow {
  height: 30px;
  margin-bottom: 10px;
  background: url(images/header/slide_shadow_1005.png) center top / 100% auto no-repeat;
}

.content {
  padding-bottom: 20px;
}

/* Home: the three services. */
.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 10px 0 40px;
  text-align: center;
}

.col-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
}

.col h2 {
  min-height: 80px;
  font-size: 34px;
  line-height: 40px;
  color: var(--blue);
  text-align: center;
  padding: 0;
  margin-bottom: 10px;
}

.col p {
  min-height: 70px;
  margin: 0 20px 10px;
}

.communes a {
  text-decoration: none;
}

/* Blue button with the dark arrow ("EN SAVOIR PLUS"). */
.button {
  display: inline-flex;
  align-items: center;
  height: 45px;
  padding-left: 20px;
  gap: 20px;
  color: #fff;
  background: var(--blue);
  text-decoration: none;
}

.button::after {
  content: "";
  width: 45px;
  height: 45px;
  background: url(images/arrows1.jpg) center no-repeat;
}

.button:hover {
  color: #fff;
  background: var(--dark);
}

/* Illustrations at the right of the text. */
.illustration {
  float: right;
  margin: -20px 0 10px 20px;
}

.content::after {
  content: "";
  display: block;
  clear: both;
}

/* Shuttle page: the airports. */
.airports {
  display: flex;
  flex-wrap: wrap;
  gap: 0 27px;
  margin-bottom: 20px;
}

.airport {
  width: 170px;
  margin-bottom: 20px;
  text-align: center;
}

.airport img {
  display: block;
  border: 1px solid #ccc;
}

.airport strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  line-height: 24px;
  color: #444;
}

/* Contact: the details at the left. */
.contact {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 40px;
}

.contact-box {
  font-size: 14px;
  line-height: 20px;
  color: #555;
}

.contact-box img {
  display: block;
  margin-bottom: 20px;
}

.contact-box p {
  margin-bottom: 20px;
}

.rgpd {
  margin-top: 40px;
  padding-top: 10px;
  border-top: 1px solid #cecece;
  font-size: 12px;
  line-height: 16px;
  text-align: justify;
}

/* Request form of WAC-Navettes, sized by its own script. */
.request-form {
  display: block;
  width: 100%;
  height: 1800px;
  border: 0;
}

/* Footer: the ribbon, then the address, the contacts and the menu. */
.ribbon {
  height: 83px;
  text-align: center;
  background: url(images/footer/footer_contact_bg.png) repeat-x;
}

.ribbon img {
  display: inline-block;
  vertical-align: top;
}

footer {
  font-size: 16px;
  line-height: 22px;
  color: var(--footer-text);
  background: var(--footer);
}

footer a {
  color: var(--footer-text);
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

.footer-in {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-top: 10px;
  padding-bottom: 30px;
}

.address {
  padding-left: 40px;
  background: url(images/footer/localisation_icon.png) 0 0 no-repeat;
}

.address small {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  line-height: 18px;
}

.phone,
.mail {
  display: block;
  padding-left: 40px;
  margin-bottom: 22px;
  line-height: 28px;
  background: url(images/footer/tel_icon.png) 0 0 no-repeat;
}

.mail {
  background-image: url(images/footer/mail_icon.png);
}

.social {
  display: block;
  text-align: center;
}

.social img {
  vertical-align: middle;
  margin-left: 6px;
}

.footer-menu {
  padding-left: 25px;
  list-style-image: url(images/marker2.png);
  line-height: 24px;
}

.footer-menu li {
  padding-left: 5px;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 1em;
  padding: 10px;
  border-radius: 3px;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  background: rgb(0 0 0 / 0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease-in;
}

.to-top.on {
  opacity: 1;
  pointer-events: auto;
}

.to-top:hover {
  color: #fff;
  background: #000;
}

@media (max-width: 1280px) {
  .menu a {
    margin-left: 0;
  }
}

@media (max-width: 1020px) {
  .menu {
    display: none;
  }

  .menu-mini {
    display: block;
  }

  .logo img {
    width: 220px;
  }

  .header-in {
    min-height: 120px;
  }
}

@media (max-width: 760px) {
  .cols,
  .footer-in,
  .contact {
    grid-template-columns: 1fr;
  }

  .illustration {
    float: none;
    display: block;
    margin: 0 auto 20px;
  }

  .airports {
    justify-content: center;
  }

  .slides {
    border-width: 8px;
  }
}
