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

nav {
    width: 100%;
    margin: 0 auto;
    background-color: #d2ddcf;
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between; 
    padding: 0 20px;
    z-index: 1000; 
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: space-between; 
    width: 100%; 
    margin: 0;
    padding: 0;
}




nav ul li {
    text-align: center;
    position: relative;
    flex-grow: 1;
}

.logo ul li {
    display: inline-block;
    width: 25%;
}

nav ul::after {
    content: "";
    display: table;
    clear: both;
}

nav a {
    display: block;
    text-decoration: none;
    color: black;
    border-bottom: 2px solid transparent;
    padding: 10px 0;
    font-size: large;
    font-family: 'Avenir', sans-serif;
}

nav a:hover {
    color: #85a759;
    border-bottom: 2px solid #97ad7b;
    font-size: large;
    font-family: 'Avenir', sans-serif;
}

.sous {
    display: none;
    box-shadow: 0 1px 2px #CCC;
    background-color: white;
    position: absolute;
    left: 0;
    max-width: 70px;
    z-index: 1000;
}

nav > ul li:hover .sous {
    display: block;
}

.sous li {
    float: none;
    width: 100%;
    text-align: center;
}

.sous a {
    padding: 10px;
    border-bottom: none;
}

.sous a:hover {
    border-bottom: none;
    background-color: rgba(200, 200, 200, 0.1);
}

.deroulant_profile > a::after {
    content: "";
    font-size: 12px;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    width: 100%;
}

#scrollable-container {
    width: 100%;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
    overflow-y: auto;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.background-image-2 {
    background-image: url('../Images/BackgroundCorse\ .jpeg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
}

.background-image {
    background-image: url('../Images/adminlogo.jpeg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
}

.centre-container {
    width: 100%;
    text-align: center;
    padding: 0;
    margin: 0;
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #d2ddcf;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #d2ddcf; 
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.centre-container.shrink .header-content {
    padding: 10px;
}

#titre {
    color: #2d2d2d;
    font-family: 'Avenir', sans-serif;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-left: 20px;
    transition: all 0.3s ease;
}

.centre-container.shrink #titre {
    font-size: 18px;
    margin-left: 10px;
}

#logo {
    width: 150px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, width 0.3s ease;
}

.centre-container.shrink #logo {
    width: 100px;
}

#logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.text-container {
    width: auto;
    text-align: center;
    padding: 20px;
    margin: 0;
    border: 2px solid #000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    background-color: #ffffff;
    border-radius: 5px;
    max-width: 80%;
}

.projet-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

#projet {
    text-align: left;
    margin: 10px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(50% - 40px); 
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 700px; 
    max-width: 700px; 

}


#projet img {
    display: block;
    margin: 0 auto 10px auto;
    min-width: 600px;
    min-height: 600px;
    max-width: 600px;
    max-height: 600px;
    object-fit: cover;
}

#projet:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

#projet h2 {
    margin-top: 0;
}

.projet-link {
    text-decoration: none;
    color: inherit;
}

#projet p {
    margin-bottom: 0;
}

.btn {
    display: inline-block;
    color: rgb(12, 110, 38);
    padding: 10px 20px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn:hover {
    color: #00b21e;
}
.text-container {
    width: 100%;
    max-width: 70%;
    text-align: left;
    padding: 20px;
    margin: 20px 0;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    word-wrap: break-word; 
    overflow-wrap: break-word; 
}

.text-container h2, .text-container p {
    margin: 0 0 10px 0;
    padding: 0;
    color: #333;
}

.text-container h2 {
    font-size: 24px;
    font-weight: bold;
}

.text-container p {
    font-size: 18px;
}

.grayoverlap {
    background-color: #cccccc74;
    width: 100%;
    height: 100%;
}

.sticky {
    position: sticky;
    top: 0;
    z-index: 9999;
    background-color: #d2ddcf;
    transition: all 0.3s ease;
}

.shrink .header-content {
    padding: 10px;
}

.shrink #logo {
    width: 100px;
}

.shrink #titre {
    font-size: 18px;
}

#carousel-container { 
    max-width: 1008px;  
    aspect-ratio: 1008 / 700; 
    margin: auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;  /* Ensure this takes the full width */
}

#carousel-images .carousel-image-container {

    min-width: 100%;
    min-height : 100%;
    max-width: 100%;
    max-height : 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#carousel-images img {
    display: block;
    margin: 0 auto;
    object-fit: contain;  
    max-width: 100%;  
    max-height: 100%; 
    aspect-ratio: 1008 / 700;  
    width: auto;     
    min-height: 100%;   
}






.prev, .next {
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.1);
}

.next {
    right: 12;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 12;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

body {
    font-family: Avenir, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
}

.contact-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
    height: auto;
}

.contact-container h1 {
    font-size: 36px;
    color: #2d2d2d;
    margin-bottom: 20px;
    border-bottom: 2px solid #d2ddcf;
    padding-bottom: 10px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    font-size: 18px;
    color: #333;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-label {
    font-weight: bold;
    color: #85a759;
}

.contact-list a {
    color: #85a759;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list a:hover {
    color: #97ad7b;
}



 

   



