@font-face {
    font-family: "American Captain.ttf";
    src: url("fonts/american_captain/American Captain.ttf") format("truetype");
}
:root {
    --primary-main-color: rgba(255, 187, 0, 0.996);
    --primary-bg-color: radial-gradient(
        circle at top,
        #2a3142,
        #0f131c
    );
    --primary-index-color:#ffffffc2;
    --primary-text-color:#fbfbfbf1;
    --primary-other-color: #903cfff1;
    --primary-griscard-color: rgba(236, 236, 236, 0.5);
    --primary-oldback-projet:linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.02)
    );
    --primary-oldback-bts: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.12),
        rgba(255, 255, 255, 0.04)
    );
    --primary-oldborder-projetcard: 1.5px solid rgba(255, 187, 0, 0.55)
}
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px; /* hauteur fixe */
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent; /* départ transparent */
    z-index: 1000;
    font-size: 30px;
}
header nav {
    display: flex;
    gap: 45px;
}

header nav a {
    color: rgb(255, 255, 255); /* texte noir au départ */
    text-decoration: none;
    padding: 10px 20px;
    font-weight: 500;
    transition: 0.3s ease;
    font-family: "American Captain.ttf", sans-serif;
}

header nav a:hover {
    background: rgba(255, 187, 0, 0.996);
    border-radius: 30px;
}

/* quand on scroll */
header.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
}

header.scrolled nav a {
    color: white; /* texte blanc au scroll */
}
#intituler_page_projets .Projets h1{
    font-size: 30px;
    margin-top: 150px;
    margin-left: 100px;
    color: aliceblue;

}
#liste_projets {
    margin-top: 100px;
    padding: 0 110px;
    margin-left: 75px;
}
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Conteneur aligné */
.projets-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Carte projet */
.projet-card {
    width: 280px;
    min-height: 220px;

    /* Glass bleu cohérent avec le fond */
    background: var(--primary-griscard-color);

    backdrop-filter: blur(14px);

    border-radius: 22px;
    padding: 25px;

    border: 1.5px solid rgba(255, 187, 0, 0.55);

    cursor: pointer;
    overflow: hidden;

    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    transition:
        background 0.4s ease,
        box-shadow 0.4s ease,
        transform 0.4s ease;
}


/* Animation hover */
.projet-card:hover {
    transform: translateY(-12px) scale(1.05);

    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(255, 187, 0, 0.25);

    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.12),
        rgba(255, 255, 255, 0.04)
    );
}


.projet-card:hover h3 {
    transform: translateY(-5px);
    color: aliceblue;
}

.projet-card:hover p {
    opacity: 1;
    transform: translateY(0);
    color: aliceblue;
}


/* Titre */
.projet-card h3 {
    font-size: 26px;
    color: rgb(3, 3, 3);
    opacity: 1;
    transition: transform 0.4s ease;
    text-align: center;
}

/* Description */
.projet-card p {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.95);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.logo_cluster {
    display: block;
    margin: 10px auto 15px auto; /* espace entre titre et logo, puis logo et description */
    width: 200px; /* ajuster selon ton logo */
    height: 100px;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.projet_card:hover .logo_cluster {
    opacity: 0;
}
.logo_ticket {
    display: block;
    margin: 10px auto 15px auto; /* espace entre titre et logo, puis logo et description */
    width: 200px; /* ajuster selon ton logo */
    height: 100px;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.projet_card:hover .logo_ticket{
    display: block;
    margin: 10px auto 15px auto; /* espace entre titre et logo, puis logo et description */
    width: 200px; /* ajuster selon ton logo */
    height: 100px;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.logo_firewall {
    display: block;
    margin: 10px auto 15px auto; /* espace entre titre et logo, puis logo et description */
    width: 200px; /* ajuster selon ton logo */
    height: 100px;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.projet_card:hover .logo_firewall {
    display: block;
    margin: 10px auto 15px auto; /* espace entre titre et logo, puis logo et description */
    width: 200px; /* ajuster selon ton logo */
    height: 100px;
    object-fit: contain;
    transition: transform 0.4s ease;

}
.projet-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}
/* Fond de la modale */
#project-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex; /* Piloté par JS */
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity:0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    overflow: hidden;
    padding: 60px; /* 👈 vrai espace visuel autour */
}

/* La fenêtre (plus petite et sombre) */
.modal-content {
    background: #f0f0f0; /* Couleur sombre comme ton dessin */
    color: rgb(0, 0, 0);
    width: 90%; /* Taille réduite */
    top: 20px;
    bottom: 20px;
    max-width: 1000px;
    min-height: 400px;
    max-height: 90vh;   /* 👈 limite à la hauteur écran */
    padding: 40px;
    border-radius: 15px;
    border: 1.5px solid rgba(255, 187, 0, 0.788);
    position: fixed;
    transform: scale(0.92) translateY(20px);
    opacity: 0;
    overflow-y: auto;
    transition:
        transform 0.45s ease,
        opacity 0.45s ease;
    
    
}

/* Titre en haut à gauche */
#modal-title {
    font-size: 22px;
    margin-bottom: 20px;
    margin-left: 35px;
    text-align: left;
}

/* Alignement Image à gauche / Texte à droite */
.project-container-flex {
    display: flex;
    flex-direction: column;   /* empile les éléments */
    align-items: flex-start;      /* centre horizontalement */
    text-align: left;       /* centre le texte */
    gap: 20px;
}

.project-left img {
    max-width: 100%;   /* 🔥 s’adapte à la fenêtre */
    height: auto;      /* garde les proportions */
    max-height: none; /* limite pour éviter trop grand */
    object-fit: contain;
    border: 2px solid var(--primary-main-color);
    border-radius: 12px;
    padding: 4px;
    overflow-y: auto;
    


    box-shadow: 0 0 20px rgba(255, 187, 0, 0.25);
}

.project-left {
    width: 100%;
    display: flex;
    justify-content: center; /* centre l'image horizontalement */
}
/* Zone Texte et Boutons */
.project-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-right h3 {
    color: var(--primary-main-color); /* Orange pour "Présentation" */
    margin-bottom: 15px;
    text-align: left;
}

.project-right p {
    font-size: 14px;
    color: #494949;
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: left;
}

/* Boutons empilés comme sur le plan */
.project-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.btn-doc, .btn-deploy {
    width: 180px;
    padding: 8px;
    font-size: 12px;
    text-decoration: none;
    color: #494949;
    border: 1px solid #494949;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-doc:hover, .btn-deploy:hover {
    background: rgba(255, 187, 0, 0.2);
    border-color: var(--primary-main-color);
} 

/* Bouton fermer */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    font-size: 20px;
    color: #ff9900;
}
#project-modal.active {
    opacity: 1;
    pointer-events: auto;
}

#project-modal.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}
body {
    margin: 0;
    min-height: 100vh;

    background: var(--primary-bg-color);

    font-family: "Inter", system-ui, sans-serif;
    color: var(--primary-text-color);
    display: block;
}
.drive-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;

    width: 60px;
    height: 60px;

    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);

    border-radius: 50%;
    border: 1.5px solid rgba(255, 187, 0, 0.6);

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 10px 25px rgba(0,0,0,0.5);

    cursor: pointer;
    transition: 0.3s ease;
    z-index: 2000;
}

.drive-btn img {
    width: 45px;
    height: auto;
    object-fit: contain;
}

/* Hover stylé */
.drive-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 15px 35px rgba(0,0,0,0.7),
                0 0 20px rgba(255, 187, 0, 0.4);
}
.drive-btn::after {
    content: "Voir tous mes projets";
    position: absolute;
    right: 70px;
    white-space: nowrap;
    background: rgba(0,0,0,0.8);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--primary-text-color);
    font-weight: bold;
    opacity: 0;
    transition: 0.3s;
}

.drive-btn:hover::after {
    opacity: 1;
}

.projet-card.show {
    opacity: 1;
    transform: translateY(0);
}
.projet-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.projet-card.show:hover {
    transform: translateY(-12px) scale(1.05);
}
#image-zoom {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#image-zoom.active {
    opacity: 1;
    pointer-events: auto;
}

#zoomed-img {
    max-width: 95vw;  /* prend presque toute la largeur écran */
    max-height: 95vh; /* prend presque toute la hauteur */
    width: auto;
    height: auto;
}

#close-zoom {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: var(--primary-main-color);
    cursor: pointer;
}
#footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;

    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgb(255, 187, 0);
}

#footer {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 80px;

    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgb(255, 187, 0);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    padding: 14px 30px;
}

.footer-copy {
    font-size: 12px;
    color: var(--primary-text-color);
    margin: 0;
    font-family: "Inter", sans-serif;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-nav a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-family: "American Captain.ttf", sans-serif;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: rgba(255, 187, 0, 0.95);
}

.footer-sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 12px;
}
.synthese-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;

    width: 60px;
    height: 60px;

    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);

    border-radius: 50%;
    border: 1.5px solid rgba(255, 187, 0, 0.6);

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 10px 25px rgba(0,0,0,0.5);

    cursor: pointer;
    transition: 0.3s ease;
    z-index: 2000;

    text-decoration: none;
    color: var(--primary-text-color);
    font-family: "American Captain.ttf", sans-serif;
    font-size: 18px;
    letter-spacing: 1px;
}

.synthese-btn img {
    width: 35px;
    height: auto;
    object-fit: contain;
}

.synthese-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 15px 35px rgba(0,0,0,0.7),
                0 0 20px rgba(255, 187, 0, 0.4);
}

.synthese-btn::after {
    content: "Fiche de synthèse E5";
    position: absolute;
    left: 70px;
    white-space: nowrap;
    background: rgba(0,0,0,0.8);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--primary-text-color);
    font-weight: bold;
    opacity: 0;
    transition: 0.3s;
}

.synthese-btn:hover::after {
    opacity: 1;
}

