/* Style de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

strong {
    text-decoration: underline;
}

body {
    background-color: #1e1e2f; /* Bleu nuit */
    color: #fff;
    line-height: 1.6;
}

/* Menu de navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #16162d;
    padding: 10px 0;
    z-index: 10;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
}

.navbar ul {
    display: flex;
    justify-content: center;
}

.navbar ul li {
    list-style: none;
}

.navbar ul li a {
    color: #fff;
    text-decoration: none;
    padding: 15px 30px;
    display: block;
    transition: all 0.3s ease;
}

/* Effet subtil sur le survol des liens */
.navbar ul li a:hover {
    transform: scale(1.05);
}

/* Conteneur principal */
.intro-container {
    display: flex;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

/* Boîte de contenu avec texte */
.content-box {
    display: flex;
    margin: 50px;
    justify-content: flex-start;
    background-color: #16162d;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: 60%;
    padding: 30px;
    flex-direction: row;
    align-items: center;
}

.text-section {
    width: 60%;
}

.image-section {
    width: 40%;
    text-align: right;
}

.image-section img {
    width: 80%;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Animation du prénom (effet de tape sur un prompt) */
.text-section h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    margin-left: 20px;
    white-space: nowrap;
    overflow: hidden;
    border-right: 4px solid #fff;
    width: 0;
    animation: typing 3s steps(30) forwards, blink 0.75s step-end infinite;
}

.text-section p {
    font-size: 1.2em;
}

/* Animation du prénom avec changement de couleur */
@keyframes typing {
    0% { width: 0; }
    100% { width: 50%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Animation du prénom avec changement de couleur */
.typed-text {
    animation: colorChange 3s infinite;
}

@keyframes colorChange {
    0% { color: #fff; }
    100% { color: #fff; }
}

/* Slider */
.slider-container {
    position: relative;
    width: 15%;
    background-color: #16162d;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    margin-left: 10%;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slider-images img {
    width: 100%;
    height: auto;
}

/* Boutons du slider */
button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 2em;
    z-index: 1;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

button.prev {
    left: 10px;
}

button.next {
    right: 10px;
}

/* Animation de la ligne blanche */
.line-anim {
    width: 100%;
    height: 2px;
    background-color: white;
    margin-top: -100px;
    margin-bottom: 80px;
    animation: lineMove 2s ease-in-out infinite;
}

.line-anim2 {
    width: 100%;
    height: 2px;
    background-color: white;
    margin-top: 80px;
    animation: lineMove 2s ease-in-out infinite;
}

@keyframes lineMove {
    0% { transform: scaleX(0); }
    50% { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}

.squares-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
}

.square {
    width: 30%; /* Augmenter la largeur des carrés */
    height: 500px; /* Augmenter la hauteur des carrés */
    background-color: #16162d;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.square img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'image couvre tout le carré */
    transition: transform 0.3s ease;
}

.square:hover {
    transform: scale(1.1);
}

.square img:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .squares-container {
        flex-direction: column;
        gap: 10px;
    }

    .square {
        width: 80%; /* Ajuster la largeur pour les écrans plus petits */
        height: 250px; /* Ajuster la hauteur pour les écrans plus petits */
    }
}




/* PAGE PROJET */

.projet-container {
    margin-top: 9%;
}

.projet-container h1 {
    margin: 20px;
}

.vide{
    margin: 10%;
}

/* FIN PAGE PROJET */

/* PAGE AP */ 

/* Conteneur des cartes */
.projets-container {
    margin-top: 8%; /* Espace entre la barre de navigation et les cartes */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrer horizontalement les cartes */
    width: 100%; /* Assure que le conteneur prend toute la largeur */
}

/* Style des cartes */
.card {
    background-color: #16162d; /* Bleu foncé */
    color: white;
    margin: 20px 0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 80%; /* Réduit la largeur de la carte pour la centrer */
    max-width: 800px; /* Limite la largeur maximale */
    transition: transform 0.3s ease-in-out;
    position: relative; /* Nécessaire pour décaler les cartes */
}

/* Effet d'agrandissement de la carte au survol */
.card:hover {
    transform: scale(1.05);
}

.card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Style de l'image dans la carte */
.card-image {
    width: 200px; /* Taille de l'image */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Section texte de la carte */
.card-text {
    max-width: 70%; /* Limite la largeur du texte */
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
}

p {
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

/* Inversion de l'ordre pour la deuxième carte (image à droite) */
.card.reverse .card-content {
    flex-direction: row-reverse; /* Inverse l'ordre de l'image et du texte */
}

/* Effet d'escalier pour décaler les cartes */
.card:nth-child(odd) {
    margin-left: 10%; /* Décale les cartes impaires vers la droite */
}

.card:nth-child(even) {
    margin-left: -10%; /* Décale les cartes paires vers la gauche */
}

/* Adapter l'affichage sur les petits écrans */
@media (max-width: 768px) {
    .card-content {
        flex-direction: column; /* Empile les éléments sur les petits écrans */
        text-align: center;
    }

    .card-image {
        margin-right: 0;
        margin-bottom: 15px;
        width: 80%; /* Réduit la taille de l'image sur les petits écrans */
    }

    /* Pour les petits écrans, désactive l'effet "escalier" */
    .card:nth-child(odd),
    .card:nth-child(even) {
        margin-left: 0;
    }
}

/* FIN PAGE AP*/

/* A PROPOS */

/* Conteneur principal */
.container-apropos {
    margin: 100px auto;
    max-width: 1100px;
    text-align: center;
}

/* Section Présentation */
.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #16162d; /* Bleu foncé utilisé sur ton site */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 40px 0;
}

.about-container img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
}

.about-text {
    width: 65%;
    color: white;
    text-align: left;
}

.about-text h2 {
    color: #00aaff;
    margin-bottom: 10px;
}

/* Galerie d'images */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.gallery img {
    width: 200px;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        width: 100%;
        margin-top: 15px;
        text-align: center;
    }

    .gallery img {
        width: 100%;
        max-width: 300px;
    }
}

/* Fenêtre d'agrandissement */
.zoom-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.zoomed-photo {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
}

.social-links img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.social-links img:hover {
    transform: scale(1.2);
}

/* FIN PAGE APROPOS*/

/* Style du footer */
.footer {
    background-color: #16162d;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    font-size: 1rem;
    margin-top: 30px;
}

/* Liens du footer */
.footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ff0000; /* Changer la couleur au survol */
}

/* Lightbox (arrière-plan semi-transparent) */
.lightbox {
    display: none; /* Caché par défaut */
    position: fixed;
    z-index: 1000; /* Au-dessus de tout */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fond noir transparent */
    justify-content: center;
    align-items: center;
}

/* Contenu de l'image en grand */
.lightbox-content {
    max-width: 80%;
    max-height: 80%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Bouton pour fermer */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: red;
}

