@font-face {
    font-family: 'hershey';
    src: url(./font/Hershey-Noailles-Futura-Simplex-Bold.otf)
}

@font-face {
    font-family: 'cursive';
    src: url(./font/OPTIGoudy-Cursive.otf)
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hershey', sans-serif;
    font-size: 18px;
    margin: 0;
    padding: 0;
    line-height: 1;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* letter-spacing: 0.01em; */
}

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

/* HEADER */

.header {
    position: fixed;
    z-index: 3;
    display: flex;
    align-items: baseline;
    column-gap: 12px;
    padding: 5px;
    color: white;
    mix-blend-mode: difference;
}

h1 {
    font-family: 'cursive';
    font-weight: normal;
    font-size: 1.25rem;
    -webkit-font-smoothing: inherit;
    -moz-osx-font-smoothing: initial;
}


/* Style des liens dans le header */
a:link, 
a:visited {
    text-decoration: none;
    /* color: rgb(71, 71, 71); */
    color: gray;
}
a:hover {
    text-decoration: underline;
        text-decoration-color: gray

}



  /* CAROUSSSEL */

.carousel-container {
    height: 100vh;
}

.image-container.white {
    background-color: white;
}

.image-container.black {
    background-color: black;
}

.carousel {
    width: 100%;
}

.carousel-wrapper {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.image-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width:100%;
    height: 100vh;
}

.carousel-image {
    /*! height:fit-content; */
    width: 100%;
    object-fit: contain;
    height: 100%;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.nav-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 2;
    cursor: pointer;
    /* souvent le problème vient de ça : */
    background-color: rgba(0,0,0,0); /* ← peut empêcher de sortir du hover */
    /*! display: none; */
}


.nav-left {
    left: 0;
    justify-content: start;
    cursor: w-resize;
    /*! display: none; */
}

.nav-right {
    right: 0;
    justify-content: end;
    cursor: e-resize;
}

.nav-button {
    margin: 0 1rem;

    padding: 0.5rem;
    border-radius: 9999px;
    transition: all 0.3s;
    opacity: 0;
}

.nav-zone:hover .nav-button {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.75);
}


.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background-color: #d1d5db;
    border: none;
    padding: 0;
    transition: all 0.3s;
    cursor: pointer;
}

.indicator.active {
    background-color: #000000;
}

.carousel-description {
    /*! margin-top: 1rem; */
    /*! text-align: center; */
    /* color: #374151; */
    /*! padding-bottom: 3rem; */
    font-size: 0.9rem;
    line-height: 1em;
    position: absolute;
    bottom: 0;
    padding: 5px;
    letter-spacing: 0.02em;
        mix-blend-mode: difference;
            color: white;

}

.carousel-description em {
    font-family: 'cursive';
    font-weight: normal;
    font-size: 1.03rem;
    -webkit-font-smoothing: inherit;
    -moz-osx-font-smoothing: initial;
}

.cv-year {
    margin-left: 1em;
}
.container{
    width: 100%;
    margin-bottom: 4em;
    max-width: 530px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    row-gap: 2em;
    padding-top: 4em;
    mix-blend-mode: difference;
    color: white;
}

.cv-row {
    display: flex;
    flex-wrap: wrap;
    column-gap: 12px;
}



/*CAROUSEL MOBILE*/
.carousel-images-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    padding: 0em;
    padding-top: 3em;
    margin: 5px;
}

.stacked-image {
    width: 100%;
    height: auto;
}

.stacked-caption {
    font-size: 0.8em;
    color: #000000;
}


.title{
    font-family: 'cursive';
    font-size: 1.35rem;
    margin-bottom: .1em;
     -webkit-font-smoothing: inherit;
    -moz-osx-font-smoothing: initial;
}

video {
    max-width: 100%;
    height: auto;
    display: block;
}

@media screen and (min-width: 769px) {
    .carousel-images-stack {
        display: none;
    }
}

@media screen and (max-width: 768px) {
  .about-grid {
    padding-top: 5vh;
    grid-template-columns: 1fr;
    grid-template-areas:
      "te"
      "con"
      "serv";
  }

  .cv-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "an"
      "client"
      "projet";
  }


  .carousel-image {
    height: auto;
    width: 100%;  /* permet de remplir l’écran en largeur */
    object-fit: contain;
  }

  .carousel-description {
    font-size: 0.9rem;
    line-height: 1em;
    position: absolute;
    bottom: 0;
    padding: 5px;
    letter-spacing: 0.02em;
    mix-blend-mode: normal;
    color: black;
  }

  .header {
    font-family: 'hershey';
    font-size: 1rem;
    width: 100%; /* Ajuste la largeur pour occuper tout l'espace sans déborder */
    overflow: hidden; /* Évite tout dépassement visuel */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 4;
    height: fit-content;
    display: flex;
    align-items: flex-end;
    white-space: nowrap;
    flex-wrap: wrap; /* Permet de s’adapter si la fenêtre est trop étroite */
    padding: 5px;
    line-height: 1;
}

h1 {
    font-family: 'cursive';
    font-weight: normal;
    font-size: 1.1rem;
    -webkit-font-smoothing: inherit;
    -moz-osx-font-smoothing: initial;
}

body {
    font-family: 'Hershey', sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    line-height: 1;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* letter-spacing: 0.01em; */
}

.title{
    font-family: 'cursive';
    font-size: 1.1rem;
    margin-bottom: .1em;
     -webkit-font-smoothing: inherit;
    -moz-osx-font-smoothing: initial;
}
}