
* {

    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a1a;
    background-color: #ffffff;
    line-height: 1.6;
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 80px;
    background: #002e5d; 
    border-bottom: 3px solid #ff6600; 
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-shrink: 0; 
}

nav h1 {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ff6600;
}


main, .container-avions, .container-recherche, .hero {
    flex: 1 0 auto; 
}


.hero {
    padding: 100px 10%;
    background: linear-gradient(135deg, #f4f7f9 0%, #ffffff 100%);
    border-left: 10px solid #ff6600;
    margin: 40px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h2 {
    font-size: 3rem;
    color: #002e5d;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.btn {
    align-self: flex-start;
    padding: 15px 40px;
    background-color: #ff6600;
    color: #ffffff !important;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.btn:hover {
    background-color: #e65c00;
    transform: scale(1.05);
}


.container-recherche {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 5%;
}

.container-recherche form {
    background: #f8f9fa;
    padding: 40px;
    border-right: 5px solid #ff6600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 500px; 
}

.container-recherche label {
    display: block;
    font-weight: 700;
    color: #002e5d;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

input[type="text"], 
input[type="number"] {
    width: 100%; 
    padding: 12px;
    margin-bottom: 25px;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    background: #ffffff;
}

input[type="submit"] {
    background: #002e5d;
    color: white;
    border: none;
    padding: 15px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

input[type="submit"]:hover {
    background: #ff6600;
}


.container-avions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding: 40px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.avion-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-top: 4px solid #002e5d;
    transition: all 0.3s ease;
}

.avion-card:hover{
    border-top: 4px solid #ff6600;


    }


.avion-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.avion-card .info {
    padding: 20px;
}

footer {
    flex-shrink: 0; 
    background-color: #002e5d;
    color: #ffffff;
    padding: 30px;
    text-align: center;
    border-top: 5px solid #ff6600;
}

footer p {
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 2px;
}


@media (max-width: 768px) {
    nav { height: auto; padding: 15px; flex-direction: column; }
    nav ul { margin-top: 15px; padding-bottom: 10px; }
    .hero h2 { font-size: 2rem; }
    .container-avions { grid-template-columns: 1fr; }
}


input[type="text"]:focus, 
input[type="number"]:focus {
    border-color: #ff6600; 
    outline: none;
    box-shadow: 0 0 8px rgba(255, 102, 0, 0.3);
    transition: all 0.3s ease;
}