/* ===== INDEX PAGE STYLES ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HERO SECTION ===== */
.hero {
    background-image: url('/img/Fond.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 30px 40px;
    position: relative;
    overflow: hidden;
}

/* Pattes décoratives - ancrées côté gauche de la hero-box */
.paw-deco {
    position: absolute;
    pointer-events: none;
    opacity: 1;
}

.paw-deco-2 {
    width: 50px;
    bottom: 10px;
    left: 40px;
    transform: rotate(20deg);
}

.paw-deco-3 {
    width: 80px;
    top: 50%;
    left: 0px;
    transform: rotate(-30deg) translateY(-50%);
}

.hero-header,
.hero-content {
    position: relative;
    z-index: 1;
}

/* Header avec les 2 blocs */
.hero-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 30px;
}

.hero-box {
    background-color: rgba(255, 255, 255, 0);
    padding: 35px 50px;
    border-radius: 15px;
    text-align: center;
    flex: 1;
    max-width: 45%;
    position: relative;
}

.hero-box h2,
.hero-box .highlight {
    color: #608E44;
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.hero-box .price-line {
    font-size: 1.8rem;
    color: #555;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 3px;
}

/* .hero-box .highlight { 
    color: #e74c3c;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.hero-box .small-heading {
    color: #333;
    font-size: 3rem;
    font-weight: 700;
    margin-top: 5px;
}*/

.hero-box .hours {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 10px 0;
}

.hero-box .subtitle {
    font-size: 2.4rem;
    color: #608E44;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Zone centrale : icones puis bouton en dessous */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 20px 0;
    gap: 40px;
}

.hero-cta {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-start;
    padding-left: 15%;
}

/* Icones en grille 2x2 - alignées avec le bloc DISTRIBUTEUR */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 30px;
    width: 45%;
    max-width: 45%;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 5px;
}

.feature-icon {
    width: 90px;
    height: 90px;
    object-fit: contain;
    flex-shrink: 0;
}

.feature span {
    font-size: 1.75rem;
    color: #608E44;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    text-align: left;
}

/* Bouton CTA */
.cta-button {
    background-color: #608E44;
    color: white;
    padding: 18px 45px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: #4a7235;
    transform: scale(1.05);
}

/* ===== SECTION CROQUETTES ===== */
.section-croquettes {
    background-color: #fff;
    padding: 50px 20px;
    text-align: center;
}

.section-croquettes h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.products {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Section par Vraco */
.vraco-section {
    width: 100%;
}

.vraco-title {
    color: #608E44;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.vraco-title:hover {
    color: #4a7235;
    transform: scale(1.02);
}

.vraco-title i {
    color: inherit;
}

.vraco-products {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.product-card {
    background-color: #f9f9f9;
    border-radius: 15px;
    padding: 25px 20px;
    width: 260px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.products-loader {
    text-align: center;
    padding: 40px;
    color: #608E44;
    font-size: 1.1rem;
}

.products-loader i {
    margin-right: 10px;
}

.product-card img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
}

.product-card .product-name {
    background-color: #608E44;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
}

.product-card .product-price {
    color: #333;
    font-size: 0.95rem;
}

.product-card .product-price strong {
    color: #608E44;
    font-weight: 700;
}

/* ===== SECTION CARTE ===== */
.section-carte {
    background-color: #f5f5f5;
    padding: 50px 20px;
    text-align: center;
    margin-bottom: 0;
}

.section-carte h2 {
    color: #333;
    font-size: 1.6rem;
    margin-bottom: 30px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-carte h2 i {
    color: #608E44;
    font-size: 1.4rem;
}

/* Carte Leaflet */
#map {
    background-color: #fff;
    border-radius: 15px;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-height: 500px;
    height: 550px;
}

.map-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #608E44;
    font-size: 1.1rem;
}

/* ===== SECTION DEJA CLIENT ===== */
.section-client {
    background-color: #2d5016;
    padding: 50px 20px;
    text-align: center;
    margin-bottom: 0;
}

.section-client h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.client-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.client-btn {
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    min-width: 280px;
}

.client-btn.primary {
    background-color: white;
    color: #2d5016;
    border: 2px solid white;
}

.client-btn.primary:hover {
    background-color: transparent;
    color: white;
}

.client-btn.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.client-btn.secondary:hover {
    background-color: white;
    color: #2d5016;
}

/* ===== FOOTER ===== */
footer {
    background-color: #2d5016;
    padding: 35px 20px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
}

.footer-logo {
    max-width: 30%;
    margin-bottom: 15px;
}

.footer-contact {
    color: #fff;
    font-size: 0.9rem;
}

.footer-contact a {
    color: #a8d68c;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-contact p {
    margin: 5px 0;
}

.footer-legal {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-legal a {
    color: #a8d68c;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-legal a:hover {
    text-decoration: underline;
}

.footer-copyright {
    color: #a8d68c;
    font-size: 0.8rem;
    margin-top: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
    .hero {
        padding: 15px;
    }

    .hero-header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero-box {
        max-width: 90%;
        width: 90%;
        padding: 20px 25px;
    }

    .hero-box h2 {
        font-size: 1.7rem;
    }

    .hero-box .price-line {
        font-size: 1rem;
    }

    .hero-box .highlight {
        font-size: 1.7rem;
    }

    .hero-box .small-text {
        font-size: 1.7rem;
    }

    .hero-box .hours {
        font-size: 1rem;
    }

    .hero-box .subtitle {
        font-size: 1.3rem;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px 5%;
        gap: 25px;
    }

    .hero-cta {
        order: 2;
        padding-left: 0;
        justify-content: center;
    }

    .features {
        justify-items: center;
        grid-template-columns: repeat(1, 1fr);
        order: 1;
        gap: 10px;
        width: 100%;
        max-width: 100%;
    }

    .feature {
        gap: 8px;
        padding: 8px 5px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
    }

    .feature span {
        font-size: 1.2rem;
        color: #333;
    }

    .cta-button {
        padding: 14px 30px;
        font-size: 1.1rem;
    }

    .vraco-products {
        flex-direction: column;
        align-items: center;
    }

    .vraco-title {
        font-size: 1.1rem;
    }

    .product-card {
        width: 85%;
        max-width: 300px;
    }

    .section-croquettes h2,
    .section-client h2 {
        font-size: 1.5rem;
    }

    #map {
        height: 400px;
        min-height: 400px;
    }

    .footer-logo {
        max-width: 75%;
    }

    .paw-deco {
        display: none;
    }
}

/* ===== RESPONSIVE TABLETTE / PETIT DESKTOP ===== */
@media (max-width: 1400px) {
    .hero-box h2,
    .hero-box .highlight {
        font-size: 2.2rem;
    }

    .hero-box .price-line {
        font-size: 1.3rem;
    }

    .hero-box .hours {
        font-size: 1.4rem;
    }

    .hero-box .subtitle {
        font-size: 1.8rem;
    }

    .feature-icon {
        width: 65px;
        height: 65px;
    }

    .feature span {
        font-size: 1.2rem;
    }
}

/* Petit écran en hauteur ET pas large (mobile paysage / petit téléphone) */
@media (max-height: 700px) and (max-width: 1000px) {
    .hero-box:first-child {
        display: none;
    }
}

/* Très petit écran : toujours cacher Achetez Malin */
@media (max-width: 450px) {
    .hero-box:first-child {
        display: none;
    }
}