/* Rapport commun */

.header-background-container {
    position: relative;
}

.header-background-container img {
    display: block;
    width: 100%;
    height: 400px;
    object-fit:cover;
}

.header-background-text {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    
    background-color: rgba(0, 0, 0, 0.6); 
    color: white;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    padding: 20px;
    box-sizing: border-box;
}

.header-rapport {
    margin-bottom: 0;
}

@media (max-width: 768px) {

    .header-background-container {
        overflow: hidden; 
    }

    .header-background-container img {
        height: 200px;
        object-position: center center;
        transform: scale(1.5); 
    }

    .header-background-text h2   {
        font-size: 1.2rem; 
    }
}

/*----------------------------------------*/

/*Rapport de lancemengt*/

section {
    padding: 3em;
}

@media (max-width:768px) {
    section {
        padding: 2em;
    }
}

section h3 {
    display: flex;
    align-items: center;
    gap: 0.3em;
}


#presentation h2 {
    margin-bottom: 0.5em;
}

#presentation h3 {
    display: inline-flex;
    padding: 0.4em;
    border-radius: 1em;
    /* color: #226C8B; */
    background-color: #226C8B;
    color: white;
    margin-bottom: 0.3em;
}

#presentation ul {
    list-style-type: disc;
}

#presentation li {
    margin-left: 2em;
}

#presentation li::marker {
    color:#226C8B ;
}

.presentation-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 3.5em;
}

@media (max-width:768px) {
    .presentation-container {
        flex-wrap: wrap;
    }
}

.presentation-element {
    width: 70%;
    /* background-color:#EEEFF4;
    box-shadow: 0px 10px 19px -3px #a09d9d;
    border-radius: 1em;
    padding: 0.5em; */
}

@media (max-width:768px) {
    .presentation-element {
        width: 100%;
    }
}


.presentation-info {
      border-left: 2px solid #226C8B;
      padding-left: 1em;
}



#missions_planification {
    /* height: 300px; */
    background-color: #98B0CF;
}

#missions_planification h3 {
    color: #226C8B;
}

.missions_planification-title {
    margin-top: 1em;
    margin-bottom: 1em;
    font-weight: 600;
}

.missions_planification-bottom {
    display: inline-block;
    background-color: rgba(34, 108, 139, 0.5);
    padding: 0.5em;
    border-left: 3px solid #226C8B;
    
}


.missions-list-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

.missions-list-element {
    display: flex;
    flex-direction: row;
    gap: 1em;
    /* align-items: center; */
}


.background-img {
    width: 130px;
    
    min-height: 130px;
    flex-shrink: 0;
    border-radius: 8px;
    background-color: white;
    background-repeat: no-repeat;
}

 
.missions-list-img3 {
    background-size: contain; 
    background-position: center;
}

.missions-list-img1 {
    background-size: cover; 
    background-position: center;
}

.missions-list-img2 {
    background-size: cover; 
    background-position: 20% center;
}

.missions-list-img1 {
    background-image: url("../images/campus_batiment.jpg");

}

.missions-list-img2 {
    background-image: url("../images/bsm.jpg");
}

.missions-list-img3 {
    background-image: url("../images/Logo_drupal1.png");
    background-color: #DEF8FF;
}

.missions-list-info {
    padding-bottom: 0.5em;
    border-bottom: 2px solid #226C8B;
}

@media (max-width: 768px) {
    /* On passe l'élément en colonne */
    .missions-list-element {
        flex-direction: column;
        gap: 0.5em; 
    }

    .background-img {
        width: 100%; 
        height: 120px; 
    }

    .missions-list-img1 {
        height: 180px;
        background-size: cover; 
        
        background-position: center 30%;
    }
}

#besoin_origine h3 {
    margin: 0;
    padding-bottom: 0.5em;
}

.besoin_origine-container {
    display: flex;
    gap: 1em;
    margin-top: 1em;
    margin-bottom: 2em;
}

@media (max-width:768px) {
    .besoin_origine-container {
        flex-direction: column;
    }
}

.besoin_origine-element {
    padding: 0.5em;
    background-color:white ;
    box-shadow: 0px 10px 19px -3px #a09d9d;
    border-radius: 1em;
    border:2px solid #E2E2E2;
    border-top: 3px solid #226C8B;
}

.besoin_origine-bottom {
    display: inline-flex;
    gap: 0.3em;
    border-radius: 3px;
    background-color: #226C8B;
    color: white;
    font-weight: bold;
    padding: 0.5em;
    border-left: 3px solid #226C8B;
}

#veille_recommandations {
    /* height: 300px; */
    background-color: #98B0CF;
}

.veille_recommandations-citation {
    display: block;
    border-left: 3px solid #226C8B;
    padding-left: 0.5em;
    margin-top: 0.7em;
    margin-bottom: 0.7em;
}

.veille_recommandations-container {
    display: flex;
    justify-content: space-between;
    /* gap: 1em; */
}

.veille_recommandations-element {
    display: flex;
    flex-direction: column;
    width: 50%;
    
    align-items: center; 
}

.veille_recommandations-element img {
    width: 200px; 
    height: 80px; 

    object-fit: contain; 

    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

@media (max-width:768px) {
    .veille_recommandations-element img  {
        transform: scale(0.7);
    }

    .veille_recommandations-container {
        flex-direction: column;
        margin-top: 1em;
    }

    .veille_recommandations-element {
        width: 100%;
    }

    .veille_recommandations-element:first-child {
        border-right: none;
    }
}

.veille_recommandations-element:first-child {
    padding-right: 1em;
    border-right: 2px solid #226C8B;
}

@media (max-width:768px) {
    .veille_recommandations-element:first-child {
        border-right: none;
        border-bottom:  2px solid #226C8B;
        padding-right: 0;
        padding-bottom: 3em;

    }
}

.veille_recommandations-element:nth-child(2) {
    padding-left: 1em;
}

@media (max-width:768px) {
    .veille_recommandations-element:nth-child(2) {
        padding-left: 0;
        /* padding-top: 1em; */
    }
}


section h3 {
    margin-top: 0.5em;
    margin-bottom: 1em;
}

/*------------------------------------------------------------*/

/*Rapport finale*/

#description {
    background-color: #F9F9FC;
}

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

#description h2 {
    color: #226C8B;
    margin-bottom: 0.5em;
}

.descriptionBA-Toptitle {
    position: relative; 
    display: block; 
    width: fit-content;
    padding-bottom: 12px;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    color: #226C8B;
}

.descriptionBA-Toptitle::after {
    content: ''; 
    position: absolute;
    bottom: 0; 
    left: 0;
    
    width: 60px;
    height: 4px;
    background-color: #226C8B; 
    border-radius: 2px; 
}

.descriptionMission-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    margin-top: 1em;
    margin-bottom: 2em;
}

.descriptionMission-title {
    margin-top: 0;
    margin-bottom: 0.5em;
}

.descriptionMission-element {
    flex: 1;
    background: #F3F3F6;
    padding: 0.5em;
    border: 2px solid #C5CDD2;
    border-radius: 10px;
    max-width: 350px;
    min-width: 250px;
}

.descriptionPhase1-flex {
    margin-top: 1em;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.description-title {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.description-title h3 {
    margin: 0;
}

.description-card {
    flex: 1;
    background: white;
    padding: 0.5em;
    border: 2px solid #C5CDD2;
    border-radius: 10px;
    min-width: 250px;
}

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

.description-card li::marker {
    color:#226C8B;
}

.description-card2 {
    flex: 1;
    background: #F3F3F6;
    padding: 0.5em;
    border: 2px solid #C5CDD2;
    border-radius: 10px;
    min-width: 250px;
}

.description-badge {
    display: inline-flex;
    gap: 0.5em;
    margin-top: 2em;
    /* margin-bottom: 1em; */
    color: white;
    font-weight: bold;
    background-color: #226C8B;
    padding: 0.5em;
    border-radius: 10px;
}

.descriptionBA-flex {
    display:flex;
    flex-wrap: wrap;
    gap: 1em;
    flex-wrap: wrap;
    margin-bottom: 4em;
}

.descriptionBA-title {
    font-weight: bold;
    color: #40484D;
    background-color: #E2E2E5;
    padding: 0.5em;
    border-radius: 10px 10px 0 0;
}


.descriptionBA-title2 {
    font-weight: bold;
    color: white;
    background-color: #226C8B;
    padding: 0.5em;
    border-radius: 10px 10px 0 0;
}

.descriptionBA-element {
    flex: 1;
    display: flex;
    flex-direction: column; 
}

.descriptionBA-cards {
    display: flex;
    flex-direction: column;
    gap: 1em;
    justify-content: center;
    align-items: center;
    background-color: #F0F0F3;
    padding: 0.5em;
    border: 1px solid #C5CDD2;
    border-radius: 0 0 10px 10px;
    flex-grow: 1; 
    min-width: 300px;
}

.descriptionBA-cards2 {
    display: flex;
    flex-direction: column;
    gap: 1em;
    justify-content: center;
    align-items: center;
    background-color: #F9F9FC;
    border: 1px solid #B2CDD5;
    border-radius: 0 0 10px 10px;
    padding: 0.5em;
    flex-grow: 1;
    min-width: 300px;
}

.descriptionBA-cards img, .descriptionBA-cards2 img {
    width: 100%;
    max-width: 550px; 
    height: auto;
    border-radius: 5px;
    border: 2px solid #C5CDD2;
}


@media (max-width: 768px) {
    .descriptionBA-element,
    .description-card,
    .description-card2 {
        flex: 1 1 100%; 
    }
    
    .descriptionBA-cards, 
    .descriptionBA-cards2,
    .description-card,
    .description-card2 {
        min-width: 0 !important; 
        width: 100%; 
    }
}

.mobile-screenshots img {
    max-width: 100%; 
    max-height: 600px;
    width: auto;
}

.responsive-flex-row {
    display: flex; 
    width: 100%; 
    flex-direction: row; 
    justify-content: space-between;
    align-items: center;
    gap: 1em;
    margin-top: 1em; 
}

.responsive-flex-row img {
    min-width: 0;
    width: 100%;
    height: auto;
}

.responsive-flex-row img:first-child {
    flex: 2;
    max-height: 450px;
    object-fit: contain;
}

.responsive-flex-row img:last-child {
    flex: 1;
    max-height: 380px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .responsive-flex-row {
        flex-direction: column; 
        gap: 1em;
    }
    
    .responsive-flex-row img:first-child,
    .responsive-flex-row img:last-child {
        flex: none;
        width: 100%;
        max-height: 350px;
    }
}

/* Le conteneur global */
.timeline {
    display: flex;
    flex-direction: column;
    margin-top: 2em;
}

.timeline-point {
    display: flex;
    flex-direction: row;
    gap: 1.5em;
    position: relative;
}

/* Le rond bleu */
.timeline-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #226C8B;
    color: white;
    border-radius: 50%;
    flex-shrink: 0; 
}

.timeline-point::after {
    content: '';
    position: absolute;
    top: 50px;
    bottom: 0;
    left: 25px;
    transform: translateX(-50%);
    width: 2px;
    background-color: #C5CDD2;
}

.timeline-point:last-child::after {
    display: none;
}

.timeline-content {
    padding-bottom: 30px; 
}

.timeline-title {
    color: #226C8B;
    margin-top: 0; 
    margin-bottom: 0.5em;
    font-size: 1.2rem;
}

.timeline-content p, .timeline-content ul {
    margin-top: 0;
    margin-bottom: 0.5em;
}

#planning {
    background-color: #98B0CF;
}

#planning h3 {
    margin-bottom: 0;
}

#planning hr {
    margin-bottom: 1em;
    margin-top: 1em;
    border: none;
    height: 2.5px;
    background-color: #C5CDD2;;
    width: 100%;
    border-radius: 2px;
}

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

.planning-title {
    display: flex;
    margin-top: 2em;
}

.planning-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.planning-element {
    flex: 1 1 280px;
    min-width: 250px;
    max-width: 350px;

    padding: 1em;
    background-color: white;
    border: 1px solid #C5CDD2;
    border-radius: 10px;
}

.planningElement-title {
    margin-bottom: 1em;
    display: flex;
    color:#226C8B;
}

.planningElement-box {
    margin-top: 1em;
    border-left: 2px solid #226C8B;
    background-color: rgb(240, 240, 243);
    padding: 1em;
}

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

.analyse-flex {
    display:flex;
    flex-wrap: wrap;
    gap: 2em;
}

.analyse-element h3 {
    width: 100%;
    display: flex;
    padding-bottom: 0.3em;
    border-bottom: 2px solid #C5CDD2;
}

.analyse-element {
    flex: 1 1 280px;
}

.analyse-element h4 {
    display: flex;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.analyse-element:last-child {
    border-left: 1px solid #C5CDD2;
    padding-left: 2em;
}

@media (max-width: 654px) {
    .analyse-element:last-child {
        border: none;
        padding-left: 0;
    }
}

.descriptionMA-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.descriptionMA-element {
    flex: 1 1 550px;
    background-color: #226c8b1f;
    padding: 0.5em;
    border: 2px solid #C5CDD2;
    border-radius: 10px;
}

.descriptionMA-title {
    margin-top: 1.5em;
    margin-bottom: 1em;
    font-weight: bold;
}

.descriptionMA-element img {
    width: 100%;
    margin-top: 1em;
    border-radius: 10px;
    border: 2px solid #C5CDD2;
}

.descriptionMA-boxTitle {
    display: flex;
    gap: 0.5em;
    align-items: center;
    font-weight: bold;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.descriptionExcel-img img {
    width: 100%;
    border-radius: 10px;
}

.descriptionExcel-img img:first-child {
    margin-top: 1em;
    margin-bottom: 1em;
}

.descriptionTechnique-flex {
    display: flex;
    gap: 1.5em;
    align-items: flex-start;
    margin-top: 2em;
    margin-bottom: 2em;
}

.descriptionTechnique-flex img:first-child {
    max-width: 500px;
    width: 100%;
    border-radius: 10px;
}

.description-apercu-flex {
    display:flex;
    gap: 1em;
    flex-direction: column;
}

.description-apercu-flex img {
    border-radius: 10px;
    border: 1px solid #C5CDD2;
}

.code-window {
    display: flex;
    flex-direction: column;
    max-width: 650px;
    border-radius: 8px;
    border: 1px solid #C5CDD2;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 0.5em;
    background-color: #F3F4F6;
    padding: 0.6em 1em;
    color: #40484D;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 1px solid #C5CDD2;
}

.code-window img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    border: none;
    border-radius: 0;
}

/* --- Système d'onglets pour le code --- */
.code-tabs-box {
    display: flex;
    flex-direction: column;
    /* gap: 0.5em; */
    max-width: 650px;
    width: 100%;
}

.code-tabs-title {
    margin: 0;
    margin-bottom: 0.5em;
    font-weight: bold;
    color: #40484D;
    font-size: 1.1rem;
}

.code-tabs-container {
    border: 1px solid #C5CDD2;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
}

.code-tabs-header {
    display: flex;
    background-color: #F3F4F6;
    border-bottom: 1px solid #C5CDD2;
}

.code-tab {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #40484D;
    border-top: 3px solid transparent;
    border-right: 1px solid transparent;
    border-left: 1px solid transparent;
    margin-bottom: -1px;
    transition: background-color 0.2s;
}

.code-tab:hover {
    background-color: #EAEAEF;
}

/* Style de l'onglet cliqué (actif) */
.code-tab.active {
    background-color: white;
    border-top: 3px solid #226C8B;
    border-right: 1px solid #C5CDD2;
    border-left: 1px solid #C5CDD2;
    border-bottom: 1px solid white; /* Efface la ligne grise en dessous */
    font-weight: 600;
}

.code-tab:first-child {
    border-left: none; /* Pas de bordure gauche pour le tout premier onglet */
}

/* Gestion de l'affichage des images */
.code-image {
    display: none; /* Cache les images par défaut */
    width: 100%;
    height: auto;
    margin: 0;
    vertical-align: bottom; /* Enlève le petit espace blanc sous l'image */
}

.code-image.active {
    display: block;
}

@media (max-width: 768px) {
    
    .descriptionTechnique-flex {
        flex-direction: column; 
        align-items: center; 
    }

    .descriptionTechnique-flex > img:first-child {
        width: 100%;
        max-width: 650px;
    }

    .code-tabs-header {
        display: flex;
        width: 100%;
    }

    .code-tab {
        flex: 1;
        padding: 10px 5px;
        font-size: 0.85rem;
        text-align: center;
    }
}

.descriptionTechnique-element {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.descriptionTechnique-element > img {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #C5CDD2;
}


.code-tabs-content {
    background-color: #1E1E1E;
    width: 100%;
}

.code-image {
    display: none; 
    width: 100% ; 
    min-width: 100%; 
    height: auto;
    margin: 0;
    /* vertical-align: bottom; 
    object-fit: cover;
    object-position: left top; */
}

.code-image.active {
    display: block; 
}

.phase-title {
    margin-top: 2em;
}

#bilan {
    background-color: #98B0CF;
}


