/*​
   Theme Name: Laboratoire 3 - SGC2
   Description: Un thème développé pour le cours Systèmes de gestion de contenu 2​
   Author: Rémi Guyon
   Version: 1.0​
   Text Domain: ecoflore
*/

/* ========================================
   STYLES GÉNÉRAUX
======================================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

a {
    color: #198754;
    text-decoration: none;
}

a:hover {
    color: #146c43;
    text-decoration: underline;
}

/* ========================================
   HEADER
======================================== */

.site-header {
    background-color: #198754;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-header a {
    color: white;
    text-decoration: none;
}

.site-header a:hover {
    color: #d4edda;
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.site-description {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    justify-content: end;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    padding: 0.5rem 0;
    display: block;
    font-weight: 500;
}

/* ========================================
   FOOTER
======================================== */

.site-footer {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid #dee2e6;
    text-align: center;
    color: #6c757d;
}

/* ========================================
   STYLES POUR LES PLANTES
======================================== */

/* Card hover effect */
.plantes-grid .card {
    transition: all 0.3s ease;
}

.plantes-grid .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Single plante - sections */
.plante-header {
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.plante-badges .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Cards info avec icônes */
.card-header h5 {
    margin: 0;
}

/* Taxonomies */
.plante-taxonomies .badge {
    font-weight: normal;
}

/* Description */
.plante-description {
    line-height: 1.8;
}

.description-content p {
    margin-bottom: 1rem;
}

/* Template plantes faciles */
.plantes-faciles-page .page-header {
    padding: 2rem 0;
}

.plantes-faciles-page .display-4 {
    font-weight: 700;
    color: #198754;
}

.cta-section {
    padding: 3rem 0;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-top: 3rem;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
    .plante-image-wrapper {
        margin-bottom: 2rem;
    }
    
    .row.mb-3 .col-md-4,
    .row.mb-3 .col-md-8 {
        margin-bottom: 0.5rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .plantes-grid .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
}