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

body {
    background-color: #2d2d2d;
    color: #d5d8dc;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

header {
    width: 100%;
    background-color: #3a3a3a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 20px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: #1c2526;
}

.header-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title h1 {
    font-size: 2rem;
    color: #d5d8dc;
    font-weight: 700;
}

.header-title p {
    font-size: 0.9rem;
    color: #a1a6ab;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #d5d8dc;
    padding: 10px;
    position: absolute;
    right: 20px;
    z-index: 1001;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li {
    position: relative;
    margin-left: 20px;
}

nav ul li a {
    color: #d5d8dc;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 15px;
    transition: color 0.3s ease, transform 0.2s ease;
    display: block;
}

nav ul li a:hover,
nav ul li a.active {
    color: #5d6d7e;
    transform: translateY(-2px);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #5d6d7e;
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #3a3a3a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    min-width: 160px;
    z-index: 1001;
    border-radius: 5px;
    top: 100%;
    left: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    color: #d5d8dc;
    padding: 12px 15px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #4f4f4f;
    color: #5d6d7e;
}

nav ul {
    transition: all 0.3s ease;
}

nav ul.active {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 80px;
    left: 0;
    background-color: #3a3a3a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    padding: 10px 0;
}

nav ul.active li {
    margin: 10px 20px;
    width: 100%;
    text-align: left;
}

nav ul.active .dropdown-content {
    position: static;
    width: 100%;
    box-shadow: none;
    transform: none;
    opacity: 1;
    display: none;
    background-color: #4f4f4f;
    margin-left: 20px;
}

nav ul.active .dropdown.active .dropdown-content {
    display: block;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 40px;
    flex: 1;
}

.tab-content:not(#accueil) {
    margin-top: 50px;
}

#accueil.active {
    padding-top: 50px;
    margin: 0;
    overflow-y: hidden;
}

#parcours.active section,
#viepersonnelle.active section {
    text-align: justify;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.quote-container {
    padding: 20px;
    text-align: center;
}

.circle-image {
    width: 360px;
    height: 360px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.normal-text {
    font-size: 1rem;
    color: #a1a6ab;
    margin: 20px 0;
    text-align: center;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-size: 1rem;
    color: #d5d8dc;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 15px;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #5d6d7e;
    border-radius: 5px;
    background-color: #3a3a3a;
    color: #d5d8dc;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    padding: 10px;
    font-size: 1rem;
    background-color: #5d6d7e;
    color: #d5d8dc;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #4f4f4f;
}

.quote-container blockquote {
    font-size: 1.5rem;
    color: #d5d8dc;
    font-style: italic;
    max-width: 700px;
    margin-bottom: 20px;
}

.quote-container blockquote p {
    margin-bottom: 15px;
}

.quote-container .quote-author {
    font-size: 1.1rem;
    color: #a1a6ab;
    font-weight: 500;
}

.quote-container .quote-author cite {
    font-style: normal;
    color: #5d6d7e;
}

section h2 {
    font-size: 1.8rem;
    color: #d5d8dc;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: #5d6d7e;
    bottom: -5px;
    left: 0;
}

section h3 {
    font-size: 1.3rem;
    color: #d5d8dc;
    margin: 20px 0 10px;
    font-weight: 500;
}

.period-content {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.period-content ul {
    list-style: none;
    margin-left: 20px;
    flex: 1;
    max-width: 65%;
}

.period-content ul li {
    font-size: 1rem;
    color: #a1a6ab;
    margin-bottom: 10px;
    position: relative;
}

.period-content ul li::before {
    content: "›";
    color: #5d6d7e;
    position: absolute;
    left: -20px;
}

.wiki-link {
    color: inherit;
    text-decoration: underline;
    font-weight: normal;
}

.wiki-link:hover {
    text-decoration: none;
}

.period-image {
    width: 300px;
    height: 225px;
    margin-left: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.period-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

footer {
    width: 100%;
    background-color: #3a3a3a;
    padding: 10px 20px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

footer p {
    font-size: 0.9rem;
    color: #a1a6ab;
    margin: 0;
}

footer a {
    color: #5d6d7e;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        position: relative;
    }

    .header-title {
        margin-bottom: 15px;
    }

    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
    }

    nav ul.active {
        display: flex;
    }

    .dropdown-content {
        display: none;
    }

    header h1 {
        font-size: 1.8rem;
    }

    header p {
        font-size: 0.85rem;
    }

    .quote-container {
        padding: 15px;
    }

    .quote-container blockquote {
        font-size: 1.2rem;
    }

    .quote-container .quote-author {
        font-size: 0.95rem;
    }

    .container {
        padding: 0 20px 30px;
    }

    .normal-text {
        font-size: 0.95rem;
    }

    .contact-form {
        max-width: 100%;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.95rem;
    }

    .contact-form button {
        font-size: 0.95rem;
    }

    footer {
        padding: 5px 20px;
    }

    section h2 {
        font-size: 1.5rem;
    }

    section h3 {
        font-size: 1.1rem;
    }

    section ul li {
        font-size: 0.95rem;
    }

    .period-content {
        flex-direction: column;
    }

    .period-image {
        width: 100%;
        height: auto;
        padding-bottom: 75%;
        margin-left: 0;
        margin-top: 10px;
        position: relative;
    }

    .period-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .period-content ul {
        max-width: 100%;
    }

    .circle-image {
        width: 270px;
        height: 270px;
        margin: 0 auto 30px;
    }
}