﻿@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Montserrat', sans-serif;
    background-color: #0e0e1b;
    color: #ffffff;


}

.top {
    /*background: linear-gradient(to bottom, #000066 0%,*/ /* totalement bleu dès le top */
    /*#000099 50%,*/ /* garde le bleu jusqu'à 40% de la hauteur */
    /*transparent 100%);*/ /* puis dégrade jusqu'à transparent */

    padding: 4rem 2rem 9rem; /* plus d’espace vertical */
    position: relative;
    z-index: 1;
}

.top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
}

.top-left {
    flex: 0.5;
}

.top-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    opacity: 0.95;
}

.top-right {
    flex: 1;
    text-align: left;
    color: #ffffff;
}

.name {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
}

.role {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    line-height: 1.6;
    color: #a8ffb0; /* pastel green accent */
}

.description {
    margin: 1.5rem 0;
    font-size: 1rem;
    line-height: 1.8;
    color: #e5e5e5;
}

.btn {
    text-decoration: none;
    background: #00cc00; /* beautiful green */
    color: #ffffff;
    padding: 1rem 2rem;
    font-weight: bold;
    border-radius: 30px;
    transition: background 0.3s ease;
    display: inline-block;
    margin-top: 2rem;
}

    .btn:hover {
        background: #00a45d;
    }


    /*barre navigation*/

/* Barre de navigation fixe (haut de page) */
.top-bar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(14, 14, 27, 0.95);
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 0 10px #00cc66;
    z-index: 1000;
    display: flex;
    gap: 20px;
}

    .top-bar a {
        color: #00cc66;
        font-weight: bold;
        text-decoration: none;
        font-size: 1rem;
        transition: transform 0.2s ease;
    }

        .top-bar a:hover {
            transform: scale(1.1);
        }

/* Décale le contenu pour ne pas être masqué */
.top-container {
    margin-top: 80px;
}

/* Light mode adaptation */
.light-mode .top-bar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 10px #00cc66;
}

    .light-mode .top-bar a {
        color: #006633;
    }


.top-nav {
    position: fixed;
    top: 0;
    left: 50%;.sidebar-links
    transform: translateX(-50%);
    background-color: rgba(14, 14, 27, 0.95);
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 0 10px #00cc66;
    z-index: 1000;
    display: flex;
    gap: 20px;
}

    .top-nav a {
        color: #00cc66;
        font-weight: bold;
        text-decoration: none;
        font-size: 1rem;
        transition: transform 0.2s ease;
    }

        .top-nav a:hover {
            transform: scale(1.1);
        }

/* Light mode support */
.light-mode .top-nav {
    background-color: rgba(255, 255, 255, 0.95);
}

    .light-mode .top-nav a {
        color: #006633;
    }



.top-mobile-bar {
    position: fixed;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(14, 14, 27, 0.95);
    padding: 20px 20px;
    border-radius: 30px;
    box-shadow: 0 0 10px #00cc66;
    z-index: 999;
    display: flex;
    gap: 20px;
}

    .top-mobile-bar a {
        color: #00cc66;
        font-weight: bold;
        text-decoration: none;
        font-size: 1rem;
        transition: transform 0.2s ease;
    }

        .top-mobile-bar a:hover {
            transform: scale(1.1);
        }

/* Mode clair */
.light-mode .top-mobile-bar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 10px #00cc66;
}

    .light-mode .top-mobile-bar a {
        color: #006633;
    }


/* Light mode */

.light-mode .tools-strip,
.light-mode .contact-section {
    background-color: #e9f6eb; /* même couleur que le body en mode clair */
}

.light-mode .contact-title,
.light-mode .contact-text {
    color: #111;
}
/* Inverser les icônes pour les rendre visibles en mode clair */
.light-mode .icon-strip img,
.light-mode .social-icons img,
.light-mode .project-icon,
.light-mode .bottom-bar img {
    filter: invert(1) hue-rotate(180deg) brightness(0.8);
}


#toolstrip {
    scroll-margin-top: 100px; /* or adjust to 60px, 100px, etc. */
}



.project-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    background-color: transparent;
    border: 2px solid #00cc66;
    color: #00cc66;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

    .filter-btn.active,
    .filter-btn:hover {
        background-color: #00cc66;
        color: white;
    }

.view-toggle-btn {
    display: block;
    margin: 2rem auto 0;
    background-color: #00cc66;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .view-toggle-btn:hover {
        background-color: #00994d;
    }



./*navbar {
    background-color: white;
    padding: 20px;
    width: fit-content;
    margin: 20px auto 0;
    border: 4px solid #00cc00;
    border-radius: 15px;
    box-shadow: 0 0 10px #000066;
    position: fixed;
    top: 10px;*/ /* A small space from the top */
    /*left: 50%;
    transform: translateX(-50%);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

    .nav-links a:hover {
        color: #00cc00;
        transform: translateY(-2px);
    }

    .nav-links a {
        color: black;
        text-decoration: none;
        font-weight: bold;
    }*/


@media (max-width: 768px) {
    .top-container {
        flex-direction: column;
        text-align: center;
    }
}
    .top-left,
    .top-right {
        width: 100%;
    }

    .top-image {
        max-height: 250px;
        margin: 2rem auto;
    }

    .projects-section {
        padding: 6rem 2rem;
        color: white;
        max-width: 1200px;
        margin: 0 auto;
    }

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}


.tools-strip {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #0e0e1b;
}

.icon-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

    .icon-strip img {
        width: 40px;
        height: 40px;
        filter: brightness(1.2);
        transition: transform 0.2s ease;
    }

        .icon-strip img:hover {
            transform: scale(1.2);
        }




    .projects-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    .project-card {
        background-color: #0e1d35;
        border-radius: 12px;
        overflow: hidden;
        text-decoration: none;
        color: inherit;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
    }

        .project-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 30px rgba(0, 255, 150, 0.1);
        }

    .project-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .project-content {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .project-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .project-header h3 {
            font-size: 1.2rem;
            font-weight: 600;
        }

    .project-icon {
        width: 24px;
        height: 24px;
    }

    .project-description {
        font-size: 0.95rem;
        color: #d1d1d1;
        line-height: 1.5;
    }

    .project-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

        .project-tags span {
            background-color: #123456;
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.75rem;
            color: #a8ffb0;
        }

    .project-links {
        display: flex;
        justify-content: space-between;
        font-size: 0.9rem;
        margin-top: auto;
        color: #00cc66;
    }

    .carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid #123456;
}

.carousel-images {
  height: 100%;
  position: relative;
}

.carousel-images img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.5s ease-in-out;
  opacity: 0;
}

.carousel-images img.active {
  display: block;
  opacity: 1;
}

.carousel button.prev,
.carousel button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 4px 10px;
  cursor: pointer;
  z-index: 2;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.carousel button.prev:hover,
.carousel button.next:hover {
  background: rgba(0, 0, 0, 0.6);
}

.carousel button.prev {
  left: 10px;
}

.carousel button.next {
  right: 10px;
}


.bottom-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(14, 14, 27, 0.95);
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 0 10px #00cc66;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 999;
}

    .bottom-bar img {
        width: 24px;
        height: 24px;
        transition: transform 0.2s ease;
        filter: brightness(1.3);
    }

        .bottom-bar img:hover {
            transform: scale(1.2);
        }

#theme-toggle {
    background: none;
    border: none;
    color: #00cc66;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

    #theme-toggle:hover {
        transform: scale(1.2);
    }

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px; /* optionnel : joli arrondi */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); /* optionnel */
}

    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }
.video-thumbnail a {
    display: block;
    position: relative;
}


.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.video-thumb:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button svg {
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.5));
}

/* Général */
.light-mode {
    background-color: #e9f6eb;
    color: #000;
}

    .light-mode h1,
    .light-mode h2,
    .light-mode h3,
    .light-mode p,
    .light-mode .name,
    .light-mode .role,
    .light-mode .description,
    .light-mode .section-title,
    .light-mode .contact-title,
    .light-mode .contact-text {
        color: #111;
    }

    /* Navbar */
    .light-mode .navbar {
        background-color: #ffffff;
        border-color: #00cc66;
    }

    .light-mode .nav-links a {
        color: #000;
    }

    /* Boutons */
    .light-mode .btn,
    .light-mode .contact-btn {
        background-color: #00cc66;
        color: #fff;
    }

        .light-mode .btn:hover,
        .light-mode .contact-btn:hover {
            background-color: #00994d;
        }

    /* Projets */
    .light-mode .project-card {
        background-color: #ffffff;
        color: #000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .light-mode .project-description {
        color: #333;
    }

    .light-mode .project-tags span {
        background-color: #e0e0e0;
        color: #006633;
    }

    .light-mode .project-links {
        color: #00aa66;
    }

    /* Footer */
    .light-mode .footer,
    .light-mode .footer-small {
        color: #444;
    }

    /* Bottom Bar */
    .light-mode .bottom-bar {
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 0 10px #00cc66;
    }

        .light-mode .bottom-bar img {
            filter: brightness(0.8);
        }

.contact-section {
    text-align: center;
    padding: 6rem 2rem 4rem;
    background-color: #0e0e1b;
}

.contact-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.contact-text {
    font-size: 1rem;
    color: #d1d1d1;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.contact-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #00cc66;
    color: white;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.3s ease;
    margin-bottom: 2rem;
}

    .contact-btn:hover {
        background-color: #00994d;
    }

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

    .social-icons img {
        width: 32px;
        height: 32px;
        transition: transform 0.2s ease;
    }

        .social-icons img:hover {
            transform: scale(1.2);
        }
.footer {
    text-align: center;
    padding: 6rem 1rem;
    font-size: 0.8rem;
    color: #999999;
    background-color: transparent;
}

.footer-small {
    font-size: 0.75rem;
    color: #777777;
    margin-top: 0.3rem;
}

#backToTop {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 999;
    background-color: #00cc66;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 204, 102, 0.6);
    display: none;
    transition: transform 0.3s ease;
}

    #backToTop:hover {
        transform: scale(1.1);
    }


@media (max-width: 768px) {
    .top-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .top-left,
    .top-right {
        width: 100%;
    }

    .top-image {
        margin: 0 auto;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }


    .sidebar-wrapper {
        display: none;
    }


    .top-mobile-bar {
        display: flex;
    }

    /* Décale le contenu en dessous de la top bar */
    .top-container {
        margin-top: 60px;
    }
}

