body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #D2B48C;
    background-image: url("img/couv.png");
    background-position: center top;
    background-size: 120% auto;
    background-repeat: no-repeat;
    color: #2c241b;
}

.page-accueil {
    padding: 20px 20px 40px;
}

.hero-accueil {
    max-width: 1200px;
    min-height: 520px;
    margin: 0 auto 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-logo {
    width: min(520px, 80%);
    height: auto;
    display: block;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 14px 30px;
    background: #b5965a;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    transition: 0.3s ease;
}

.hero-btn:hover {
    background: #a88649;
    transform: translateY(-2px);
}

.contenu {
    padding: 60px 40px;
    background: #fff;
    border-radius: 36px;
    overflow: hidden;
}

.section-block {
    margin-bottom: 40px;
}

.section-block:first-child {
    margin-top: 20px;
}

.section-block:last-child {
    margin-bottom: 0;
}

.section-title {
    position: relative;
    width: fit-content;
    margin: 0 auto 30px;
    font-size: 2.2rem;
    font-weight: bold;
    color: #b5965a;
    text-align: center;
}

.section-title::after {
    content: "";
    display: block;
    width: 110px;
    height: 4px;
    margin: 10px auto 0;
    border-radius: 999px;
    background: #b5965a;
}

.carousel-row,
.articles-row {
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    align-items: center;
    gap: 10px;
}

/* Avis */
.avis-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.avis-card {
    background: #ffffff;
    border: 1px solid #d7ccbc;
    border-radius: 20px;
    padding: 22px 18px;
    text-align: left;
    min-height: 180px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avis-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.avis-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: #1e1a16;
}

.etoiles {
    margin-bottom: 12px;
    color: #b5965a;
    font-size: 1rem;
    letter-spacing: 2px;
}

.avis-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #2d2923;
}

.avis-actions {
    margin-top: 24px;
    text-align: center;
}

.avis-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    background: #b5965a;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    transition: 0.3s ease;
}

.avis-btn:hover {
    background: #a88649;
    transform: translateY(-2px);
}

/* Réalisations */
.carousel {
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
}

.realisation-img {
    width: calc(100% / 3);
    flex: 0 0 calc(100% / 3);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    padding: 5px;
    box-sizing: border-box;
    border-radius: 20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.dot {
    width: 26px;
    height: 6px;
    border-radius: 999px;
    background: #d6d6d6;
}

.dot.active {
    background: #bdbdbd;
}

/* Articles */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.article-card {
    background: #ffffff;
    border: 1px solid #d7ccbc;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-img {
    width: 100%;
    height: 165px;
    object-fit: cover;
    display: block;
}

.article-content {
    padding: 18px 14px;
    background: #ffffff;
}

.article-content p {
    margin: 0;
    font-size: 1.05rem;
    font-weight: bold;
    text-align: center;
    color: #1f1a15;
}

.article-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-link:hover {
    text-decoration: none;
    color: inherit;
}

.article-link:hover .article-card {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

/* Équipe */
.equipe-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
    justify-items: center;
}

.equipe-card {
    width: 100%;
    max-width: 300px;
    background: #ffffff;
    border: 1px solid #d7ccbc;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.equipe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.equipe-img {
    width: 100%;
    height: 320px;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.equipe-content {
    padding: 14px 12px;
    text-align: center;
    background: #ffffff;
}

.equipe-content p {
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
    color: #1f1a15;
}

/* Horaires */
.horaires-section {
    margin-top: 26px;
}

.horaires-box {
    max-width: 760px;
    margin: 0 auto 20px;
    padding: 18px 24px;
    background: #e7dccb;
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: 20px;
    align-items: start;
    color: #40362b;
}

.horaire-col {
    text-align: center;
}

.horaire-col p {
    margin: 4px 0;
    font-size: 1.05rem;
}

/* Responsive tablette */
@media (max-width: 1100px) {
    .avis-list,
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .horaires-box {
        grid-template-columns: 1fr;
    }

    .carousel {
        max-width: 100%;
    }

    .realisation-img {
        width: 50%;
        flex-basis: 50%;
    }
}

/* Responsive mobile */
@media (max-width: 700px) {
    .page-accueil {
        padding: 15px 10px 30px;
    }
    
    body {
        background-position: center 3.5%;
        background-size: 140% auto;
    
    }

    .hero-accueil {
        min-height: 360px;
        margin-bottom: 20px;
    }

    .hero-logo {
        width: min(320px, 85%);
        margin: 0 auto 20px;
    }

    .hero-buttons {
        gap: 14px;
    }

    .hero-btn {
        min-width: 120px;
        padding: 12px 22px;
        border-radius: 10px;
    }

    .contenu {
        padding: 25px 18px;
        border-radius: 24px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .carousel-row,
    .articles-row {
        grid-template-columns: 1fr;
    }

    .nav-btn {
        display: none;
    }

    .avis-list,
    .articles-grid,
    .equipe-grid {
        grid-template-columns: 1fr;
    }

    .realisation-img {
        width: 100%;
        flex-basis: 100%;
    }

    .avis-card,
    .article-card,
    .realisation-img,
    .horaires-box,
    .equipe-card {
        border-radius: 18px;
    }
}