@font-face {
  font-family: 'faune';
  src: url(Fonts/Faune-Text_Regular.woff2) format('woff2');
  font-weight: 400;
}

@font-face {
  font-family: 'faune';
  src: url(Fonts/Faune-Text_Bold.woff2) format('woff2');
  font-weight: 700;
}

@font-face {
  font-family: 'Luciole';
  src: url(Fonts/Luciole-Regular.woff2) format('ttf');
  font-weight: 400; 
}

@font-face {
  font-family: 'Luciole';
  src: url(Fonts/Luciole-Bold.woff2) format('ttf');
  font-weight: 700; 
}

@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

body {
  font-family: 'faune', Arial, sans-serif;
  margin: 0;
  padding: 0, 5rem;
  background-color: light-dark(var(--main-color-light) , var(--main-color));
}

body.accessible-font {
  font-family: "Luciole", "Comic Sans MS" ;
  font-size: 1.1em;
  line-height: 1.8; /* espacement accru */
  letter-spacing: 0.05em;
  font-weight: 500;
  --main-color: #C5C9E5;
  --sub-color: #EAEDFF;
  --title-color: #342C58;
  --text-color: #33355B;
  --main-color-light: #C5C9E5;
  --sub-color-light: #EAEDFF;
  --title-color-light: #342C58;
  --text-color-light: #33355B;
}

* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  list-style: none;
}

:root {
  color-scheme: light dark;
  --main-color: #1e202c;
  --sub-color: #8877be;
  --title-color:#60519b;
  --text-color: #bfc0d1;
  --main-color-light:#C5C9E5;
  --sub-color-light: #EAEDFF;
  --title-color-light:#7970A6;
  --text-color-light: #383A66;
}


/* Menu déroulant Crédits */
.credits-wrapper {
    position: relative;
    display: contents;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 10px;
    background-color: light-dark(var(--main-color-light), var(--main-color));
    border: 1px solid light-dark(var(--title-color-light), var(--title-color));
    border-radius: 8px;
    padding: 12px 5px;
    margin-top: -5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.credits-wrapper:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.dropdown-toggle p {
    font-size: 0.9rem;
    color: light-dark(var(--text-color-light), var(--text-color));
    margin: 0;
}

.dropdown-toggle .toggle-switch {
    width: 50px;
    height: 28px;
}

.dropdown-toggle .toggle-switch .slider:before {
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
}

.dropdown-toggle input:checked + .slider:before {
    transform: translateX(22px);
}
/* Toggle Switch */
.accessibilite {
  display: flex;
  flex-direction: column ; 
  align-items: center;
  align-self: center;
  gap: 1rem ; 
  padding: 2rem;
}

.accessibilite p {
    margin: 0;
    font-size: 1rem;  /* ← Force la taille à rester normale */
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    cursor: pointer;
    margin: 0;
    padding: 0;
    align-self: center;
}

.toggle-switch input {
    display: none;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: light-dark(#ccc, #555);
    border-radius: 34px;
    transition: 0.3s;
    margin: 0;
    padding: 0;
}

.slider:before {
    content: "";
    position: absolute;
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: light-dark(#333, white);
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .slider {
    background-color: light-dark(var(--title-color-light), var(--title-color));
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.toggle-switch:hover .slider {
    opacity: 0.8;
}

/* Menu déroulant sur mobile */
@media (max-width: 767px) {
  .dropdown-menu {
    position: static;
    background-color: transparent;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .credits-wrapper:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dropdown-toggle {
    border-top: none;
    padding: 15px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .dropdown-toggle p {
    text-align: center;
  }
}
/*FIN BOUTON ACCESSIBILITE */
/*Header*/
.header {
  display: grid;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  grid-template-columns: repeat(2, auto);
  justify-content: space-between;
  align-items: center;
  background-color: light-dark(var(--main-color-light) , var(--main-color));
  padding: 0 24px;
  height: 90px;
  gap: 1rem;
  z-index: 1000;
}

.header a {
  color:light-dark(var(--title-color-light) , var(--title-color));
  text-decoration: none;
  text-align: right;
  align-items: start;
  border-bottom: none;
  padding: 0 1.5rem ;
  font-size: 1.5rem;
}

.header a:hover {
  color: light-dark(var(--text-color-light), var(--text-color));
}

.header img {
  align-self: left;
  margin-top: 0;
  padding-right: 5rem;
}

/* Cacher la checkbox */
.menu-checkbox {
  display: none;
}

/* Bouton hamburger caché par défaut */
.menu-icon {
  display: none;
  cursor: pointer;
  position: relative;
  width: 40px;
  height: 40px;
}

.menu-icon .material-symbols-outlined {
  font-size: 40px;
  color: light-dark(var(--title-color-light) , var(--title-color));
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.3s ease;
}

.icon-close {
  opacity: 0;
}

@media (max-width: 767px) {
  /* Afficher le bouton hamburger */
  .menu-icon {
    display: flex;
  }
  
  /* Logo plus petit */
  .header img {
    width: 50px;
    height: 50px;
    padding-right: 0;
  }
  
  /* Menu caché par défaut */
  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 80px);
    background-color: light-dark(var(--main-color-light) , var(--main-color));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  }
  
  /* Menu ouvert quand checkbox est cochée */
  .menu-checkbox:checked ~ .nav-menu {
    right: 0;
  }
  
  .header a {
    width: 100%;
    text-align: left;
    padding: 15px 10px;
    border-bottom: 1px solid ;
    color: light-dark(var(--text-color-light) , var(--text-color)) ;
  }
  .header .home {
    border-bottom: none;
    text-decoration: none;
  }
  .header a:hover,
  .header a:active {
    color: light-dark(var(--title-color-light), var(--title-color));
  }
  
   .menu-icon {
    display: block;
  }
  
  /* Quand le menu est ouvert, afficher la croix et cacher le hamburger */
  .menu-checkbox:checked ~ .menu-icon .icon-hamburger {
    opacity: 0;
  }
  
  .menu-checkbox:checked ~ .menu-icon .icon-close {
    opacity: 1;
  }
}
/*Fin de Header*/
/*Première page accueil*/

.accueil-texte {
  font-size: clamp(2rem, 6vw, 15rem);
  line-height: 1.1;
  color: light-dark(var(--title-color-light) , var(--title-color));
}
.accueil {
  display: grid;
  grid-template-columns: 2fr 1fr; /* Texte prend 2/3, fleur 1/3 */
  align-items: center;
  gap: 2rem;
  min-height: 100vh;
  padding: 2rem;
  z-index: 1;
  position: sticky;
  top: 0;
}
.accueil-visuel {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 500px;
}
.Fleurnoire {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.3;
}

.Fleurviolette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  clip-path: inset(100% 0 0 0); /* Cache la fleur du bas vers le haut */
  transition: clip-path 0.1s ease-out, opacity 0.3s ease-out;
}
.scroll-spacer {
  height: 150vh; /* Crée un espace d'une hauteur d'écran */
  background-color: transparent;
}
.suite-contenu {
  /*Section suivante qui pousse le scroll*/
  position: relative;
  z-index: 2;
  background-color: light-dark(var(--sub-color-light) , var(--sub-color));
  min-height: 100vh;
  padding: 2rem;
}

@media (prefers-color-scheme: light) {
  .Fleurnoire {
    content: url(Img/Fleurnoire_Light.svg);
  }
  .Fleurviolette {
    content: url(Img/Fleurviolette_Light.svg);
  }
}

@media (max-width: 768px) {
  /*Version Mobile*/
  .accueil {
    padding-top: 80px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .fleur-container {
    max-width: 300px;
    margin: 0 auto;
  }
}
/*Fin Première page d'accueil*/
/*Deuxième page d'accueil*/
.portfolio {
  position: relative;
  z-index: 10;
  background: light-dark(var(--sub-color-light) , var(--sub-color));
  padding: 4rem 0;
  overflow: hidden;
}
.h2_portfolio {
  margin-right: 2rem;
  margin-bottom: 3rem;
  color: light-dark(var(--text-color-light), var(--text-color));
  text-align: right;
  font-size: clamp(2rem, 8vw, 5rem);
}
.portfolio-row {
  display: flex;
  gap: 2rem;
  padding: 0rem 0rem 2rem 0rem;
  width: max-content;
}

.portfolio-item {
  width: 350px;
  height: 250px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s ease;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Animation gauche vers droite */
.row-left-to-right {
  animation: scrollLeft 20s linear infinite;
  transition: animation-duration 0.5s ease;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Animation droite vers gauche */
.row-right-to-left {
  animation: scrollRight 20s linear infinite;
  transition: animation-duration 0.5s ease;
}

@keyframes scrollRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Zoom au survol */
.portfolio-item:hover {
  transform: scale(1.08);
}

/* Version mobile */
@media (max-width: 768px) {
  .portfolio-item {
    width: 250px;
    height: 180px;
  }

  .portfolio h2 {
    text-align: center;
  }
}
/*Fin deuxième page d'accueil*/
/*Début troisième page d'accueil*/
.cv {
  position: relative;
  z-index: 1;
  background: light-dark(var(--main-color-light) , var(--main-color));
  padding: 32px 0;
}

.grid_presentation {
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  padding: 125px 64px 64px 64px;
  max-height: 100vh;
}

.left {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
}

.left h2 {
  color: light-dark(var(--text-color-light) , var(--text-color));
  font-size: clamp(2rem, 8vw, 5rem);
  margin: 0 ;
  margin-bottom: 32px;
}

.left p {
  margin: 16px 0;
  color: light-dark(var(--text-color-light) , var(--text-color));
  line-height: 1.5;
  max-width: 500px;
  justify-content: space-around;
  text-align: justify;
  text-justify: inter-word;
}

.left .bloc {
    width: 85%;
    display: flex;
    align-items: center;
    justify-content: end;
    margin-top: 30px;
}
.left a {
  color: light-dark(var(--title-color-light) , var(--title-color));
  font-size: 1.2rem;
  display : flex ;
  align-items: end ;
  gap: 12px ;
  flex-direction: row-reverse;
}

.left a span {
    color: light-dark(var(--title-color-light) , var(--title-color));
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: end;
    margin-bottom: 3px;
}

.right {
  grid-row: 1;
  grid-column: 2;
  height: 100%;
}

.right .img {
  width: 100%;
  aspect-ratio: 3/4;
  max-height: 600px;
  align-items: bottom;
  overflow: hidden;
  position: relative;
  background: url('./Img/Portfolio_img/PurpleColor/autoportrait_purple.jpg');
  opacity: 70%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  object-fit: cover;
}

@media (max-width: 767px) {
  .right .img {
    max-height: 1000px;
  }
}
/*Fin troisième page d'accueil*/
/*Paragraphes et titres standards*/
p {
  margin-top: 0;
  margin-bottom: 0, 01rem;
  color: light-dark(var(--text-color-light) , var(--text-color));
}
.h2_portfolio {
  margin-top: 7rem;
  color: light-dark(var(--text-color-light) , var(--text-color));
  text-align: right;
  font-size: clamp(2rem, 8vw, 5rem);
}
h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color:light-dark(var(--text-color-light) , var(--text-color));
  font-size: larger;
}

h4 {
  color: light-dark(var(--main-color-light) , var(--main-color));
  margin-bottom: 10px;
}
/*Fin pagraphe et titres standards*/
/*DEBUT DU CV*/
.parent-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  max-width: 1200px;
  margin: 150px;
}

.presentation {
  background: light-dark(var(--sub-color-light) , var(--sub-color));
  padding: 20px;
  border-radius: 8px;
}

.child-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin: 15px 0;
}

.categorie {
  grid-column: 1;
  font-weight: bold;
  margin: 0;
}

.info {
  grid-column: 2;
  margin: 0;
}

.long-text {
  margin: 15px 0;
}

/* Styles du carrousel */
.carousel-container {
  background: light-dark(var(--sub-color-light) , var(--sub-color));
  padding: 20px;
  border-radius: 8px;
  position: relative;
}

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

.carousel-slides {
  display: flex;
  transition: transform 0.3s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
}

/* Cacher les inputs radio */
input[type='radio'][name='carousel'] {
  display: none;
}

/* Navigation du carrousel */
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.carousel-nav label {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-nav label:hover {
  background-color: #999;
}

/* Déplacement des slides selon le radio sélectionné */
#slide1:checked ~ .carousel-wrapper .carousel-slides {
  transform: translateX(0%);
}

#slide2:checked ~ .carousel-wrapper .carousel-slides {
  transform: translateX(-100%);
}

#slide3:checked ~ .carousel-wrapper .carousel-slides {
  transform: translateX(-200%);
}

/* Coloration des indicateurs */
#slide1:checked ~ .carousel-nav label[for='slide1'],
#slide2:checked ~ .carousel-nav label[for='slide2'],
#slide3:checked ~ .carousel-nav label[for='slide3'] {
  background-color: #333;
}

/* Boutons de navigation flèche */
.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 15px;
}

.carousel-header h3 {
  margin: 0;
}

.carousel-arrows {
  display: flex;
  gap: 10px;
}

.carousel-arrows label {
  width: 40px;
  height: 40px;
  color: light-dark(var(--text-color-light) , var(--text-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: color 0.3s;
  user-select: none;
}

.carousel-arrows label:hover {
  color:light-dark(var(--main-color-light) , var(--main-color));
}

.carousel-arrows label:active {
  color: #000;
}

/* Cacher les flèches par défaut */
.carousel-arrows label {
  display: none;
}

/* Afficher les bonnes flèches selon la slide active */
#slide1:checked ~ .carousel-header .prev-slide3,
#slide1:checked ~ .carousel-header .next-slide2,
#slide2:checked ~ .carousel-header .prev-slide1,
#slide2:checked ~ .carousel-header .next-slide3,
#slide3:checked ~ .carousel-header .prev-slide2,
#slide3:checked ~ .carousel-header .next-slide1 {
  display: flex;
}

/* Changer le titre selon la slide active */
#carousel-title::before {
  content: 'Scolarité';
}
#slide2:checked ~ .carousel-header #carousel-title::before {
  content: 'Expériences professionnelles';
}
#slide3:checked ~ .carousel-header #carousel-title::before {
  content: 'Loisirs et actions bénévoles';
}
/*FIN DU CV*/
/*DEBUT PAGE PORTFOLIO*/
.grid-explications {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin: 150px 100px;
}

.grid-explications .left {
    grid-column: 1;
    grid-row: 1;
}

.grid-explications h1{
  color: light-dark(var(--title-color-light), var(--title-color));
  margin-bottom: 1rem;
}

.grid-explications .left .explications {
    grid-column: 1;
    align-items: center;
    justify-items: center;
}

.grid-explications img {
    grid-column: 2;
    width: 100%;
    height: 300px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Grid pour les images */
.grid-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    gap: 1rem;
    margin: 50px 100px;
}

/* Images horizontales */
.grid-images img[data-format="horizontal"],
.grid-images img.horizontal {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
}

/* Images verticales */
.grid-images img[data-format="vertical"],
.grid-images img.vertical {
    grid-row: span 2;
    aspect-ratio: 9 / 16;
}

/* Images carrées */
.grid-images img[data-format="square"],
.grid-images img.square {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 1 / 1;
}

/* Images horizontales grandes */
.grid-images img[data-format="span"],
.grid-images img.span {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 1 / 1;
}

/* Toutes les images */
.grid-images img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Responsive*/
@media (max-width: 1024px) {
    .grid-images {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        grid-auto-rows: 200px;
        margin: 30px 50px;
    }
}

@media (max-width: 768px) {
    .grid-explications {
        grid-template-columns: 1fr;
        margin: 20px;
    }

    .grid-explications .left {
        grid-column: 1;
        grid-row: 1;
    }

    .grid-explications img {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        height: auto;
        max-height: 300px;
    }
    .grid-images {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
        margin: 20px;
    }
    
    .grid-images img.horizontal,
    .grid-images img.panoramic {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .grid-images {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    
    .grid-images img {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

/*FIN PAGE PORTFOLIO*/
.credits p {
  padding: 0;
  margin: 100px;
}

.credits a {
  color: light-dark(var(--text-color-light), var(--text-color));
  text-decoration: underline;
}

/*NAVIGATION ENTRE PROJETS PORTFOLIO*/
.project-navigation {
  position: fixed;
  top: 100px; /* Juste sous le header */
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 24px;
  gap: 1rem;
  z-index: 999;
  transition: transform 0.3s ease-in-out;
}

.project-navigation.hide {
  transform: translateY(-100%); /* Cache la navigation */
}

.nav-group {
  display: flex;
  gap: 0.5rem;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: light-dark(var(--title-color-light), var(--title-color));
  color: light-dark(var(--main-color-light), var(--text-color));
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'faune', Arial, sans-serif;
  font-size: 1rem;
  transition: all 0.1s ease;
}

.nav-btn:hover:not(:disabled) {
  background-color: light-dark(var(--text-color-light), var(--main-color));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.nav-btn .material-symbols-outlined {
  font-size: 24px;
}

.nav-home {
  background-color: light-dark(var(--main-color-light), var(--main-color));
}

.nav-home:hover {
  background-color: light-dark(var(--title-color-light), var(--title-color));
}

/* Responsive */
@media (max-width: 767px) {
  .project-navigation {
    padding: 8px 12px;
    gap: 8px;
  }

  .nav-btn {
    padding: 10px 14px;
    font-size: 1,5rem;
  }

  .nav-text {
    display: none; /* Masquer le texte sur mobile, garder seulement les icônes */
  }

  .nav-btn .material-symbols-outlined {
    font-size: 20px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .nav-btn {
    padding: 13px 17px;
  }
}

/* Ajuster le contenu principal pour qu'il ne soit pas caché sous la navigation */
body.has-project-nav {
  padding-top: 130px; /* 80px header + 50px navigation */
}
/*NAVIGATION ENTRE PROJETS PORTFOLIO*/
/*IMAGES CLIQUABLES*/
/* Modal pour la galerie */
        .gallery-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            padding: 40px;
            padding-bottom: 60px;
            object-fit: contain;
            background-color: rgba(0, 0, 0, 0.85);
            z-index: 2000;
            justify-content: center;
            align-items: flex-start;
            overflow-y: auto;
            max-height: fit-content;
        }

        .gallery-modal.active {
            display: flex;
        }

        .gallery-modal-content {
            position: relative;
            max-width: 80vw;
            max-height: fit-content;
            animation: modalSlideIn 0.3s ease;
            
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: scale(0.9);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .gallery-modal-content img {
            width: 100%;
            height: auto;
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            margin-top: 40px;
        }

        .modal-close {
            position: fixed;
            top: 40px;
            right: 40px;
            color: light-dark(var(--sub-color-light), var(--sub-color));
            background-color: transparent;
            border: none;
            font-size: 48px;
            width: 80px;
            height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            z-index: 2001;
        }

        .modal-close:hover {
          color: light-dark(var(--title-color-light), var(--title-color));
          transform: scale(1.1);
        }

        .modal-nav {
            top: 50%;
            transform: translateY(-50%);
            background-color: light-dark(var(--sub-color-light), var(--sub-color));
            border: none;
            font-size: 28px;
            cursor: pointer;
            padding: 12px 16px;
            border-radius: 4px;
            transition: all 0.2s;
        }

        .modal-nav:hover {
            background-color: light-dark(var(--title-color-light), var(--title-color)) ;
        }

        .modal-prev {
            left: -60px;
            position: fixed;
            left: 20px;
            z-index: 2001;
        }

        .modal-next {
            right: -60px;
            position: fixed;
            right: 20px;
            z-index: 2001;
        }

        @media (max-width: 768px) {
            .modal-close {
                top: 10px;
                right: 10px;
            }

            .modal-prev {
                left: 10px;
            }

            .modal-next {
                right: 10px;
            }

            .gallery-modal-content {
                max-width: 95vw;
                max-height: 85vh;
            }
        }

        /* Rendre les images de la galerie cliquables */
        .grid-images img {
            cursor: pointer;
            transition: filter 0.2s;
        }

        .grid-images img:hover {
            filter: brightness(0.95);
        }
/*FIN IMAGES CLIQUABLES PORTFOLIO*/
/*/////////////////PAGES PORTFOLIO/////////////////*/
.portfolio-presentation {
  margin-top: 500px;
  font-size: clamp(2rem, 8vw, 20rem);
  color: light-dark(var(--title-color-light), var(--title-color));
}
/*GRANDE GRILLE PLEINE PAGE*/
.big-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  background-color: light-dark(var(--sub-color-light), var(--sub-color));
  background-size: cover;
  height: 80vh;
  margin: 100px 15px;
  padding: 50px;
  border-radius: 15px;
  gap: 30px;
}

.big-grid a {
  text-decoration: none;
  color: light-dark(var(--text-color-light), var(--text-color));
  display: contents;  
}

.text-block {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.big-grid h1 {
  font-size: 3rem;
  padding-top: 50px;
  padding-bottom: 20px;
}

.big-grid p {
  font-size: 1.25rem;
  margin:  50px 0;
  padding: 0;
}

.little-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  align-items: center;
}

.big-image {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  align-items: center;
}
/*FIN GRANDE GRILLE PLEINE PAGE*/
/*Début grille petite*/
* {
  margin: 0;
}

.drawing {
  display: flex;
  align-items: center;
  justify-content: center;
  background: light-dark(var(--main-color-light), var(--main-color));
  font-size: 1.25rem;
  overflow: hidden;
  position: relative;
  border-radius: 15px;

}

.drawing p,
.drawing img {
  grid-column: 1/-1;
  grid-row: 1/-1;
  transition: opacity 1s;
}

.drawing p {
  opacity: 0;
}

.drawing:hover p {
  opacity: 1;
  z-index: 10;
}

.drawing:hover img {
  opacity: 0.2;
  filter: grayscale(1.s);
}

.grid-drawing {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 120px;
  gap: 10px;
  margin: 5px;
}

.drawing img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 1280px) {
  .grid-drawing {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: scroll;
  }
  .grid-drawing::-webkit-scrollbar{
    display: none;
  }
  .drawing {
    height: 120px;
    min-width: 220px;
  }
}

/*Fin grille petite*/
/*Début grille médium*/
.project-medium {
  display: flex;
  flex-direction: column; 
  background: light-dark(var(--title-color-light), var(--title-color));
  border-radius: 15px;
  overflow: hidden;
  margin-top: 15px;
  transition: transform 0.5s ease;
  }

.project-medium img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
  border-radius: 0;
  margin: 0;
  padding: 0;  
  object-position: center 30%;
  flex-shrink: 0;
}

.project-medium:hover {
  transform: scale(1.03);
}

.project-medium p.description {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  padding: 5px 15px 5px;
  margin: 0 15px;
  text-align: justify;
  min-height: 64px;
  color: light-dark(var(--text-color-light), var(--main-color));
}

.project-medium h3 {
  display: flex;
  align-items: start;
  justify-content: start;
  font-size: 1.5rem;
  padding: 10px ;
  margin: 0 15px;
  color: light-dark(var(--text-color-light), var(--main-color));
}

.project-medium p.more {
  display: flex;
  align-items: end;
  justify-content: end;
  font-size: 1.25rem;
  padding: 0 15px;
  margin: auto 25px 15px;
  color: light-dark(var(--text-color-light), var(--text-color));
}

.grid-medium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 10px;
  grid-auto-rows: auto;
}


@media (max-width: 767px) {
  .grid-medium {
    grid-template-columns: repeat(1, 1fr);
    margin: 5px 10px;
  }
  .project-medium {
    pointer-events: none; /* Désactive le clic sur tout le conteneur */
  }
  .project-medium p.more {
    pointer-events: auto; /* Réactive le clic uniquement sur "Voir plus" */
    cursor: pointer; 
  }
  .project-medium p.description {
    margin: 5px 20px;
  }
  .project-medium h3 {
    margin: 0 20px;
  }
}

@media (min-width: 780px) {
  .grid-medium {
    grid-template-columns: repeat(2, 1fr);
    margin: 10px;
  }
  .project-medium p.description {
    margin: 5px 20px;
  }
  .project-medium h3 {
    margin: 0 20px;
  }
}

@media (min-width: 1280px) {
  .grid-medium {
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
  }
}

/*Fin grille médium*/
/*/////////////////FIN PAGES PORTFOLIO/////////////////*/