.page-content {
    background:
        linear-gradient(rgba(247, 239, 230, 0.92), rgba(247, 239, 230, 0.92)),
        url("../asset/mur-lisse.jpg") center / cover fixed;
}

/* HERO */

.toiles-hero {
    width: min(1180px, calc(100% - 40px));
    margin: 80px auto 70px;
}

.toiles-label {
    margin: 0 0 16px;
    color: #9f3447;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.toiles-hero h1 {
    margin: 0;
    color: #241d1d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4rem, 6vw, 9rem);
    line-height: 0.86;
    letter-spacing: -0.07em;
}

.toiles-hero p:last-child {
    max-width: 760px;
    margin: 28px 0 0;
    color: #4b3b3b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    line-height: 1.45;
    font-style: italic;
}

/* FILTRES */

.size-select {
    margin-bottom: 15px;
}

.toiles-controls {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 46px;

    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
    align-items: end;

    padding: 30px;
    background: rgba(255, 248, 239, 0.78);
    border-left: 5px solid #2f2626;
}

.filter-group p {
    margin: 0 0 14px;
    color: #9f3447;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-btn,
.size-select {
    border: 1px solid #2f2626;
    background: transparent;
    color: #2f2626;

    padding: 12px 18px;
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
}

.filter-btn {
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2f2626;
    color: white;
    transform: translateY(-2px);
}

.size-select {
    width: 100%;
    min-height: 46px;
    border-radius: 0;
}

/* RESULTATS */

.toiles-results {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 120px;
}

.toiles-count {
    margin: 0 0 22px;
    color: #4b3b3b;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* GALERIE */

.toiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
}

.toile-card {
    background: rgba(255, 248, 239, 0.82);
    box-shadow: 0 18px 38px rgba(47, 38, 38, 0.16);
    overflow: hidden;

    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.toile-image {
    margin: 0;
    background: #2f2626;
    height: 430px;
    overflow: hidden;
}

.toile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    transition: transform 0.45s ease, opacity 0.45s ease;
}

.toile-card:hover .toile-image img {
    transform: scale(1.05);
    opacity: 0.9;
}

.toile-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.toile-category {
    margin: 0 0 12px;
    color: #9f3447;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.toile-content h2 {
    margin: 0 0 18px;
    color: #241d1d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 1vw, 2.6rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.toile-meta {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.toile-meta span {
    display: inline-block;
    color: #4b3b3b;
    font-size: 0.95rem;
    line-height: 1.45;
}

.toile-description {
    margin: 0 0 28px;
    color: #4b3b3b;
    font-size: 1rem;
    line-height: 1.75;
}

.toile-bottom {
    margin-top: auto;
    padding-top: 20px;
}

.toile-link {
    display: inline-block;
    padding: 12px 22px;

    background: #2f2626;
    color: white;

    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;

    transition: background 0.2s ease, transform 0.2s ease;
}

.toile-link:hover {
    background: #9f3447;
    transform: translateY(-2px);
}

.toiles-error {
    color: #9f3447;
    font-weight: 700;
    font-size: 1.1rem;
}

/* TABLETTE */

@media (max-width: 1050px) {
    .toiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .toile-image {
        height: 400px;
    }
}

@media (max-width: 820px) {
    .toiles-controls {
        grid-template-columns: 1fr;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .toiles-hero,
    .toiles-controls,
    .toiles-results {
        width: min(100% - 28px, 1180px);
    }

    .toiles-hero {
        margin: 50px auto 46px;
    }

    .toiles-label {
        font-size: 0.75rem;
        letter-spacing: 0.13em;
    }

    .toiles-hero h1 {
        font-size: clamp(3.2rem, 17vw, 5rem);
        letter-spacing: -0.055em;
    }

    .toiles-hero p:last-child {
        font-size: 1.2rem;
        line-height: 1.5;
    }

    .toiles-controls {
        padding: 24px 20px;
        border-left-width: 4px;
    }

    .filter-buttons {
        gap: 10px;
    }

    .filter-btn,
    .size-select {
        font-size: 0.9rem;
        padding: 11px 15px;
    }

    .toiles-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .toile-image {
        height: 380px;
    }

    .toile-content {
        padding: 24px 22px;
    }

    .toile-content h2 {
        font-size: 2rem;
    }
}

/* TRÈS PETIT ÉCRAN */

@media (max-width: 390px) {
    .toiles-hero h1 {
        font-size: 2.9rem;
    }

    .toile-image {
        height: 310px;
    }

    .toile-content h2 {
        font-size: 1.8rem;
    }
}