/* === HERO MODERNE === */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=MuseoModerno:ital,wght@0,100..900;1,100..900&display=swap');

/* Appliquer MuseoModerno sur tout le site */
html, body {
    font-family: 'MuseoModerno', sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: transparent;
}


/* === BANNIÈRE === */
.banner {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-image: url('../images/banner-cruyff.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}


.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    max-width: 900px;
    margin: 0 20px;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.banner-content p {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.btn-banner {
    padding: 12px 28px;
    background-color: #fff;
    color: #000;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-banner:hover {
    background-color: #e03e00;
    color: #fff;
}
/* === MAIN CONTENT === */
.main-content {
    width: 100%;
    background-color: #fff; /* blanc sous la bannière */
    max-width: 1200px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
    box-sizing: border-box;
}

/* --- CATEGORIES POPULAIRES --- */
.categories h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
}

.category-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.category-list a {
    flex: 1 1 120px; /* largeur minimum, s’adapte */
    max-width: 200px; /* limite max comme Vinted */
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid black;
    color: black;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s;
}

.category-list a:hover {
    background: black;
    color: #fff;
}

/* --- ANNONCES --- */
.ads h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
}

.ad-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.ad-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.ad-info {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
}

.ad-info h3 {
    font-size: 16px;
    margin: 0 0 6px;
    font-weight: bold;
    color: #000;
}

.ad-info p {
    font-size: 13px;
    color: #333;
    flex: 1;
    margin: 0 0 8px;
}

.ad-info .price {
    font-weight: bold;
    margin-bottom: 6px;
}

.ad-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-view {
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    background: transparent;
    color: #000;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-view:hover {
    background: #f0f0f0;
}

.btn-like {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: red;
}

/* --- SEE ALL --- */
.see-all {
    text-align: right;
    margin-top: 12px;
}

.see-all a {
    font-weight: bold;
    color: #000;
    text-decoration: none;
    transition: color 0.3s;
}

.see-all a:hover {
    color: #555;
}

.heart-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 4px;
}
