/* Reset léger */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Georgia", serif;
    background-color: #f7f3ef;
    color: #3b2f2f;
    line-height: 1.6;
    padding: 1rem;
    max-width: 1000px;
    margin: auto;
}

footer {
    border-top: 1px solid #ddd;
    margin:auto;
    text-align:center;
    clear:both;
}
/* Header */
header h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
}

.subtitle {
    color: #444;
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

/* Barre de recherche */
.search-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.search-bar input {
    padding: 0.6rem 1rem;
    width: 100%;
    max-width: 400px;
    border: 1px solid #ccc;
    border-radius: 999px 0 0 999px;
    outline: none;
    font-size: 1rem;
}

.search-bar button {
    border: 1px solid #c2b7a3;
    border-left: none;
    background-color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 0 999px 999px 0;
    cursor: pointer;
    font-size: 1rem;
    flex-shrink: 0;
}

.search-bar button:hover {
    background-color: #f5f5f5;
}

/* Navigation - Menu hamburger pour mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: #111;
    font-weight: 500;
    padding: 0.5rem 1rem;
    display: block;
}

nav a:hover {
    text-decoration: underline;
}

/* Section principale */
.recent {
    padding: 0 1rem;
}

.recent h2 {
    font-size: clamp(1.3rem, 4vw, 1.6rem);
    margin-bottom: 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: clamp(1.1rem, 3vw, 1.2rem);
    margin-bottom: 0.5rem;
}

.card p {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* Footer */
footer {
    margin-top: 3rem;
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    color: #666;
    padding: 0 1rem;
}

/* Media queries pour mobile */
@media (max-width: 768px) {
    body {
        padding: 1rem 0.5rem;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        position: relative;
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 0;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        padding: 0.5rem 0;
        margin: 0 1rem 2rem;
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        border-bottom: 1px solid #eee;
    }

    nav li:last-child {
        border-bottom: none;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card {
        padding: 1.25rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    body {
        padding: 2rem;
    }

    .cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.img-logo {
    height:1em;
}
