/********************************************
 * CaniGuide – Homepage Styles
 * Version 2025 - Cohérent avec le thème du site
 * ⚠️ Styles Swiper/carousel → carousel-races.css
 ********************************************/

/* SLOGAN – Essence de CaniGuide */
.cg-hero-slogan {
    font-size: 1.85rem;
    font-weight: 700;
    color: #EA7D1F;
    margin-bottom: 18px;
    letter-spacing: 0.6px;
}

/* =============================
   SECTIONS GLOBALES
============================= */

.cg-section,
.cg-section-light {
    padding: 40px 20px;
}

.cg-section-light {
    background: #f9f9f9;
}

.cg-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #452D16;
    margin-bottom: 14px;
    text-align: center;
}

.cg-section-subtext {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px auto;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
}

/***************************************
 * 1. HERO SECTION
 ***************************************/

.cg-hero {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 70px 20px 80px;
    text-align: center;
}

.cg-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #452D16;
    margin-bottom: 16px;
    line-height: 1.3;
}

.cg-hero-subtitle {
    font-size: 1.15rem;
    color: #555;
    max-width: 680px;
    margin: 0 auto 26px auto;
    line-height: 1.6;
}

.cg-hero-button {
    display: inline-block;
    padding: 14px 32px;
    background: #452D16;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(69, 45, 22, 0.2);
}

.cg-hero-button:hover {
    background: #2e1e12;
    text-decoration: none;
    color: #fff;
}

/***************************************
 * 2. BOUTON "VOIR TOUTES LES RACES"
 ***************************************/

.cg-more-races-wrapper {
    text-align: center;
}

.cg-more-races-btn {
    display: inline-block;
    padding: 12px 26px;
    background: #fff;
    border: 2px solid #452D16;
    border-radius: 8px;
    color: #452D16;
    font-weight: 600;
    transition: all 0.25s ease;
}

.cg-more-races-btn:hover {
    background: #452D16;
    color: #fff;
    text-decoration: none;
}

/***************************************
 * 3. OUTILS DISPONIBLES
 ***************************************/

.cg-section-tools {
    background: #fff;
}

.cg-tools-grid {
    display: grid;
    gap: 32px;
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    .cg-tools-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1000px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .cg-tools-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
}

@media (max-width: 767px) {
    .cg-tools-grid {
        grid-template-columns: 1fr;
    }
}

.cg-tool-card {
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cg-tool-card-clickable {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.cg-tool-card-clickable:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #EA7D1F;
    text-decoration: none;
}

.cg-tool-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.cg-tool-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #452D16;
    margin-bottom: 12px;
}

.cg-tool-card p {
    font-size: 0.98rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cg-tool-cta {
    display: inline-block;
    padding: 10px 24px;
    background: #EA7D1F;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.cg-tool-card-clickable:hover .cg-tool-cta {
    background: #452D16;
}

/***************************************
 * 4. POURQUOI CANIGUIDE ?
 ***************************************/

.cg-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.cg-why-item {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}

.cg-why-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.cg-why-icon {
    font-size: 2.5rem;
    color: #EA7D1F;
    margin-bottom: 12px;
    font-weight: 700;
}

.cg-why-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #452D16;
    margin-bottom: 10px;
}

.cg-why-item p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/***************************************
 * 5. SECTION À VENIR
 ***************************************/

.cg-section-coming {
    background: #fafafa;
    border-top: 1px solid #e5e5e5;
}

.cg-coming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 40px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.cg-coming-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #EA7D1F;
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
    opacity: 0.9;
}

.cg-coming-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.7;
}

.cg-coming-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #452D16;
    margin-bottom: 10px;
}

.cg-coming-card p {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.5;
}

/***************************************
 * 6. RESPONSIVE
 ***************************************/

@media (max-width: 768px) {

    .cg-hero {
        padding: 50px 20px 60px;
    }

    .cg-hero-title {
        font-size: 1.85rem;
    }

    .cg-hero-button {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .cg-section,
    .cg-section-light {
        padding: 45px 16px;
    }

    .cg-section-title {
        font-size: 1.7rem;
    }

    .cg-section-subtext {
        font-size: 0.98rem;
    }

    .cg-why-grid,
    .cg-coming-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cg-hero-slogan {
        font-size: 1.45rem;
        margin-bottom: 14px;
    }
}

@media (max-width: 480px) {
    .cg-hero-title {
        font-size: 1.6rem;
    }

    .cg-section-title {
        font-size: 1.5rem;
    }
}

.cg-carousel-description {
    max-width: 800px;
    margin: 15px auto 30px;
    text-align: center;
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}