#header{
    display: flex;
    padding-left: 5%;
}

img{
    width: 7%;
}

#entName{
    width: 18.5%;
    margin-top: 2%;
    margin-left: 29%;
    margin-bottom: 0px;
    color: rgb(0, 0, 98);
    font-family: Oleo system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}





#anchor{
    color: #fff;
    text-decoration: none;
    margin-left: 5%;
    margin-right: 5%;
    font-size: 18px;
    font-family: Oleo system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}



.carousel-item img{
    height: 600px;

}

#carouselExampleIndicators{
    width: 100%;
    position: relative;
}

#aboutImg{
    width: 600px;
}

/********navbar***********/

#navbar{
    display: inline-flex;
    margin-left: 10%;
    margin-bottom: 5px;
    border: black 1px solid;
    width: 80%;
    height: 70px;
    border-radius: 10px;
    background-color: rgb(16, 16, 113);
}

#navbar li{
    margin-left: 4.9%;
    margin-right: 4.9%;
    margin-top: 20px;
    font-size: larger;
    color: #fff;
    font-family: Oleo system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

#navbar a:hover{
    color: gray;
}

#container{
    position: sticky;
    top: 0px;
}







/*****************navbar****************************/
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}


nav{
    padding: 10px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #004274;
    position: relative;
    height: 70px;
    position: sticky;
    top: 0px;
    z-index: 1;
}

nav ul{
    display: flex;
    gap: 30px;
    margin-left: 25%;
}

nav ul li{
    list-style-type: none;
    margin-top: -9px;
}

nav ul li a{
    text-decoration: none;
    color: #fff;
}

nav ul li a:hover{
    filter: drop-shadow(10px 0px 10px #fff);
}

.menu-icon{
    display: none;
}

.menu-icon i{
    color: #fff;
    font-size: 30px;
}






/*****************contact****************/

#contact img{
    margin-left: 5%;
}

.w-full{
    margin-left: -5%;
    margin-top: 10%;
}





.absolute i{
    color: #fff;
}

.absolute{
    background-color: #004274;
}

#btn{
    background-color: #004274;
    margin-bottom: 10%;
}

#btn:hover{
    background-color: #004d88;
}

.fas{
    color: #004274;
}

#toContact{
    margin-left: 10%;
}


/*****************responsive*************************/

/************************phone*************************/
@media(min-width:400px) and (max-width:700px) {
    #carouselExampleIndicators{
        display: none;
    }


    #header img{
        width: 40px;
        height: 40px;
        margin-top: 2%;
        margin-bottom: 2%;
    }
    nav ul{
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        text-align: center;
        background-color: #004274;
        gap: 0;
        overflow: hidden;
    }

    nav ul li{
        padding: 10px;
    }


    #entName{
        position: relative;
        left: -15%;
        top: 15px;
        width: 58%;
        text-align: center;
        font-size: 12px;
    }

    .menu-icon{
        display: block;
        margin-left: 90%;
    }

    #menuList{
        transition: all 0.3s;
    }

    #contact{
        position: relative;
        top: 5px;
        left: 18%;
        width: 80%;
        height: 200px;
    }

    #contact img{
        position: absolute;
        top: 2700px;
        left: 35px;
        width: 300px;
    }

   

    #btn{
        margin-bottom: 15%;
    }

    #footer{
        position: relative;
        top: 1200px;
        left: 83px;
        width: 100%;
        margin: -100px;
    }

    #toContact{
        position: absolute;
        top: 3000px;
        left: 30px;
        width: 80%;
    }

    #footerText{
        background-color: #004274;
        height: 50px;
        margin-left: 8%;
        margin-top: 680%;
        color: #fff;
    }
}



@media(min-width:100px) and (max-width:400px) {

    #carouselExampleIndicators{
        display: none;
    }
    
    #header img{
        width: 40px;
        height: 40px;
        margin-top: 2%;
        margin-bottom: 2%;
    }
    nav ul{
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        text-align: center;
        background-color: #004274;
        gap: 0;
        overflow: hidden;
    }

    nav ul li{
        padding: 10px;
    }


    #entName{
        position: relative;
        left: -15%;
        top: 15px;
        width: 70%;
        text-align: center;
        font-size: 12px;
    }

    .menu-icon{
        display: block;
        margin-left: 90%;
    }

    #menuList{
        transition: all 0.3s;
    }


    #contact{
        position: relative;
        top: 5px;
        left: 8%;
        width: 80%;
        height: 200px;
    }

    #contact img{
        position: absolute;
        top: 0px;
        left: 0px;
        width: 300px;
    }

    

    #btn{
        margin-bottom: 15%;
    }

    #footer{
        position: relative;
        top: 0px;
        left: 83px;
        width: 100%;
        margin: -100px;
    }

    #toContact{
        position: absolute;
        top: 250px;
        left: 30px;
        width: 80%;
    }

    #footerText{
        background-color: #004274;
        height: 50px;
        margin-left: 8%;
        margin-top: 280%;
        color: #fff;
    }
}


/**************ipad*********************/
@media (min-width:1000px) and (max-width:1200px){

   
    
    #entName{
        margin-left: 25%;
        width: 26%;
        margin-top: 3%;
        text-align: center;
    }

    #sousTitre{
        position: absolute;
        top: 4%;
        left: 42.5%;
    }

    #menuList{
        margin-left: 25%;
    }

    #formation{
        margin-left: 12%;
    }
    img{
        width: 10%;
    }
    #contact{
        position: relative;
        top: -50px;
        left: 28%;
        width: 800px;
        height: 300px;
        margin-top: 1200px;
    }

    #contact img{
        position: relative;
        left: -50px;
        scale: 1.4;
    }

    #footer{
        position: relative;
        top: 500px;
    }
}


/**************ipad*********************/
@media (min-width:700px) and (max-width:800px){
   
    #navbar{
        display: none;
    }
    #entName{
        margin-left: 20%;
        width: 40%;
        margin-top: 3.5%;
        text-align: center;
    }

    #sousTitre{
        position: absolute;
        top: 5%;
        left: 40%;
    }

    #menuList{
        margin-left: 12%;
    }

    img{
        width: 10%;
    }
    #contact{
        position: relative;
        top: -50px;
        left: 20%;
        width: 600px;
        height: 300px;
        margin-top: 1450px;
    }

    #contact img{
        position: relative;
        left: 70px;
    }

    #footer{
        position: relative;
        top: 1100px;
    }
}






@media (min-width:800px) and (max-width:1000px){

   
    #navbar{
        display: none;
    }
    #entName{
        margin-left: 20%;
        width: 36%;
        margin-top: 2%;
        text-align: center;
    }


    #menuList{
        margin-left: 12%;
    }

    
    img{
        width: 10%;
    }
    #contact{
        position: relative;
        top: -50px;
        left: 20%;
        width: 600px;
        height: 300px;
        margin-top: 1450px;
    }

    #contact img{
        position: relative;
        left: 70px;
    }

    #footer{
        position: relative;
        top: 1100px;
    }
}




/****************************tablet**************************/


@media (min-width:1200px) and (max-width:1500px){
    #contact{
        width: 800px;
        position: relative;
        top: 2100px;
        left: 200px;
        margin-top: -1000px;
    }

    #footer{
        position: relative;
        top: 2200px;
        left: 0px;
        width: 108.5%;
        margin: -100px;
    }

    #footerText{
        margin-left: 100px
    }

    .mb-4{
        margin-left: 10%;
    }

    #entName{
        margin-left: 27%;
        width: 30%;
        margin-top: 2%;
        font-size: larger;
        
    }

    #menuList{
        margin-left: 25%;
    }


    #contact{
        margin-left: 8%;
    }

    #contact img{
        scale: 1.4;
        margin-left: -150px;
    }

}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 15px;
    right: 5%;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    width: 45%;
    max-width: 500px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    
    /* Center the content inside */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.carousel-caption h1 {
    color: white;
    margin-bottom: 30px;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-caption .btn {
    font-size: 1.5rem;
    padding: 15px 30px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.carousel-caption .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255,255,255,0.5);
}

.carousel-item img {
    object-fit: cover;
    height: 100vh;
}

@media (max-width: 768px) {
    .carousel-caption {
        right: 10%;
        width: 80%;
        max-width: none;
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-caption .btn {
        font-size: 1.25rem;
        padding: 10px 20px;
    }
}




.header {
    background-color: #001D72;
    color: #fff;
    padding: 15px;
    text-align: center;
    font-size: 1.4em;
    font-weight: bold;
    border-radius: 8px;
    margin-bottom: 20px;
    margin-left: 5%;
    margin-right: 5%;
    width: 90%;
}
.main-title {
    color: #B22222;
    font-size: 1.6em;
    margin: 20px 5%;
    text-align: center;
    font-weight: bold;
}
.content p {
    margin: 10px 5%;
    font-size: 1em;
}
.sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-left: 5%;
    margin-right: 5%;
    width: 90%;
}
.section {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.section-title {
    font-weight: bold;
    font-size: 1.2em;
    color: #333;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.section-title i {
    color: #001D72;
    margin-right: 10px;
}
/* Center-align the last section if it’s alone on the row */
.section:nth-child(7) {
    grid-column: span 2;
    justify-self: center;
    max-width: 500px;
}
@media (max-width: 768px) {
    .sections {
        grid-template-columns: 1fr;
    }
    .section:nth-child(7) {
        grid-column: span 1;
        justify-self: start;
        max-width: 100%;
    }
}

/* Introduction Section */
.bg-white.p-4.rounded-md.shadow-md.mt-2 {
    margin-left: 5%;
    margin-right: 5%;
    width: 90%;
}

/* Title for SYSTÈMES D'INFORMATION ET TRANSFORMATION DIGITALE */
.text-center.bg-blue-900.text-white.p-4.rounded-t-md {
    margin-left: 5%;
    margin-right: 5%;
    width: 90%;
    color: #004274;
    background-color: #004274;
}

#landing-img{
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 600px;
    display: block;
    margin: 0 auto;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    #landing-img {
        max-height: 300px;
    }
}

/* Responsive adjustments for tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    #landing-img {
        max-height: 400px;
    }
}

.landing-header {
    width: 100%;
    height: 100vh;
    background-image: url('images/WhatsApp Image 2024-11-03 at 11.30.40.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.landing-header h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.landing-header h3 {
    font-size: 1.5rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .landing-header h1 {
        font-size: 2.5rem;
    }
    
    .landing-header h3 {
        font-size: 1.2rem;
    }
}

.landing-header a {
    display: inline-block;
    padding: 15px 30px;
    background-color: #004274;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: 2rem;
    border: 2px solid white;
}

.landing-header a:hover {
    background-color: white;
    color: #004274;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .landing-header a {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Center the écoute section */
.relative.pl-16:last-child {
    display: flex;
    justify-content: center;
    padding-left: 0;
    width: 100%;
    grid-column: 1 / -1;
}

.relative.pl-16:last-child dt {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    position: relative;
    gap: 1rem;
}

.relative.pl-16:last-child .absolute {
    position: relative;
    left: 0;
    transform: none;
    top: 0;
}

/* Align sections in valeurs */
.relative.pl-16 {
    display: flex;
    justify-content: flex-start;
    padding-left: 7rem;
    margin-left: 3.5rem;
    margin-top: 2rem;
    width: 100%;
}

.relative.pl-16 dt {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    gap: 2rem;
    margin-top: 0px;
    padding-left: 3rem;
}

.relative.pl-16 .absolute {
    position: absolute;
    left: -3rem;
    top: 50%;
    transform: translateY(-50%);
}
/* Mobile adjustments */
@media (max-width: 768px) {
    .relative.pl-16, 
    .relative.pl-16:last-child {
        padding-left: 3rem;
        margin-left: 0;
        margin-top: 1.5rem;
    }

    .relative.pl-16 dt {
        font-size: 0.9rem;
        gap: 1.5rem;
        padding-left: 2rem;
        margin-top: -25px;
    }

    .relative.pl-16 .absolute {
        left: -2.5rem;
    }
}

.text-4xl.font-bold {
    color: #fff;
}

.text-xl.mt-2 {
    color: #fff;
    opacity: 0.8; /* Makes the subtitle slightly lighter */
}


.bg-dark-blue { background-color: #004274; }
    .text-dark-blue { color: #004274; }
    .timeline-line { width: 2px; background-color: #004274; }
    .timeline-item { opacity: 0; transform: translateX(-50px); transition: opacity 0.6s ease, transform 0.6s ease; }
    .timeline-item.visible { opacity: 1; transform: translateX(0); }