/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #D3D3D3;
}

/********************
 * Barre de navigation
 ********************/
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #333;
    color: white;
    display: flex;
    align-items: center;
    padding: 10px 40px 10px 20px;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 200%;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 10%;
    margin-right: 50px;
}

.navbar nav ul {
    list-style-type: none;
    display: flex;
    gap: 35px;
    margin-top: 15px;
}

.navbar nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.navbar nav ul li a:hover {
    text-decoration: underline;
}
/***********************/

/********************
 * Section hero
 ********************/
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.hero-text h1 {
    font-size: 3rem;
    margin: 0;
}

/***********************/

.title-section {
    font-size: 2.75rem;
    margin: 30px 0 20px 30px;
}

.underline {
    width: 50px;
    height: 4px;
    background-color: #007BFF;
    margin-top: 5px;
    border-radius: 2px;
}

/******************************************************
 * Section présentation
 ********************/
.presentation {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 150px;
    max-width: 1100px;
    margin: 0 auto;
}

.justify-text {
    text-align: justify;
}

/* Photo d’identité */
.presentation-photo {
    flex: 1;
    max-width: 180px;
    margin-left: -50px;
}

.presentation-photo img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    border: 3px solid #ccc;
}

/* Texte */
.presentation-text {
    flex: 2;
    max-width: 700px;
    text-align: left;
    line-height: 1.8;
    font-size: 1.1rem;
}

.presentation-title {
    color: #007BFF;
    font-size: 1.6rem;
    font-weight: bold;
}

/* Bouton CV */
.cv-button {
    display: inline-block;
    padding: 7px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #007BFF;
    border: 2px solid #007BFF;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    margin-top: 10px;
}

.cv-button:hover {
    background: #007BFF;
    color: white;
}


/****************************************************
 * Sections texte-image alternées
 ********************/
.content {
    padding: 20px 20px;
}

.text-image {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    background-color: #f4f4f4;
}

.text-image h2 {
    font-size: 2rem;
    color: #333333;
    margin-bottom: 5px;
}

.text-image p {
    font-size: 1.2rem;
    color: #555555;
    margin: 5px 0;
}

.date {
    display: inline-block;
    background-color: #fde9e4;
    color: #f56c42;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 10px 0;
}

.subtitle {
    font-style: italic;
    font-size: 0.95rem;
    color: #999999;
    margin: 10px 0;
}

.text {
    flex: 1;
    padding: 20px;
}

.image {
    flex: 1;
    text-align: center;
}

.image img {
    max-width: 70%;
    height: auto;
}

.separator-black{
    width: 100%;
    height: 1px;
    background-color: black;
    margin: 5px;
}

/***************************************************************************
 * section stage
 ***************************************************************************/

/* Style des cartes */
.card-full-width {
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Conteneur général du titre, date et logo */
.stage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

/* Partie contenant le titre et la date */
.stage-info {
    display: flex;
    flex-direction: column;
    flex: 1;

}
/* Titre */
.stage-info h2 {
    font-size: 1.8rem;
    color: #007BFF;
    margin: 0;
}

/* Soulignement du titre */
.stage-title-separator {
    width: 100%;
    height: 2px;
    background-color: #007BFF;
    margin-top: 5px;
}

/* Style de la date */
.stage-info .date {
    display: inline-block;
    background-color: #fde9e4;
    color: #f56c42;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 20px;
    width: fit-content;
}

/* Logo de l'entreprise */
.stage-logo {
    height: 100%;
    width: 15%;
    max-height: 80px;
    border-radius: 5px;
}

.stage-logo2 {
    height: 20%;
    width: 100%;
    max-width: 120px;
    border-radius: 5px;
}

.stage-section {
    margin-bottom: 20px;
    padding: 0 15px;
}

.stage-section h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 20px;
}

.stage-section p {
    flex: 1;
    font-size: 1.1rem;
    color: #333;
}

/* Conteneur des missions */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Mission individuelle  */
.task-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 100px;
    padding: 0 10px;
}

.task-container a {
    flex-shrink: 0;
}

.task-container img {
    width: 200px;
    height: auto;
    border-radius: 5px;
    transition: transform 0.2s ease-in-out;
    border: 2px solid #007BFF;
}

.task-container h4 {
    color: #007BFF;
    text-align: center;
    width: 200px;
}

.task-container img:hover {
    transform: scale(1.05);
}

/* Image des compétences */
.competence-image {
    display: block;
    margin: 0 auto;
    max-width: 75%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.2s ease-in-out;
    border: 2px solid #007BFF;
}

.competence-image:hover {
    transform: scale(1.05);
}


/********************
 * Pied de page
 ********************/
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.social-links a {
    display: inline-block;
    width: 30px;
    height: 30px;
}

.social-links img {
    width: 30px;
    height: auto;
    transition: transform 0.2s, filter 0.2s;
}

.social-links a:hover img {
    transform: scale(1.1);
    filter: invert(75%) sepia(100%) hue-rotate(190deg) saturate(400%);
}

/** Le BTS ----------------------------------------------***/

.specialities {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1.1rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.card-full-width h2,
.card h2 {
    font-size: 1.5rem;
    color: #007BFF;
    margin-bottom: 15px;
}

.card ul.list,
.card-full-width ul.list{
    margin-top: 10px;
    padding-left: 20px;
}

.list {
    list-style-type: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.list > li {
    margin-bottom: 15px;
}

.list ul {
    list-style-type: disc;
    margin-left: 20px;
}

.list ul li {
    margin-bottom: 5px;
}

.card-full-width {
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-full-width section {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.6;
}

.content-with-image {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.card-full-width a {
    color: #4CAF50;
    text-decoration: none;
}

.card-full-width p {
    margin-bottom: 10px;
}

.card-full-width a:hover {
    text-decoration: underline;
}

.text-content {
    flex: 1;
}

.image-content {
    flex-shrink: 0;
}

.image-content img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* La veille --------------------------------------*/

.veille-setup {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.veille-item {
    flex: 1 1 300px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    text-align: center;
}

.veille-item img {
    margin-top: 15px;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.veille-item h3 {
    color: #007BFF;
    margin-bottom: 10px;
}


/* Les Documents -------------------------------------*/

/* Catégorie principale */
.category {
    margin: 40px 10px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    scroll-margin-top: 100px;
}

/* Titre de catégorie */
.category h2 {
    font-size: 2rem;
    color: #007BFF;
    margin-bottom: 20px;
    border-bottom: 2px solid #007BFF;
    padding-bottom: 10px;
}

/* Sous-catégorie */

.subcategory h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

/* Grille de documents */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Cartes */
.document-card {
    width: 200px;
    height: 200px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.document-card img {
    width: 100%;
    height: 70%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.document-card p {
    font-size: 1rem;
    color: #333;
    margin: 15px 0;
}

/**/
.subcategory-buttons {
    margin: 20px 0;
    padding: 10px 0;
    border-radius: 8px;
    text-align: center;
}

.subcategory-buttons h2 {
    margin-bottom: 10px;
    font-size: 18px;
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.button-container a {
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    flex: 1 1 auto;
    max-width: 200px;
    text-decoration: none;
}

.button-container a:hover {
    background-color: #45a049;
}

/*-----------------projets---------------------*/

/* Section Projets */
.projects-section {
    padding: 50px 20px;
}

/* Carte Projet */
.project-card {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
    padding: 20px;
}

/* Partie gauche : Texte */
.project-content {
    flex: 1;
    max-width: 75%;
    word-wrap: break-word;
    text-align: justify;
}

/* Titre du projet */
.project-content h2 {
    color: #007BFF;
    font-size: 1.8rem;
    margin-bottom: 10px;
    border-bottom: 2px solid #007BFF;
    display: inline-block;
    padding-bottom: 5px;
}

/* Date du projet */
.project-date {
    font-size: 1.2rem;
    font-weight: bold;
    color: #555;
    margin-bottom: 15px;
}

/* Description */
.project-description {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Liste des technologies */
.project-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tech-badge {
    background: #4CAF50;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
}

/* Partie droite : Image */
.project-image {
    max-width: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.project-image img {
    width: auto;
    height: auto;
    max-width: 250px;
    max-height: 200px;
    object-fit: contain;
}

/* les compétences */
.skills {
    margin-top: 50px;
    text-align: center;
}

.skills h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-content: center;
    padding: 0 10%;
}

.skill-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skill-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.skill-card p {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.skill-card:hover {
    transform: scale(1.05);
}

.skill-group {
    margin-bottom: 40px;
}

.skill-group h3 {
    font-size: 20px;
    margin-bottom: 10px;
    text-align: left;
    padding: 0 10%;
    color: #4CAF50;
}

/* ============ */
/* RESPONSIVE   */
/* ============ */

@media (max-width: 768px) {
    body {
        padding-top: 100px;
        overflow-x: hidden;
    }

    /* NAVBAR */
    .nav-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 10px;
        padding-left: 0;
        justify-content: center;
    }

    /* HERO TEXT */
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .card,
    .card-full-width {
        padding: 15px;
    }

    .presentation {
        flex-direction: column;
        align-items: center;
    }

    .presentation-photo {
        display: none;
    }

    .presentation-text {
        text-align: center;
        margin-top: 15px;
    }

    .cv-button {
        display: block;
        margin: 20px auto 0;
    }

    /* TEXT-IMAGE Sections */
    .text-image {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .text-image .image,
    .text-image .text {
        width: 100%;
        padding: 0 10px;
    }

    /* CONTENT-WITH-IMAGE (leBTS.html) */
    .content-with-image {
        flex-direction: column;
    }

    .image-content img {
        width: 100%;
        height: auto;
    }

    /* STAGE HEADERS */
    .stage-header {
        flex-direction: column;
        align-items: center;
    }

    .stage-logo, .stage-logo2 {
        display: none;
    }

    /* STAGE SECTION TASKS */
    .task-container {
        flex-direction: column;
        text-align: center;
    }

    .task-container img {
        width: 100%;
        max-width: 300px;
        margin-top: 15px;
    }

    .specialities {
         flex-direction: column;
         align-items: center;
     }

    /* COMPÉTENCES */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 5%;
    }

    .skill-group h3 {
        margin-top: 30px;
        text-align: center;
    }

    /* PROJETS */
    .project-card {
        flex-direction: column;
    }

    .project-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .project-image img {
        display: none;
    }
}



/* --------------------------- Modale ---------------------------*/
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.85);
}

.modal-content {
    background-color: #1e1e1e;
    margin: 80px auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    color: white;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.4);
}

.modal-header h2 {
    color: #007BFF;
    font-size: 2rem;
    margin-bottom: 10px;
}

.project-subtitle {
    font-style: italic;
    color: #aaa;
    margin-bottom: 30px;
}

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

.modal-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-card {
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.05);
}

.modal-card h3 {
    border-bottom: 2px solid #007BFF;
    padding-bottom: 8px;
    margin-bottom: 10px;
    color: #00d4ff;
}

.modal-card ul {
    padding-left: 20px;
}

.modal-card ul li {
    margin-bottom: 6px;
}

.tech-tags span {
    display: inline-block;
    background-color: #007BFF;
    color: white;
    padding: 6px 10px;
    margin: 5px 5px 0 0;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* --------------------------Carousel----------------------------*/

.carousel {
    position: relative;
    margin-top: 30px;
    overflow: hidden;
    width: 100%;
    height: 300px;
    border-radius: 10px;
    background-color: #111;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-track img {
    width: 100%;
    object-fit: contain;
    padding: 10px;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,123,255,0.6);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 5px;
}

.carousel-btn.left {
    left: 10px;
}

.carousel-btn.right {
    right: 10px;
}

.carousel-btn:hover {
    background-color: rgba(0,123,255,0.8);
}
