/**
 * Styles pour la page Arbres en ligne
 * Design moderne avec gradient bleu-jaune et effets subtils
 */

/* ============================================
   CONTENEUR PRINCIPAL
   ============================================ */

.arbres-en-ligne-page {
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    min-height: 100vh;
}

.arbres-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 16px;
}

@media (min-width: 640px) {
    .arbres-container {
        padding: 80px 24px;
    }
}

@media (min-width: 1024px) {
    .arbres-container {
        padding: 96px 24px;
    }
}

/* ============================================
   EN-TÊTE AVEC LOGO
   ============================================ */

.arbres-header {
    text-align: center;
    margin-bottom: 48px;
}

.arbres-logo {
    margin: 0 auto 32px;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(54, 94, 138, 0.15),
                0 8px 10px -6px rgba(54, 94, 138, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.arbres-logo:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(54, 94, 138, 0.2),
                0 16px 20px -12px rgba(54, 94, 138, 0.15);
}

/* ============================================
   TITRES
   ============================================ */

.arbres-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #365E8A 0%, #F4EC6C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

@media (min-width: 640px) {
    .arbres-title {
        font-size: 3rem;
    }
}

/* ============================================
   SECTIONS
   ============================================ */

.arbres-section {
    margin-bottom: 64px;
}

/* ============================================
   TABLEAUX
   ============================================ */

.arbres-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px -2px rgba(54, 94, 138, 0.1);
}

.arbres-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
}

.arbres-table thead {
    background: linear-gradient(135deg, #EFF6FF 0%, #FEF9C3 100%);
}

.arbres-table th {
    padding: 16px 24px;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 700;
    color: #365E8A;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #365E8A;
}

.arbres-table tbody tr {
    transition: background-color 0.2s ease;
}

.arbres-table tbody tr:hover {
    background-color: #F8FAFC;
}

.arbres-table tbody tr:nth-child(even) {
    background-color: #F8FAFC;
}

.arbres-table tbody tr:nth-child(even):hover {
    background-color: #EFF6FF;
}

.arbres-table td {
    padding: 16px 24px;
    font-size: 0.875rem;
    color: #475569;
    border-bottom: 1px solid #E2E8F0;
}

/* ============================================
   BADGES TYPE
   ============================================ */

.arbres-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.arbres-badge-adherent {
    background-color: #DBEAFE;
    color: #365E8A;
}

.arbres-badge-libre {
    background-color: #D1FAE5;
    color: #059669;
}

/* ============================================
   LIENS
   ============================================ */

.arbres-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #365E8A;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.arbres-link:hover {
    color: #F4EC6C;
    transform: translateX(2px);
}

.arbres-link-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: transform 0.2s ease;
}

.arbres-link:hover .arbres-link-icon {
    transform: translate(2px, -2px);
}

/* ============================================
   SECTION DOCUMENTS
   ============================================ */

.arbres-documents {
    background: linear-gradient(135deg, #EFF6FF 0%, #FEF9C3 100%);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 20px -2px rgba(54, 94, 138, 0.1);
}

.arbres-documents-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #365E8A;
    margin-bottom: 24px;
    text-align: center;
}

.arbres-documents-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .arbres-documents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .arbres-documents-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.arbres-document-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 16px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.arbres-document-card:hover {
    box-shadow: 0 10px 25px -5px rgba(54, 94, 138, 0.15),
                0 8px 10px -6px rgba(54, 94, 138, 0.1);
    transform: translateY(-4px);
}

.arbres-document-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.arbres-document-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

/* ============================================
   LOGO FOOTER
   ============================================ */

.arbres-footer-logo {
    text-align: center;
    margin-top: 48px;
}

.arbres-footer-logo a {
    display: inline-block;
    transition: opacity 0.2s ease;
}

.arbres-footer-logo a:hover {
    opacity: 0.8;
}

.arbres-footer-logo img {
    margin: 0 auto;
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 20px -2px rgba(54, 94, 138, 0.1);
}

/* ============================================
   RESPONSIVE MOBILE
   ============================================ */

@media (max-width: 768px) {
    .arbres-table th,
    .arbres-table td {
        padding: 12px 16px;
        font-size: 0.8125rem;
    }
    
    .arbres-title {
        font-size: 2rem;
    }
    
    .arbres-documents {
        padding: 24px 16px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.arbres-section {
    animation: fadeInUp 0.6s ease-out;
}

.arbres-section:nth-child(2) {
    animation-delay: 0.1s;
}

.arbres-section:nth-child(3) {
    animation-delay: 0.2s;
}

/* ============================================
   ACCESSIBILITÉ
   ============================================ */

.arbres-link:focus,
.arbres-document-card:focus {
    outline: 2px solid #365E8A;
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .arbres-en-ligne-page {
        background: white;
    }
    
    .arbres-table tbody tr:hover {
        background-color: transparent;
    }
    
    .arbres-link-icon {
        display: none;
    }
}
