/* ===========================================
   Guide CSS - Dog Sitting
   Styles pour les pages guides/piliers
   =========================================== */

/* Container principal du guide */
.guide-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
    line-height: 1.7;
    color: #333;
}

/* Hero / Bandeau d'en-tete */
.guide-hero {
    background: linear-gradient(135deg, #8BB894 0%, #6a9e75 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.guide-hero h1 {
    color: white;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    line-height: 1.2;
}

.guide-hero .guide-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.guide-hero .guide-meta {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Fil d'Ariane */
.guide-breadcrumb {
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.guide-breadcrumb a {
    color: #8BB894;
    text-decoration: none;
}

.guide-breadcrumb a:hover {
    text-decoration: underline;
}

.guide-breadcrumb span {
    margin: 0 8px;
    color: #999;
}

/* Table des matieres */
.guide-toc {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 4px solid #8BB894;
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 40px;
}

.guide-toc h2 {
    color: #8BB894;
    font-size: 1.3rem;
    margin-bottom: 15px;
    margin-top: 0;
}

.guide-toc ol {
    list-style: decimal;
    padding-left: 20px;
    margin: 0;
}

.guide-toc ol li {
    padding: 6px 0;
    font-size: 1rem;
    list-style: decimal;
}

.guide-toc ol li a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.guide-toc ol li a:hover {
    color: #8BB894;
    text-decoration: underline;
}

/* Sections du guide */
.guide-section {
    margin-bottom: 45px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.guide-section:last-of-type {
    border-bottom: none;
}

.guide-section h2 {
    color: #D49E7F;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #D49E7F;
}

.guide-section h3 {
    color: #8BB894;
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 12px;
}

.guide-section p {
    margin-bottom: 16px;
    font-size: 1rem;
}

.guide-section ul, .guide-section ol {
    margin-bottom: 16px;
    padding-left: 25px;
}

.guide-section ul li {
    list-style-image: url('/design/garder/puce-8BB894-ronde.gif');
    padding: 5px 0;
    padding-left: 5px;
}

.guide-section ol li {
    list-style: decimal;
    padding: 5px 0;
}

/* Images dans le guide */
.guide-image {
    margin: 25px 0;
    text-align: center;
}

.guide-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.guide-image figcaption {
    font-size: 0.85rem;
    color: #888;
    margin-top: 8px;
    font-style: italic;
    text-align: center;
}

/* Encadre conseil */
.guide-tip {
    background: #f0f8f2;
    border-left: 4px solid #8BB894;
    border-radius: 6px;
    padding: 18px 22px;
    margin: 20px 0;
}

.guide-tip strong {
    color: #8BB894;
    display: block;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.guide-tip p {
    margin: 0;
}

/* Encadre avertissement */
.guide-warning {
    background: #fff8f0;
    border-left: 4px solid #D49E7F;
    border-radius: 6px;
    padding: 18px 22px;
    margin: 20px 0;
}

.guide-warning strong {
    color: #D49E7F;
    display: block;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.guide-warning p {
    margin: 0;
}

/* Tableau comparatif */
.guide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.guide-table thead th {
    background: #8BB894;
    color: white;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
}

.guide-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.guide-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.guide-table tbody tr:hover {
    background-color: #f0f8f2;
}

.guide-table .avantage {
    color: #4a9e5c;
}

.guide-table .inconvenient {
    color: #c0392b;
}

/* Checklist */
.guide-checklist {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px 30px;
    margin: 20px 0;
}

.guide-checklist h3 {
    margin-top: 0;
}

.guide-checklist ul {
    list-style: none;
    padding-left: 0;
}

.guide-checklist ul li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
    list-style-image: none;
}

.guide-checklist ul li::before {
    content: "\2610";
    position: absolute;
    left: 0;
    color: #8BB894;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Bloc CTA */
.guide-cta {
    background: linear-gradient(135deg, #D49E7F 0%, #c08a6b 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 35px 0;
}

.guide-cta h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 12px;
    margin-top: 0;
}

.guide-cta p {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.95;
}

.guide-cta a {
    display: inline-block;
    background: white;
    color: #D49E7F;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin: 5px 10px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.guide-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
    text-decoration: none;
}

.guide-cta a.cta-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.guide-cta a.cta-secondary:hover {
    background: rgba(255,255,255,0.15);
}

/* Bloc contrat/document */
.guide-contract {
    border: 2px solid #D49E7F;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    background: #fffcfa;
}

.guide-contract h4 {
    color: #D49E7F;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.guide-contract ol {
    padding-left: 20px;
}

.guide-contract ol li {
    padding: 4px 0;
    list-style: decimal;
}

/* Liens vers d'autres guides */
.guide-related {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-top: 40px;
}

.guide-related h3 {
    color: #333;
    margin-top: 0;
}

.guide-related ul {
    list-style: none;
    padding: 0;
}

.guide-related ul li {
    list-style-image: none;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.guide-related ul li:last-child {
    border-bottom: none;
}

.guide-related ul li a {
    color: #8BB894;
    font-weight: 500;
    text-decoration: none;
    font-size: 1.05rem;
}

.guide-related ul li a:hover {
    text-decoration: underline;
}

.guide-related ul li span {
    display: block;
    font-size: 0.9rem;
    color: #888;
    margin-top: 3px;
}

/* Schema/structured data - visually hidden */
.guide-schema {
    display: none;
}

/* ============================================
   Cartes guides - page index
   ============================================ */

/* Grille de cartes */
.guide-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 10px;
}

/* Carte individuelle */
.guide-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Image de la carte */
.guide-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.guide-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.guide-card:hover .guide-card-image img {
    transform: scale(1.05);
}

/* Badge numero du guide */
.guide-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tag categorie */
.guide-card-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guide-card-tag.tag-proprietaire {
    background: #D49E7F;
    color: white;
}

.guide-card-tag.tag-petsitter {
    background: #8BB894;
    color: white;
}

.guide-card-tag.tag-tous {
    background: #5b8cc9;
    color: white;
}

/* Contenu texte de la carte */
.guide-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.guide-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.35;
}

.guide-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.guide-card-title a:hover {
    color: #8BB894;
}

.guide-card-desc {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.5;
    margin: 0 0 16px 0;
    flex: 1;
}

.guide-card-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    margin-top: auto;
}

.guide-card-link.link-proprietaire {
    color: #D49E7F;
}

.guide-card-link.link-petsitter {
    color: #8BB894;
}

.guide-card-link.link-tous {
    color: #5b8cc9;
}

.guide-card-link:hover {
    text-decoration: none;
    filter: brightness(0.85);
}

.guide-card-link::after {
    content: "\2192";
    margin-left: 6px;
    transition: margin-left 0.2s;
}

.guide-card:hover .guide-card-link::after {
    margin-left: 10px;
}

/* Titres des sections de cartes */
.guide-section-title {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 700;
    margin-bottom: 5px;
    margin-top: 10px;
    padding-bottom: 8px;
}

.guide-section-title.title-proprietaire {
    color: #D49E7F;
    border-bottom: 2px solid #D49E7F;
}

.guide-section-title.title-petsitter {
    color: #8BB894;
    border-bottom: 2px solid #8BB894;
}

.guide-section-title.title-tous {
    color: #5b8cc9;
    border-bottom: 2px solid #5b8cc9;
}

/* Responsive */
@media (max-width: 768px) {
    .guide-container {
        padding: 0 12px;
    }

    .guide-hero {
        padding: 25px 18px;
    }

    .guide-toc {
        padding: 18px 20px;
    }

    .guide-table {
        font-size: 0.85rem;
    }

    .guide-table thead th,
    .guide-table tbody td {
        padding: 10px 8px;
    }

    .guide-checklist {
        padding: 18px 15px;
    }

    .guide-cta {
        padding: 20px 15px;
    }

    .guide-cta a {
        display: block;
        margin: 8px 0;
    }

    .guide-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .guide-card-image {
        height: 150px;
    }

    .guide-card-content {
        padding: 15px;
    }

    /* Guide 6 horizontal card becomes vertical on tablet */
    .guide-card[style*="flex-direction: row"] {
        flex-direction: column !important;
    }

    .guide-card[style*="flex-direction: row"] .guide-card-image {
        width: 100% !important;
        min-width: 100% !important;
        height: 180px !important;
        min-height: auto !important;
    }
}

@media (max-width: 480px) {
    .guide-table {
        font-size: 0.8rem;
    }

    .guide-hero h1 {
        font-size: 22px;
    }

    .guide-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .guide-card-image {
        height: 180px;
    }

    .guide-card-content {
        padding: 18px;
    }
}
