body {
    background-color: #eee9e9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    padding-left: 50px;
    padding-right: 50px;
    padding-bottom: 50px;
    max-width: 100%;
}
@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

nav {
    font-size: 40px;
    margin-top: 20px;
}
nav ul {
    display: flex;
    width: 800px;
    justify-content: space-around;
    align-items: flex-end;
    margin: 0 auto;
    padding: 10px;
    list-style-type: none;
    flex-direction: row;
    padding: 0;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

nav a {
    color: #eee9e9;
    text-decoration: none;
    text-transform: uppercase;
    display: inline-block;
    transition: transform 1s ease;
}
nav a:hover {
    text-transform: uppercase;
    transform: translateY(-5px);
    color: #e7d469;
}
nav a.active {
    border-bottom: 3px solid;
    transform: translateY(-5px);
}

p {
    text-align: center;
    padding-top: 10px;
}

h1, h2, h3 {
    text-align: center;
}

header {
    background-color: #2b3a80;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #eee9e9;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    height: 125px;
    margin-top: 20px;
}

main {
    max-width: 1080px;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

#histoire {
    background-color: rgb(231, 212, 105, 0.3);
    border-radius: 7px;
    margin: 35px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    font-size: 20px;
}

#histoire p {
    margin-bottom: 20px;
    text-align: justify; 
}

.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    padding: 15px;
    background-color: rgba(231, 212, 105, 0.2);
    border-radius: 7px;
    margin: 40px auto;
    padding: 20px;
    gap: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 1100px;
    width: 100%;
}
.container h3 {
    color: #2b3a80;
    margin-top: 0;
    text-transform: uppercase;
    display: inline-block;
    padding-bottom: 5px;
}

.ship-card {
    background-color: #eee9e9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #2b3a80;
}

.ship-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.ship-card .photo img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.ship-card .content {
    padding: 15px;
}

.ship-card .content p {
    margin: 0;
    color: #2b3a80;
    padding-bottom: 8px;
    text-transform: uppercase;
}

.ship-card .stats {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.ship-card .stats li {
    font-size: 14px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px dashed #eee;
    color: #333;
    text-align: left;
}

.ship-card .stats li strong {
    color: #2b3a80;
}

.form-responsive {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}
.form-responsive label {
    font-weight: bold;
    color: black;
}
.form-responsive input[type="text"] {
    padding: 12px;
    border: 2px solid #2b3a80;
    border-radius: 5px;
    font-size: 16px;
    flex-grow: 1;
}
.form-responsive button {
    background-color: #2b3a80;
    color: #eee9e9;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.form-responsive button:hover {
    background-color: #E9D572;
    color: #2b3a80;
    transform: scale(1);
}

.grid-albums {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

footer {
    background-color: #2b3a80;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #eee9e9;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    height: 125px;
}

form {
    background-color: white;
    max-width: 450px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #2b3a80;
    display: flex;
    flex-direction: column;
}

form label {
    display: block;
    margin-bottom: 8px;
    color: #2b3a80;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
}

form input[type="text"],
form input[type="number"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid rgba(43, 58, 128, 0.2);
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

form input:focus {
    outline: none;
    border-color: #2b3a80;
}

form input[type="submit"] {
    background-color: #2b3a80;
    color: #eee9e9;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

form input[type="submit"]:hover {
    background-color: #E9D572;
    color: #2b3a80;
    transform: translateY(-2px);
}

.resultat {
    max-width: 450px;
    margin: 20px auto;
    background-color: #E9D572;
    padding: 15px;
    border-radius: 8px;
    color: #2b3a80;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.resultat {
    background-color: #e7d469;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.resultat p {
    margin: 5px 0;
    padding: 0;
}


.container {
  flex-direction: column;
}

@media (max-width: 576px) {
    body {
        padding-left: 15px;
        padding-right: 15px;
    }

    header, footer {
        height: auto;
        padding: 20px 10px;
    }

    nav {
        font-size: 24px;
    }
    nav ul {
        width: 100%; 
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    #histoire {
        margin: 20px 0;
        font-size: 16px;
    }

    .container {
        grid-template-columns: 1fr; 
        margin: 20px auto;
        gap: 20px;
    }

    form {
        max-width: 100%;
        margin: 20px 0;
        padding: 20px;
    }
}

@media (min-width: 1025px) {
    .container {
        display: grid;
        flex-direction: row;
    }
}