/* Styles pour la page de détail d'un lien */

/* Layout principal */
.liens-detail-section {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: 60vh;
}

.liens-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 40px;
}

.liens-detail-main {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Header du lien */
.lien-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.lien-categorie {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #009FDA 0%, #00587C 100%);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 15px;
}

.lien-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.lien-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: #009FDA;
}

.meta-item.rating {
    color: #f39c12;
}

.meta-item.rating i {
    color: #f39c12;
}

/* Image du lien */
.lien-image {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.lien-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sections de contenu */
.lien-description,
.lien-contact,
.lien-heures,
.lien-map {
    margin: 30px 0;
}

.lien-description h2,
.lien-contact h2,
.lien-heures h2,
.lien-map h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lien-description h2 i,
.lien-contact h2 i,
.lien-heures h2 i,
.lien-map h2 i {
    color: #009FDA;
    font-size: 18px;
}

.lien-description p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

/* Grille de contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 15px;
}

.contact-item > i {
    color: #009FDA;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-item strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.contact-item p {
    margin: 0;
    color: #666;
}

.contact-item a {
    color: #009FDA;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #00587C;
    text-decoration: underline;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 5px 10px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.3s;
}

.map-link:hover {
    background: #009FDA;
    color: white !important;
}

/* Heures d'ouverture */
.heures-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.heure-ligne {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.heure-ligne:last-child {
    border-bottom: none;
}

.jour {
    font-weight: 600;
    color: #333;
}

.heure {
    color: #666;
}

/* Carte */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Actions */
.lien-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.lien-actions .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.lien-actions .btn-primary {
    background: linear-gradient(135deg, #009FDA 0%, #0088cc 100%);
    color: white;
}

.lien-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 159, 218, 0.4);
}

.lien-actions .btn-secondary {
    background: #7AC142;
    color: white;
}

.lien-actions .btn-secondary:hover {
    background: #6AB132;
    transform: translateY(-2px);
}

.lien-actions .btn-outline {
    background: white;
    color: #666;
    border: 1px solid #dee2e6;
}

.lien-actions .btn-outline:hover {
    background: #f8f9fa;
}

/* Sidebar */
.liens-detail-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #009FDA;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title i {
    color: #009FDA;
}

/* Liens reliés */
.related-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-item h4 {
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.related-item h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.related-item h4 a:hover {
    color: #009FDA;
}

.related-item p {
    font-size: 13px;
    color: #999;
    margin: 0;
    line-height: 1.5;
}

.no-related {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

/* Liens populaires */
.popular-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.popular-rank {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #009FDA 0%, #00587C 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.popular-content {
    flex: 1;
}

.popular-content h4 {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.popular-content h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.popular-content h4 a:hover {
    color: #009FDA;
}

.popular-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #999;
}

/* Responsive */
@media (max-width: 991px) {
    .liens-detail-layout {
        grid-template-columns: 1fr;
    }

    .liens-detail-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .lien-title {
        font-size: 24px;
    }

    .liens-detail-main {
        padding: 20px;
    }

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

    .lien-actions {
        flex-direction: column;
    }

    .lien-actions .btn {
        width: 100%;
        justify-content: center;
    }
}