* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.2;
    font-size: clamp(0.9rem, 1.2vw, 1.25rem);    
}
.container {
    max-width: 1000px; /* Largeur optimale pour une lecture verticale confortable */
    margin: 20px auto;
    padding: 0 15px;
}
h1 {
    text-align: center;
    margin-bottom: 25px;
    color: #4a154b; /* Couleur mystique/voyance */
}

/* Structure de la liste */
.ads-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Espace entre les 50 annonces */
}

/* La carte d'annonce */
.ad-card {
    background: #ffffff;
    border-left: 5px solid #8a2be2; /* Accentuation violette */
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top:20px;
}
.ad-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}



/* Corps de l'annonce : Sécurité stricte à 5 lignes maximum */
.ad-body p {
    font-size: 0.95rem;
    color: #555;
    
    /* Force l'affichage sur 5 lignes maximum avec points de suspension si ça dépasse */
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;  
    overflow: hidden;
    text-overflow: ellipsis;
}
    