/* POLICES HÉBERGÉES SUR LE SITE
   Réduites aux caractères utilisés en français (accents, guillemets, flèches…)
   pour être plus légères. Aucun appel à Google Fonts. */
@font-face {
  font-family: "Nyght Serif";
  src: url("./Fonts/NyghtSerif-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./Fonts/Inter-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./Fonts/Inter-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./Fonts/Inter-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Titre lu par les lecteurs d'écran et Google, invisible à l'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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


body {
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background-color: #FFFDF7;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.navbar {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    background-color: #302727;
    transition: background-color 0.3s ease;
}




/* COULEURS DU MENU DÉROULANT
   La barre (avec « MENU ») reste toujours brune.
   Le menu déroulant, lui, change selon la section en dessous :
   - au-dessus d'une section crème : fond brun, texte crème (par défaut)
   - avec .nav-claire, au-dessus d'une section brune : fond beige, texte brun */
.navbar {
    --nav-fond: #302727;
    --nav-texte: #FFFDF7;
}

.navbar.nav-claire {
    --nav-fond: #FFFDF7;
    --nav-texte: #302727;
}

.menu-main-link,
.project-title,
.project-category {
    color: var(--nav-texte);
    transition: color 0.3s ease;
}

.menu-button {
    width: auto;
    height: auto;
    display: block;
    border: none;
    background-color: transparent;
    cursor: pointer;
    padding-left: 40px;
    padding-top: 30px;
    padding-bottom: 30px;
    position: relative;
}



.menu-panel {
    width: 100%;
    height: 0;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-shrink: 0;
    box-sizing: border-box;
    background-color: var(--nav-fond);
    padding: 0px 30px;

    transition: height 0.5s ease, background-color 0.3s ease;
}

.menu-panel .line-separator {
    flex-shrink: 0;
    min-height: 1px;
}


.menu-projects {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: none;
    overflow: visible;
    align-items: start;
    gap: clamp(10px, 2.6vh, 28px);
    padding-bottom: clamp(16px, 3vh, 30px);
}


.menu-main-link {
    font-family: "Nyght Serif", serif;
    font-weight: 300;
    font-size: min(4.2vw, 7.5vh);
    text-transform: uppercase;
    color: var(--nav-texte);
}



.menu-project {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.project-title {
    font-family: "Nyght Serif", serif;
    font-weight: 300;
    font-size: min(2.6vw, 4.6vh);
    color: var(--nav-texte);
    text-transform: uppercase;
}

.project-category {
    font-family: "inter", sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: var(--nav-texte);
}

.infos-hero-absolute {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-left: 40px;
    padding-right: 40px;
    position: absolute;
    top: 85px;
    left: 0;
    right: 0;
}

.text-14px {
    font-family: "General Sans", sans-serif;
    font-weight: 400;
    font-size: 16px;
    text-align: left;
    color: #FFFDF7;
}

.span-text-align-right {
    display: block;
    text-align: right;
}

.text-18px {
    font-family: "inter", sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #FFFDF7;
    text-transform: uppercase;
}

.hero-section {
    width: 100vw;
    height: 100vh;
    background-color: #302727;
    position: relative;
}

.div-container {
    width: 100%;
    height: 100%;
}

.hero-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.hero-image-wrapper {
    width: 400px;
    height: 500px;
    position: absolute;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-wrapper-1 {
    width: 50%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    position: relative;
    z-index: 1;
    padding-left: 9vw;
    padding-top: 60px;
    margin-bottom: 20%;
    
}

.hero-wrapper-2 {
    width: 50%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: end;
    position: relative;
    z-index: 1;
    padding-right: 9vw;
    padding-bottom: 60px;
    margin-top: 20%;
}

.hero-wrapper-1,
.hero-wrapper-2 {
    will-change: transform;
}

.hero-h1 {
    font-family: "Nyght Serif";
    font-weight: 300;
    font-size: 9vw;
    text-transform: uppercase;
    color: #FFFDF7;
}

.section-portrait {
    width: 100vw;
    height: auto;
    background-color: #FFFDF7;
    margin-top: 100px;
}

.portrait-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: space-between;
    padding: 40px 40px;
    gap: 40px;

}

.portrait-block-left {
    width: 40%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 80px;
    align-items: start;
    justify-content: start;
}

.portrait-text-wrapper {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 15px;
}

.text-inter-20px {
    font-family: "inter", sans-serif;
    font-weight: 500;
    font-size: 22px;
    color: #515151;
    text-transform: uppercase;
}

.text-25px {
    font-family: "Nyght Serif", serif;
    font-weight: 300;
    font-size: 2vw;
    color: #4A4528;
}

.portrait-image-wrapper-1 {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    position: relative;
}

.portrait-image {
    width: 100%;
    height: 120%;
    object-fit: cover;
}


.parallax-image {
    width: 100%;
    height: 120%;
    object-fit: cover;
    transform: translateY(-16.67%);
    will-change: transform;
}



.portrait-block-right {
    width: 45%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 80px;
    
}

.div-spacer {
    width: 60%;
    height: 700px;
}

.text-2-portrait {
    font-family: "inter", sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #515151;
    text-align: end;
}

.portrait-image-wrapper-2 {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    position: relative;
}

.Section-projets {
    width: 100vw;
    height: auto;
    background-color: #FFFDF7;
    margin-top: 100px;
}

.projets-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;

}

.projets-text-container {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 30px 30px;
}

.text-4vw {
    font-family: "Nyght Serif", serif;
    font-weight: 300;
    font-size: 4vw;
    color: #4A4528
}

.Section-cards-projet {
    width: 100vw;
    height: auto;
    margin-top: 100px;
}

.Projets-wrapper {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px 40px;
}

.card-item {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;

}

/* Arrivée depuis le menu : le titre de la carte s'arrête sous la barre de navigation */
.card-item {
    scroll-margin-top: 110px;
}

.card-content {
    width: 100%;
    height: 340px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.text-card-wrapper {
    width: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    align-items: start;
}

.text-button-card-wrapper {
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: start;
}

.text-inter-16px {
    font-family: "inter", sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #302727;
}

/* TITRE + SOUS-TITRE DES CARTES PROJETS */
.titre-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sous-titre-card {
    font-family: "inter", sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #5C5C5C;
}

@media screen and (width < 768px) {
    .sous-titre-card {
        font-size: 14px;
    }
}

/* BOUTON « VOIR LE PROJET » — bloc brun, capitales espacées, flèche */
.Button-projet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 13px 22px;
    border: none;
    border-radius: 0;
    background-color: #302727;
    color: #FFFDF7;
    font-family: "General Sans", "Inter", sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background-color 0.3s ease, gap 0.3s ease;
}

/* La flèche (même dessin que celle du slider) */
.Button-projet::after {
    content: "";
    width: 16px;
    height: 8px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8' viewBox='0 0 16 8'%3E%3Cpath fill='%23FFFDF7' d='M0 3.68213V4.18213H15V3.68213V3.18213H0V3.68213ZM15.3536 4.03568C15.5488 3.84042 15.5488 3.52384 15.3536 3.32858L12.1716 0.146595C11.9763 -0.0486672 11.6597 -0.0486672 11.4645 0.146595C11.2692 0.341857 11.2692 0.65844 11.4645 0.853702L14.2929 3.68213L11.4645 6.51056C11.2692 6.70582 11.2692 7.0224 11.4645 7.21766C11.6597 7.41293 11.9763 7.41293 12.1716 7.21766L15.3536 4.03568Z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Survol : passe au vert et la flèche s'écarte */
.Button-projet:hover {
    background-color: #596B44;
    gap: 20px;
}

/* Navigation au clavier : contour visible */
.Button-projet:focus-visible {
    outline: 2px solid #596B44;
    outline-offset: 3px;
}

.image-card-wrapper {
    width: 300px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-card {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.line-separator {
    width: 100%;
    height: 1px;
    background-color: #BBBBBB;
}



.Section-image-horizontal {
    width: 100vw;
    height: auto;
    margin-top: 100px;
}

.Image-horizontal-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 40px;
    overflow: hidden;
    position: relative;
}

.Image-horizontal {
    width: 100%;
    height: 120%;
    object-fit: cover;
}

.Section-outils-1 {
    width: 100vw;
    height: auto;
    margin-top: 100px;
}

.Outils-content-1 {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    padding: 40px 40px;
    gap: 30px;
}

.Section-outils-2 {
    width: 100vw;
    height: auto;
    margin-top: 100px;
}

.Outils-content-2 {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 40px 40px;
    gap: 10px;
}

.line-wrapper-outils {
    width: 100%;
    height: 130px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

}

.span-gris-clair {
    color: #5C5C5C;
}

.software-hover-logo {
    position: fixed;
    top: 0;
    left: 0;

    width: 100px;
    height: 100px;

    pointer-events: none;
    z-index: 9999;

    opacity: 0;

    transform: translate(-50%, -140%) scale(0.8);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.software-hover-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.software-hover-logo.is-visible {
    opacity: 1;
    transform: translate(-50%, -140%) scale(1);
}

.section-contact {
    width: 100vw;
    height: 100vh;
    background-color: #302727;
    margin-top: 100px;
    overflow: hidden;
}

.Contact-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-between;
    padding-top: clamp(110px, 16vh, 150px);
}

.contact-wrapper-content {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    padding-left: 40px;
    padding-right: 40px;
}

.text-contact-wrapper {
    width: 100%;
    max-width: 60vw;
    height: auto;
    display: flex;
    align-items: start;
    padding-left: 40px;
    padding-right: 40px;
}

.H1-infos-contact-wrapper {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.Infos-contact-wrapper {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.text-white {
    color: #FFFDF7;
}

.Contact-h1 {
    font-family: "Nyght Serif", serif;
    font-weight: 300;
    font-size: 20vw;
    color: #FFFDF7;
    text-transform: uppercase;
    line-height: 1;
    transform: translateY(100%);
    will-change: transform;
}


#fenetre-projet {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  margin: 0;
  inset: 0;
  padding: 24px;
  border: none;
  background: #302727;
  overflow: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  gap: 20px;
}

#fenetre-projet[open] {
  display: flex;
}

/* Fond transparent : on voit la page pendant que le rideau descend, comme le menu */
#fenetre-projet::backdrop {
  background: transparent;
}

/* EFFET DE RIDEAU — même durée et même courbe que le menu (0.5s ease) */
#fenetre-projet {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.5s ease;
}

#fenetre-projet.is-open {
  clip-path: inset(0 0 0 0);
}

/* Le contenu apparaît en fondu, juste après le début du déroulé */
#fenetre-projet > * {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#fenetre-projet.is-open > * {
  opacity: 1;
  transition-delay: 0.2s;
}

/* Personnes qui ont demandé moins d'animations dans leur système */
@media (prefers-reduced-motion: reduce) {
  #fenetre-projet,
  #fenetre-projet > * {
    transition: none;
  }
}

#fenetre-projet #image-projet {
  display: block;
  width: 50vw;
  height: auto;
  max-width: 900px;
  max-height: 75vh;
  object-fit: contain;
  margin-inline: auto;
}

#image-projet {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#fermer-projet {
  display: block;
  position: absolute;
  top: 16px;
  right: 16px;
  margin: 0;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 32px;
  cursor: pointer;
  color: #FFFDF7;
}

.slider-projet {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.H2-fenetre-projet {
    font-family: "inter", sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: #FFFDF7;
    text-transform: uppercase;
}

#compteur-projet {
    font-family: "inter", sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #FFFDF7;
}



/* FLÈCHES DU CAROUSEL — angles droits comme le bouton « Voir le projet » */
.slider-projet-button {
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #596B44;
  cursor: pointer;
  padding: 16px 22px;
  transition: background-color 0.3s ease, transform 0.15s ease;
}

.Arrow-slider-image {
    width: 24px;
    height: 12px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Survol (uniquement sur les écrans avec souris) :
   le bouton passe au crème, la flèche devient foncée et avance dans sa direction */
@media (hover: hover) {
    .slider-projet-button:not(:disabled):hover {
        background-color: #FFFDF7;
    }

    .slider-projet-button:not(:disabled):hover .Arrow-slider-image {
        filter: brightness(0.19);
    }

    #planche-precedente:not(:disabled):hover .Arrow-slider-image {
        transform: translateX(-5px);
    }

    #planche-suivante:not(:disabled):hover .Arrow-slider-image {
        transform: translateX(5px);
    }
}

/* TRANSITION ENTRE LES PLANCHES — glissé + flou, comme le texte au scroll */
#image-projet {
    transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
}

/* Sortie : la planche part dans le sens inverse de la flèche */
#image-projet.planche-sortie {
    opacity: 0;
    transform: translateX(calc(var(--sens, 1) * -40px));
    filter: blur(8px);
    transition-duration: 0.25s;
}

/* Position de départ de la nouvelle planche (appliquée sans animation) */
#image-projet.planche-entree {
    opacity: 0;
    transform: translateX(calc(var(--sens, 1) * 40px));
    filter: blur(8px);
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    #image-projet,
    #image-projet.planche-sortie {
        transition: none;
        transform: none;
        filter: none;
    }
}

/* Petit enfoncement au clic */
.slider-projet-button:not(:disabled):active {
    transform: scale(0.94);
}

/* Navigation au clavier : contour visible */
.slider-projet-button:focus-visible {
    outline: 2px solid #FFFDF7;
    outline-offset: 3px;
}

.slider-projet button:disabled {
  opacity: 0.35;
  cursor: default;
}

#compteur-projet {
  text-align: center;
}




/* FOOTER — brun, dans la continuité de la section contact */
.site-footer {
    background-color: #302727;
    padding: 0 40px 28px;
}

.footer-separator {
    width: 100%;
    height: 1px;
    background-color: rgb(255 253 247 / 20%);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
}

.footer-text,
.footer-link {
    font-family: "General Sans", "Inter", sans-serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #FFFDF7;
}

/* Lien avec un soulignement qui se dessine au survol */
.footer-link,
.ml-retour {
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0 1px;
    padding-bottom: 3px;
    transition: background-size 0.3s ease;
}

.footer-link:hover,
.ml-retour:hover {
    background-size: 100% 1px;
}

.footer-link:focus-visible,
.ml-retour:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}


/* PAGE MENTIONS LÉGALES */
/* Le footer reste collé en bas même si la page est courte */
.page-mentions {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-mentions .ml-main {
    flex: 1;
    width: 100%;
}

.ml-header {
    padding: 30px 40px;
}

.ml-retour {
    font-family: "General Sans", "Inter", sans-serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #302727;
}

.ml-main {
    max-width: 820px;
    margin: 0 auto;
    padding: 60px 40px 120px;
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.ml-intro {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ml-h1 {
    font-family: "Nyght Serif", serif;
    font-weight: 300;
    font-size: clamp(48px, 8vw, 112px);
    line-height: 1;
    text-transform: uppercase;
    color: #4A4528;
}

.ml-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 24px;
    border-top: 1px solid #BBBBBB;
}

.ml-section h2 {
    font-family: "inter", sans-serif;
    font-weight: 500;
    font-size: 18px;
    text-transform: uppercase;
    color: #515151;
}

.ml-section p,
.ml-maj {
    font-family: "inter", sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    color: #302727;
}

.ml-section a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ml-maj {
    font-size: 14px;
    color: #5C5C5C;
}


/* TABLETTE — de 768 à 991 px */
@media screen and (min-width: 768px) and (max-width: 991px) {

    .navbar {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    background-color: #302727;
    transition: background-color 0.3s ease;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 25px;
}



.menu-button {
    width: auto;
    height: auto;
    display: block;
    border: none;
    background-color: transparent;
    cursor: pointer;
    padding: 15px 15px;
    position: relative;
    
}



.menu-panel {
    width: 100%;
    height: 0;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-shrink: 0;
    box-sizing: border-box;
    background-color: var(--nav-fond);
    padding: 0px 30px;

    transition: height 0.5s ease, background-color 0.3s ease;
}

.menu-panel .line-separator {
    flex-shrink: 0;
    min-height: 1px;
}


.menu-projects {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: none;
    overflow: visible;
    align-items: start;
    gap: clamp(10px, 2.6vh, 28px);
    padding-bottom: clamp(16px, 3vh, 30px);
    padding-top: 30px;
}


.menu-main-link {
    font-family: "Nyght Serif", serif;
    font-weight: 300;
    font-size: min(4.2vw, 7.5vh);
    text-transform: uppercase;
    color: var(--nav-texte);
}



.menu-project {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.project-title {
    font-family: "Nyght Serif", serif;
    font-weight: 300;
    font-size: min(2.6vw, 4.6vh);
    color: var(--nav-texte);
    text-transform: uppercase;
}

.project-category {
    font-family: "inter", sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: var(--nav-texte);
}

    .text-14px {
        font-family: "General Sans", "Inter", sans-serif;
        font-weight: 500;
        font-size: 14px;
        text-align: left;
        color: #FFFDF7;
    }

    .span-text-align-right {
        display: block;
        text-align: right;
    }

    .text-18px {
        font-family: "inter", sans-serif;
        font-weight: 500;
        font-size: 18px;
        color: #FFFDF7;
        text-transform: uppercase;
    }

    .hero-section {
        width: 100vw;
        height: 100vh;
        background-color: #302727;
        position: relative;
    }

    .infos-hero-absolute {
        margin-top: 60px;
    }

    .div-container {
        width: 100%;
        height: 100%;
    }

    .hero-content {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .infos-hero-absolute {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-left: 40px;
    padding-right: 40px;
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
}

    .hero-image-wrapper {
        width: 400px;
        height: 500px;
        position: absolute;
    }

    .hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-wrapper-1 {
        width: 50%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: start;
        position: relative;
        z-index: 1;
        padding-left: 9vw;
        padding-top: 60px;
        margin-bottom: 20%;
        
    }

    .hero-wrapper-2 {
        width: 50%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: end;
        justify-content: end;
        position: relative;
        z-index: 1;
        padding-right: 9vw;
        padding-bottom: 60px;
        margin-top: 20%;
    }

    .hero-wrapper-1,
    .hero-wrapper-2 {
        will-change: transform;
    }

    .hero-h1 {
        font-family: "Nyght Serif";
        font-weight: 300;
        font-size: 9vw;
        text-transform: uppercase;
        color: #FFFDF7;
    }

    .section-portrait {
        width: 100vw;
        height: auto;
        background-color: #FFFDF7;
        margin-top: 100px;
    }

    .portrait-content {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: center;
        padding: 30px 30px;
        gap: 40px;

    }

    .portrait-block-left {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        gap: 60px;
        align-items: start;
        justify-content: start;
    }

    .portrait-text-wrapper {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 15px;
    }

    .text-inter-20px {
        font-family: "inter", sans-serif;
        font-weight: 500;
        font-size: 18px;
        color: #515151;
        text-transform: uppercase;
    }

    .text-25px {
        font-family: "Nyght Serif", serif;
        font-weight: 300;
        font-size: 4vw;
        color: #4A4528;
    }

    .portrait-image-wrapper-1 {
        width: 100%;
        aspect-ratio: 4/5;
        overflow: hidden;
        position: relative;
    }

    .portrait-image {
        width: 100%;
        height: 120%;
        object-fit: cover;
    }


    .parallax-image {
        width: 100%;
        height: 120%;
        object-fit: cover;
        transform: translateY(-16.67%);
        will-change: transform;
    }



    .portrait-block-right {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 60px;
        
    }

    .div-spacer {
        width: 60%;
        height: 0px;
    }

    .text-2-portrait {
        font-family: "inter", sans-serif;
        font-weight: 300;
        font-size: 16px;
        color: #515151;
        text-align: start;
    }

    .portrait-image-wrapper-2 {
        width: 100%;
        aspect-ratio: 4/5;
        overflow: hidden;
        position: relative;
    }

    .Section-projets {
        width: 100vw;
        height: auto;
        background-color: #FFFDF7;
        margin-top: 100px;
    }

    .projets-content {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;

    }

    .projets-text-container {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 30px 30px;
    }

    .text-4vw {
        font-family: "Nyght Serif", serif;
        font-weight: 300;
        font-size: 4vw;
        color: #4A4528
    }

    .Section-cards-projet {
        width: 100vw;
        height: auto;
        margin-top: 100px;
    }

    .Projets-wrapper {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 30px 30px;
    }

    .card-item {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 20px;

    }

    .card-content {
        width: 100%;
        height: 340px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .text-card-wrapper {
        width: 50%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        align-items: start;
    }

    .text-button-card-wrapper {
        width: auto;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 30px;
        align-items: start;
    }

    .text-inter-16px {
        font-family: "inter", sans-serif;
        font-weight: 300;
        font-size: 16px;
        color: #302727;
    }



    .image-card-wrapper {
        width: 300px;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .image-card {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .line-separator {
        width: 100%;
        height: 1px;
        background-color: #BBBBBB;
    }



    .Section-image-horizontal {
        width: 100vw;
        height: auto;
        margin-top: 100px;
    }

    .Image-horizontal-wrapper {
        width: 100%;
        aspect-ratio: 16/9;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 40px;
        overflow: hidden;
        position: relative;
    }

    .Image-horizontal {
        width: 100%;
        height: 120%;
        object-fit: cover;
    }

    .Section-outils-1 {
        width: 100vw;
        height: auto;
        margin-top: 100px;
    }

    .Outils-content-1 {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: center;
        padding: 40px 40px;
        gap: 30px;
    }

    .Section-outils-2 {
        width: 100vw;
        height: auto;
        margin-top: 100px;
    }

    .Outils-content-2 {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        padding: 40px 40px;
        gap: 10px;
    }

    .line-wrapper-outils {
        width: 100%;
        height: 130px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;

    }

    .span-gris-clair {
        color: #5C5C5C;
    }

    .software-hover-logo {
        position: fixed;
        top: 0;
        left: 0;

        width: 100px;
        height: 100px;

        pointer-events: none;
        z-index: 9999;

        opacity: 0;

        transform: translate(-50%, -140%) scale(0.8);

        transition:
            opacity 0.2s ease,
            transform 0.2s ease;
    }

    .software-hover-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .software-hover-logo.is-visible {
        opacity: 1;
        transform: translate(-50%, -140%) scale(1);
    }

    .section-contact {
        width: 100vw;
        height: 100vh;
        background-color: #302727;
        margin-top: 100px;
        overflow: hidden;
    }

    .Contact-content {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: space-between;
        padding-top: clamp(110px, 16vh, 150px);
    }

    .contact-wrapper-content {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 30px;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    .text-contact-wrapper {
        width: 100%;
        max-width: 85vw;
        height: auto;
        display: flex;
        align-items: start;
        padding-left: 40px;
        padding-right: 40px;
    }

    .H1-infos-contact-wrapper {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .Infos-contact-wrapper {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .text-white {
        color: #FFFDF7;
    }

    .Contact-h1 {
        font-family: "Nyght Serif", serif;
        font-weight: 300;
        font-size: 20vw;
        color: #FFFDF7;
        text-transform: uppercase;
        line-height: 1;
        transform: translateY(100%);
        will-change: transform;
    }
}

/* TABLETTE — fenêtre des planches plus large */
@media screen and (min-width: 768px) and (max-width: 991px) {

    #fenetre-projet #image-projet {
        width: 80vw;
        max-height: 80vh;
    }
}

/* TABLETTE ET TÉLÉPHONE — les <br> écrits pour le desktop sont ignorés,
   le texte revient à la ligne naturellement selon la largeur de l'écran */
@media screen and (max-width: 991px) {

    .text-25px br,
    .text-2-portrait br,
    .text-inter-16px br {
        display: none;
    }
}

/* TÉLÉPHONE — moins de 768 px */
@media screen and (width < 768px) {

    .navbar {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    background-color: #302727;
    transition: background-color 0.3s ease;
}



.menu-button {
    width: auto;
    height: auto;
    display: block;
    border: none;
    background-color: transparent;
    cursor: pointer;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 20px;
    position: relative;
    
}



.menu-panel {
    width: 100%;
    height: 0;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-shrink: 0;
    box-sizing: border-box;
    background-color: var(--nav-fond);
    padding: 0px 30px;

    transition: height 0.5s ease, background-color 0.3s ease;
}

.menu-panel .line-separator {
    flex-shrink: 0;
    min-height: 1px;
}


.menu-projects {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: none;
    overflow: visible;
    align-items: start;
    gap: clamp(10px, 2.6vh, 28px);
    padding-bottom: clamp(16px, 3vh, 30px);
}


.menu-main-link {
    font-family: "Nyght Serif", serif;
    font-weight: 300;
    font-size: min(6vw, 7.5vh);
    text-transform: uppercase;
    color: var(--nav-texte);
}



.menu-project {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.project-title {
    font-family: "Nyght Serif", serif;
    font-weight: 300;
    font-size: min(4.4vw, 4.6vh);
    color: var(--nav-texte);
    text-transform: uppercase;
}

.project-category {
    font-family: "inter", sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: var(--nav-texte);
}

    .infos-hero-absolute {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    gap: 10px;
    padding-top: 70px;
    padding-bottom: 30px;
    padding-left: 20px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

    .text-14px {
        font-family: "General Sans", "Inter", sans-serif;
        font-weight: 500;
        font-size: 12px;
        text-align: left;
        color: #FFFDF7;
    }

    .span-text-align-right {
        display: block;
        text-align: left;
    }

    .text-18px {
        font-family: "inter", sans-serif;
        font-weight: 500;
        font-size: 16px;
        color: #FFFDF7;
        text-transform: uppercase;
    }

    .hero-section {
        width: 100vw;
        height: 100vh;
        background-color: #302727;
        position: relative;
    }

    .div-container {
        width: 100%;
        height: 100%;
    }

    .hero-content {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .hero-image-wrapper {
        width: 200px;
        height: 300px;
        position: absolute;
    }

    .hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-wrapper-1 {
        width: 50%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: start;
        position: relative;
        z-index: 1;
        padding-left: 9vw;
        padding-top: 20px;
        margin-bottom: 20%;
        
    }

    .hero-wrapper-2 {
        width: 50%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: end;
        justify-content: end;
        position: relative;
        z-index: 1;
        padding-right: 9vw;
        padding-bottom: 20px;
        margin-top: 20%;
    }

    .hero-wrapper-1,
    .hero-wrapper-2 {
        will-change: transform;
    }

    .hero-h1 {
        font-family: "Nyght Serif";
        font-weight: 300;
        font-size: 9vw;
        text-transform: uppercase;
        color: #FFFDF7;
    }

    .section-portrait {
        width: 100vw;
        height: auto;
        background-color: #FFFDF7;
        margin-top: 100px;
    }

    .portrait-content {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px 20px;
        gap: 20px;

    }

    .portrait-block-left {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        gap: 80px;
        align-items: start;
        justify-content: start;
    }

    .portrait-text-wrapper {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 15px;
    }

    .text-inter-20px {
        font-family: "inter", sans-serif;
        font-weight: 500;
        font-size: 16px;
        color: #515151;
        text-transform: uppercase;
    }

    .text-25px {
        font-family: "Nyght Serif", serif;
        font-weight: 300;
        font-size: 7vw;
        color: #4A4528;
    }

    .portrait-image-wrapper-1 {
        width: 100%;
        aspect-ratio: 4/5;
        overflow: hidden;
        position: relative;
    }

    .portrait-image {
        width: 100%;
        height: 120%;
        object-fit: cover;
    }


    .parallax-image {
        width: 100%;
        height: 120%;
        object-fit: cover;
        transform: translateY(-16.67%);
        will-change: transform;
    }



    .portrait-block-right {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 40px;
        
    }

    .div-spacer {
        width: 60%;
        height: 0px;
    }

    .text-2-portrait {
        font-family: "inter", sans-serif;
        font-weight: 300;
        font-size: 14px;
        color: #515151;
        text-align: start;
    }

    .portrait-image-wrapper-2 {
        width: 100%;
        aspect-ratio: 4/5;
        overflow: hidden;
        position: relative;
    }

    .Section-projets {
        width: 100vw;
        height: auto;
        background-color: #FFFDF7;
        margin-top: 100px;
    }

    .projets-content {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;

    }

    .projets-text-container {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 20px 20px;
        
    }

    .text-4vw {
        font-family: "Nyght Serif", serif;
        font-weight: 300;
        font-size: 7vw;
        color: #4A4528
    }

    .Section-cards-projet {
        width: 100vw;
        height: auto;
        margin-top: 100px;
    }

    .Projets-wrapper {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 20px 20px;
    }

    .card-item {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 20px;

    }

    .card-content {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 20px;

    }

    .text-card-wrapper {
        width: auto;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        align-items: start;
        gap: 30px;
    }

    .text-button-card-wrapper {
        width: auto;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 30px;
        align-items: start;
    }

    .text-inter-16px {
        font-family: "inter", sans-serif;
        font-weight: 300;
        font-size: 16px;
        color: #302727;
    }


    .image-card-wrapper {
        width: 100%;
        aspect-ratio: calc(4/5);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        order: -1;
        
    }

    .image-card {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .line-separator {
        width: 100%;
        height: 1px;
        background-color: #BBBBBB;
    }



    .Section-image-horizontal {
        width: 100vw;
        height: auto;
        margin-top: 100px;
    }

    .Image-horizontal-wrapper {
        width: 100%;
        aspect-ratio: 16/9;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px 20px;
        overflow: hidden;
        position: relative;
    }

    .Image-horizontal {
        width: 100%;
        height: 120%;
        object-fit: cover;
    }

    .Section-outils-1 {
        width: 100vw;
        height: auto;
        margin-top: 100px;
    }

    .Outils-content-1 {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: center;
        padding: 20px 20px;
        gap: 30px;
    }

    .Section-outils-2 {
        width: 100vw;
        height: auto;
        margin-top: 50px;
    }

    .Outils-content-2 {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        padding: 20px 20px;
        gap: 10px;
    }

    .line-wrapper-outils {
        width: 100%;
        height: 130px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;

    }

    .span-gris-clair {
        color: #5C5C5C;
        font-size: 14px;
    }

    .software-hover-logo {
        position: fixed;
        top: 0;
        left: 0;

        width: 100px;
        height: 100px;

        pointer-events: none;
        z-index: 9999;

        opacity: 0;

        transform: translate(-50%, -140%) scale(0.8);

        transition:
            opacity 0.2s ease,
            transform 0.2s ease;
    }

    .software-hover-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .software-hover-logo.is-visible {
        opacity: 1;
        transform: translate(-50%, -140%) scale(1);
    }

    .section-contact {
        width: 100vw;
        height: 100vh;
        background-color: #302727;
        margin-top: 100px;
        overflow: hidden;
    }

    .Contact-content {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: space-between;
        padding-top: clamp(110px, 16vh, 150px);
    }

    .contact-wrapper-content {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
        padding-left: 20px;
        padding-right: 20px;
    }

    .text-contact-wrapper {
        width: 100%;
        max-width: none;
        height: auto;
        display: flex;
        align-items: start;
        padding-left: 20px;
        padding-right: 20px;
    }

    .H1-infos-contact-wrapper {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .Infos-contact-wrapper {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: start;
        gap: 15px;
    }

    .text-white {
        color: #FFFDF7;
    }

    .Contact-h1 {
        font-family: "Nyght Serif", serif;
        font-weight: 300;
        font-size: 20vw;
        color: #FFFDF7;
        text-transform: uppercase;
        line-height: 1;
        transform: translateY(100%);
        will-change: transform;
    }

    

/* Centrage uniquement lorsque la fenêtre est ouverte */
    #fenetre-projet[open] {
        justify-content: safe center;
    }

/* La croix reste indépendante du contenu centré */
    #fermer-projet {
        position: absolute;
        top: 12px;
        right: 12px;
        margin: 0;
    }

    #titre-projet,#compteur-projet {
        margin: 0;
        flex-shrink: 0;
        text-align: center;
    }

    .slider-projet {
        display: grid;
        width: 100%;
        min-width: 0;
        flex-shrink: 0;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 12px;
    }

    #fenetre-projet #image-projet {
        grid-column: 1 / -1;
        grid-row: 1;
        width: 100%;
        height: auto;
        max-height: none;
        margin: 0;
        object-fit: contain;
    }

    #planche-precedente {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
    }

    #planche-suivante {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
    }

    #fenetre-projet {
        padding: 64px 12px;
        gap: 16px;
    }
}
/* TÉLÉPHONE — bouton « Voir le projet » sur toute la largeur */
@media screen and (width < 768px) {

    .Button-projet {
        width: 100%;
        padding: 16px 22px;
    }
}

/* TÉLÉPHONE — texte de la section contact un peu plus petit */
@media screen and (width < 768px) {

    .text-contact-wrapper .text-25px {
        font-size: 5.5vw;
    }
}

/* TÉLÉPHONE — footer et page mentions légales */
@media screen and (width < 768px) {

    .site-footer {
        padding: 0 20px 24px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ml-header {
        padding: 20px;
    }

    .ml-main {
        padding: 40px 20px 80px;
        gap: 40px;
    }

    .ml-section p {
        font-size: 15px;
    }
}
