/* =======================
   RESET & BASE
======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-image: url("img/lac-clair-avec-le-reflet-d-un-immense-chateau-contre-le-ciel-nuageux-en-automne.jpg");
    background-size: cover;
    background-position: center;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =======================
   HEADER
======================= */
header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 80px;
    background: rgba(0,0,0,0.4); /* overlay un peu plus prononcé */
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

header:hover {
    background: rgba(0,0,0,0.6);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    transition: all 0.3s ease;
}

nav ul li a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -4px;
    background-color: #1a73e8;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: #1a73e8;
}

/* =======================
   TITRE PRINCIPAL
======================= */
h1 {
    text-align: center;
    font-size: 80px;
    margin-top: 80px;
    text-shadow: 0 0 15px rgba(0,0,0,0.7);
    line-height: 1.2;
    animation: fadeIn 1.2s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* =======================
   FORMULAIRE DE RECHERCHE
======================= */
.form {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    flex-wrap: wrap;
    gap: 10px;
    animation: slideUp 1s ease forwards;
    opacity: 0;
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
    from { opacity: 0; transform: translateY(20px); }
}

.form input {
    border-radius: 50px;
    border: none;
    padding: 14px 20px;
    width: 400px;
    font-size: 16px;
    outline: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease, box-shadow 0.3s ease;
}

.form input:focus {
    box-shadow: 0 6px 20px rgba(26,115,232,0.5);
}

.form button {
    padding: 14px 25px;
    border-radius: 50px;
    border: none;
    background-color: #1a73e8;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease, transform 0.2s ease;
}

.form button:hover {
    background-color: white;
    color: #1a73e8;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

/* =======================
   FOOTER
======================= */
.footer-go {
    width: 100%;
    padding: 15px 0;
    background-color: rgba(255,255,255,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 1px 0 #e0e0e0;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #5f6368;
    margin-top: auto;
}

.footer-go a {
    text-decoration: none;
    color: #5f6368;
    transition: color 0.3s ease;
}

.footer-go a:hover {
    color: #1a73e8;
    text-decoration: underline;
}

/* =======================
   RESPONSIVE
======================= */
@media (max-width: 768px) {
    h1 {
        font-size: 60px;
        margin-top: 50px;
    }
    .form input {
        width: 300px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 20px;
    }
    h1 {
        font-size: 45px;
        margin-top: 40px;
    }
    .form {
        flex-direction: column;
        align-items: center;
    }
    .form input {
        width: 250px;
    }
    .form button {
        width: 150px;
    }
}