/**
 * Page Accords territoriaux
 */
:root {
    --green: #2d7a3a;
    --green2: #4a6741;
    --gold: #d4af37;
    --beige: #f5f2e8;
    --dark: #2c3e50;
    --muted: #7f8c8d;
    --white: #fff;
}

body.page-accords {
    font-family: "Inter", sans-serif;
    background: linear-gradient(135deg, var(--beige) 0%, #e8f5e8 100%);
    min-height: 100vh;
    padding-top: 80px;
    color: var(--dark);
    line-height: 1.6;
}

.page-accords .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-image: url("../../../logo-cooppere-text.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100vw;
    height: 100vh;
    max-width: 1200px;
    max-height: 800px;
}

.page-accords .main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem 3rem;
}

.page-accords .hero-title {
    font-family: "Playfair Display", serif;
    font-size: 2.4rem;
    color: var(--green);
    margin-bottom: 0.5rem;
    text-align: center;
}

.page-accords .hero-subtitle {
    text-align: center;
    color: var(--muted);
    margin-bottom: 2.5rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.card-box {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem 2.25rem;
    border: 1.5px solid rgba(45, 122, 58, 0.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

.card-box h2 {
    font-family: "Playfair Display", serif;
    font-size: 1.35rem;
    color: var(--green);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-box h2 i {
    color: var(--gold);
}

.card-box--cta {
    text-align: center;
}

.card-box--cta h2 {
    justify-content: center;
}

.card-lead {
    margin-bottom: 0.75rem;
}

.dl-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.btn-dl {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s;
    white-space: nowrap;
}

.btn-dl:hover {
    opacity: 0.82;
}

.btn-pdf {
    background: #c0392b;
    color: #fff;
}

.btn-docx {
    background: #1f5fa6;
    color: #fff;
}

.btn-guide-pdf {
    background: #c0392b;
    color: #fff;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

.btn-guide-docx {
    background: #1f5fa6;
    color: #fff;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

.dl-note {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 0.3rem;
    font-style: italic;
}

.familles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.famille-card {
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid;
}

.famille-card--a {
    background: #f6fff7;
    border-color: #cde8d0;
}

.famille-card--a h3 {
    color: #2d7a3a;
    margin-bottom: 0.4rem;
}

.famille-card--b {
    background: #f3f7ff;
    border-color: #cad6f5;
}

.famille-card--b h3 {
    color: #1e40af;
    margin-bottom: 0.4rem;
}

.famille-card--c {
    background: #fff9e8;
    border-color: #f3d9a4;
}

.famille-card--c h3 {
    color: #b45309;
    margin-bottom: 0.4rem;
}

.famille-card p {
    font-size: 0.9rem;
}

.niveau-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

.niveau-table th {
    background: #e6f2ea;
    padding: 0.65rem 0.75rem;
    border: 1px solid #d0e2d6;
    text-align: left;
}

.niveau-table td {
    padding: 0.55rem 0.75rem;
    border: 1px solid #e3e3e3;
}

.niveau-table tr:nth-child(even) td {
    background: #fafafa;
}

.overflow-x-auto {
    overflow-x: auto;
}

.accords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.accord-card {
    border-radius: 12px;
    padding: 1.25rem 1.4rem;
    border: 1.5px solid rgba(45, 122, 58, 0.15);
    background: var(--white);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.accord-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.accord-badge {
    background: var(--green);
    color: var(--white);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    flex-shrink: 0;
}

.accord-badge.famille-b {
    background: #1e40af;
}

.accord-badge.famille-c {
    background: #b45309;
}

.accord-card h3 {
    font-size: 0.97rem;
    color: var(--dark);
    font-weight: 600;
}

.accord-card p {
    font-size: 0.83rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.type-item h3 {
    color: var(--green);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.type-item p {
    font-size: 0.85rem;
    color: var(--dark);
}

.faq-item {
    margin-bottom: 1rem;
}

.faq-item strong {
    color: var(--dark);
    display: block;
    margin-bottom: 0.2rem;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.btn-cta-green {
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cta-outline {
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    background: #fff;
    color: var(--green);
    border: 1.5px solid var(--green);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.accords-muted {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.accords-muted-block {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.color-pdf {
    color: #c0392b;
    font-weight: 600;
}

.color-docx {
    color: #1f5fa6;
    font-weight: 600;
}

.cta-narrow {
    max-width: 560px;
    margin: 0.5rem auto 0;
    color: var(--muted);
}

@media (max-width: 600px) {
    .page-accords .hero-title {
        font-size: 1.8rem;
    }

    .card-box {
        padding: 1.25rem;
    }

    .accords-grid {
        grid-template-columns: 1fr;
    }
}
