/* ==========================================================================
   PLAN DU SITE — Page-Specific Styles
   ========================================================================== */

.sitemap-page {
    padding: 140px 5% 100px;
    background: var(--gray-50);
    min-height: 100vh;
}

.sitemap-container {
    max-width: 1000px;
    margin: 0 auto;
}

.sitemap-header {
    text-align: center;
    margin-bottom: 4rem;
}

.sitemap-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.sitemap-header p {
    font-size: 1.1rem;
    color: var(--gray-500);
}

/* Sitemap Grid */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.sitemap-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.sitemap-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.sitemap-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.sitemap-section-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.sitemap-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
}

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

.sitemap-links li {
    margin-bottom: 0.5rem;
}


.sitemap-links a:hover {
    background: var(--gray-50);
    color: var(--gray-900);
    padding-left: 1.25rem;
}

.sitemap-links a span {
    opacity: 0.5;
    font-size: 0.8rem;
}

.sitemap-links a:hover span {
    opacity: 1;
}

/* Main Pages Highlight */
.main-pages {
    grid-column: 1 / -1;
    background: #171717;
    color: white;
}

.main-pages .sitemap-section-header {
    border-bottom-color: var(--gray-700);
}

.main-pages .sitemap-section-icon {
    background: white;
    color: #171717;
}

.main-pages .sitemap-section-title {
    color: white;
}

.main-pages .sitemap-links a {
    color: var(--gray-400);
}

.main-pages .sitemap-links a:hover {
    background: var(--gray-800);
    color: white;
}

.main-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

/* Visual Tree */
.sitemap-tree {
    margin-top: 4rem;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.sitemap-tree h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2rem;
    text-align: center;
}

.tree {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tree-root {
    background: var(--gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.tree-root::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    width: 2px;
    height: 2rem;
    background: var(--gray-200);
}

.tree-branches {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    padding-top: 1rem;
}

.tree-branches::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--gray-200);
}

.tree-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.tree-branch::before {
    content: '';
    width: 2px;
    height: 1rem;
    background: var(--gray-200);
}


.tree-branch a:hover {
    background: #171717;
    color: white;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .main-pages-grid {
        grid-template-columns: 1fr;
    }

    .tree-branches {
        flex-direction: column;
        align-items: center;
    }

    .tree-branches::before {
        display: none;
    }

    .sitemap-tree {
        padding: 2rem 1.5rem;
    }
}
