
#btn-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 9999;
  background: #fff;
  border: 2px solid #181818;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  padding: 10px;
  cursor: pointer;
  transition: background 0.3s, border 0.3s, transform 0.3s;
  opacity: 0.92;
}
#btn-top:hover {
  background: #181818;
  border-color: #181818;
  transform: scale(1.08);
}
#btn-top svg {
  display: block;
  margin: auto;
  stroke: #181818;
  transition: stroke 0.3s;
}
#btn-top:hover svg {
  stroke: #fff;
}
.light-theme #btn-top {
  background: #181818;
  border-color: #fff;
}
.light-theme #btn-top:hover {
  background: #fff;
  border-color: #181818;
}
.light-theme #btn-top svg {
  stroke: #fff;
}
.light-theme #btn-top:hover svg {
  stroke: #181818;
}
.logo-light {
  display: none !important;
}
.logo-dark {
  display: inline-block !important;
}
.light-theme .logo-dark {
  display: none !important;
}
.light-theme .logo-light {
  display: inline-block !important;
}

.light-theme .carte-projet h3 {
  color: #f5f5f5;
}
.light-theme .footer-site {
  background: #f0f0f0;
  color: #222;
}
.light-theme footer a {
  color: #181818;
}

.light-theme .container-A-propos {
  background-color: #fff;
}

.light-theme .description-A-propos {
  color: #222;
}
.light-theme h1,
.light-theme h2,
.light-theme h4,
.light-theme h5,
.light-theme h6 {
  color: #222;
}

.light-theme p,
.light-theme li,
.light-theme span,
.light-theme .side-text,
.light-theme .description-A-propos,
.light-theme .intro-bas,
.light-theme .scroll-gauche {
  color: #222;
}

body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background-color: #181818;
  overflow-x: hidden;
}

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

.header {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  padding: 0px 48px;
  margin: 0;
  width: 100%;
  height: 100px;
  max-width: 100vw;
  box-sizing: border-box;
  background: #181818;
  z-index: 1000;
}

.headerNav {
  flex: 2;
  display: flex;
  justify-content: center;
  gap: 32px;
}

.burger{
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.burger span{
  width: 25px;
  height: 3px;
  background: #f5f5f5;
  border-radius: 2px;
}

.headerLang-mobile {
  display: none;
}

.headerLang {
  display: flex;
  gap: 8px;
  align-items: center;
}

.headerLogo img {
  height: 75;
}

.btnNav {
  background: none;
  border: none;
  font-size: 1rem;
  padding: 8px 24px;
  border-radius: 8px;
  cursor: pointer;
  color: #f5f5f5;
}

.btnNav:hover {
  background: #f5f5f5;
  color: #181818;
}

.btn-cv {
  display: inline-block;
  margin-top: 32px;
  padding: 10px 32px;
  background: linear-gradient(180deg, #d9d9d9 0%, #bdbdbd 100%);
  border: none;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #181818 !important;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.btn-cv:hover {
  background: linear-gradient(360deg, #d9d9d9 0%, #bdbdbd 100%);
  color: #181818 !important;
}


.btnTheme {
background: linear-gradient(180deg, #d9d9d9 0%, #bdbdbd 100%);
  border: none;
  border-radius: 24px;
  padding: 8px 16px;
  font-size: 1rem;
  cursor: pointer;
  color: #181818;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-right: 8px;
  font-weight: 600;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
}
.btnTheme:hover {
  background: linear-gradient(360deg, #d9d9d9 0%, #bdbdbd 100%);
}

.btnLang {
  background: linear-gradient(180deg, #d9d9d9 0%, #bdbdbd 100%);
  border: none;
  border-radius: 24px;
  padding: 8px 16px;
  font-size: 1rem;
  cursor: pointer;
  color: #181818;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-left: 0;
  font-weight: 600;
  transition: background 0.3s;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btnLang:hover {
  background: linear-gradient(360deg, #d9d9d9 0%, #bdbdbd 100%);
}

/* PREMIERE SECTION--------------------------------------------------------------------------*/

.main-central {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100vw;
}

.side-text.left {
  left: 25vw;
  text-align: left;
}

.side-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: #f5f5f5;
}

.side-text.right {
  right: 25vw;
  text-align: right;
}

.intro-bas {
  margin-top: -50px;
  text-align: center;
}

.scroll-gauche {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  margin-left: 32px;
  color: #f5f5f5;
}

.arrow-down {
  display: flex;
  align-items: center;
  margin-right: 8px;
}


.solutions-text {
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* DEUXIEME SECTION--------------------------------------------------------------------------*/

.main-content {
  min-height: 100vh;
  opacity: 1;
  transition: opacity 0.7s;
  position: relative;
  z-index: 1;
}

.ligne-scroll-solutions {
  position: absolute;
  left: 0;
  bottom: -100px;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #181818;
  pointer-events: none;
}

.prenom-central {
  font-size: 7vw;
  font-weight: 900;
  color: #f5f5f5;
  letter-spacing: 0.05em;
  margin: 0 auto;
  text-align: center;
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
}

.footer-central {
  position: fixed;
  left: 0;
  bottom: 200px;
  width: 100vw;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #f5f5f5;
  pointer-events: none;
}
.flechePosition {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5em;
  margin-left: 50px;
}
.arrow-down {
  font-size: 1.3rem;
  font-weight: bold;
  margin-right: 4px;
}
.textecentre{
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

/* SECTION À PROPOS --------------------------------------------------------------------------*/

.section-A-propos {
  padding: 80px 0 100px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container-A-propos {
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  max-width: 800px;
  padding: 48px 40px;
  margin: 0 16px;
  background-color: #202020;
}

.titre-A-propos {
  font-size: 2.2rem;
  font-weight: 700;
  color: #f5f5f5;
  margin-bottom: 32px;
  text-align: center;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.02em;
}

.description-A-propos {
  font-size: 1.15rem;
  color: #f5f5f5;
  line-height: 1.8;
  font-family: 'Montserrat', Arial, sans-serif;
  text-align: justify;
  margin: 0;
}

/* SECTION PROJETS --------------------------------------------------------------------------*/

.section-projets {
  padding: 80px 0 100px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.titre-projets {
  font-size: 2.2rem;
  font-weight: 700;
  color: #f5f5f5;
  margin-bottom: 48px;
  text-align: center;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.02em;
  position: relative;
  width: 400px;
}


.carrousel-projets {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow-x: hidden;
  padding: 20px;
}

.carte-projet {
  flex: 1 1 320px;          
  max-width: 500px;
  min-width: 320px;
  height: 400px;
  display: flex;
  align-items: flex-end;
  background: #343434 no-repeat center center / cover;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.4s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  margin-bottom: 40px;
}
/* Thème clair */
.light-theme {
  background: #f7f7f7;
  color: #222;
}

.light-theme .header {
  background: #f7f7f7;
  color: #222;
}


.light-theme .btnNav,
.light-theme .btnLang,
.light-theme .btnTheme {
  background: none;
  color: #222;
  border: 1px solid transparent;
}

.light-theme .btnLang:hover,
.light-theme .btnTheme:hover {
  background: #d4d4d4;
}
.light-theme .btnNav:hover{
  background: #181818;
  color: #f5f5f5;
}
.light-theme .carte-projet {
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  background-color: #fff;
}

.light-theme .footer-site {
  background: #f0f0f0;
  color: #222;
}

.light-theme .titre-A-propos,
.light-theme .titre-projets {
  color: #222;
}

.carte-projet:hover {
  transform: scale(1.04) translateY(-8px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 2;
  filter: brightness(1.08);
}
.carte-projet:hover .desc-projet {
  opacity: 1;
  transition: opacity 0.3s;
}

.carte-projet::after {
  content: "";
  display: block;
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  background-image: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.8));
  color: #f5f5f5;
}
.desc-projet {
  padding: 0 24px 18px;
  color: #f5f5f5;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transform: translateY(calc(100% - 54px));
  transition: all 0.4s;
}

/* FOOTER --------------------------------------------------------------------------*/
.footer-site {
  width: 100%;
  color: #f5f5f5;
  text-align: center;
  padding: 20px 0 16px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-top: 1px solid #e0e0e0;
}
.footer-site a {
  color: #f5f5f5;
  text-decoration: none;
  transition: color 0.2s;
}


@media (max-width: 768px) {
  
  .header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
  }
  .headerLogo {
    order: 1;
    margin-right: auto;
    padding: 0;
    margin-top: 15px;
  }
  .burger {
    display: flex;
    order: 3;
    position: relative;
    margin-left: auto;
    z-index: 1001;
  }
  .headerLang {
    display: none;
  }
  .headerNav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #202020;
    flex-direction: column;
    padding: 1px 1px 100px 1px;
    z-index: 999;
    gap: 20px;
    overflow-y: auto;
  }
  .headerNav.active {
    display: flex;
  }
  .headerNav .btnNav {
    font-size: 1rem;
    padding: 12px 16px;
    text-align: center;
    border-radius: 8px;
    transition: background 0.3s;
  }
  .headerNav .btnNav:hover {
    background: #333;
  }
  .headerLang-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    /* border-top: 1px solid #333; */
    /* margin-top: 20px; */
    width: 100%;
    align-items: center;
  }
  .headerLang-mobile .btnTheme,
  .headerLang-mobile .btnLang {
    width: 50%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 0.95rem;
  }

  .light-theme .burger span{
  width: 25px;
  height: 3px;
  background: #181818;
  border-radius: 2px;
}

.light-theme .headerNav.active {
    display: flex;
    background-color: #f7f7f7;
}

.light-theme .headerNav {
    background-color: #f7f7f7;
}

.light-theme .headerNav .btnNav {
    color: #222;
}

.light-theme .headerNav .btnNav:hover {
    background: #e0e0e0;
}
  
.side-text.left {
    left: 5vw;
    text-align: left;
  }

  .side-text.right {
    right: 5vw;
    text-align: right;
}

  .scroll-gauche {
    margin: 0px auto 0 auto;
    justify-content:left;
    margin-left: 0;
  }

  .description-A-propos {
    font-size: 1rem;
    margin-bottom: 16px;
    text-align: left;
  }

}

@media (min-width: 769px) and (max-width: 1024px) {
  .header {
    padding: 24px;
  }
  
  .side-text.left {
    left: 15vw;
    text-align: left;
  }

  .side-text.right {
    right: 15vw;
    text-align: right;
  }

  .scroll-gauche {
    margin-left: 16px;
  }

}