/* =============================// Global variables ============================= */









:root {
    --primary-color: #2e5bcc;
    --secondary-color: #4a90e2;
    --light-gray: #f9f9f9;
    --white: #ffffff;
    --text-color: #333;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: 0.3s ease-in-out;
}

html {
    zoom: 100%;
}

body {
    margin: 0;
    background: #ffffff;
    color: #000000;
    display: flex;
    flex-direction: row;
    min-height: 50vh;
}

/* =============================// Main Content Area ============================= */
.content {
    flex: 1;
    padding: 30px;
    box-sizing: border-box;
    color: #000;
    background: #ffffff;
    overflow: auto;
    /* Pour éviter que le contenu soit caché sous la sidebar, on ajoute une marge gauche égale à la largeur de la sidebar */
    margin-left: 350px;
    margin-right: auto;
}
.content::-webkit-scrollbar-track {
    background: #ffffff;      /* Fond du rail en blanc */
}

.welcome {
    background: linear-gradient(135deg, #2e5bcc, #4a90e2);
    color: white;
    font-size: 50px;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
}

.welcome h2 {
    font-weight: bold;
}

/* =============================// About & Timeline Container ============================= */
.about, .timeline-container {
    /* Note: originally #a-propos block repeated, unified below for #a-propos. */
}

.about h2, .timeline-container h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.about p, .timeline-item p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-top: 10px;
}

.download-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.download-links a {
    text-decoration: none;
    color: #ffffff;
    background-color: #3498db;
    padding: 12px 20px;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 1.1em;
}

.download-links a:hover {
    background-color: #2e5bcc;
    transform: translateY(-3px) scale(1.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* =============================// Timeline ============================= */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 50px auto;
    padding: 0;
    list-style: none;
}

/* Ligne centrale, désormais en dégradé pour un look moderne */
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    /* Dégradé vertical pour plufa-network-wireds de style */
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

/* Les éléments de la timeline */
.timeline-item {
    padding: 20px 30px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    opacity: 0;
    transform: translateX(-100px);
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Puce de la timeline, désormais pleine et sans contour */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: var(--primary-color);
    top: 0;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 3px #fff; /* petit contour blanc pour contraster */
}

/* Gestion de l'alternance gauche/droite */
.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(odd)::after {
    right: -12px;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -12px;
}

.timeline-item .timeline-content {
    padding: 20px 30px;
    background-color: #fff;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.timeline-item .timeline-content:hover {
    background-color: #f8fbff;
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(46, 91, 204, 0.15);
}

.timeline-item h3 {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.timeline-item h3 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.timeline-item span {
    font-size: 1.1em;
    color: #555;
    display: block;
    margin-bottom: 10px;
}

@keyframes cascade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item.visible {
    animation: cascade 0.8s ease-in-out forwards;
}


.timeline-arrow {
    text-align: center;

}

.timeline-arrow i {
    font-size: 3em;
    color: var(--primary-color);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}



/* =============================// Modal ============================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
}

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

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

/* =============================// Fade Animations ============================= */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(5px);
    }
    75% {
        transform: translateX(-5px);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes cascade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item.visible {
    animation: cascade 0.8s ease-in-out forwards;
}


/* =============================// Container Projets ============================= */
.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f8f8, #e9e9e9);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto', Arial, sans-serif;
    color: #333;
    margin: 0 auto;
    max-width: 1200px;
}

.projects-container h2 {
    width: 100%;
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    font-weight: 700;
    color: #333;
}

/* =============================// Carte de Projet ============================= */
.project-card {
    perspective: 1000px;            /* Permet l'effet 3D de flip */
    width: 450px;                   /* Largeur plus grande */
    height: 350px;                  /* Hauteur plus grande */
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    /* Animation d’apparition */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================// Contenu interne qui bascule ============================= */
.project-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.project-card:hover .project-card-inner {
    transform: rotateY(180deg);
}

/* =============================// Faces de la carte ============================= */
.project-card-front,
.project-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 30px;
}

/* Face avant */
.project-card-front {
    background: linear-gradient(135deg, #4a90e2, #2e5bcc);
    color: #fff;
    text-align: center;
}

.project-card-front h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    font-weight: 600;
}

.project-card-front p {
    font-size: 1.1em;
    line-height: 1.6;
}

/* Face arrière */
.project-card-back {
    background-color: #fff;
    color: #333;
    transform: rotateY(180deg);
    text-align: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Contenu texte face arrière */
.project-card-back p {
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0;
    overflow-y: auto; /* Permet de scroller si le texte est trop long */
}

/* =============================// Galerie d'images (optionnelle) ============================= */
.project-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 1rem;
}

/*
   Réduis la taille max des images pour ne pas qu'elles prennent
   trop de place par rapport au texte. Ajuste la valeur si nécessaire.
*/
.project-gallery img {
    max-width: 100px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.project-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* =============================// Lien de menu dans la sidebar (exemple) ============================= */
.sidebar .menu a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.1em;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
}

.sidebar .menu a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* =============================// Additional Animations ============================= */

@media (max-width: 768px) {
    .timeline {
        padding: 20px 0;
    }

    .timeline-item {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .timeline-item::after {
        display: none;
    }

    .timeline::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* For smaller screens, project cards in full width */
    .project-card {
        width: 90% !important;
        height: auto !important;
        margin: 20px 0;
    }

    .project-card-front,
    .project-card-back {
        padding: 20px;
    }
}

/* =============================// Animation (apparition fluide) ============================= */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================// Section Contact ============================= */
.contact-section {
    background: linear-gradient(135deg, #f3f3f3, #ffffff);
    padding: 5rem 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    font-family: 'Arial', sans-serif;
    position: relative;
    animation: fadeInUp 0.8s ease forwards; /* L’animation d’apparition */
}

.contact-section h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.contact-section p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* =============================// Formulaire ============================= */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto; /* Centre le formulaire */
    animation: fadeInUp 1s ease forwards; /* Tu peux retirer cette animation si tu préfères */
    animation-delay: 0.3s; /* Début un peu après la section */
    opacity: 0; /* Masqué avant l’animation */
}

/* Groupe de champs */
.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

/* Label */
.form-group label {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    cursor: pointer;
}

.form-group label:hover {
    color: #007bff;
}

/* Champs (input, textarea) */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    background-color: #fafafa;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
    font-style: italic;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
    background-color: #fff;
    transform: scale(1.01); /* Légère mise en avant */
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* =============================// Bouton de diplome et envoie formulaire ============================= */
.form-button {
    /* Dimensions réduites */
    padding: 5px 10px;
    font-size: 1rem;

    color: #fff;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.form-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 123, 255, 0.3);
    background: linear-gradient(135deg, #0056b3, #007bff);
}

.form-button:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.4);
}

.form-button:active {
    transform: translateY(0);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}


/* =============================// Message de réponse (success / error) ============================= */
#form-response {
    margin-top: 20px;
    font-size: 1rem;
    opacity: 0; /* Caché par défaut */
    transition: opacity 0.5s ease-in-out;
}

#form-response.success {
    opacity: 1;
    color: #28a745; /* Vert de validation */
}

#form-response.error {
    opacity: 1;
    color: #dc3545; /* Rouge d'erreur */
}

/* =============================// Responsive ============================= */
@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 1.5rem;
    }
    .contact-section h2 {
        font-size: 2rem;
    }
    .form-button {
        font-size: 1rem;
        padding: 12px 20px;
    }
}


/* =============================// Animation d'apparition ============================= */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================// Section A propos ============================= */
#a-propos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    max-width: 1200px;              /* Largeur max pour un meilleur centrage */
    margin: 40px auto;             /* Centre le bloc horizontalement et ajoute de l'espace vertical */
    padding: 60px;

    background: linear-gradient(135deg, #f5f5f5, #e9e9e9);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.8;
    color: #333;

    opacity: 0;                     /* Pour l'animation fadeInUp */
    animation: fadeInUp 1s ease forwards;
}

#a-propos h2 {
    font-size: 2.5rem;
    color: #2e5bcc;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(46, 91, 204, 0.3);

    display: flex;
    align-items: center;
    gap: 10px;
}

#a-propos p {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #444;
    text-align: center;   /* Centré pour un aspect plus harmonieux */
    max-width: 800px;     /* Limite la largeur du texte */
    line-height: 1.6;     /* Légèrement plus compact */
}

#a-propos i {
    color: #2e5bcc;
    font-size: 1.5rem;
}

/* Mots-clés ou passages importants */
#a-propos strong {
    color: #2e5bcc;
    font-weight: bold;
}

/* =============================// Barres horizontales (ou graphiques) ============================= */
.bar {
    width: 2.5vw;
    background: #424242;
    height: 0;
    margin: 1px;
    transition: height 2000ms ease;
}

.bar:hover {
    background-color: #DCEDC8;
    border: 1px solid #76FF03;
}

/* =============================// Tooltip ============================= */
.tooltip {
    width: 100px;
    font-size: 16px !important;
    margin-top: -20px !important;
    /* tu peux ajouter d'autres styles ici si besoin */
}

.tooltip-arrow {
    border-top: 5px solid black !important;
}

/* =============================// Responsivité ============================= */
@media (max-width: 768px) {
    #a-propos {
        padding: 30px;
        margin: 20px auto;
    }

    #a-propos h2 {
        font-size: 2rem;
    }

    #a-propos p {
        font-size: 1.1rem;
        max-width: 100%;  /* Le texte prend toute la largeur sur mobile */
    }
}

/* =============================// Projects re-declaration (avoid duplication) ============================= */
.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, #f5f5f5, #e9e9e9);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto', Arial, sans-serif;
}

.projects-container h2 {
    width: 100%;
    text-align: center;
    font-size: 3em;
    margin-bottom: 30px;
    color: #333;
    font-weight: bold;
}

@media (max-width: 768px) {
    .projects-container {
        padding: 20px;
    }
}

/* ============================= */
/* Base Missions Container       */
/* ============================= */
.missions-container {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    margin: 20px auto;
    max-width: 1200px;
    text-align: center;  /* Centre le contenu (titre, boutons, etc.) */
}

.missions-container .section-title {
    margin-bottom: 30px;
    font-size: 2.2em;
    color: var(--primary-color);
}

/* ============================= */
/* Boutons de Mission           */
/* ============================= */
.mission-button {
    position: relative;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    margin: 10px auto;      /* Centrage horizontal avec auto */
    padding: 15px 20px;
    cursor: pointer;
    width: 100%;
    max-width: 800px;       /* Limite la largeur pour un rendu optimal */
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Texte aligné à gauche */
    gap: 10px;
    text-align: left;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Flèche à droite (pseudo-élément) */
.mission-button::after {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 20px;
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

/* Bouton étendu : la flèche tourne vers le bas */
.mission-button.expanded::after {
    transform: rotate(90deg);
}

/* Hover & focus sur le bouton */
.mission-button:hover,
.mission-button:focus {
    background: var(--secondary-color);
    transform: translateX(5px);
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.mission-button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================= */
/* Détails de chaque Mission     */
/* ============================= */
.mission-details {
    background: #fff;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 0 auto 20px auto;   /* Centre horizontalement avec auto */
    max-width: 800px;            /* Correspond à la largeur des boutons */
    text-align: left;            /* Contenu aligné à gauche pour la lisibilité */
    max-height: 0;              /* État initial fermé */
    overflow: hidden;
    opacity: 0;
    pointer-events: none;       /* Désactive l'interaction quand fermé */
    transition: max-height 0.5s ease, opacity 0.5s ease;
    padding: 0;                 /* Padding désactivé en mode fermé */
}

/* Style de la liste dans les détails */
.mission-details ul {
    padding-left: 20px;
    list-style-type: disc;
    margin-top: 15px;
}

.mission-details li {
    margin-bottom: 10px;
    line-height: 1.5;
    color: var(--text-color);
    font-size: 1em;
    position: relative;
    padding-left: 30px;         /* Espace pour l'icône */
}

.mission-details li i {
    position: absolute;
    left: 0;
    top: 2px;
    color: #3498db;
    font-size: 1.2rem;
}

/* ============================= */
/* Détails ouverts (visibles)    */
/* ============================= */
.mission-details.visible {
    max-height: 1000px; /* Valeur élevée pour déplier le contenu */
    opacity: 1;
    pointer-events: auto;
    padding: 15px 20px; /* Activation du padding une fois déplié */
    animation: fadeIn 0.5s ease-in-out;  /* Animation de déploiement */
}

/* Animation fadeIn */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================= */
/* Styles Responsive             */
/* ============================= */
@media (max-width: 768px) {
    .missions-container .section-title {
        font-size: 2rem;
    }
    .mission-button {
        font-size: 1rem;
        width: 90%;
    }
    .mission-details {
        font-size: 0.9rem;
        width: 90%;
    }
}
/* Supprime les puces et l'indentation de la liste */
.mission-details ul {
    list-style: none; /* Enlève les puces */
    padding-left: 0;  /* Supprime l'indentation */
    margin-top: 15px;  /* Conserve un espacement vertical */
}







/* =============================// BTS Projects ============================= */
.bts-projects-container {
    /* Espace et fond */
    padding: 40px;
    background: var(--white);
}

.bts-section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

/* Chaque "row" correspond à un projet */
.bts-project-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    background: var(--white);

    /* Transition unifiée */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Effet hover : légère élévation */
.bts-project-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Partie de résumé à gauche */
.bts-project-summary {
    flex: 1 1 30%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 20px;

    /* Centrage vertical & horizontal */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    font-size: 1.1rem;
    /* Transition sur la couleur / background si besoin */
    transition: background 0.3s ease;
}

/* Partie de détails à droite */
.bts-project-details {
    flex: 1 1 70%;
    padding: 20px;
    background: var(--light-gray);
    color: var(--text-color);
    text-align: center;

    /* Transition sur la couleur / background si besoin */
    transition: background 0.3s ease;
}

.bts-project-details h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    text-align: center;
}

/* Liste des infos du projet */
.bts-project-details ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
    text-align: center; /* Centré sur l'ensemble, mais chaque ligne sera en "text-align: left" si besoin */
}

.bts-project-details li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
}

/* Label fort : on réserve un espace (flex-basis) pour la "description" à gauche */
.bts-project-details li strong {
    flex-basis: 250px;
    font-weight: bold;
    display: inline-block;
}

/* Icônes */
.bts-project-summary i,
.bts-project-details i {
    font-size: 1.2rem;
    margin-right: 8px;
    color: inherit; /* Couleur héritée pour conserver la cohérence */
}

/* Optionnel : survol de la zone de résumé */
.bts-project-summary:hover {
    /* On peut inverser le dégradé ou changer la luminosité par exemple */
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Responsive */
@media (max-width: 768px) {
    /* On empile les colonnes */
    .bts-project-row {
        flex-direction: column;
    }

    .bts-project-summary,
    .bts-project-details {
        flex: 1 1 100%;
    }

    .bts-project-details h3 {
        font-size: 1.5rem;
    }
}





.stages-info {
    /* Contexte visuel */
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 20px 0; /* espace au-dessus/au-dessous */
}

.stages-info p {
    margin: 0 0 10px; /* espace sous le titre */
}

.stages-info p strong {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.stages-info ul {
    list-style: none; /* on enlève les puces par défaut */
    margin: 0;
    padding: 0;
}

/* Chaque item de la liste */
.stages-info li {
    position: relative; /* pour placer l'icône */
    padding-left: 30px; /* on réserve de la place pour l'icône */
    margin-bottom: 10px;
    line-height: 1.5;   /* meilleure lisibilité */
    color: var(--text-color);
}

/* Icônes dans la liste (outils, réseau, etc.) */
.stages-info li i {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-color); /* ou la couleur de ton choix */
    font-size: 1.2em;
}

.project-icon {
    font-size: 3em; /* Ajustez cette valeur selon la taille désirée */
}












/* ==========================
   🌍 VARIABLES CSS GLOBALES
   ========================== */
:root {
    --veille-bg-color: #2e5bcc;
    --veille-gradient: linear-gradient(135deg, #2e5bcc, #4a90e2);
    --accent-color: #ffd700;
    --text-white: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.2);
    --border-radius: 15px;
    --shadow-light: 0 8px 20px rgba(0, 0, 0, 0.2);
    --transition-fast: 0.3s ease-in-out;
    /* Couleurs primaire et secondaire */
    --primary-color: #007bff;
    --secondary-color: #0056b3;
}

/* ==========================
   🔍 SECTION VEILLE TECHNOLOGIQUE
   ========================== */
#veille-technologique {
    background: var(--veille-gradient);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    max-width: 700px;
    width: 90%;
    color: var(--text-white);
    margin: 30px auto;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}
#veille-technologique h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}
#veille-technologique p {
    font-size: 1.2rem;
    line-height: 1.6;
}
#veille-technologique strong {
    color: var(--accent-color);
}

/* ==========================
   ⛓️ SECTION TRANSACTIONS BITCOIN
   ========================== */
#tx-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    padding: 10px;
}
.tx-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    width: 320px;
    text-align: left;
    border-left: 5px solid var(--primary-color);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.tx-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgb(16, 85, 255);
}
.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}
.detail-label {
    font-weight: bold;
    color: var(--primary-color);
}
.detail-value {
    color: #333;
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tx-hash {
    color: var(--primary-color);
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background-color: #f0f0f0;
    padding: 5px;
    border-radius: 8px;
}

/* ==========================
   BOUTON PAUSE
   ========================== */
#pause-btn {
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}
#pause-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

/* ==========================
   🔗 SECTION BLOCKCHAIN (IMAGE + EXPLICATION)
   ========================== */
.blockchain-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 30px auto;
    width: 90%;
    max-width: 900px;
}
.blockchain-description {
    background: var(--veille-gradient);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    color: var(--text-white);
    max-width: 800px;
    text-align: left;
    transition: transform var(--transition-fast);
    line-height: 1.6;
}
.blockchain-description:hover {
    transform: scale(1.02);
}
.blockchain-description ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}
.blockchain-description li {
    font-size: 1.2rem;
    margin: 10px 0;
    text-align: left;
    display: block;
    position: relative;
    padding-left: 25px;
}
.blockchain-description li::before {
    content: "✔️";
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 1.3rem;
    color: var(--accent-color);
}
.blockchain-description .highlight {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent-color);
    text-align: center;
    margin-top: 15px;
}

/* ==========================
   🖼️ IMAGE BLOCKCHAIN
   ========================== */
.blockchain-image-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}
.blockchain-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-fast);
}
.blockchain-image:hover {
    transform: scale(1.02);
}

/* ==========================
   📱 RESPONSIVE DESIGN
   ========================== */
@media (max-width: 768px) {
    #veille-technologique,
    .blockchain-description {
        width: 95%;
        padding: 20px;
    }
    .blockchain-description li {
        font-size: 1rem;
    }
    .blockchain-description .highlight {
        font-size: 1.1rem;
    }
}

/* ==========================
   🎭 ANIMATIONS
   ========================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes arrow-move {
    from { transform: translateX(0); }
    to { transform: translateX(-10px); }
}
@keyframes clignoter {
    from { opacity: 1; }
    to { opacity: 0.5; }
}

/* ==========================
   CONTENEUR PRINCIPAL POUR L'IMAGE BLOCKCHAIN
   ========================== */
.blockchain-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.blockchain-image {
    display: block;
    width: 100%;
    height: auto;
}

/* ==========================
   STYLE POUR L'ICÔNE DE NUAGE CLIQUABLE
   ========================== */
.cloud-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.3s;
}
.cloud-icon:hover {
    transform: scale(1.1);
}

/* ==========================
   CONTENEUR POUR L'INTERACTION (TEXTE CLIQUABLE ET FLÈCHE)
   ========================== */
.interaction {
    position: relative;
}
.click-text {
    color: #ffffff;
    text-decoration: underline;
    cursor: pointer;
    font-size: 18px;
    padding-left: 10px;
}
.arrow-icon {
    position: absolute;
    top: 16px;
    right: 70px;
    font-size: 24px;
    color: #ffffff;
    z-index: 2;
    animation: arrow-move 2s infinite alternate, clignoter 1.5s infinite alternate;
}
.arrow-icon::before {
    content: "cliquer:";
    position: absolute;
    right: 100%;
    margin-right: 10px;
    top: 50%;
    transform: translateY(-50%);
    text-decoration: underline;
    color: #ffffff;
    font-size: 18px;
}

/* ==========================
   STYLES DU MODAL
   ========================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease-in-out;
}
.modal-content {
    background-color: #ffffff;
    margin: 8% auto;
    padding: 30px 40px;
    border: none;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease-out;
}
@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.close {
    color: #999;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}
.close:hover {
    color: #333;
}

/* ==========================
   STYLE DU #blockInfo (Bloc d'Information Bitcoin)
   ========================== */
/* Utilisation de la classe dédiée .block-info-card */
.block-info-card {
    background: #fff;
    max-width: 800px; /* Box agrandie */
    margin: 20px auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--primary-color);
}
.block-info-card .block-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
}
.block-info-card p {
    font-size: 1.1rem;
    margin: 10px 0;
    color: #333;
}
.block-info-card p strong {
    color: var(--primary-color);
}
/* Pour forcer le hash à se découper correctement */
.block-info-card .block-hash {
    display: block;
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: normal;
}















/* ==========================
   🌍 VARIABLES CSS GLOBALES
   ========================== */
:root {
    --veille-bg-color: #2e5bcc;
    --veille-gradient: linear-gradient(135deg, #2e5bcc, #4a90e2);
    --accent-color: #ffd700;
    --text-white: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.2);
    --border-radius: 15px;
    --shadow-light: 0 8px 20px rgba(0, 0, 0, 0.2);
    --transition-fast: 0.3s ease-in-out;
    /* Couleurs primaire et secondaire */
    --primary-color: #007bff;
    --secondary-color: #0056b3;
}

/* ==========================
   ANIMATION: SLIDE IN UP
   ========================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================
   ANIMATION: PULSE HOVER (optionnel)
   ========================== */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* ==========================
   STYLE DU #blockInfo (Bloc d'Information Bitcoin)
   ========================== */
/* Utilisation de la classe dédiée .block-info-card */
.block-info-card {
    background: #fff;
    max-width: 800px; /* Box agrandie */
    margin: 20px auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--primary-color);
    animation: slideInUp 0.6s ease-out; /* Animation à l'apparition */
}
.block-info-card:hover {
    animation: pulse 1s infinite; /* Effet de pulsation au survol */
}
.block-info-card .block-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
}
.block-info-card p {
    font-size: 1.1rem;
    margin: 10px 0;
    color: #333;
}
.block-info-card p strong {
    color: var(--primary-color);
}
/* Pour forcer le hash à se découper correctement */
.block-info-card .block-hash {
    display: block;
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: normal;
}

























/* ===== Barre de boutons ===== */
.button-bar {
    text-align: center;
    margin-bottom: 20px;
}

.toggle-btn, .download-btn {
    display: inline-block;
    margin: 0 10px;
    padding: 10px 20px;
    background-color: #2e5bcc;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-btn:hover, .download-btn:hover {
    background-color: #1d3e8a;
}

/* ===== Conteneur du tableau ===== */
.table-container {
    max-width: 100%;
    overflow-x: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 10px;
    display: none; /* Le tableau est caché par défaut */
}

/* ===== Tableau ===== */
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    font-size: 0.95rem;
}

thead {
    background-color: #2e5bcc;
    color: #fff;
}

th, td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
    text-align: left;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* ===== Sous-titres ===== */
.subheader-row td {
    background: #d9e1f2;
    font-weight: bold;
    text-align: center;
    border-bottom: 2px solid #bbb;
}

/* ===== Case cochée (fond vert) ===== */
.checked {
    background-color: #c8e6c9; /* Vert clair */
    color: #2e7d32;           /* Vert foncé */
    text-align: center;
    font-weight: bold;
}