* {
    margin: 0;
    padding: 0;
}

body {
    font-family: Montserrat;
    background-color: #081b29;
    color: #ededed;
}

html {
    --scroll-behavior: smooth;
    scroll-behavior: smooth;
    transition: background-color 0.5s ease, color 0.5s ease;
}

::-webkit-scrollbar {
    width: 15px;
    background: #ededed;
}
::-webkit-scrollbar-thumb {
    border: solid 0 transparent;
    background-color: #00abf0;
    border-radius: 3px;
}

main {
    margin: 0 7vw;
    overflow: hidden;
}

p {
    font-size: 16px;
    line-height: 1.5;
}

h1 {
    font-size: 56px;
    font-weight: 700;
    margin: 10px 0;
}

h3 {
    font-size: 32px;
    font-weight: 700;
    color: #00abf0;
    margin: 5px 0;
}

.container-btn {
    width: 70%;
    display: flex;
}

.btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 10px;
    background-color: #081b29;
    border: 2px solid #00abf0;
    border-radius: 8px;
    font-size: 19px;
    color: #00abf0;
    text-decoration: none;
    font-weight: 600;
    z-index: 1;
    overflow: hidden;
    transition: .5s;
    margin-right: 15px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #00abf0;
    z-index: -1;
    transition: .5s;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    color: #081b29;
}

#mode-jour {
    position: fixed;
    right: 10px;
    bottom: 10px;
}

#mode-jour > i{
    font-size: 20px;
}

.cache {
    display: none !important;
}

/* Header */

#header {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 30px;
    background-color: rgba(7, 14, 32, 0.7);
    transition: background-color 0.5s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
}

#header:hover {
    background-color: rgba(7, 14, 32, 1);
}

#header > div {
    width: 50%;
}

.logo > a {
    text-decoration: none;
    color: #ededed;
    font-size: 22px;
}

.logo > a > span {
    font-weight: 700 !important;
}

#hamburger-menu{
    display: none;
}

#header > nav {
    width: 50%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#header > nav > a {
    color: #ededed;
    text-decoration: none;
    position: relative;
    display: inline-block;
    overflow: hidden;
    transition: .3s ease;
}

nav > a:hover {
    font-weight: 600;
}

#header nav a.active {
    color: #00abf0;
    font-weight: 600;
}

/* Accueil */

.accueil {
    display: flex;
    flex-direction: row;
}

.accueil-presentation {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.accueil-image {
    width: 50%;
}

.accueil-image > img {
    width: 100%;
    height: auto;
}

/* Me découvrir */

#aboutme {
    display: flex;
    justify-content: space-between;
    margin-bottom: 100px;
}

.discover-img {
    width: 50%;
    display: flex;
    align-items: center;
}

.discover-img > img {
    width: 100%;
    height: auto;
}

.discover-presentation {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.icon-container {
    width: 100px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.icon {
    position: relative;
    display: inline-flex;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    background-color: #081b29;
    border: 2px solid #00abf0;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 700;
    color: #00abf0;
    text-decoration: none;
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #00abf0;
    z-index: -1;
    transition: .5s;
}

.icon:hover::before {
    width: 100%;
}

.icon:hover {
    color: #081b29;
}

/* Passions */

.passion-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    margin: 50px 0;
}

.passion-container > div {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin: 20px;
}

.passion-container > div > img {
    display: block;
    border-radius: 20px;
    height: 200px;
    width: 200px;
    border: 4px solid #00abf0;
    object-fit: cover;
    object-position: center;
}


.passion-container > div > h4 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 10px 0;
    opacity: 0;
    transition: opacity .3s ease-out;
    z-index: 2;
    font-size: 20px;
    font-weight: 800;
    color: #081b29;
}

.passion-container > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(0, 171, 240, 0.7);
    z-index: 0;
    opacity: 0;
    transition: .5s;
}

.passion-container > div:hover::before {
    opacity: 1;
    width: 100%;
}

.passion-container > div:hover h4 {
    opacity: 1;
    z-index: 1;
}

/* Compétences */

#competences {
    margin: 100px 0;
}

.competences-img {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* Crée autant de colonnes que possible avec une largeur minimale de 120px */
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.competences-img > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.competences-img > div > i {
    font-size: 100px;
}

/* Carousel */

.carousel {
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.caca {
    overflow: hidden;
    position: relative;
    width: 75%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
    height: 0;
}


#prev, #next {
    color: grey;
    font-size: 50px;
    transition: .3s ease;
}

#prev:hover, #next:hover {
    color: #ededed;
    cursor: pointer;
}

.carousel-item {
    margin-left: auto;
    margin-right: auto;
    display: none;
    position: absolute;
    box-sizing: border-box;
    animation: slideIn 0.5s ease-out forwards;
    text-align: justify;
}
.carousel-item.active {
    display: block; /* Affiche l'élément actif */
}


@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutLeft {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-100%); opacity: 0; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.slide-in-right {
    animation: slideInRight 0.5s forwards;
}

.slide-in-left {
    animation: slideInLeft 0.5s forwards;
}

.slide-out-left {
    animation: slideOutLeft 0.5s forwards;
}

.slide-out-right {
    animation: slideOutRight 0.5s forwards;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    padding: 10px;
}

.indicator {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background-color: gray;
    margin: 0 5px;
    cursor: pointer;
}

.indicator.active {
    background-color: #00abf0;
}

.titre-real {
    display: flex;
    align-items: center;
}

.langages{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.langage {
    border: 2px solid #00abf0;
    color: #00abf0;
    border-radius: 5px;
    padding: 5px;
    margin-left: 10px;
}

/* Formulaire de contact */


#contact > div {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 75%;
}

.identite {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.mail, .message {
    width: 100%;
}

.nom, .prenom, .mail, .message {
    display: flex;
    flex-direction: column;
    align-items: start;
    margin: 10px 0;
}

.nom, .prenom {
    width: 45%;
}

.identite input, .mail input, .message textarea {
    width: 100%;
    height: 35px;
    font-size: 16px;
    padding-left: 5px;
    border: 2px solid #00abf0;
    border-radius: 8px;
    margin-top: 5px;
    background-color: transparent;
    color: #00abf0;
    font-weight: 600;
}

.message textarea {
    height: 70px;
    resize : none;
    padding: 5px;
    font-family: Montserrat, sans-serif;
}

.identite input:focus, .mail input:focus, .message textarea:focus {
    border: 3px solid #00abf0;
    outline: none;
}

#soumettreFormulaire {
    margin-top: 20px;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #00abf0;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Footer */

.separator-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 100px;
    margin-bottom: 50px;
}

.separator {
    width: 75%;
    border-top: 1px solid #ededed;;
}

#footer {
    display: flex;
    padding-bottom: 20px;
}

#footer h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #00abf0;
}

.footer-left, .footer-middle, .footer-right{
    width: 33%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#footer nav{
    display: flex;
    flex-direction: column;
    align-items: center;
}

#footer a {
    color: #ededed;
    text-decoration: none;
    font-size: 16px;
    margin: 3px 0;
    transition: .3s ease;
}

.footer-right {
    align-items: end;
}

#footer .icon {
    color: #00abf0;
}

#footer .icon:hover {
    color: #081b29;
}

/* Mode jour */

/* Ajouts pour le mode jour */
.mode-jour,
.mode-jour body {
    background-color: #fdfddd;
    color: #333333;
}

.mode-jour h3{
    color: #c2c092;
}

.mode-jour #footer h4{
    color: #c2c092;
}

.mode-jour ::-webkit-scrollbar {
    background: #333333;
}
.mode-jour ::-webkit-scrollbar-thumb {
    background-color: #c2c092;
}

.mode-jour .btn,
.mode-jour .icon {
    background-color: #fdfddd;
    border-color: #c2c092;
    color: #c2c092;
}

.mode-jour #header {
    background-color: rgba(233, 233, 201, 0.7);
}

.mode-jour #header:hover {
    background-color: rgba(233, 233, 201, 1);
}

.mode-jour .btn:hover,
.mode-jour .icon:hover{
    color: #fdfddd;
}

.mode-jour .btn::before,
.mode-jour .icon::before {
    background-color: #c2c092;
}

.mode-jour #header > nav > a,
.mode-jour #footer a,
.mode-jour .logo > a {
    color: #333333;
}

.mode-jour #header nav a.active {
    color: #c2c092;
}

.mode-jour #footer .icon {
    color: #c2c092;
}

.mode-jour #footer .icon:hover {
    color: #fdfddd;
}

.mode-jour .separator {
    border-top-color: #333333;
}

.mode-jour .passion-container > div > img {
    border: 4px solid #c2c092;
}

.mode-jour .passion-container > div::before {
    background-color: rgba(194, 192, 146, 0.7);
}


.mode-jour #prev:hover, .mode-jour #next:hover {
    color: #333333;
}

.mode-jour .indicator.active {
    background-color: #c2c092;
}

.mode-jour .titre-real > h3{
    color: #333333 !important;
}

.mode-jour .langage {
    border: 2px solid #c2c092;
    color: #c2c092;
    border-radius: 5px;
    padding: 5px;
    margin-left: 10px;
}

.mode-jour input, .mode-jour textarea{
    border: 2px solid #c2c092;
    color: #c2c092;
}

.mode-jour .identite input:focus,.mode-jour .mail input:focus,.mode-jour .message textarea:focus {
    border: 3px solid #c2c092;
}


.mode-jour input:-webkit-autofill,
.mode-jour input:-webkit-autofill:hover,
.mode-jour input:-webkit-autofill:focus {
    -webkit-text-fill-color: #c2c092;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset;
    transition: background-color 5000s ease-in-out 0s;
}

.mode-jour .hamburger-icon > span {
    background-color: #081b29 !important;
}