/* Reset simple */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Variables de couleurs */
:root {
    --bg-body: #f4f6f8;
    --text-main: #1f2937;
    --color-primary: #006bb3;
    --color-primary-soft: #e6f1fa;
    --color-light: #ffffff;
    --color-card-bg: #ffffff;
    --color-border: #e5e7eb;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;

    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Base */
body {
    font-family: Arial, sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

a {
  text-decoration: none;
  color: #000000;
}
/* HEADER */
.site-header {
    background: linear-gradient(135deg, #006bb3, #00548f);
    padding: 1.2rem 0;
    color: var(--color-light);
    box-shadow: var(--shadow-md);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header .logo {
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 0.3px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-light);
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* HERO */
.hero {

    background: var(--color-light);
    padding: 3.5rem 1rem;
    text-align: center;
    margin: 2rem auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 1100px;
}

.hero h2 {
    margin-bottom: 1.2rem;
    font-size: 2rem;
}

/* Recherche */
.search-form {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.search-form input {
    width: 55%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    outline: none;
    font-size: 1rem;
}

.search-form input:focus {
    border-color: var(--color-primary);
}

.search-form button {
    padding: 0.75rem 1.4rem;
    border: none;
    background: var(--color-primary);
    color: var(--color-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s ease, transform 0.1s ease;
}

.search-form button:hover {
    background: #004f80;
    transform: translateY(-1px);
}

/* CONTENU */
.container {
    width: 90%;
    margin: auto;
    padding: 2rem 0;
}

.main-content h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Cartes */
.cards {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.card {
    background: var(--color-card-bg);
    padding: 1.5rem;
    text-align: center;
    flex: 1 1 30%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.25rem;
}

.card p {
    margin-bottom: 1.2rem;
    color: #4b5563;
}

/* Boutons */
.btn {
    padding: 0.6rem 1.3rem;
    background: var(--color-primary);
    color: var(--color-light);
    text-decoration: none;
    border-radius: 999px;
    font-weight: bold;
    display: inline-block;
    transition: background 0.2s ease, transform 0.1s ease;
    border: none;
}

.btn:hover {
    background: #004f80;
    transform: translateY(-1px);
}

/* FOOTER */
.site-footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: #6b7280;
}

/* AUTOCOMPLÉTION */
.autocomplete {
    position: relative;
    max-width: 420px;
    margin: auto;
}

.autocomplete input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.8rem;
}
.autocomplete textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.8rem;
    height: 130px;
}

.suggestions {
    list-style: none;
    margin-top: 0.3rem;
    padding: 0.3rem 0;
    position: absolute;
    left: 0;
    right: 0;
    background: var(--color-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    max-height: 220px;
    overflow-y: auto;
    z-index: 10;
}

.suggestions li {
    padding: 0.6rem 1rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.suggestions li:hover {
    background-color: var(--color-primary-soft);
}

/* Responsive */
@media (max-width: 768px) {
    .autocomplete-form {
        flex-direction: column;
    }

    .autocomplete-form button {
        width: 100%;
        border-radius: var(--radius-md);
    }

    .autocomplete-form button {
        margin-top: 0.6rem;
    }

    .cards {
        flex-direction: column;
    }
}
