/* Police et style global */
body {
    font-family: 'Noto Sans', sans-serif;
    background: #010101;
    color: #F5F5F5;
    scroll-behavior: smooth;
}

.main {
    display: grid;
}

/* Navbar dynamique */
.navbar {
    position: fixed;
    top: 10px;
    justify-self: center;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.08);
    padding: 15px 20px;
    border-radius: 10px;
    z-index: 9999;
    transition: background 0.3s ease-in-out;
    box-sizing: border-box;
}

/* Au survol de la navbar */
.navbar:hover {
    background: rgba(255, 255, 255, 0.2);
}

.container {
    padding: 0;
}

/* Liens navbar */
.navbar-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 0;
    flex-wrap: wrap;
    /* Permet aux éléments de se regrouper sur les petits écrans */
}

.navbar-nav a {
    color: white;
    padding: 10px;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s ease-in-out, opacity 0.3s ease-in-out;
    text-decoration: none;
    margin: 0 15px;
    white-space: nowrap;
    box-sizing: border-box;
}

/* Liens navbar au survol */
.navbar-nav a:hover {
    opacity: 0.7;
    transform: scale(1.05);
}

/* Cover avec effet de parallaxe */
.cover-section {
    position: relative;
    background-image: url('https://i.pinimg.com/1200x/8a/20/a0/8a20a0bed51481e418675a8bdc7b10d4.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    background-attachment: fixed;
}

/* Effet fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease-in-out forwards;
}

.cover-overlay {
    padding-inline: 10px;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Titres et alignement */
.cover-overlay h1 {
    font-family: 'Antonio', sans-serif;
    font-size: 4rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffffff;
    margin-bottom: 10px;
}

/* Sections */
.section {
    display: grid;
    padding: 120px 40px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
}

.section p {
    justify-self: center;
    max-width: 900px;
}

.col {
    margin: 0;
    padding: 10px;
}

.col-md-4 {
    padding: 10px !important;
}

.card {
    background-color: transparent;
    height: 100%;
}

.card-img-top {
    object-fit: cover;
    height: 250px;
    border-radius: 5px;
}

/* Positionner le bouton "Visiter" en bas à droite de l'image */
.img-container {
    position: relative;
}

.visit-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.6);
    /* Fond semi-transparent */
    color: white;
    /* Couleur de l'icône */
    border-radius: 40px;
    /* Rendre l'icône ronde */
    padding: 10px;
    font-size: 15px;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.visit-icon:hover {
    background-color: rgba(0, 0, 0, 0.8);
    /* Changer la couleur du fond au survol */
}

/* Le conteneur du bouton "J'adore" et du compteur */
.like-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Le bouton "J'adore" */
.heart {
    background-color: white;
    color: #ff4d4d;
    border-radius: 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
    position: relative;
}

/* Effet d'animation au clic */
.heart.liked {
    animation: pop 0.5s ease;
    background-color: #ff4d4d;
    color: white;
}

/* Animation de pulsation */
@keyframes pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Effet de flottement lorsqu'on passe la souris */
.heart:hover {
    transform: scale(1.1);
}

/* L'icône cœur */
.heart i {
    font-size: 20px;
}

/* Nombre de J'adore */
.like-count {
    font-size: 16px;
    color: whitesmoke;
}

/* Compétences */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding-inline: 150px;
    margin-top: 20px;
}

.skill-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    transition: transform 0.3s ease-in-out;
    box-sizing: border-box;
}

.skill-box:hover {
    transform: scale(1.05);
}

/* Bouton contact */
.btn-contact {
    background: white;
    color: black !important;
    padding: 8px 15px;
    border-radius: 5px;
    transition: 0.3s;
    box-sizing: border-box;
}

.btn-contact:hover {
    background: black;
    color: white !important;
    transform: scale(1.1);
    /* Agrandir légèrement au survol */
}

/* Timeline des expériences professionnelles */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    position: relative;
}

.timeline-date::before {
    content: '';
    position: absolute;
    left: 10px;
    align-self: center;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #1E90FF;
    /* Bleu vif */
    box-shadow: 0 0 0 4px rgba(30, 144, 255, 0.4);
    /* Effet de halo bleu clair */
    transition: all 1s ease;
    animation: pulse 1s infinite;
}

.timeline-date {
    display: grid;
    font-weight: bold;
    font-size: 1.1rem;
    color: #1E90FF;
    /* Bleu vif */
    margin-bottom: 10px;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 15px;
    color: #f5f5f5;
}

.timeline-date:hover::before {
    transform: scale(1.2);
    background-color: #00BFFF;
    /* Bleu ciel pour l'effet de survol */
    animation: none;
}

#portfolio h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Projets Graphiques */
#graphic-projects .row {
    margin-top: 30px;
}

.card-body {
    color: whitesmoke;
    padding: 10px;
}

.card-text {
    font-size: 14px;
}

/* Réseaux sociaux */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    /* Espacement plus large entre les icônes */
    margin-block: 10px;
}

.social-icons a {
    font-size: 35px;
    /* Agrandir les icônes */
    color: #fff;
    transition: all 1s ease;
    /* Animation de transformation et couleur */
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.social-icons a:hover {
    transform: scale(1.1);
    /* Augmenter l'échelle des icônes au survol */
    color: #1E90FF;
    /* Couleur de survol bleue */
    opacity: 0.8;
    /* Légère diminution de l'opacité pour l'effet de survol */
    animation: none;
    /* Désactiver l'animation de pulsation pendant le survol */
}

/* Compteur de visiteurs en position fixe */
.visitor-counter {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #5556;
    position: fixed;
    /* Fixer l'élément */
    bottom: 20px;
    /* Positionné en bas de l'écran */
    left: 20px;
    /* Positionné à droite de l'écran */
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.6);
    /* Fond semi-transparent */
    color: white;
    /* Texte en blanc pour contraster */
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    z-index: 10000;
    /* Toujours au-dessus des autres éléments */
}

.visitor-counter i {
    margin-inline: 5px;
    font-size: 20px;
    animation: pulse 1s infinite;
}

/* Optionnel : Ajout d'une animation ou effet au survol */
.visitor-counter:hover {
    transform: scale(1.1);
    /* Agrandissement au survol */
    background-color: rgba(0, 0, 0, 0.8);
    /* Assombrir légèrement le fond */
}

/* MEDIA QUERIES - Adaptation en fonction de la taille de l'écran */

/* Pour les petits écrans mobiles (jusqu'à 600px de largeur) */
@media screen and (max-width: 600px) {
    .navbar {
        padding: 5px 10px;
        margin-inline: 10px;
    }

    .navbar-nav {
        justify-content: flex-start;
        align-items: center;
        flex-wrap: nowrap;
    }

    .navbar-nav a {
        margin: 0;
        font-size: 12px;
        padding: 5px;
    }

    .navbar-nav a.btn-contact {
        margin: 5px;
    }

    .cover-overlay h1 {
        font-size: 2.5rem;
    }

    .cover-overlay p {
        font-size: 1.2rem;
    }

    .section {
        padding-inline: 20px;
    }

    .skills-container {
        padding: 0;
    }

    .card-img-top {
        height: 250px;
    }

    /* Réseaux sociaux pour mobile */
    .social-icons {
        gap: 15px;
        /* Moins d'espace pour mobile */
    }

    .social-icons a {
        font-size: 28px;
        /* Réduire la taille des icônes sur mobile */
    }
}