/******************** Programmes ***************************/


h1 {

    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 60px;
    font-weight: 600;


}

@media (max-width: 1096px) {
    .hero-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 0 10px;
    }

    .underline {
        display: none;
    }

    /* .swiper, */
    /* .swiper-wrapper,
  .swiper-slide {
    height: 60vh;
  } */
    h1 {
        font-size: 40px;
        /* Ajustement pour mobile */
    }

    h1 span {
        display: inline;
    }

    p {
        font-size: 16px;
        /* Ajustement pour mobile */
        font-family: var(--ff-primary);
    }




}

@media (max-width: 768px) {
    h1 {
        font-size: 35px;
        /* Encore plus petit sur téléphone */
    }

    p {
        font-size: 14px;
        /* Réduction du texte */
        margin: 0 0 30px;
    }


}




/* Sur petits écrans (mobile portrait) */
@media (max-width: 480px) {
    .hero-content {
        gap: 20px;
        padding: 0 px;
        width: 100%;
    }

    h1 {
        font-size: 24px;
        /* Taille encore plus petite sur très petit écran */
    }

    h1 span {
        display: inline;
    }

    p {
        font-size: 12px;
        margin: 0 0 20px;
    }

    .buttons .btn {
        font-size: 12px;
        padding: 8px 12px;

    }

    .text-content {
        width: 100%;
        text-align: center;
    }
}


/****************** section 1 ****************************/

#section1 {
    height: 400px;
    width: 100%;
    position: relative;

    background-image: url('../images/programmes/cyber-security-concept-digital-art.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.small_underline {
    height: 5px;
    width: 200px;
    background: var(--clr-orange);
    margin-bottom: 5px;
    /* Secondary color */
}

.second-underline {
    height: 5px;
    width: 20px;
    background: var(--clr-orange);
    margin-bottom: 5px;
    /* Secondary color */
}

.blue_underline {
    height: 5px;
    width: 20px;
    background: var(--clr-blue-2);
    margin-bottom: 5px;
    /* Secondary color */
}

#section1>div:nth-child(2) {
    display: flex;
    color: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    z-index: 10;
    position: relative;
    text-align: center;
}

#section1>div:nth-child(2)>p {
    font-weight: bold;
    font-size: 0.8rem;
}

#section1>div:nth-child(2)>div:nth-child(2) {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-weight: bold;

}

.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.541);
    z-index: 1;
  

}


/****************** end section 1 ****************************/

/****************** section 2 ****************************/

#section2 {
    padding-top: 50px;
    height: auto;
    background-image: url('../images/intervenant/Group\ 53.png');

    background-repeat: no-repeat;
    padding-bottom: 150px;

}


#section2>h1 {
    font-size: 40px;
    background: var(--clr-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    font-weight: 500;
    padding-bottom: 20px;
    text-align: center;

}

#section2 h1+p {
    max-width: 1400px;
    margin: 0 auto 50px;
    padding-bottom: 30px;

    font-size: 18px;
    font-weight: 400;

    line-height: 1.6;

    text-align: center;
}



.video {
    margin: 80px auto;
    padding: 30px 30px 80px;
    width: 80%;
    border-radius: 20px;
    height: 700px;
    background-image: url('../images/programmes/[freepicdownloader.com]-rendu-3d-robot-intelligent-tactile-fond-reseau-reseau-numerique-espace-copie-ai-cyborg-humain-pointant-doigt-ecran-affaires-technologie-concepts-intelligence-artificielle-large.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.video h3 {
    color: white;
    position: relative;
    padding: 5px 10px;
    background-color: #C77F05;
    width: fit-content;
    border-radius: 20px;
    z-index: 5;
}


.col {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
}

.col div {
    z-index: 5;
    position: relative;

}

.date {
    display: flex;
    color: white;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid white;
    width: fit-content;
    border-radius: 20px;
}

.col div h2 {
    font-size: 2rem;
    color: white;
    padding: 30px 0;
    width: 80%;
}

.place {
    display: flex;
    color: white;
    gap: 5px;
}

.video button {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;
    transform: translateX(-50%);
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    cursor: pointer;
}

/***** modal *****/

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 900px;
    position: relative;
}

.modal-content h2 {
    margin-top: 50px;
    font-size: 24px;
    color: #C77F05;
}

.modal-content p {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
}

.modal-video-wrapper {
    position: relative;
    margin-top: 20px;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
}

.modal-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #000;
}


.filter-container {
    width: 80%;
    margin: 0 auto;
    margin-bottom: 50px;
    padding: 25px 50px;
    border-radius: 50px;
    -webkit-box-shadow: 0px 5px 6px 0px rgba(199, 127, 5, 1);
    -moz-box-shadow: 0px 5px 6px 0px rgba(199, 127, 5, 1);
    box-shadow: 0px 5px 6px 0px rgba(199, 127, 5, 1);
    border: none;
    display: flex;
    align-items: center;
}



.button {
    border: none;
    border-right: 1px solid grey;
    background-color: transparent;
    padding: 0 20px;
    font-size: 1.2rem;
    color: grey;
    cursor: pointer;
}

.selected {
    color: #C77F05;
}


/****** carrouseel *****/
.team-carousel-container {
    width: 90%;
    margin: 0 auto;
    height: auto;
    position: relative;
}


.flex {
    display: flex;
    height: 100%;
    gap: 2rem;
    width: 90%;
    padding: 12px;
    padding-bottom: 20px;
    height: 320px;
    border: none;
    background-color: #fff;
    border-bottom: 1px solid #3333336b;
}

.programme {
    height: 100%;
    width: 100%;
    padding: 15px 20px;
    border-radius: 5px;
    -webkit-box-shadow: 0px 5px 6px 0px rgba(199, 127, 5, 1);
    -moz-box-shadow: 0px 5px 6px 0px rgba(199, 127, 5, 1);
    box-shadow: 0px 5px 6px 0px rgba(199, 127, 5, 1);
    display: grid;
    grid-template-columns: 85% 15%;
    align-items: center;
    justify-content: center;
}

.prog {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-between;
}

.prog>div {
    display: flex;
    padding: 8px 0;
    border: 1px solid var(--clr-blue-2);
    width: fit-content;
    border-radius: 20px;
}

.prog>div div {
    display: flex;
    align-items: center;

    gap: 10px;
    color: var(--clr-blue-2);
    padding: 0 18px;
}

.prog>div div:first-child {
    border-right: 1px solid var(--clr-blue-2);
}

.programme button {
    background-color: #c17f16;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-weight: 500;

}

h2.descr {

    text-transform: uppercase;
    line-height: 1.4;
    padding-top: 10px;
}



p.flexy  {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    font-family: var(--ff-tertiary);
    padding-bottom: 8px;
    font-size: 16px;
    line-height: 1.4;
    width: 90%;
}

p.flexy img {
    margin-top: 4px;
    width: 9px;
    height: 9px;
}

div.sol-desc {
    border: none;
    display: block;
}

.numbers {
    border-left: 1px solid #33333331;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.numbers h1 {
    color: #33333331;
    text-align: center;
}

.numbers h3 {

    color: var(--clr-blue-2);
    font-family: var(--ff-tertiary);
    font-size: 16px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}



.flex>img {
    width: 350px;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}



.flex p {
    font-size: 13px;
    margin: 6px 0;
}

.flex h2 {
    font-size: 1.5rem;
    color: var(--clr-blue-2);
    width: 90%;
    font-weight: 700;
    font-family: var(--ff-tertiary);
}

.carousel-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 30%;
    margin: auto;
    margin-top: 32px;

}

.nav-btn {
    background: #c17f16;
    color: white;
    border: none;
    padding: 7px 13px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.nav-btn:hover {
    background: #a66d12;
}

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;

}

.pagination .swiper-pagination-bullet {
    width: fit-content;
    height: fit-content;
    padding: 5px 10px;
    background: transparent;
    border: 2px solid #c17f16;
    /* orange border */
    border-radius: 6px;
    opacity: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #c17f16;
    font-weight: 600;

}

/* .pagination .swiper-pagination-bullet-active {
    background: #c17f16;
    opacity: 1;
    border-color: #c17f16;
    color: white;
} */


/* 
@media (prefers-color-scheme: dark) {
    .team-card {
        background: #2d2d2f;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .team-card h3 {
        color: #e6a449;
    }

    .team-card p {
        color: #999;
    }

    .nav-btn {
        background: #e6a449;
    }

    .nav-btn:hover {
        background: #c17f16;
    }
} */

@media (max-width: 1024px) {
    .fliter-container {
        display: flex;
        justify-content: center;
        padding: 50px 100px;
        gap: 1rem;
    }

    .programme {
        grid-template-columns: 75% 25%;
    }

    .flex>img {
        width: 200px;
    }

    .flex h2 {
        font-size: 1.0rem;
    }

    .prog>div div span {
        font-size: 0.8rem;
    }


    #section2>h1 {
        padding: 0 30px;
    }

    .selected {
        color: #C77F05;
    }





}



/* === Mobile-First Responsive Fixes === */
@media (max-width: 768px) {


    #section2>h1 {
        font-size: 30px;


    }

    #section2 h1+p {


        font-size: 15px;
        padding: 0 20px 30px;
    }



    .button {
        border: none;
        border-right: 1px solid grey;
        background-color: transparent;
        padding: 0 5px;
        font-size: 0.55rem;
        color: grey;
        cursor: pointer;
    }

    .selected {
        color: #C77F05;
    }


    .flex>img {
        width: 100px;
    }

    .pagination {
        display: none;
    }




    /* FILTER BUTTONS: Full width, wrap nicely, no scrolling */
    .fliter-container {
        display: flex;
        justify-content: center;
        padding: 10px 0;
        gap: 5px;
    }



    .carousel-card img {
        width: 100%;
        height: 100px;
        object-fit: cover;
        display: block;
        border-bottom: 1px solid black;
    }

    .carousel-card .card-content {
        padding: 15px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 10px;
    }

    .carousel-card h3 {
        font-size: 16px;
        font-weight: 500;
        margin: 0;
    }

    .carousel-card p {
        font-size: 14px;
        color: #444;
        margin: 0;
    }

    .carousel-card button {
        margin-top: 10px;
        padding: 8px 16px;
        background-color: #ffb200;
        color: white;
        border: none;
        border-radius: 20px;
        font-size: 14px;
        align-self: start;
    }

    .flex {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        gap: 10px;
    }

    .programme {
        height: 100%;
    }

    .flex>img {
        width: 100%;
        height: 30%;
    }

    .prog>div div img {
        display: none;
    }


    .prog>div div span {
        font-size: 10px;
    }


    .prog>div div {

        gap: 5px;
        color: var(--clr-blue-2);
        padding: 0 10px;
    }

    .prog>div div:first-child {
        border-right: 1px solid var(--clr-blue-2);
    }

    /* Video Header Section Fix */
    .video {
        flex-direction: column;
        padding: 20px;
        gap: 10px;
    }

    .video .col h3 {
        font-size: 18px;
    }

    .video .col h2 {
        font-size: 16px;
    }

    .video .place span,
    .video .date span {
        font-size: 14px;
    }

    .video button img {
        width: 50px;
    }
}

.buttons.download {
    max-width: 80%;
    margin: auto;

   justify-content: start;
  margin-top: 80px;
  font-family: var(--ff-tertiary);
}



.sub img {
    width: 30px;
    height: 30px;
}






/****************** end section 2 ****************************/