* {
  box-sizing: border-box;
}
:root {
  --speed: 0.85;
  --primary: #fff;
  --size: 30;
  --ease: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --x: 0;
  --y: 0;

  /* Variables pour le mode clair */
  --bg-color-light: #fffff7;
  --text-color-light: #000000;
  --box-shadow-light: 0px 0px 32px rgba(0, 0, 0, 0.6),
    inset 0px 0px 32px rgba(0, 0, 0, 0.6);

  /* Variables pour le mode sombre */
  --bg-color-dark: #1a1a1a;
  --text-color-dark: #ffffff;
  --box-shadow-dark: 0px 0px 32px rgba(255, 255, 255, 0.6),
    inset 0px 0px 32px rgba(255, 255, 255, 0.6);
}

/*--------pour-mac--------*/

body {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  background-color: var(--bg-color-light);
  color: var(--text-color-light);
  transition: background-color 0.9s, color 0.9s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.dark-mode {
  background-color: var(--bg-color-dark);
  color: var(--text-color-dark);
}

/* Titres */
h1 {
  font-family: "Oswald", sans-serif;
  font-size: 42px;
  font-weight: 700;
  text-transform: uppercase;
}

h2 {
  font-family: "Oswald", sans-serif;
  font-size: 32px;
  font-weight: 700;
}

h3 {
  font-family: "Oswald", sans-serif;
  font-size: 24px;
  font-weight: 700;
}

/* Texte standard */
p {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 500;
}

.dark-mode-button {
  z-index: 1000;
  position: fixed;
  top: 10px;
  right: 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.dark-mode-button i {
  font-size: 40px;
  color: #7f8fa6;
  text-shadow: 1px 2px 2px rgba(0, 0, 0, 0.2);
}

.dark-mode-button input {
  display: none;
}

.switch {
  display: inline-block;
  height: 40px;
  width: 100px;
  background-color: #7f8fa6;
  border-radius: 40px;
  margin: 0 5px;
  box-shadow: 1px 2px 2px 0 rgba(0, 0, 0, 0.2);
  position: relative;
  transition: all 0.5s;
}

.switch::after {
  content: "";
  display: inline-block;
  height: 30px;
  width: 30px;
  background-color: #f5f6fa;
  border-radius: 50%;
  position: absolute;
  top: 5px;
  left: 5px;
  box-shadow: 1px 2px 2px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.5s;
}

.material-icons--flip {
  -webkit-transform: scaleX(-1) rotateZ(35deg);
  transform: scaleX(-1) rotateZ(35deg);
}
.dark-mode-button input:checked + .switch::after {
  left: 65px;
  background-color: #4b6584;
}

.dark-mode {
  background-color: #2f3640;
}

.dark-mode .switch {
  background-color: #d1d8e0;
}

.dark-mode i {
  color: #d1d8e0;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.menu__item:nth-of-type(1) {
  --x: 25;
  --y: 19;
}
.menu__item:nth-of-type(2) {
  --x: 50;
  --y: 35;
}
.menu__item:nth-of-type(3) {
  --x: 75;
  --y: 63;
}
.menu__item:nth-of-type(4) {
  --x: 16;
  --y: 54;
}
.menu__item:nth-of-type(5) {
  --x: 43;
  --y: 70;
}

main {
  height: 100dvh;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  -webkit-scroll-snap-type: y mandatory;
  -ms-scroll-snap-type: y mandatory;
  scroll-snap-type: y mandatory;
}
section {
  align-items: center;
  display: flex;
  font-size: 50px;
  height: 100dvh;
  justify-content: center;
  -webkit-scroll-snap-align: center;
  scroll-snap-align: center;
  width: 100vw;
}
.menu {
  position: fixed;
  z-index: 2;
}
.menu__toggle {
  opacity: 0;
  position: absolute;
}
.menu__toggle:checked ~ .menu__content .menu__item {
  --active-x: var(--x);
  --active-y: var(--y);
  --scale: 1;
}
.menu__toggle:checked ~ .menu__toggle-label:not(.menu__toggle-label--closer) {
  --clip: circle(1000% at 0% 0%);
  height: 100dvh;
  width: 100vw;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.menu__toggle:checked ~ .menu__toggle-label .menu__icon:nth-of-type(1) {
  --scale: 0;
}
.menu__toggle:checked ~ .menu__toggle-label .menu__icon:nth-of-type(2) {
  --scale: 1;
}
.menu__toggle-label {
  cursor: pointer;
  height: calc(var(--size, 20) * 0.5vmin);
  width: calc(var(--size, 20) * 0.5vmin);
  display: block;
  --clip: circle(100% at 0% 0%);
  -webkit-clip-path: var(--clip);
  clip-path: var(--clip);
  position: absolute;
  top: 0;
  left: 0;
  transition: backdrop-filter calc(var(--speed, 1) * 1s) var(--ease),
    clip-path 0s, -webkit-clip-path 0s;
}
.menu__toggle-label--closer {
  z-index: 1000;
  --scale: 0;
}
.menu__icon {
  --scale: 1;
  height: calc(var(--size, 20) * 0.25vmin);
  width: calc(var(--size, 20) * 0.25vmin);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-70%, -70%) scale(var(--scale, 1));
  fill: var(--primary);
  transition: all calc(var(--speed, 1) * 1s) var(--ease);
}
.menu__icon:nth-of-type(2) {
  --scale: 0;
}
.menu__content {
  background: #4a506b;
  margin: 0;
  display: block;
  list-style-type: none;
  filter: url("#goo");
  position: absolute;
  top: 0;
  height: 0;
  width: 0;
  left: 0;
  z-index: 2;
}
.menu__content:after {
  background: #4a506b;
  content: "";
  border-radius: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
  height: calc(var(--size, 20) * 1vmin);
  width: calc(var(--size, 20) * 1vmin);
  top: 0;
  left: 0;
}
.menu__item {
  font-size: 20px;
  background: #4a506b;
  border-radius: 50%;
  cursor: pointer;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  list-style-type: none;
  height: calc(var(--size, 20) * 1vmin);
  left: calc(var(--active-x, 0) * 1vw);
  overflow: hidden;
  place-items: center;
  position: absolute;
  text-align: center;
  top: calc(var(--active-y, 0) * 1dvh);
  transform: translate(-50%, -50%);
  transition: all calc(var(--speed, 1) * 1s) calc(var(--delay, 0) * 1s)
    var(--ease);
  width: calc(var(--size, 20) * 1vmin);
}

.menu__link {
  align-items: center;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  display: flex;
  justify-content: center;
  height: 100%;
  width: 100%;
}
.menu__link:hover {
  text-decoration: underline;
}

/*---mon code---*/

/*------Accueil------*/

.header_accueil {
  background-image: url(photo/accueil/header.jpg);
  background-size: cover; /* Assure que l'image remplit tout l'espace */
  background-position: center; /* Centre l'image */
  height: 87dvh; /* Pleine hauteur de la fenêtre */
  width: 100%; /* Pleine largeur */
  background-attachment: scroll;
  box-shadow: inset 0px 0px 60px rgba(0, 0, 0, 2.6);
}
@supports (-webkit-touch-callout: none) {
  .header_accueil {
    background-attachment: scroll;
  }
}

/*--------effet-text-mon-nom---------*/

/* Conteneur principal */
.container_nom {
  overflow: hidden;
  width: 100%;
  height: 61dvh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Boîte contenant le titre et le rôle */
.container_nom .box {
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

/* Style pour le titre */
.title {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  height: 50px;
}

/* Animation du bloc derrière le titre */
.title .block {
  width: 0%;
  height: 110px;
  background: #999387;
  position: absolute;
  animation: mainBlock 2s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards;
}

/* Style du texte du titre */
.title h1 {
  filter: drop-shadow(18px 12px 7px black);
  font-family: "Poppins", sans-serif;
  color: #fffff7;
  font-size: 100px;
  animation: mainFadeIn 2s forwards;
  animation-delay: 1.6s;
  opacity: 0;
  display: flex;
  align-items: baseline;
  position: relative;
}

/* Animation du point à côté du titre */
.title h1 span {
  border-radius: 50%;
  background: #007bff;
  animation: popIn 0.8s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards;
  animation-delay: 2s;
  margin-left: 10px;
}

/* Style pour le rôle */
.role {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  height: 100px;
  margin-top: -10px;
}

/* Animation du bloc derrière le rôle */
.role .block {
  margin-top: 85px;
  width: 0%;
  height: 90px;
  background: #999387;
  position: absolute;
  animation: secBlock 2s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards;
  animation-delay: 2s;
}

/* Style du texte du rôle */
.role p {
  backdrop-filter: sepia(1);
  margin-top: 100px;
  animation: secFadeIn 2s forwards;
  animation-delay: 3.2s;
  opacity: 0;
  font-weight: 400;
  font-family: "Lato", sans-serif;
  color: #ffffff;
  font-size: 45px;
  text-transform: uppercase;
  letter-spacing: 4px;
}

/* Animation du bloc principal */
@keyframes mainBlock {
  0% {
    width: 0%;
    left: 0;
  }
  50% {
    width: 100%;
    left: 0;
  }
  100% {
    width: 0;
    left: 100%;
  }
}

/* Animation du bloc secondaire */
@keyframes secBlock {
  0% {
    width: 0%;
    left: 0;
  }
  50% {
    width: 100%;
    left: 0;
  }
  100% {
    width: 0;
    left: 100%;
  }
}

/* Animation de fondu pour le titre */
@keyframes mainFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Animation du point qui apparaît */
@-webkit-keyframes popIn {
  0% {
    width: 0;
    height: 0;
    background: #e9d856;
    opacity: 0;
  }
  50% {
    width: 10px;
    height: 10px;
    background: #e9d856;
    opacity: 1;
    bottom: 45px;
  }
  65% {
    width: 7px;
    height: 7px;
    bottom: 0px;
    width: 15px;
  }
  80% {
    width: 10px;
    height: 10px;
    bottom: 20px;
  }
  100% {
    width: 7px;
    height: 7px;
    background: #e9d856;
    bottom: 13px;
  }
}
@keyframes popIn {
  0% {
    width: 0;
    height: 0;
    background: #e9d856;
    opacity: 0;
  }
  50% {
    width: 10px;
    height: 10px;
    background: #e9d856;
    opacity: 1;
    bottom: 45px;
  }
  65% {
    width: 7px;
    height: 7px;
    bottom: 0px;
    width: 15px;
  }
  80% {
    width: 10px;
    height: 10px;
    bottom: 20px;
  }
  100% {
    width: 7px;
    height: 7px;
    background: #e9d856;
    bottom: 13px;
  }
}

/* Animation de fondu pour le rôle */
@keyframes secFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.5;
  }
}

.btn_contact {
  margin-bottom: 22px;
  position: absolute;
  right: 0;
  bottom: 0px; /* Commence caché */
  width: 30%;
  height: 60px;
  background: #4a506b;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: top 0.8s forwards;
  animation-delay: 4s;
  text-decoration: none;
}

/* Utilisation de ::before pour masquer l'élément au début */
.btn_contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #4a506b; /* Même couleur que le bouton */
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

/* Après l'animation, ::before devient invisible */
.btn_contact:hover::before {
  opacity: 0;
}

/* Style du texte et des icônes dans le btn_contact */
.btn_contact span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  opacity: 0;
  animation: fadeInText 1s forwards;
  animation-delay: 4.5s;
}

.btn_contact span i {
  margin-right: 10px;
  font-size: 22px;
  color: #ffffff;
  opacity: 0;
  animation: fadeInText 1s forwards;
  animation-delay: 4.5s;
}

/* Animation du bouton */
@keyframes top {
  0% {
    opacity: 0;
    bottom: 0px;
  }
  100% {
    opacity: 1;
    bottom: 100px;
  }
}

/* Animation pour le texte et l'icône */
@keyframes fadeInText {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/*-----section1----*/

.section1-accueil {
  align-content: center;
  height: 100dvh;
}

.section3-accueil {
  position: relative;
  align-content: center;
  height: 100dvh;
}

/*-------effet text--------*/
.container_effet {
  height: 90dvh;
  background-color: var(--bg-color-light);
  padding: 22px;
  transition: all 0.2s cubic-bezier(0.99, 1.14, 0, 1.11);
}

body.dark-mode .container_effet {
  background-color: var(--bg-color-dark);
}

h3#text,
.container_effet > span {
  font-size: 20px;
  letter-spacing: 0.7px;
  font-weight: 300;
  color: #fafafafa;
  transition: all 0.2s cubic-bezier(0.99, 0.44, 0, 1.11);
}

h3#text,
body.dark-mode .container_effet > span {
  color: #1a1a1a;
}

.sec1-container,
.sec2-container {
  max-width: 50%;
  text-align: center;
  box-shadow: 0px 0px 32px rgba(0, 0, 0, 0.6),
    inset 0px 0px 32px rgba(0, 0, 0, 0.6);
  border-radius: 35px;
}

.sec1-container {
  height: auto;
  margin: auto;
  padding: 0px 40px;
}

.sec2-container {
  position: absolute;
  top: 28%;
  left: 25%;
  padding: 100px 40px;
}

body.dark-mode .sec1-container,
body.dark-mode .sec2-container {
  box-shadow: var(--box-shadow-dark);
}

.sec1-container H2 {
  padding: 80px 0px;
}

.sec1-container p {
  padding-bottom: 80px;
}

/*------Accueil--------Les different pages----------*/

.integration,
.divi,
.stage,
.programmation {
  position: relative;
  height: 60dvh;
  box-shadow: var(--box-shadow-light);
  text-align: center;
  transition: box-shadow 0.3s;
}

body.dark-mode .integration,
body.dark-mode .divi,
body.dark-mode .stage,
body.dark-mode .programmation {
  box-shadow: var(--box-shadow-dark);
}

.integration .background-image,
.divi .background-image,
.stage .background-image,
.programmation .background-image {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
}

.integration .background-image {
  background-image: url(photo/accueil/integration.png);
  clip-path: polygon(0% 0%, 100% 0%, 100% 150%, 0% -50%);
  -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 150%, 0% -50%);
}
.divi .background-image {
  background-image: url(photo/accueil/portfolio3.png);
  clip-path: polygon(0% 0%, 100% 0%, 75% 0%, 0% 150%);
  -webkit-clip-path: (0% 0%, 100% 0%, 75% 0%, 0% 150%);
  box-shadow: inset 0px 0px 32px rgba(0, 0, 0, 1.6);
}
.stage .background-image {
  background-image: url(photo/accueil/stage2.png);
  clip-path: polygon(0% 0%, 100% 0%, 100% 150%, 0% -50%);
  -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 150%, 0% -50%);
  background-position: right;
}
.programmation .background-image {
  background-image: url(photo/accueil/prog1.png);
  clip-path: polygon(0% 0%, 100% 0%, 75% 0%, 0% 150%);
  -webkit-clip-path: polygon(0% 0%, 100% 0%, 75% 0%, 0% 150%);
}

.integration .content,
.divi .content,
.stage .content,
.programmation .content {
  position: relative; /* Permet de garder le texte au-dessus de l'image */
  z-index: 1; /* Assure que le texte est au-dessus de l'image */
  color: black; /* Assurez-vous que le texte soit lisible */
  padding: 20px;
  transition: color 0.3s;
}

body.dark-mode .integration .content,
body.dark-mode .divi .content,
body.dark-mode .stage .content,
body.dark-mode .programmation .content {
  color: var(--text-color-dark);
}

.integration .content p,
.divi .content p,
.stage .content p,
.programmation .content p {
  max-width: 80%; /* Limite la largeur du texte */
  margin: 0 auto; /* Centrer le texte */
}

/*-----btn pulse-----*/

.section2-Accueil .pulse-button {
  position: relative;
  top: 50%;
  left: 50%;
  margin-left: -50px;
  margin-top: -50px;
  display: block;
  width: 160px;
  height: 160px;
  font-weight: light;
  text-align: center;
  line-height: 160px;
  letter-spacing: -1px;
  color: white;
  border: none;
  border-radius: 50%;
  background: #4a506b;
  box-shadow: 0 0 0 0 rgba(90, 153, 212, 0.5);
  -webkit-animation: pulse 1.5s infinite;
}

a {
  text-decoration: none;
}

.pulse-button:hover {
  -webkit-animation: none;
  cursor: url(photo/curseur/smiley.png) 16 16, auto;
}

.section2-Accueil .integration:hover {
  cursor: url(photo/curseur/sourire.png) 16 16, auto;
}
.section2-Accueil .divi:hover {
  cursor: url(photo/curseur/amoureux.png) 16 16, auto;
}
.section2-Accueil .stage:hover {
  cursor: url(photo/curseur/heureux.png) 16 16, auto;
}
.section2-Accueil .programmation:hover {
  cursor: url(photo/curseur/detective.png) 16 16, auto;
}

@-webkit-keyframes pulse {
  0% {
    -moz-transform: scale(0.9);
    -ms-transform: scale(0.9);
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
  }
  70% {
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -webkit-transform: scale(1);
    transform: scale(1);
    box-shadow: 0 0 0 50px rgba(90, 153, 212, 0);
  }
  100% {
    -moz-transform: scale(0.9);
    -ms-transform: scale(0.9);
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(90, 153, 212, 0);
  }
}

/*-------footer------*/

.footer_accueil {
  height: 30dvh;
  margin-top: 200px;
}

.footer_accueil .contact {
  margin-top: 85px;
}

.footer_accueil hr {
  width: 100%; /* Définit la largeur à 100% */
  max-width: 300px; /* Limite la largeur de l'hr à 151px */
  border: 2px solid red; /* Ajoute une bordure rouge de 2px */
  height: 2px; /* Ajuste la hauteur de la ligne */
  background-color: red; /* Applique une couleur de fond rouge à l'hr */
  margin: 50px;
}
.social a {
  margin: 20px;
}
.contact a {
  color: #4a506b;
}
.contact a:hover {
  text-decoration: underline;
}

body.dark-mode .contact a {
  color: #007663;
}

/*----------slide-accueil--------*/
.slid-container {
  display: flex;
  justify-content: center;
}

@-webkit-keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 7));
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 7));
  }
}
.slid-container .slider {
  background: white;
  height: auto;
  margin: auto;
  overflow: hidden;
  position: relative;
}

body.dark-mode .slid-container .slider {
  background: var(--bg-color-dark);
}

.slid-container .slider .slide-track {
  -webkit-animation: scroll 40s linear infinite;
  animation: scroll 40s linear infinite;
  display: flex;
  width: calc(250px * 14);
}
.slid-container .slider .slide {
  height: auto;
  width: 100%;
  margin: 20px 0;
}

.slid-container .slide img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: contain;
}

/*-----section2-accueil-------*/
.section2-accueil {
  height: 20dvh;
}

.toggle-button {
  display: none;
}

/*----------------------------page--integration------------------------*/

/*------section-1----integration--et--Prog----*/

.header_integration {
  background-image: url(photo/integration/inte.png);
}

.header_prog {
  background-image: url(photo/progr.png);
}

.header_integration,
.header_prog {
  position: relative;
  background-size: 100% auto;
  background-position: center top;
  height: 82dvh; /* Pleine hauteur de la fenêtre */
  width: 100%; /* Pleine largeur */
  background-attachment: fixed;
  box-shadow: inset 0px 0px 60px rgba(0, 0, 0, 1);
  margin-top: -8px;
}

.description {
  height: 100dvh;
}

.nom-text,
.description {
  display: none !important;
}
.nom-text {
  position: absolute;
  top: 20%;
  left: 50%;
}

.description p {
  max-width: 500px;
}

.nom-text {
  font-family: "Exo 2", Helvetica, Arial, Lucida, sans-serif;
  font-weight: 700;
  font-size: 9dvw;
  background-image: url(photo/integration/integration2.png);
  background-size: cover; /* Assure que l'image remplit tout l'espace */
  background-position: center; /* Centre l'image */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent; /* Rend le texte transparent pour voir l'image */
  color: transparent; /* S'assure que le texte reste transparent */
}

body.dark-mode .nom-text {
  text-shadow: 0em 0.08em 1.2em #fffff7;
}

/*------time---line---------------------------------------*/

.timeline {
  position: relative;
  height: auto; /* Hauteur de la timeline */
  width: 100%;
  overflow: hidden;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(photo/int-timeline/page-int.png); /* Fond par défaut */
  background-size: 100% auto;
  background-position: center top;
  background-position: center;
  background-attachment: fixed;
  filter: blur(5px) brightness(0.5); /* Applique le flou */
  z-index: -1; /* Place le fond flou en arrière-plan */
  transition: background-image 0.5s ease-in-out; /* Transition fluide */
}

.time-imtegration-bg-1::before {
  background-image: url(photo/int-timeline/final.jpg);
}

.time-imtegration-bg-2::before {
  background-image: url(photo/int-timeline/projet-1.jpg);
}

.time-imtegration-bg-3::before {
  background-image: url(photo/int-timeline/projet-2.jpg);
}

.time-imtegration-bg-4::before {
  background-image: url(photo/int-timeline/projet-3.jpg);
}

.time-imtegration-bg-5::before {
  background-image: url(photo/int-timeline/projet-4.jpg);
}

.time-imtegration-bg-6::before {
  background-image: url(photo/int-timeline/projet-5.jpg);
}

.time-imtegration-bg-7::before {
  background-image: url(photo/int-timeline/projet-6.jpg);
}

.time-imtegration-bg-8::before {
  background-image: url(photo/int-timeline/projet-7.jpg);
}

/*----prog-----*/

.time-prog-bg-1::before {
  background-image: url(photo/prog-timeline/projet-1.png);
}

.time-prog-bg-2::before {
  background-image: url(photo/prog-timeline/projet-2.png);
}

.time-prog-bg-3::before {
  background-image: url(photo/prog-timeline/projet-3.png);
}

.time-prog-bg-4::before {
  background-image: url(photo/prog-timeline/projet-4.png);
}

/* INTRO SECTION
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.intro {
  background: #f45b69;
  padding: 100px 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
}

/* TIMELINE
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.timeline ul {
  padding: 50px 0;
}

.timeline ul li {
  list-style-type: none;
  position: relative;
  width: 6px;
  margin: 0 auto;
  padding-top: 50px;

  background-color: var(--bg-color-dark);
}

body.dark-mode .timeline ul li {
  background-color: var(--bg-color-light);
}

.timeline ul li::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: inherit;
  z-index: 1;
}

.timeline ul li div {
  position: relative;
  bottom: 0;
  width: 400px;
  padding: 15px;
  background: #999387;
}

.timeline ul li div::before {
  content: "";
  position: absolute;
  bottom: 7px;
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline ul li:nth-child(odd) div {
  left: 45px;
}

.timeline ul li:nth-child(odd) div::before {
  left: -15px;
  border-width: 8px 16px 8px 0;
  border-color: transparent #999387 transparent transparent;
}

.timeline ul li:nth-child(even) div {
  left: -439px;
}

.timeline ul li:nth-child(even) div::before {
  right: -15px;
  border-width: 8px 0 8px 16px;
  border-color: transparent transparent transparent #999387;
}

time {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.time-integration h3,
.time-prog h3 {
  width: -webkit-max-content; /* Ancien préfixe pour WebKit */
  width: max-content;
  margin-left: -80px;
  display: ruby-text;
  border: 3px solid #999387;
  border-radius: 50px;
  padding: 20px;
  background-color: var(--bg-color-light);
}

.titre-chrono-h3 {
  margin-left: -160px !important;
}
.timeline ul li.time-chrono::after {
  display: none;
}

body.dark-mode .time-integration h3,
body.dark-mode .time-prog h3 {
  background-color: var(--bg-color-dark);
}

.time-integration .time-container,
.time-prog .time-container {
  border: 2px solid var(--bg-color-light);
  border-radius: 10px;
  padding: 20px;
  background-color: #999387;
}

.time-integration .time-container h2,
.time-prog .time-container h2 {
  padding: inherit;
  background: var(--bg-color-light) !important;
  max-width: 100%;
}

body.dark-mode .time-integration .time-container,
body.dark-mode .time-prog .time-container {
  background-color: var(--bg-color-dark);
}

.timeline ul li:nth-child(even) div::before {
  border-width: 8px 0px 8px 16px;
  border-color: transparent transparent transparent #fffff7;
}

.timeline ul li:nth-child(odd) div::before {
  border-width: 8px 16px 8px 0px;
  border-color: transparent #fffff7 transparent transparent;
}

.timeline ul li.in-view::after {
  background: var(--bg-color-light) !important;
}

body.dark-mode .timeline ul li.in-view::after {
  background: #999387 !important;
}
.time-container h2 {
  color: var(--bg-color-dark) !important;
}

.time-btn,
.btn-projet {
  font-size: 20px;
  border: 3px solid #999387;
  border-radius: 50px;
  padding: 20px;
  background-color: var(--bg-color-light);
}

.time-btn,
.btn-projet {
  color: #4a506b;
}
.btn-projet {
  width: 170px;
  margin-top: 40px;
  color: black;
  text-decoration: none;
  box-shadow: inset 0px 0px 15px rgba(0, 0, 0, 1);
}
.btn-projet a {
  color: black;
  text-decoration: none;
}
.int-1-sec-1 a,
.int-2-sec-1 a,
.int-3-sec-1 a,
.int-4-sec-1 a,
.int-5-sec-1 a,
.int-6-sec-1 a,
.int-7-sec-1 a,
.int-8-sec-1 a {
  display: block;
  width: 170px;
}
/* EFFECTS
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.timeline ul li::after {
  transition: background 0.5s ease-in-out;
}

.timeline ul li.in-view::after {
  background: #f45b69;
}

.timeline ul li div {
  visibility: hidden;
  opacity: 0;
  transition: all 0.5s ease-in-out;
}

.timeline ul li:nth-child(odd) div {
  transform: translate3d(200px, 0, 0);
}

.timeline ul li:nth-child(even) div {
  transform: translate3d(-200px, 0, 0);
}

.timeline ul li.in-view div {
  transform: none;
  visibility: visible;
  opacity: 1;
}

/* GENERAL MEDIA QUERIES
–––––––––––––––––––––––––––––––––––––––––––––––––– */

@media screen and (max-width: 900px) {
  .timeline ul li div {
    width: calc(100vw - 35px); /* Largeur adaptée à l'écran avec une marge */
    left: 50% !important; /* Centrer horizontalement */
    transform: translateX(-50%) !important; /* Ajuster la position */
  }

  .timeline ul li:nth-child(odd) div,
  .timeline ul li:nth-child(even) div {
    left: 50% !important; /* Centrer pour tous les éléments */
    transform: translateX(-50%) !important; /* Ajuster la position */
  }

  .timeline ul li div::before {
    display: none; /* Masquer les flèches sur les petits écrans */
  }
  .time-integration h3,
  .time-prog h3 {
    margin-top: 150px;
  }
}

/* EXTRA/CLIP PATH STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.timeline-clippy ul li::after {
  width: 40px;
  height: 40px;
  border-radius: 0;
}

.timeline-rhombus ul li::after {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  -webkit-clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.timeline-rhombus ul li div::before {
  bottom: 12px;
}

.timeline-star ul li::after {
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  -webkit-clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}

.timeline-heptagon ul li::after {
  clip-path: polygon(
    50% 0%,
    90% 20%,
    100% 60%,
    75% 100%,
    25% 100%,
    0% 60%,
    10% 20%
  );
  -webkit-clip-path: polygon(
    50% 0%,
    90% 20%,
    100% 60%,
    75% 100%,
    25% 100%,
    0% 60%,
    10% 20%
  );
}

.timeline-infinite ul li::after {
  animation: scaleAnimation 2s infinite;
}

@keyframes scaleAnimation {
  0% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.25);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}

/* FOOTER STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.page-footer {
  position: fixed;
  right: 0;
  bottom: 20px;
  display: flex;
  align-items: center;
  padding: 5px;
  color: black;
  background: rgba(255, 255, 255, 0.65);
}

.page-footer a {
  display: flex;
  margin-left: 4px;
}

/*------commun-page -des-projets------------*/

.icon-exigence {
  height: 87dvh;
  background: RGBA(74, 80, 107, 0.6);
}

body.dark-mode .icon-exigence {
  background: rgba(255, 255, 247, 0.6);
}

.icon-exigence h3,
.icon-exigence p {
  color: white;
}
body.dark-mode .icon-exigence h3,
body.dark-mode .icon-exigence p {
  color: #000000;
}
.icon-exigence img {
  margin: 30px 30px 30px 0px;
  width: clamp(50px, 10dvh, 300px);
}
.int-1-sec-1 {
  height: 87dvh;
}
.titre-projet {
  position: relative;
  margin: 30px;
}
.detail-titre {
  position: relative;
  top: 20%;
  left: 18%;
  max-width: 80%; /* Limite la largeur au conteneur parent */
  overflow: hidden; /* Optionnel - cache le débordement si nécessaire */
}

.detail-titre p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto; /* Césure des mots si nécessaire */
  margin-bottom: 0; /* Supprime la marge Bootstrap par défaut */
}

.header_accueil-prog-1::before {
  background-image: url("programmation/programmation-1/section1.png");
}
.header_accueil-prog-2::before {
  background-image: url("programmation/programmation-2/section1.png");
}
.header_accueil-prog-3::before {
  background-image: url("programmation/programmation-3/section1.png");
}
.header_accueil-prog-4::before {
  background-image: url("programmation/programmation-4/section1.png");
}
.header_accueil-prog-5::before {
  background-image: url("programmation/programmation-5/section1.png");
}
.header_accueil-int-8::before {
  background-image: url("integration/integration8/section1.png");
}
.header_accueil-int-7::before {
  background-image: url("integration/integration7/section1.png");
}
.header_accueil-int-6::before {
  background-image: url("integration/integration6/section1.png");
}
.header_accueil-int-5::before {
  background-image: url("integration/integration5/section1.png");
}
.header_accueil-int-4::before {
  background-image: url("integration/integration4/section1.png");
}
.header_accueil-int-3::before {
  background-image: url("integration/integration3/section1.png");
}
.header_accueil-int-2::before {
  background-image: url("integration/integration2/section1.png");
}
.header_accueil-int-1::before {
  background-image: url("integration/integration1/section1.png");
}
/* Effet de flou et overlay sombre comme .timeline */
.header_accueil-prog-1,
.header_accueil-prog-2,
.header_accueil-prog-3,
.header_accueil-prog-4,
.header_accueil-prog-5,
.header_accueil-int-8,
.header_accueil-int-7,
.header_accueil-int-6,
.header_accueil-int-5,
.header_accueil-int-4,
.header_accueil-int-3,
.header_accueil-int-2,
.header_accueil-int-1 {
  position: relative; /* Nécessaire pour le positionnement absolu du pseudo-élément */
  height: auto;
  width: 100%;
  overflow: hidden; /* Cache les débordements du flou */
  position: relative;
  z-index: 1; /* Plus bas que le menu */
}
.header_accueil-prog-1::before,
.header_accueil-prog-2::before,
.header_accueil-prog-3::before,
.header_accueil-prog-4::before,
.header_accueil-prog-5::before,
.header_accueil-int-8::before,
.header_accueil-int-7::before,
.header_accueil-int-6::before,
.header_accueil-int-5::before,
.header_accueil-int-4::before,
.header_accueil-int-3::before,
.header_accueil-int-2::before,
.header_accueil-int-1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(4px) brightness(0.5); /* Flou + assombrissement */
  z-index: 1; /* Place l'overlay en arrière-plan */
}

/* pour le contenu (texte, etc.) dans .header_accueil-int-8 */
.header_accueil-prog-1 .prog-1-sec-1,
.header_accueil-prog-2 .prog-2-sec-1,
.header_accueil-prog-3 .prog-3-sec-1,
.header_accueil-prog-4 .prog-4-sec-1,
.header_accueil-prog-5 .prog-5-sec-1,
.header_accueil-int-8 .int-8-sec-1,
.header_accueil-int-7 .int-7-sec-1,
.header_accueil-int-6 .int-6-sec-1,
.header_accueil-int-5 .int-5-sec-1,
.header_accueil-int-4 .int-4-sec-1,
.header_accueil-int-3 .int-3-sec-1,
.header_accueil-int-2 .int-2-sec-1,
.header_accueil-int-1 .int-1-sec-1 {
  position: relative; /* Pour le z-index */
  z-index: 2; /* Place le contenu au-dessus de l'overlay */
  color: white; /* Exemple : texte visible sur fond sombre */
}

.int-8-sec-2 {
  box-shadow: 0px 0px 60px rgba(0, 0, 0, 0.7);
}

.img-proj1-prog {
  background-image: url("programmation/programmation-1/proj1.png");
}
.img-proj2-prog {
  background-image: url("programmation/programmation-2/proj2.png");
}
.img-proj3-prog {
  background-image: url("programmation/programmation-3/proj3.png");
}
.img-proj4-prog {
  background-image: url("programmation/programmation-4/proj4.png");
}
.img-proj5-prog {
  background-image: url("programmation/programmation-5/proj5.png");
}

.img-proj1 {
  background-image: url("integration/integration1/proj1.png");
}
.img-proj2 {
  background-image: url("integration/integration2/proj2.png");
}
.img-proj3 {
  background-image: url("integration/integration3/proj3.png");
}
.img-proj4 {
  background-image: url("integration/integration4/proj4.png");
}
.img-proj5 {
  background-image: url("integration/integration5/proj5.png");
}
.img-proj6 {
  background-image: url("integration/integration6/proj6.png");
}
.img-proj7 {
  background-image: url("integration/integration7/proj7.png");
}
.img-proj8 {
  background-image: url("integration/integration8/proj8.png");
}

.img-proj1-prog,
.img-proj2-prog,
.img-proj3-prog,
.img-proj4-prog,
.img-proj5-prog,
.img-proj1,
.img-proj2,
.img-proj3,
.img-proj4,
.img-proj5,
.img-proj6,
.img-proj7,
.img-proj8 {
  height: 87dvh;
}

.text-exigence {
  width: 90%;
  height: 53dvh;
  padding: 50px;
  overflow: scroll;
  overflow-x: hidden;
  box-shadow: 0px 0px 60px rgba(0, 0, 0, 0.7);
}

body.dark-mode .text-exigence,
body.dark-mode .int-8-sec-2 {
  box-shadow: 0px 0px 60px rgba(255, 255, 255, 0.7);
}
.titre-exigence {
  margin: 50px 0px 50px 0px;
}

/*------------@media----responsive----------*/

@media screen and (max-width: 1200px) {
  .header_accueil {
    height: 100dvh;
  }
  .detail-titre h1 {
    margin-top: 90px;
  }
  .icon-exigence {
    padding-left: 40px;
    margin-top: 83px;
    max-height: 67dvh;
  }
}

@media screen and (max-width: 1091px) {
  .role p,
  .role .block {
    margin-top: 190px;
  }
  .container_effet {
    display: none;
  }
  .sec1-container,
  .sec2-container {
    max-width: 90%;
  }
  .sec2-container {
    left: 6%;
  }
}

@media screen and (max-width: 1000px) {
  .container_effet > span {
    font-size: 25px;
    padding: 17px;
  }
}

@media screen and (max-width: 992px) {
  .nom-text,
  .description {
    display: inline-block !important;
    display: flex !important;
    position: absolute;
  }
  .nom-text {
    top: 30%;
    left: 13%;
  }
  .description {
    top: 19%;
    left: 8%;
    margin: 35px;
  }
  .description p {
    margin-top: 35px;
  }

  .header_prog,
  .header_integration {
    background-image: none !important;
    height: 100dvh;
  }
}
@media screen and (max-width: 768px) {
  .img-proj1,
  .img-proj2,
  .img-proj3,
  .img-proj4,
  .img-proj5,
  .img-proj6,
  .img-proj7,
  .img-proj8 {
    width: 97%;
  }
}
@media screen and (max-width: 682px) {
  .title h1 {
    font-size: 40px;
  }
  .role p {
    font-size: 20px;
  }
  .role {
    margin-top: -100px;
  }
  .container_effet {
    display: none;
  }
  hr {
    display: none;
  }
  .btn_contact {
    margin-bottom: 23px;
  }
  .detail-titre h1 {
    font-size: 2rem;
  }
}

@media screen and (max-width: 677px) {
  .btn_contact {
    margin-bottom: 0px;
  }
}

@media screen and (max-width: 638px) {
  .role {
    margin-top: 0;
    text-align: center;
    display: block !important; /* Remplace un éventuel display: flex */
  }
  .title h1 {
    text-align: center;
  }
  .role p {
    margin-top: 60px;
  }
  .title h1 span {
    margin-left: 0px;
  }
}

@media screen and (max-width: 600px) {
  .container_effet > span {
    font-size: 30px; /* Assurez-vous qu'il n'y a pas de conflit ailleurs */
  }
  .title h1 span {
    display: none;
  }
}

@media screen and (max-width: 490px) {
  .title h1,
  .role p {
    text-align: center !important;
  }
  .role {
    display: block;
  }

  .role .block {
    margin-top: 50px !important;
  }

  .sec1-container,
  .sec2-container {
    margin: 30px 15px;
  }
  .sec2-container {
    top: 0%;
    left: auto;
  }

  .sec2-container p {
    font-size: 16px;
  }
  .sec2-container h2 {
    font-size: 35px;
    padding-bottom: 50px;
  }
  .footer_accueil .row {
    width: 100% !important;
  }
  .section2-Accueil .pulse-button {
    margin-top: 50px;
    left: 45%;
  }
  .section2-Accueil .content {
    margin: auto;
  }

  .divi .background-image,
  .programmation .background-image {
    clip-path: polygon(0% 0%, 100% 0%, 100% 50%, 0% 50%);
    -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 50%, 0% 50%);
  }

  .integration .background-image,
  .stage .background-image {
    clip-path: polygon(0% 100%, 100% 100%, 100% 50%, 0% 50%);
    -webkit-clip-path: polygon(0% 100%, 100% 100%, 100% 50%, 0% 50%);
  }

  .social {
    margin-bottom: 60px;
  }
  .integration .content p,
  .divi .content p,
  .stage .content p,
  .programmation .content p {
    max-width: 100%; /* Limite la largeur du texte */
    margin: 60px 0px; /* Centrer le texte */
  }
  .integration,
  .divi,
  .stage,
  .programmation {
    height: 69dvh;
  }
  .container_nom {
    height: 71dvh;
  }
  .btn_contact {
    bottom: 0px;
  }
  .timeline ul li::after {
    bottom: -40px;
  }
}

input,
button,
textarea {
  -webkit-appearance: none;
  -webkit-border-radius: 0;
  border-radius: 0;
}

@media screen and (max-width: 413px) {
  .header_accueil {
    height: 137dvh;
  }
  .timeline {
    zoom: 75%;
  }
  .timeline ul li.in-view div {
    zoom: 125%;
  }
  .detail-titre {
    position: relative;
    top: 40%;
    left: 2%;
  }
  .titre-projet {
    margin-bottom: 70px !important;
    margin: 0;
  }

  .icon-exigence {
    height: auto;
    margin-top: 80px;
    padding: 30px;
  }
  .int-1-sec-1 .row {
    margin-right: 0;
  }

  .detail-titre {
    margin-bottom: 60px;
  }

  .detail-icon h3 {
    font-size: 20px;
    padding: 0;
  }
  .detail-icon .col-auto {
    flex: 1;
    min-width: 245px; /* Surcharge le comportement flex par défaut */
  }

  .detail-icon p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 0; /* Enlève la marge bootstrap par défaut si nécessaire */
  }
}
