body {
    background-image: url("/images/planche-de-bois.jpg");
    background-size: cover;
    margin: 0;
    overflow-x: hidden;
}

/* empêche le texte de dépasser */
* {
    overflow-wrap: break-word;
}

main {
    margin-top: 15%;
    display: flex;
    flex-direction: column;
    padding-top: 5%;
    align-items: center;
}

.parcours_section {
    width: 80%;               
    margin: 40px auto;        
    padding: 20px;
    border-radius: 20px;
}



.parcour_name {
    text-align: center;
    width: 60%;
    padding: 10px;
    margin: 0 auto 20px auto;
    background-color: black;
    border-radius: 20px;
    font-size: xx-large;
}

.corp_parcour {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px;
}

.SIP {
    padding: 2%;
    flex: 1 1 40%; 
}


.SIP img {
    width: 100%;
    height: 130%;
    max-height: 700px;
    object-fit: cover;
    border-radius: 8px;
}

.IP {
    padding: 2%;
    flex: 1 1 55%; 
}

.IP p {

     font-size :x-large ;
}

.Prix p {

    font-size :xx-large ;
}

.CPD,
.Prix,
.Upgrade {
    width: 103%;
    color: rgb(0, 0, 0);
    padding: 15px;
    margin-bottom: 15px;
    box-sizing: border-box;
    border-radius: 8px;
}

.CPD,
.Prix,
.Upgrade {
    height: auto;
}

/* Style vitre fumée flottante commun à tous les parcours */
.vitre {
    background: rgba(255, 255, 255, 0.15);    
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 20px;
    box-shadow:
        0 12px 25px rgba(0, 0, 0, 0.35),
        0 4px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Effet flottant au survol */
.vitre:hover {
    transform: translateY(-6px);
    box-shadow:
        0 18px 35px rgba(0, 0, 0, 0.4),
        0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Reflet vitre */
.vitre::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 80%;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.20),
        rgba(255, 255, 255, 0)
    );
}

.vert {
    background-color :rgba(89, 240, 89, 0.25) ;
}

.yellow {

     background-color: rgba(248, 248, 72, 0.5);
}

.rouge {
      
      background-color :rgba(245, 96, 96, 0.5) ;

}

.orange {
    
     background-color :rgb(255, 204, 110 , 0.5) ;

}

.bleu {

     background-color :rgb(105, 210, 255 , 0.5) ; 
}

#parcour_jaune {

     background-color: rgba(248, 248, 72, 0.5);
}

#parcour_jaune .parcour_name {
     color :yellow ;
}

#parcour_vert {

     background-color :rgba(89, 240, 89, 0.5) ; 
     
}

#parcour_vert .parcour_name {
     color :rgb(9, 190, 9);
}

#parcour_bleu {

     background-color :rgb(105, 210, 255 , 0.5) ; 
}


#parcour_bleu .parcour_name {
     color :rgb(0, 149, 255);
}

#parcour_rouge {

     background-color :rgba(245, 96, 96, 0.5) ;
}

#parcour_rouge .parcour_name {
     color :red;
}

#parcour_orange {
     
     background-color :rgb(255, 204, 110 , 0.5) ;
}

#parcour_orange .parcour_name {
     color:orange;
}

#parcour_bleu .SIP img , #parcour_orange  .SIP img , #parcour_rouge .SIP img    {

    max-height : 650px ;
}

.CPD strong  {

       color : rgba(0, 0, 0, 0.637) ;
}


/* ===========================
   📱 Version Mobile (max 600px)
   =========================== */
@media (max-width: 600px) {

     #parcour_jaune {
          margin-top:25% ;
     }

     #parcour_rouge img , #parcour_orange img {

        height :250px ;
     }

    main {
        margin-top: 25%;
        padding-top: 10%;
    }

    .parcours_section {
        width: 94%;          /* prend presque tout l'écran */
        padding: 10px;
        border-radius: 15px;
    }

    .parcour_name {
        font-size: 1.3rem;
        width: 80%;
        padding: 8px;
        margin-bottom: 15px;
    }

    .corp_parcour {
        flex-direction: column; /* Image au-dessus du texte */
        gap: 10px;
    }

    .SIP {
        flex: 1 1 100%;
        padding: 0;
        text-align: center;
    }

    .SIP img {
        max-height: 260px;   /* image plus compacte */
        width: 100%;
        object-fit: cover;
    }

    .IP {
        flex: 1 1 100%;
        padding: 0;
    }

    .IP p {
        font-size: medium;
    }

    .CPD,
    .Prix,
    .Upgrade {
        width: 100%;
        padding: 12px;
        font-size: medium;
    }
}

/* ===========================
   📱📲 Version Tablette (600px → 992px)
   =========================== */
@media (min-width: 600px) and (max-width: 992px) {

    .parcours_section {
        width: 90%;
        padding: 15px;
    }

    .parcour_name {
        font-size: 1.7rem;
        width: 70%;
    }

    .corp_parcour {
        flex-wrap: wrap;
        gap: 15px;
    }

    .SIP {
        flex: 1 1 100%; /* image en haut */
        text-align: center;
    }

    .SIP img {
        max-height: 350px;
        width: 100%;
        object-fit: cover;
    }

    .IP {
        flex: 1 1 100%;
        padding: 0;
    }

    .IP p {
        font-size: large;
    }

    .CPD,
    .Prix,
    .Upgrade {
        width: 100%;
        padding: 15px;
    }
}



