:root {
    --primary-bg: #f5f7fa;
    --header-bg: #ffffff;
    --banner-bg: #0b3c5d; /* Bleu entreprise pour la bannière */
    --text-main: #333333;
    --text-muted: #707070;
    --hover-color: #f49e00; /* Orange Wyde */
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --footer-bg: #c5d7fb;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header plus compact */
header {
    background-color: var(--header-bg);
    padding: 10px 5%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 50px;
}

.lang-switch {
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.lang-btn.active, .lang-btn:hover {
    background-color: var(--banner-bg);
    color: white;
    border-color: var(--banner-bg);
}

/* Nouvelle Bannière Bleue */
.title-section {
    background-color: var(--banner-bg);
    text-align: center;
    padding: 25px 20px;
    color: #ffffff;
    box-shadow: inset 0 -3px 5px rgba(0,0,0,0.1);
}

.title-section h1 {
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 600;
}

.title-section p {
    color: #e2e8f0;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Barre de recherche */
.search-container {
    max-width: 400px;
    margin: 0 auto;
}

.search-bar {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: box-shadow 0.2s;
}

.search-bar:focus {
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* Contenu principal (Grid) */
main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px; /* Marges réduites pour éviter le scroll */
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Cartes légèrement plus fines */
    gap: 15px; /* Espace réduit entre les cartes */
}

/* Cartes (Services) */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 15px;
    display: flex;
    align-items: center; /* Centrage vertical pour gagner de la place */
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    border-color: var(--hover-color);
}

.card img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin-right: 15px;
}

.card-content h2 {
    font-size: 14px;
    margin-bottom: 2px;
    color: var(--text-main);
    transition: color 0.2s;
}

.card:hover .card-content h2 {
    color: var(--hover-color);
}

.card-content p {
    font-size: 11px;
    color: var(--text-muted);
}

/* Message "Aucun résultat" */
#no-results {
    display: none;
    text-align: center;
    grid-column: 1 / -1;
    padding: 20px;
    color: var(--text-muted);
}

/* Footer plus compact */
footer {
    background-color: var(--header-bg);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    padding: 12px;
}

.footer-top a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.footer-top a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

.footer-bottom {
    background-color: var(--footer-bg);
    padding: 10px 20px;
    color: #444;
    font-size: 11px;
}