/* LBCD - Expert Informatique */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/open-sans.woff2") format("woff2");
}

@font-face {
  font-family: "Lustria";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lustria.woff2") format("woff2");
}

:root {
  --blue: #5b9bd5;
  --blue-dark: #3f7fba;
  --text: #666;
  --heading: #555;
  --grey: #eee;
  --header-height: 71px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  background: #fff;
}

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

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

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

h1,
h2,
h3,
h4 {
  margin: 0 0 20px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--heading);
}

p {
  margin: 0 0 20px;
}

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

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.125em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}

.logo-box {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  color: var(--blue);
}

.logo-box img {
  display: block;
  height: 50px;
  width: auto;
}

.site-tagline {
  font-size: 14px;
  line-height: 1.6;
}

.site-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0 0 0 35px;
  line-height: var(--header-height);
  color: #fff;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  padding: 10px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* Sections de la page d'accueil */

.section {
  padding: 50px 0;
}

.section-grey {
  background: var(--grey);
}

.section-title {
  margin-bottom: 20px;
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  color: var(--text);
}

.section-subtitle {
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 16px;
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid var(--blue);
  border-radius: 3px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
  transition: background-color 0.2s, color 0.2s;
}

.btn:hover,
.btn:focus {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: #fff;
}

.btn-line {
  border-color: #fff;
  background: transparent;
}

.btn-line:hover,
.btn-line:focus {
  border-color: #fff;
  background: #fff;
  color: #333;
}

/* Bannière */

.hero {
  display: flex;
  align-items: center;
  min-height: min(calc(100vh - var(--header-height)), 850px);
  padding: 60px 0;
  background: #2b2d33 url("../img/banner_large.jpg") center / cover no-repeat;
  color: #fff;
  text-align: center;
}

.hero h1 {
  display: inline-block;
  margin: 0;
  padding: 20px 30px;
  border: 1px solid #fff;
  font-family: "Lustria", Georgia, serif;
  font-size: clamp(30px, 5.2vw, 64px);
  color: #fff;
}

.hero p {
  margin: 50px 0;
  font-size: 18px;
}

/* Accroche */

.promo {
  padding: 30px 0;
}

.promo .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.promo h2 {
  margin: 0;
  font-size: 18px;
}

.promo .btn {
  flex-shrink: 0;
}

/* Services */

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

.feature {
  text-align: center;
}

.feature .icon {
  width: 46px;
  height: 46px;
  margin-bottom: 15px;
  stroke-width: 1.5;
  color: var(--blue);
}

.feature h3 {
  margin-bottom: 15px;
  font-size: 18px;
  text-transform: uppercase;
}

.feature h3 a {
  color: var(--heading);
}

.feature h3 a:hover,
.feature h3 a:focus {
  color: var(--blue);
}

/* Références */

.references {
  gap: 0;
}

.references a {
  display: block;
  background: #fff;
  transition: opacity 0.2s;
}

.references a:hover,
.references a:focus {
  opacity: 0.6;
}

.references img {
  display: block;
  width: 100%;
}

/* Nos valeurs */

.about {
  background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    #2b2d33 url("../img/banner_large.jpg") center / cover no-repeat;
  color: #fff;
}

.about .section-title {
  color: #fff;
}

.about-columns {
  max-width: 800px;
  margin: 0 auto;
}

.about a {
  color: #fff;
  text-decoration: underline;
}

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 0 100px;
  margin: 0 0 15px;
  padding: 0 0 0 70px;
}

.values ul {
  margin: 0;
  padding: 0 0 0 20px;
}

/* Témoignages */

.testimonials-title {
  position: relative;
  padding: 10px 0 30px;
  background: var(--blue);
  color: #fff;
}

.testimonials-title::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -30px;
  border: solid transparent;
  border-width: 25px 30px 0;
  border-top-color: var(--blue);
}

.testimonials-title .section-title {
  color: #fff;
}

.testimonials-title .section-subtitle {
  margin-bottom: 0;
}

.testimonials {
  padding-top: 75px;
}

.testimonial {
  margin: 0;
}

.testimonial blockquote {
  position: relative;
  margin: 0 0 25px;
  padding: 25px;
  border-radius: 3px;
  background: var(--grey);
}

.testimonial blockquote::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 30px;
  border: solid transparent;
  border-width: 12px 12px 0;
  border-top-color: var(--grey);
}

.testimonial figcaption {
  padding-left: 25px;
}

.testimonial .name {
  display: block;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--heading);
}

/* Contact */

.contact {
  background: var(--grey) url("../img/smartphone-contact.jpg") left center / cover no-repeat;
  color: #555;
  text-align: center;
}

.contact .btn {
  margin: 0 8px 15px;
}

.contact .btn .icon {
  margin-right: 8px;
}

/* Pages intérieures */

.page-title-bar {
  padding: 45px 0 25px;
}

.page-title-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 30px;
}

.page-title-bar h1 {
  margin: 0;
  font-size: 30px;
}

.breadcrumb a {
  color: #a0a0a0;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
  color: var(--blue);
}

.page-content {
  padding: 50px 0;
}

.page-content h2 {
  margin-top: 30px;
  font-size: 22px;
}

.media {
  display: flex;
  align-items: flex-start;
  gap: 70px;
  margin-bottom: 20px;
}

.media img {
  flex-shrink: 0;
}

.media ul {
  margin: 0 0 20px;
}

/* Pied de page */

.site-footer {
  padding: 20px 0;
  background: #000;
  color: #fff;
  font-size: 12px;
}

.site-footer a {
  color: #fff;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover,
.back-to-top:focus {
  background: var(--blue);
  color: #fff;
}

/* Mobile */

@media (max-width: 991px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    border-top: 1px solid #333;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .site-nav a {
    padding: 0 15px;
    line-height: 44px;
    border-bottom: 1px solid #222;
  }

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

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

  .promo .container {
    flex-direction: column;
    text-align: center;
  }

  .contact {
    background-image: none;
  }

  .values {
    gap: 0 40px;
    padding-left: 0;
  }
}

@media (max-width: 600px) {
  .media {
    flex-direction: column;
    gap: 20px;
  }

  .site-tagline {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
