/* Reset et polices de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: #333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background-color: #1f2d3d;
    color: #fff;
    padding: 3rem 1rem;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #c0aa83;
}

header .btn {
    background-color: #c0aa83;
    color: #1f2d3d;
    padding: 0.75rem 1.5rem;
    border: none;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.3s ease;
}

header .btn:hover {
    background-color: #a68c63;
}

/* Navigation */
nav {
    background-color: #2e3b4e;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #c0aa83;
}

/* Container & Sections */
.container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    margin-bottom: 3rem;
}

h2 {
    color: #1f2d3d;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    border-bottom: 2px solid #c0aa83;
    padding-bottom: 0.5rem;
}

p {
    font-size: 1rem;
    color: #444;
}

ul {
    width: 100%;
    display: flex;
    gap: 30px;
}

ul li {
    flex: 1;
    display: flex;
    height: 250px;
    justify-content: center;
    align-items: center;
    list-style: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 8px;
    color: #fff;
    font-size: 1.2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: all 0.2s ease;
}

ul li a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #e6e6e6;
    height: 100%;
    width: 100%;
}

ul li.family {
    background-image: url("./img/famille.jpg");
}

ul li.penal {
    background-image: url("./img/penal.webp");
}

ul li.commercial {
    background-image: url("./img/commercial.jpg");
}

ul li:hover {
    transform: translateY(-3px);
}

.articles {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 40px;
}

.article-card {
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30%;
    margin-bottom: 2rem;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.article-card img {
    width: 100%;
    height: auto;
    margin-top: 1rem;
}

.article-card:hover {
    transform: scale(1.02);
    background-color: #f3f1f1;
}

/* Témoignage */
.testimonial {
    background-color: #f1f1f1;
    border-left: 5px solid #c0aa83;
    padding: 1rem;
    font-style: italic;
    margin-top: 1rem;
}

/* Formulaire de contact */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    font-weight: bold;
    color: #1f2d3d;
}

input,
textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

input:focus,
textarea:focus {
    border-color: #c0aa83;
    outline: none;
}

button.btn {
    background-color: #1f2d3d;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

button.btn:hover {
    background-color: #394a5a;
}

/* Footer */
footer {
    background-color: #2e3b4e;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    margin-top: 2rem;
}

footer p {
    color: #c0aa83;
}


@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    ul {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    ul li {
        width: 80%;
        flex: initial;
        height: 250px;
    }

    nav {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

}