.section {
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
    position: relative;
    transition: 0.5s ease;
    scroll-snap-align: center;
    line-height: 200%;
    padding: 40px;
    width: 65vw;
    margin-left: min(22%);
    margin-top: 36vh;
    margin-bottom: 50vh;
    margin-right: 12vw;
    background: linear-gradient(349deg, rgb(255, 236, 196) 0%, rgba(67, 123, 228, 0.575) 100%);
    background: rgb(194, 201, 224);
    background: linear-gradient(349deg, rgb(190, 190, 192) 0%, rgba(0, 119, 255, 0.315) 100%);
    border-radius: 40px;
    border-width: 2px;
    border-style:groove;
    border-color: #03001a15;
    border-top: #000000;
    /* Ajoutez une marge de 100 pixels en haut et en bas du défilement snap */
    scroll-padding: 150px 0;
}

.dark-mode .section {
    color: white;
    scroll-snap-align: center;
    margin-top: 36vh;
    margin-bottom: 50vh;
    /* background-color: var(--dark-card-color); */
    background: rgba(35, 42, 68, 0.582);
    background: linear-gradient(349deg, rgb(66, 72, 92) 0%, rgba(0, 14, 78, 0.575) 100%);
    border-radius: 40px;
}

.section:hover {
    background: rgb(194, 201, 224);
    background: linear-gradient(349deg, rgb(255, 236, 196) 0%, rgba(34, 94, 204, 0.575) 100%);
    box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 50px 4px;
    scale: 102%;
    transition: scale 0.5s ease;
    /* Couleur de fond au survol */
}

.dark-mode .section:hover {
    scale: 102%;
    background: rgb(64, 69, 87);
    background: linear-gradient(349deg, rgb(100, 110, 139) 0%, rgba(0, 14, 78, 1) 100%);
    /* Couleur de fond au survol */
}

#section4 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.section4-content {
    display: block;
    flex-direction: row;
    /* Centrer les éléments verticalement */
    justify-content: stretch;
    gap: 20px;
    /* Ajouter un espacement entre les éléments */
}

.icones {
    font-size: 25px;
}

.social-icons {
    transition: 0.3s;
    font-size: 20px;
    /* Ajustez la distance par rapport au bas selon vos préférences */
    display: flex;
    flex-wrap: wrap;
}

.icon {
    transition: 0.3s;
    margin: 8px;
    /* Espace entre chaque icône */
    color: #0a2b63;
    /* Couleur de la police */
}

.icon :hover {
    scale: 140%;
    transition: 0.3s;
}

.social-icons ul {
    transition: 0.3s;
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.social-icons ul li {
    transition: 0.3s;
    margin: 20px;
}

.social-icons ul li a {
    transition: scale 0.3s;
    color: #202020;
}

.dark-mode .social-icons ul li a {
    color: #cfcece;
}

.social-icons ul li:hover {
    transition: scale 0.3s;
    scale: 120%;
}

.formulaire {
    width: 15vw;
    justify-self: center;
    float: none;
    clear: both;
    /* Pour empêcher les éléments flottants de chevaucher */
    margin-bottom: 25px;
    margin-left: 15vw;
}

.input-group,
.button-group {
    justify-content: space-evenly;
    justify-self: center;
    float: none;
    clear: both;
    /* Pour empêcher les éléments flottants de chevaucher */
    margin-bottom: 25px;
}

.input-group input,
.input-group textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    outline: none;
    margin-left: 15vw;
}

.input-group textarea {
    resize: both;
}

.button-group button {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    background-color: #20789e;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

.button-group button:hover {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
}

/* MENU SECTION A PROPOS */

.sub-menu ul {
    transition: 0.3s;
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 10px;
    
}

.sub-menu ul li {
    margin-right: 20px;
}

.sub-menu li {
    display: inline-block;
    margin-right: 10px;
    /* Espace entre les boutons */
}

.sub-menu a {
    border-style: solid;
    border-width: 1px;
    border-color:#0066ffd7 ;
    margin-bottom: 10px;
    display: inline-block;
    padding: 15px;
    background-color: #84a1df2f;
    border-radius: 20px;
    transition: 0.5s ease;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

.sub-menu a:hover {
    transition: 0.5s;
    background-color: #4703c52c;
    box-shadow: rgb(64, 64, 65) 3px 3px 6px 0px inset, rgba(77, 76, 76, 0.5) -3px -3px 6px 1px inset;
}


.sub-menu ul li a {
    text-decoration: none;
    font-weight: bold;
    color: #0066ffd7;
    position: relative;
    transition: 0.3s ease;
}

.sub-menu ul li a:hover {
    transition: 0.3s;
    color: #5398ff81;
    /* Couleur du texte au survol */
}

.dark-mode .sub-menu ul li a {
    color: rgba(255, 255, 255, 0.705);
}

.sub-section-propos {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
    background-color: var(--light-sub-section);
    display: none;
    padding: 10px;
    margin-bottom: 20px;
    border: thick double #bdbcbc;
    border-radius: 10px;
    transition: display 0.5s ease;
    /* Ajoute une transition en douceur */
}

.sub-section-propos:hover {
    transition: 0.6s;
    /* background-color: #4e54ff2a; */
}

.dark-mode .sub-section-propos {
    color: #ffffff;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
    display: none;
    padding: 10px;
    margin-bottom: 10px;
    border: thick double #5c5c5c;
    border-radius: 10px;
    background-color: var(--dark-sub-section);
    transition: display 0.5s ease;
    /* Ajoute une transition en douceur */
}

.dark-mode .sub-section-propos:hover {
    transition: 0.6s;
    /* background-color: #4e54ffa8; */
}

.sub-section-propos.active {
    transition: 0.3s;
    display: block;
}

.sub-section-proj {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
    background-color: var(--light-sub-section);
    display: none;
    padding: 10px;
    margin-bottom: 20px;
    border: thick double #bdbcbc;
    border-radius: 10px;
    transition: display 0.5s ease;
}

.sub-section-proj:hover {
    transition: 0.6s;
    /* background-color: #4e54ff2a; */
}

.dark-mode .sub-section-proj {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
    display: none;
    padding: 10px;
    margin-bottom: 10px;
    border: thick double #5c5c5c;
    border-radius: 10px;
    background-color: var(--dark-sub-section);
    transition: display 0.5s ease;
}

.dark-mode .sub-section-proj:hover {
    transition: 0.6s;
    /* background-color: #4e54ff2a; */
}

.sub-section-proj.active {
    transition: 0.3s;
    display: block;
}

/* NAV LINK A PROPOS */
.nav-link-propos {
    transition: color 0.3s ease;
}

.nav-link-propos.active {
    transition: 0.3s;
    color: #00202e;
    background-color: #8f83ff57;
    box-shadow: rgb(64, 64, 65) 3px 3px 6px 0px inset, rgba(77, 76, 76, 0.5) -3px -3px 6px 1px inset;
}

.dark-mode .nav-link-propos {
    transition: color 0.3s ease;
    color: #ffffff85;
}

.dark-mode .nav-link-propos.active {
    transition: 0.3s;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.856);
    background-color: #b2aafd57;
    box-shadow: rgb(64, 64, 65) 3px 3px 6px 0px inset, rgba(77, 76, 76, 0.5) -3px -3px 6px 1px inset;
}

/* NAV LINK PROJETS */
.nav-link-proj {
    transition: color 0.3s ease;
    overflow: hidden;
}

.nav-link-proj.active {
    transition: 0.3s;
    font-weight: bold;
    color: #002738;
    background-color: #8f83ff57;
    box-shadow: rgb(64, 64, 65) 3px 3px 6px 0px inset, rgba(77, 76, 76, 0.5) -3px -3px 6px 1px inset;
}


.dark-mode .nav-link-proj {
    transition: color 0.3s ease;
    color: #ffffff85;
}

.dark-mode .nav-link-proj.active {
    transition: 0.3s;
    font-weight: bold;
    color: rgb(0, 0, 0);
    background-color: #b2aafd57;
    box-shadow: rgb(64, 64, 65) 3px 3px 6px 0px inset, rgba(77, 76, 76, 0.5) -3px -3px 6px 1px inset;
}

.project-images {
    margin-top: 20px;
    display: flex;
    justify-content: space-evenly;
    gap: 20px;
}

.project-images img {
    transition: 0.5s;
    width: 25%;
    max-height: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.project-images img:hover {
    scale: 120%;
    transition: 0.5s;

}

.iframe-container {
    position: relative;
    height: 100%;
    width: 100%;
}

iframe {
    position: relative;
    top: 0;
    left: 0;
    height: 700px;
    width: 100%;
    border: none;
    scale: auto;
}

/* Style de la modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

/* Style de l'image à l'intérieur de la modal */
.modal img {
    max-width: 80%;
    max-height: 80%;
    z-index: 999;

}

/* Style du bouton de fermeture */
.close {
    position: absolute;
    top: 100px;
    right: 100px;
    color: white;
    font-size: 80px;
    /* Taille de la police du bouton */
    cursor: pointer;
}

/* Changer le curseur au survol des images enlargeable */
.enlargeable {
    cursor: pointer;
}