/* Default CSS */

/* Intégration des fonts */
@font-face {
  font-family: 'sourceCode' ;
  src: url('../fonts/SourceCodePro-Regular.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'ampl' ;
  src: url('../fonts/AmplitudeCompressedBlack.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'sourceCode';
  src:
    local('Source Code Pro - Bold'), local('source-code-pro'),
    url('../fonts/SourceCodePro-Bold.woff') format('woff');
  font-weight: bold;
}

/* Reset des valeurs navigateurs */
*, *::before, *::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}
li {
  list-style-type: none;
}
ul {padding-left: 0;}
button {
  all: initial;
  color: inherit;
  font: inherit;
  outline: revert;
}
/* Base styles for mobile (320px - 480px) */
html{
  scroll-behavior: smooth;
}
body {
  -webkit-font-smoothing: antialiased;
  font-family: 'sourceCode', 'Courier New', Courier, monospace;
  font-size: 0.875rem;
  line-height: 1.625;
  background-color:rgb(234, 235, 134) ;
  padding: 20px;
}
.mentions h2{
  font-size: 1.3rem;
  font-weight: bold;
  text-transform: uppercase;
  padding-top: 3rem;
}
.mentions ol li{
  list-style-type: lower-alpha;
}
h2 {
  font-size: 0.8rem;
  font-weight: normal;
  text-transform: lowercase;
}
h3 {
  line-height: 1.35rem;
  padding-top: 1rem;
  font-size: 1.118rem;
}
h4 {
  font-size: 1rem;
  padding-top: 0.8rem;
}
p{
  padding-top: 0.4rem;
  text-align: justify;
}
em {
  font-family: 'ampl', Impact, 'Arial Narrow Bold', sans-serif;
  text-transform: uppercase;
  font-style: normal;
  font-size: 3.563rem;
  line-height: 0.9;
  display: block;
  padding-top: 0.4rem;
}
blockquote {
  padding-left: 1rem;
  margin-top: 0.8rem;
  border-left: 1px solid black;
  font-style: italic;
  line-height: 1.627rem;
}
header {
  display: flex;
  align-items: flex-start;
  padding-bottom: 3rem;
}
.logo {
  max-width: 50%;
}
a {
  color: black;
  text-decoration: none;
}
.menu ul{
  padding-left: 1rem;
}
ul li a {
  text-decoration: none;
  color: black;
  line-height: 1.6rem;;
}
ul li a:hover{
  text-decoration: underline;
}
/*main > section {
  margin-bottom: 4rem;
}*/
section{
  margin-top: 4rem;
}
p {
  padding-top: 1rem;
}
.button{
  padding: 1rem;
  background-color: white;
  cursor: pointer;
}
a .button{
  margin-top: 1.4rem;
  margin-right: 1rem;
}
.button:hover {
  background-color: black;
  transition-duration: 0.5s;
}
a .button:hover {
  color: white;
}
.black .button:hover {
 background-color: rgb(234, 235, 134);
 transition-duration: 0.5s; 
}
.black a .button:hover {
  color: black;
}
.to-top {
  padding-top: 0.7rem;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10;
}
#presentation .black{
  margin-top: 2rem;
}
#presentation button{
  margin-top: 1rem;
}
#presentation figure {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
}
.bg-image {
  position: relative;
  color: white;
}
.bg-image figure {
  overflow: hidden;
  width:100%;
  max-height: 50vh;
}
.bg-image img {
  max-width: none;
}
.bg-image .centered {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width:80%;
}
.black{
  padding: 2rem;
  background-color: black;
  color: white;
}
.black figure {
  padding-top: 2rem;
}
.white{
  padding: 2rem;
  background-color: white;
}

#expertise img {
	max-width: none;
  padding-bottom: 0.6rem;
}

#expertise .blocs{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  }
#expertise .blocs section{
  margin-top: 3.6rem;
  overflow: hidden;
}
footer {
  display: flex;
  flex-direction: column;
  padding-bottom: 3rem;
  padding-top: 3rem;
}
/********************* slider avis *************************/
.testimonials {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  place-items: center;
}

.carousel__container {
  position: relative;
}

.carousel__item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: 2rem 0 5rem 0;
  position: relative;
  display: none;
}

.carousel__item--selected {
  display: flex;
}

.carousel__nav {
  width: 100%;
  padding: 20px 0;
  position: absolute;
  bottom: 0;
  left: 0;
  text-align: left;
}

.carousel__btn {
  width: 12px;
  height: 12px;
  display: inline-block;
  background: transparent;
  cursor: pointer;
  background-color: white;
  margin: 0 10px;
  transition: 0.5s ease-in;
}

.carousel__btn--selected {
  background-color: black;
}

.carousel__action__btn {
  color: black;
  background-color: grey;
  margin: 2rem 0;
  padding: 1rem 2.5rem;
  outline: none;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
}
.slider__txt {
  padding: 1rem;
}

/* Small tablets and larger mobile devices (481px - 768px) */
@media (min-width: 481px) {
  body {
    font-size: 0.8rem;
    line-height: 1.625;
    padding: 20px;
  }
  header {
    justify-content: space-between;
  }
  em {
    font-size: 3.4rem;
  }
  #presentation figure img {
    max-width: 441px;
    margin-right: 1.4rem;
  }
  #presentation figcaption{
    max-width: 441px;
  }
  .blocs {
    padding: 30px;
  }
  #expertise .blocs{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0;
  }
  #expertise section{
    width: 48%;
  }
  .white .padding{
    padding: 40px;
  }
  footer section{
    max-width: 50%;
  }
  .carousel__item {
    padding: 0 62px;
  }
}

/* Tablets and small laptops (769px - 1024px) */
@media (min-width: 769px) {
  body {
    padding: 24px;
    max-width: 90%;
    margin: 0 auto;
  }
  h3 {
    font-size: 1.094rem;
  }
  section{
    margin-top: 8rem;
  }
  em {
    font-size: 6rem;
  }
  #presentation figure{
    align-items: flex-start;
  }
  #presentation figure img {
    max-width: 47%;
  }
  #presentation figcaption{
    max-width: 47%;
  }
  .blocs {
    padding: 40px;
  }
  footer {
    flex-direction: row;
    justify-content: space-between;
  }
  footer section {
    max-width: 40%;
  }
  .phone {
    display:none;
  }
  .carousel__item {
    padding: 0 72px;
  }
}

/* Large desktops and high-resolution screens (1025px and up) */
@media (min-width: 1025px) {
  body {
    padding: 32px;
    max-width: 1034px;
    font-size: 0.8rem;
  }
  h4 {
    font-size: 1rem;
  }
  h3 {
    font-size: 1.118rem;
  }
  section {
    margin-top: 8rem;
  }
  #presentation figure{
    align-items: flex-end;
  }
  #expertise section{
    width: 30%;
  }
  #prestations .blocs {
    padding: 40px 72px 0 72px;
  }
}

/* Extra-large screens (1440px and up) */
@media (min-width: 1440px) {
  body {
    padding: 40px;
  }
}
