* {
    margin: 0;
    padding: 0;
    color: #E0E0E0;
}

html {
    scroll-behavior: smooth;
}

#app {
    width: 100%;
    min-height: 100vh;
    position: relative;
    background-color: #0F0F0F;
}

#main-menu {
    position: fixed;
    top: 20px;
    right: 0;
    left: 0;
    opacity: .6;
    background-color: #ffffff;
    z-index: 999;
}

#main-menu nav {
    padding: 20px 40px;
}

#main-menu ul {
    display: flex;
    gap: 20px;
 
    justify-content: flex-start;
}

#main-menu a {
    text-decoration: none;
}

#main-menu li {
    list-style: none;
    font-size: 1.2rem;
    color: #0F0F0F;
}

#main-menu li:hover {
    opacity: .4;
}

.section {
    min-height: 100vh;
    position: relative;
    padding: 1rem 0;
}

.section:nth-child(odd) {
    background-color: #2A2A2A;
}
.section:nth-child(even) {
    background-color: #0F0F0F;
}

#home {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 50px;
}

#home p {
    text-align: center;
}

h1 {
    font-size: 7rem;
    text-align: center;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
}


.title, .contain {
    z-index: 2; /* Permet de définir la définir l'order des couches  */
    width: 100%;
}

.title {
    padding-top: 4rem;
}

.contain {
    margin-top: 35px;
    width: 100%;
}

.form {
    padding-left: 20%;
    padding-right: 20%;
    line-height: 30px;
    font-size: 19px;
}

img.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: .20;
}

#timeline {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(90% - 14rem);
    position: relative;
    z-index: 0;
}

#timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #E0E0E0;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    z-index: 0;
}

#timeline .item {
    width: 50%;
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

#timeline .item::after {
    font-family: "Font Awesome 6 Free";
    justify-content: center;
    font-size: 10px;
    align-items: center;
    font-weight: 900;
    content: "";
    position: absolute;
    color: black;
    top: 50%;
    width: 20px;
    height: 20px;
    background-color: #E0E0E0;
    border-radius: 100%;
    z-index: 1;
}

#timeline .cup::after {
    display: flex;
    content: "\f19d";
    color:red;
    border:#0F0F0F 1px;
}

#timeline .truck::after {
    display: flex;
    content: "\f48b";
}

#timeline .factory::after {
    display: flex;
    content: "\f275";
}

#timeline .item:nth-child(odd) {
    align-self: flex-start;
    align-items: flex-end;
    transform: translateX(-30px);
}

#timeline .item:nth-child(odd)::after {
    right: -30px;
    transform: translate(50%, -50%);
}

#timeline .item:nth-child(even) {
    align-self: flex-end;
    align-items: flex-start;
    transform: translateX(30px);
}

#timeline .item:nth-child(even)::after {
    left: -30px;
    transform: translate(-50%, -50%);
}

#timeline {
    width: 98%;
}

.Flex-competences {
  display: flex;
  gap: 20px; 
 margin-left: 20px;
}

.fix-competences {
    width: 50%;
    padding: 110px;
}

#Competences {
    padding-top: 50px;
}

.li-competences {
    margin-bottom: 35px;
}

.li-logiciels {
    margin-left: 25px;
    margin-top: 8px;
}

.li-diplomes {
    font-size: 18px;
}

.section-footer {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.section-diplomes {
    min-height: 88vh;
    position: relative;
    padding: 1rem 0;
}

.section-diplomes:nth-child(odd) {
    background-color: #2A2A2A;
}
.section-diplomes:nth-child(even) {
    background-color: #0F0F0F;
}

.section-footer {
    position: relative;
    padding: 1rem 0;
}

.section-footer:nth-child(odd) {
    background-color: #0f0f0f;
}
.section-footer:nth-child(even) {
    background-color: #0f0f0f;
}

#pdp {
    width: 33%;
    text-align: center;
}

.copyright {
    font-size: 8px;
}

#icons {
    color: black;
}

#icons:hover {
    color: #828282;
}

#btn-carte {
    color: #767676;
}

#btn-carte:hover {
    color: #828282;
}

.Flex-menu {
   display: flex;
   align-items: center;
   padding: 10px;
}

.flex-droite {
  display: flex;
  margin-left: auto;
  
}


.overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.301);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* 🔴 important */
}

.modal {
  background-color: rgba(0, 0, 0, 0.767);
  color: #ff0000; /* Texte foncé sur fond clair */
  padding: 20px;
  border-radius: 15px;
  width: 400px;
  box-shadow: 0 5px 15px rgba(189, 189, 189, 0.64);
  text-align: center;
  position: relative;
  z-index: 1001; /* 🔴 pour être au-dessus */
}


.modal h2 {
  margin-top: 0;
}

.modal p {
  margin: 10px 0;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
  color: #ffffff;
}

.close-btn:hover {
  color: #f68282;
}
