/* style.css */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #ecf0f1;
    --card-bg-color: #ffffff;
    --text-color: #34495e;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
}

header h1 { margin: 0; }
header p { opacity: 0.9; }

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

footer {
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Grille des profils (index.html) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.profile-card {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: var(--text-color);
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.profile-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--background-color);
}

.profile-card h3 { margin: 1rem 0 0.25rem 0; }
.profile-card p { margin: 0; font-size: 0.9rem; color: #7f8c8d; }

/* Page de profil (profil.html) */
.profile-container {
    background-color: var(--card-bg-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: white;
    text-decoration: none;
    opacity: 0.8;
}
.back-link:hover { opacity: 1; }


#profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

#profile-header img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

#profile-header h1 { margin: 1rem 0 0.5rem 0; font-size: 2.5rem; }
#profile-header p { margin: 0; font-size: 1.1rem; color: #7f8c8d; }

#profile-bio {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}

#stack-title { text-align: center; }

#stack-list .tool-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    border-bottom: 1px solid var(--background-color);
}
#stack-list .tool-item:last-child { border-bottom: none; }

.tool-item img {
    width: 50px;
    height: 50px;
}

.tool-item-info h4 { margin: 0 0 0.5rem 0; }
.tool-item-info a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}
.tool-item-info a:hover { text-decoration: underline; }

.tool-item-info p { margin: 0; font-style: italic; color: #7f8c8d; }

/* style.css (à ajouter à la fin) */

.filters-container {
    background-color: var(--card-bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    font-weight: bold;
    display: block;
    margin-bottom: 0.75rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    background-color: var(--background-color);
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.filter-btn:hover {
    background-color: #dce4e7;
}

.filter-btn.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.tool-description-section {
    padding: 1.5rem;
    background-color: var(--background-color);
    border-radius: 8px;
    margin-bottom: 2rem;
}
.tool-description-section h3 {
    margin-top: 0;
}
.tool-features-list {
    padding-left: 20px;
}
.tool-pricing {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-left: 1rem;
}
.user-usage-quote {
    font-style: italic;
    color: #7f8c8d;
    margin-top: 0.5rem;
    display: block;
    padding-left: 1rem;
    border-left: 3px solid #ecf0f1;
}

.filter-separator {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 1rem 0;
}

.cta-link {
    display: block;
    text-align: center;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.cta-link:hover {
    background-color: #eaf5fc;
}

/* Nouveau style plus discret pour le modèle de prix */
.pricing-tag {
    background-color: #ecf0f1; /* Fond gris clair */
    color: #34495e; /* Texte sombre */
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #bdc3c7;
}
