@font-face {
    font-family: 'INTEGRAL';
    src: url('/fonts/integralcf-bold.woff') format('woff'),
    url('/fonts/integralcf-regularoblique.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}


html {
    scroll-behavior: smooth;
}

.dark-mode {
    --background-color: #121212;
    --text-color: #ffffff;
    --background: #1f1f1f;
}


body {
    font-family: 'INTEGRAL';
    min-height: 100vh;
    margin: 0;
    position: relative;
    background-color: var(--background-color);
    color: var(--text-color);
}

.titre {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom:10em;
    width: 100%;
    flex-direction: column;
}


h1 {
    font-size: 180px;
    letter-spacing: -.04em;
    font-weight: lighter;
}

nav {
    display: flex;
    padding: 10px 20px;
    font-weight: lighter;
}

.nav-left {
    margin-right: auto; /* Pousse vers la gauche */
}

.nav-right {
    display: flex;
    gap: 15px;
}


.accueil {
    margin-left: 0;
}

.autres {
    display: flex;
    gap: 15px;
}

a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
}

i {
    font-size: 20px;
}

#home {
    min-height: 100vh; /* Garde la section bien visible */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Assure que le h1 reste positionné correctement */
}

h1 {
    font-size: 160px;
    letter-spacing: -.04em;
    margin: 0;
}



h2 {
    font-size: 36px;
}


#border{
    border: 1px solid;
    border-color: var(--text-color);
    margin-inline:200px;
}

#about {
    padding: 100px 0;
    text-align: center;
    margin-top: 50px;
    height:80vh;

}

.about-container h2 {
    font-size: 42px;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.about-card {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
    padding: 30px;
}

.about-card img {
    width: 280px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-card p {
    font-size: 25px;
    line-height: 1.5;
    font-weight: normal;
    color: var(--text-color);
    margin-left:200px;
    max-width: 600px;
    font-family: "Plus Jakarta Sans", sans-serif;
}


#text, #nom{
    font-size: 100px;
}

#projects{
    padding: 100px 0;
    font-size: 42px;
    color: var(--text-color);
    height:100vh;

}

#projects h2 {
    text-align:center;
}

.project-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 20px auto;
}

.project-img {
    width: 200px;
    height: auto;
    border-radius: 10px;
    margin-right: 20px;
}

.project-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.project-info p {
    font-size: 16px;
    color: var(--text-color);
}

.btn {
    display: inline-block;
    background: #fc4f00;
    color: #fff;
    font-size:20px;
    padding:10px 10px;
    border-radius: 5px;
}

.btn:hover {
    background: #aa3600;
}


#skills {
    padding: 100px 0;
    margin-top: 50px;
    height:80vh;
}

#skills h2 {
    text-align: center;
}

.skills{
    display: flex;
    justify-content: center;
    padding-inline:2em;
}

.skillsFront {
    margin-right:20em;
}

.skillsFront i, .skillsBack i{
    font-size:64px;
    padding-right:20px;
}

#toggle-dark-mode {
    background-color: #222;
    color: #fff;
    border: none;
    padding: 8px;
    font-size: 0.8rem;
    border-radius: 20%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 20px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.toggle-mode-dark {
    background-color: #222;
    color: #fff;
    border: none;
    padding: 8px;
    border-radius: 20%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    background: none;
    border: none;
    margin-top:15px;
    width: 50px;
    height: 30px;
    cursor: pointer;
    font-size: 20px;
}

#toggle-dark-mode:hover, .toggle-mode-dark:hover {
    background-color: #333;
    transform: scale(1.1);
}

#toggle-dark-mode:active, .toggle-mode-dark:active {
    transform: scale(0.9);
}

.dark-mode #toggle-dark-mode, .dark-mode .toggle-mode-dark {
    background-color: #f0f0f0;
    color: #222;
}

.dark-mode #toggle-dark-mode:hover, .dark-mode .toggle-mode-dark:hover {
    background-color: #ddd;
}

.burger-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 1001;
}

.burger-icon div {
    width: 35px;
    height: 4px;
    background-color: gray;
    margin: 6px 0;
    transition: 0.3s;
}

/* Menu déroulant */
.nav-menu {
    position: fixed;
    top: -100vh;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(20, 20, 20, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.5s ease-in-out;
    z-index: 1000;
    
}

.nav-menu a {
    color: black;
    font-size: 24px;
    text-decoration: none;
    margin: 15px 0;
    font-weight: bold;
    transition: 0.3s;
}

.nav-menu a {
    color:white;
}

.nav-menu a:hover {
    color: #fc4f00;
}

/* Bouton de mode sombre dans le menu */
.nav-menu button {
    background: none;
    border: none;
    margin-top:15px;
    width: 50px;
    height: 30px;
    cursor: pointer;
}

/* Activation du menu */
.nav-menu.active {
    top: 0;
}

/* Animation de l'icône burger */
.burger-icon.active div:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-icon.active div:nth-child(2) {
    opacity: 0;
}

.burger-icon.active div:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.modal {
    display: none; /* Cachée par défaut */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 1em auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    text-align: center;
    border-radius: 10px;
}

.dark-mode .modal-content {
    background-color: #121212;
    color: var(--text-color);
}

.close {
    color: red;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: darkred;
}

#openModal {
    background-color: #fc4f00;
    color: #fff;
    font-size:20px;
    padding:10px 10px;
    border-radius: 5px;
    border: none;
}

#openModal:hover {
    background-color: #aa3600;
    cursor: pointer;
}

.modal-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-content p {
    font-size: 16px;
    color: var(--text-color);

}