body {
    font-family: 'Playfair Display', serif;
    margin: 0;
    padding: 0;
    height: 100%;
    box-sizing: border-box;
   background-color: #e2dede9f;
}

body {
    display: flex;
    flex-direction: column;
}

header {
    background: #f5f2f1d9;
    color: #000;
    padding: 10px 20px; 
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.menu li {
    position: relative;
    padding: 0 15px;
}

.menu a {
    text-decoration: none;
    color: #000;
    font-weight: lighter;
}
.menu li:hover {
    color: #f0f0f0; /* Slightly lighter background on hover */
}

/* Dropdown menu styling */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    padding: 0;
    margin: 0;
    list-style: none;
    min-width: 160px;
    z-index: 1000;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.dropdown li {
    padding: 10px;
}

.dropdown li a {
    color: #fff;
    display: block;
    text-decoration: none;
}

/* Show dropdown on hover */
.menu li:hover .dropdown {
    display: block;
}

/* Optional: Add a hover effect for dropdown items */
.dropdown li:hover {
    background-color: #bebaba;
}

.logo {
    font-size: 100%; 
}

.hero {
    position: relative;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    border: #cc4628 solid 2px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    height: 100vh; /* Ensures the hero section takes up the full viewport height */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    border-radius: 10px;
    padding: 20px;
    width: 100%; /* Full width of the container */
    max-width: 100%; /* Ensure it stretches across the entire width on larger screens */
    justify-content: center;
    background-size: cover; /* Ensure background image (if any) covers the whole section */
    background-position: center; /* Center the background image */
}


.hero-title {
    color: #faf5f3e8;
    font-size: 2.1em;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    line-height: 1.3;
    

}

.cta-button {
    margin-top: 30px;
    background-color: #cc4628;
    color: #f5f2f1d9;
    border: none;
    padding: 10px 30px;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 3px;
    font-family: 'Playfair Display', serif;
}

.cta-button:hover {
    background-color: #cdc7c6;
}

/* Sidebar Styles ***********************/

/* Sidebar styles */
#sidebar {
    height: 100%;
    width: 250px; 
    position: fixed;
    z-index: 1001;
    top: 0;
    left: 0;
    background-color: #ffffff;
    overflow-x: hidden;
    transition: 0.3s;
    padding-top: 60px;
}

#sidebar ul {
    list-style-type: none; /* Removes bullets or numbers */
    padding: 0; /* Removes default padding */
    margin: 0; /* Removes default margin */
}

#sidebar li {
    border-bottom: 1px solid #cc462889; /* Adds a subtle border between items */
    padding: 10px 20px; /* Adds padding for spacing */
    transition: background-color 0.3s ease, border-color 0.3s ease; /* Smooth transition for hover effects */
    position: relative; /* Allows for positioning of the dropdown */
}

#sidebar li:last-child {
    border-bottom: none; /* Removes the border from the last item */
}

#sidebar a {
    padding: 15px 20px; /* Increased padding for easier touch */
    text-decoration: none;
    font-size: 20px;
    color: #080808;
    display: block;
    transition: color 0.3s; /* Smooth transition for text color */
}

#sidebar a:hover {
    color: #f1f1f1;
}



#sidebar .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 36px;
    color: #cc4628;
    cursor: pointer; /* Ensure it looks clickable */
}


/*****About ****************/
main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.article {
    margin-bottom: 40px;
}

.article-title {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.article-meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 20px;
}

.article-content p {
    line-height: 1.6;
    margin-bottom: 20px;
}

/******CV****************/

.article-content .article-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}
.article-content iframe {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

/****Entretien*************/

.qa-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.qa-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.qa-question {
    font-family: 'Playfair Display', serif;
    font-size: 1.3em;
    font-weight: lighter;
    margin-bottom: 40px;
    height: 60px;
}

.qa-answer {
    border-radius: 8px;
    font-family: serif;
    padding: 20px;
    font-size: 1.2em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    height: 300px; /* Adjust this value to set the maximum height */
    overflow-y: auto; /* Adds vertical scrollbar if content overflows */
}


.audio-container {
    display: flex;
    justify-content: center; 
    margin-bottom: 20px
}

.audio-player {
    background-color: #f4f4f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: inline-block;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.audio-player audio {
    width: 100%;
    border-radius: 5px;
    border: 2px solid #ddd;
    outline: none;
    margin: 0;
    padding: 0;
}


.prev-btn {
    font-family: 'Playfair Display', serif;
    width: 120px;
    background-color: #0b0b0be1;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1.3em;
    cursor: pointer;
    border-radius: 5px;
}
.next-btn {
    font-family: 'Playfair Display', serif;
    width: 120px;
    background-color: #b43f22;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1.3em;
    cursor: pointer;
    border-radius: 5px;
}

/* Modal Background */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.4); /* Black background with opacity */
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* Center the modal */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Adjust width */
    border-radius: 8px;
    text-align: center;
    position: relative; /* Required for absolute positioning of the close button */
}

/* Close Button */
.close-btn {
    position: absolute; /* Position relative to .modal-content */
    top: 10px; /* Adjust top margin */
    right: 10px; /* Adjust right margin */
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
}
/*charte*****************************************************/



.qa-container2 {
  
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 600px; 
    overflow-y: auto;
}
/*Entretien1*************************************************/

.button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #cc4628;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #cc46287d;
}

.resources {
    margin-top: 20px;
}

.resources-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}



/***********EntretienEcrit*********/

.cta-button {
    display: inline-block;
    background-color: #cc4628;
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    margin-top: 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2 em;
    
}

.cta-button:hover {
    background-color: #b34122;
}

/******Footer************/

footer {

    background: #f5f5f5;
    padding: 20px;
    border-top: 2px solid #ccc;
    text-align: center;
}



/* Media Queries for Mobile Devices */
@media (max-width: 600px) {
    body{
        background-color: #ffffff;
    }
    .menu {
        
        display: none; /* Hide main menu */
    }

    .toggle-btn {
        display: block; /* Show toggle button */
        font-size: 30px;
        cursor: pointer;
        color: #cc4628;
    }

    .sidebar {
        width: 100%; /* Full width for mobile */
    }

    .sidebar a {
        font-size: 18px; /* Adjusted font size for mobile */
    }
}

@media (min-width: 1024px)

{
    
    .qa-card {
        padding: 15px;
        max-width: 600px;
        height: 500px;
    }
    
    .qa-answer {
        height: 120px; /* Adjusted height for desktop screens */
    }
}


@media (min-width: 601px) {
    
    .sidebar {
        display: none; /* Hide sidebar on larger screens */
    }

    .toggle-btn {
        display: none; /* Hide toggle button on larger screens */
    }
}

.logo img {
    width: 100px; /* Width for mobile view */
    height: auto; /* Maintain aspect ratio */
}

/* Enhance touch targets and spacing */
a, button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight color */
}
