/**
 * Page Réseau (carte ULAs)
 */
:root {
    --rs-green: #4a6741;
    --rs-green2: #2d7a3a;
    --rs-gold: #d4af37;
    --rs-dark: #2c3e50;
    --rs-muted: #7f8c8d;
}

body.page-reseau {
    padding-top: 0;
    margin: 0;
    font-family: "Inter", sans-serif;
    background: linear-gradient(135deg, #f5f2e8, #e8f5e8);
    min-height: 100vh;
}

.page-reseau .background-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.06;
    z-index: -1;
    pointer-events: none;
    background: url("../../../logo-cooppere-text.png") center / contain no-repeat;
    width: 100vw;
    height: 100vh;
    max-width: 1200px;
    max-height: 800px;
}

.page-reseau .main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2rem 3rem;
}

.page-reseau .hero-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--rs-green);
    margin-bottom: 0.5rem;
    text-align: center;
    text-transform: none;
    letter-spacing: normal;
}

.page-reseau .hero-subtitle {
    text-align: center;
    color: var(--rs-muted);
    margin-bottom: 2rem;
}

.reseau-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .reseau-grid {
        grid-template-columns: 1fr;
    }
}

.map-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(74, 103, 65, 0.15);
}

.map-card h3 {
    padding: 1rem 1.25rem;
    margin: 0;
    font-size: 1rem;
    color: var(--rs-green);
    background: #f8fbf8;
    border-bottom: 1px solid #eee;
}

#map {
    height: 380px;
    width: 100%;
}

.registre-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(74, 103, 65, 0.15);
    max-height: 460px;
    display: flex;
    flex-direction: column;
}

.registre-card h3 {
    padding: 1rem 1.25rem;
    margin: 0;
    font-size: 1rem;
    color: var(--rs-green);
    background: #f8fbf8;
    border-bottom: 1px solid #eee;
}

.registre-list {
    overflow-y: auto;
    flex: 1;
    padding: 0.5rem 0;
}

.ula-item {
    display: block;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: var(--rs-dark);
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.ula-item:hover {
    background: #f0faf2;
}

.ula-item:last-child {
    border-bottom: none;
}

.ula-name {
    font-weight: 600;
    color: var(--rs-green2);
    font-size: 0.95rem;
}

.ula-meta {
    font-size: 0.78rem;
    color: var(--rs-muted);
    margin-top: 0.2rem;
}

.ula-badge {
    display: inline-block;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    background: rgba(74, 103, 65, 0.12);
    color: var(--rs-green);
    margin-left: 0.35rem;
}

.steps-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(74, 103, 65, 0.15);
    margin-top: 1.5rem;
}

.steps-card h3 {
    font-size: 1.1rem;
    color: var(--rs-green);
    margin-bottom: 1rem;
}

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

.steps-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--rs-dark);
}

.steps-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--rs-gold);
    font-weight: 700;
}

.steps-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.steps-links a {
    color: var(--rs-green);
    font-weight: 600;
    text-decoration: none;
}

.steps-links a:hover {
    text-decoration: underline;
}

.fiche-ula {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(74, 103, 65, 0.15);
    margin-bottom: 1.5rem;
}

.fiche-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--rs-green);
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 1rem;
}

.fiche-back:hover {
    text-decoration: underline;
}

.fiche-title {
    font-size: 1.6rem;
    color: var(--rs-green);
    margin-bottom: 0.5rem;
}

.fiche-meta {
    font-size: 0.85rem;
    color: var(--rs-muted);
    margin-bottom: 1rem;
}

.fiche-desc {
    color: var(--rs-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.fiche-projets h4 {
    font-size: 0.95rem;
    color: var(--rs-green);
    margin-bottom: 0.5rem;
}

.fiche-projets ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fiche-projets li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.fiche-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.fiche-actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s;
}

.btn-join {
    background: var(--rs-green);
    color: #fff;
}

.btn-carnet {
    background: transparent;
    border: 2px solid var(--rs-green);
    color: var(--rs-green);
}

.btn-join:hover,
.btn-carnet:hover {
    opacity: 0.9;
}

.empty-map {
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rs-muted);
    text-align: center;
    padding: 2rem;
}

.empty-map-icon {
    font-size: 2.5rem;
    opacity: 0.3;
}

.empty-map-hint {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.registre-empty {
    padding: 2rem;
    text-align: center;
    color: var(--rs-muted);
}

.registre-empty-icon {
    font-size: 2rem;
    opacity: 0.3;
}

.registre-empty-hint {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.leaflet-popup-content {
    margin: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

.leaflet-popup-content a {
    color: var(--rs-green);
    font-weight: 600;
}
