/* ============================================
   Fonts
   ============================================ */
@font-face {
  font-family: 'Tlm';
  src: url('../fonts/TLM-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tlm';
  src: url('../fonts/TLM-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: white;
  --black: black;
}

* {
  box-sizing: border-box;
}

body {
  padding-left: 2%;
  padding-right: 2%;
  font-family: Tlm, Arial, sans-serif;
  font-weight: 400;
}

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

/* ============================================
   Nav
   ============================================ */
.navbar {
  background-color: #fff;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 20px 0;
  gap: 12px;
}

.logo {
  padding-left: 0;
  font-family: Tlm, Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #333;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.menu-entry {
  font-family: Tlm, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #333;
  text-decoration: none;
}

.menu-entry:hover {
  text-decoration: underline;
}

/* ============================================
   Intro
   ============================================ */
.section-intro {
  padding-top: 5%;
  padding-bottom: 2.5%;
}

.div-intro {
  width: 70%;
}

@media screen and (min-width: 1440px) {
  .div-intro {
    width: 50%;
  }
}

.intro {
  font-family: Tlm, Arial, sans-serif;
  font-weight: 400;
  line-height: 110%;
  font-size: 32px;
  margin: 0;
}

.hyperlink {
  color: #333;
  line-height: 110%;
  text-decoration: none;
}

.hyperlink:visited {
  color: #333;
}

.superscript {
  top: 1px;
  position: relative;
}

/* ============================================
   Project sections / grid
   ============================================ */
.section-width {
  margin-bottom: 5%;
}

.section-two,
.section-three {
  justify-content: space-around;
  align-items: flex-start;
  margin-bottom: 5%;
  display: flex;
  gap: 2%;
}

.div-project {
  flex: 1;
  margin-right: 2%;
  min-width: 0;
}

.section-two .div-project:last-child,
.section-three .div-project:last-child {
  margin-right: 0;
}

.div-project-info {
  justify-content: space-between;
  padding-top: 16px;
  display: flex;
}

.div-project-client {
  width: 25%;
}

.div-project-description {
  text-align: right;
  width: 60%;
}

.paragraph {
  justify-content: space-between;
  font-family: Tlm, Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  margin: 0;
}

/* ============================================
   Resume
   ============================================ */
.section-resume {
  padding-bottom: 140px;
}

.resume-list {
  margin-bottom: 32px;
  padding-left: 1%;
  font-family: Tlm, Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  list-style-type: square;
}

.resume-list-item {
  padding-bottom: 16px;
  font-family: Tlm, Arial, sans-serif;
  font-weight: 400;
}

/* ============================================
   Slider (remplace le slider Webflow)
   ============================================ */
.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.4s ease;
}

.slider-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-family: Tlm, Arial, sans-serif;
  font-size: 24px;
  color: #333;
  padding: 8px 12px;
}

.slider-prev {
  left: 4px;
}

.slider-next {
  right: 4px;
}

.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #C7D2D6;
  border: none;
  padding: 0;
  cursor: pointer;
}

.slider-dot.is-active {
  background-color: #67777E;
}

/* ============================================
   Responsive
   ============================================ */
@media screen and (max-width: 991px) {
  .div-intro {
    width: 90%;
  }

  .div-project-description {
    width: 70%;
  }
}

@media screen and (max-width: 767px) {
  .section-intro {
    padding-bottom: 5%;
  }

  .div-project-info {
    flex-direction: column;
  }

  .div-project-client,
  .div-project-description {
    width: 100%;
    text-align: left;
  }

  .div-project {
    margin-bottom: 15%;
    margin-right: 0;
  }

  /* Essai : scroll horizontal mobile pour les images paysage.
     Ajouter la classe "h-scroll-mobile" sur .div-project, avec
     l'image entourée d'un <div class="h-scroll-track">, pour
     garder l'image à sa taille "confortable" et la faire
     défiler de gauche à droite sans faire scroller le texte. */
  .div-project.h-scroll-mobile .h-scroll-track {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .div-project.h-scroll-mobile .h-scroll-track img {
    width: 220%;
    max-width: none;
  }

  /* Barre de scroll sous l'image : piste grise claire pleine
     largeur, avec un curseur noir (le ".h-scroll-hint-fill")
     dont la position et la taille sont mises à jour en JS
     (voir js/script.js) en fonction du scroll réel de l'image. */
  .div-project.h-scroll-mobile .h-scroll-hint {
    position: relative;
    width: 100%;
    height: 1px;
    background-color: #ddd;
    margin-top: 8px;
  }

  .div-project.h-scroll-mobile .h-scroll-hint-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 1px;
    background-color: #000;
  }

  .section-two,
  .section-three {
    flex-direction: column;
    margin-bottom: 0%;
  }

  .section-resume {
    padding-bottom: 60px;
  }

  .resume-list-item {
    padding-bottom: 20px;
    line-height: 24px;
  }
}

@media screen and (max-width: 479px) {
  .intro {
    font-size: 28px;
    line-height: 34px;
  }

  .section-width {
    margin-bottom: 15%;
  }

  .div-project {
    margin-bottom: 20%;
  }

  .section-two,
  .section-three {
    flex-direction: column;
  }
}
