/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: 'Crimson Pro', serif;
    font-weight: 300;
    font-size: 1.1rem;
    color: #252626;
    line-height: 1.6;
}

/* Typographie */
h1, h2, h3 {
    font-family: 'Rye', serif;
    font-weight: normal;
}

h4, h5, h6 {
    font-family: 'Crimson Pro', serif;
    font-weight: 600;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin: 1.5rem 0 1rem; }
h3 { font-size: 1.5rem; margin: 1.25rem 0 0.75rem; }
h4 { font-size: 1.25rem; margin: 1rem 0 0.5rem; }
h5 { font-size: 1.1rem; margin: 0.75rem 0 0.5rem; }
h6 { font-size: 1rem; margin: 0.5rem 0 0.25rem; }

p { margin-bottom: 1rem; }

table {
    border-collapse: collapse;
    border:1px solid black;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* HEADER */
/* Ruban */
.ruban {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.ruban-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    transition: opacity 0.3s;
    vertical-align: middle;
}

.logo:hover img {
    opacity: 0.8;
}

/* Navigation */
.west_header_menu {
    color: rgba(0, 0, 0, 0.7);
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    margin-left: 2rem;
}

.nav-item>a {
    font-size: 1.9rem;
    font-weight: 300;
}

.nav-link {
    color: rgba(0, 0, 0, 0.7);
    font-weight: 600;
    /*
    padding: 0.5rem 1rem;
    */
    display: block;
    transition: background-color 0.3s;
}

.nav-link:hover {
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* Menu déroulant */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(255, 255, 255, 0.95);
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1001;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    list-style: none;
}

.dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: #252626;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.dropdown li:last-child a {
    border-bottom: none;
}

/* Entête */
.entete {

}

.entete-title {

}

/* Page d'accueil Hero */
.homepage-hero {
    height: 500px;
    margin-top: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    text-align: center;
    color: rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-style: italic;
    margin-top: 1rem;
}

/* CONTENT */
.content-wrapper {
    width: 97%;
    max-width: 1200px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Sous-menu */
.submenu {
    background-color: #f8f8f8;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #8B4513;
}

.submenu h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #8B4513;
}

.toc ul {
    list-style: none;
    padding-left: 0;
}

.toc ul ul {
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: #252626;
    font-weight: 300;
    transition: all 0.3s;
    display: block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.toc a:hover {
    text-decoration: none;
    background-color: var(--west-entete-couleur, #D2B48C);
    color: rgba(0, 0, 0, 0.8);
}

/* Corpus */
.corpus {
    flex: 1;
}

.corpus.full-width {
    width: 100%;
}

.article-content {
    line-height: 1.8;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 4px;
}

/* Listes de pages */
.page-list {
    margin-top: 2rem;
}

.page-summary {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.page-summary:last-child {
    border-bottom: none;
}

.page-summary h2,
.page-summary h3 {
    margin-bottom: 0.5rem;
}

.page-summary a:hover {
    color: #8B4513;
}

.recent-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

/* FOOTER */
.footer {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
}

.footer-content {
    text-align: center;
    color: rgba(0, 0, 0, 0.7);
}

.footer-content p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-list {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .nav-item {
        margin: 0;
    }

    .nav-link {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .entete-title {

    }

    .content-wrapper {
        width: 95%;
        margin: 1rem auto;
    }
}

/* Desktop - Sous-menu fixe à gauche */
@media (min-width: 1024px) {
    .content-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }

    .submenu {
        position: sticky;
        top: 110px;
        width: 300px;
        flex-shrink: 0;
    }

    .west_corpus {
        margin-left: 2rem;

    }
}

.west_corpus p, .west_corpus li {
    font-size: 1.1rem;
    line-height: 1.4rem;
    margin-bottom: 0.9rem;
}

.west_corpus>ul {
    padding-left: 1rem;
}

.west_corpus>ul>li {
    list-style-image: url("https://west.rolist.fr/images/bullethole2_12x12px.png");
}

.west_corpus>ul>li strong {
    font-size: 1.3rem;
}
