/* Style général */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #4ca1af, #c4e0e5);
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Style du header */
header {
    background: linear-gradient(90deg, #0073e6, #00c6ff);
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slide-in-down 0.8s ease-out;
}

header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

header h1 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-left: 20px;
    flex-grow: 1; /* Permet à ce texte de prendre tout l'espace disponible */
}

.back-link {
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid #fff;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}

.back-link:hover {
    background: #fff;
    color: #0073e6;
    transform: translateY(-2px);
}

/* Positionnement et taille du logo */
header .logo {
    height: 85px; /* Taille du logo sur les grands écrans */
    width: auto;
    margin-left: 20px;
    transition: height 0.3s ease; /* Transition pour une animation fluide */
}

/* Media Query pour petits écrans */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem; /* Réduction de la taille du titre sur les petits écrans */
    }

    header .logo {
        height: 80px; /* Réduction de la taille du logo pour les petits écrans */
    }

    .back-link {
        font-size: 0.9rem; /* Réduction de la taille du lien */
        padding: 6px 10px; /* Réduction du padding */
    }
}

/* Media Query pour très petits écrans (téléphones mobiles) */
@media (max-width: 480px) {
    header {
        padding: 10px 15px; /* Réduction du padding sur les très petits écrans */
    }

    header h1 {
        font-size: 1.3rem; /* Réduction supplémentaire du titre */
    }

    header .logo {
        height: 60px; /* Logo encore plus petit sur les très petits écrans */
    }

    .back-link {
        font-size: 0.8rem; /* Réduction de la taille du lien sur très petits écrans */
    }
}

/* Animation d'entrée pour le header */
@keyframes slide-in-down {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Style principal */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: calc(100vh - 100px); /* Assure que la hauteur du contenu remplit tout l'écran en enlevant la hauteur du header et du footer */
}

/* Style du conteneur principal */
.order-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    padding: 30px;
    width: 90%; /* Ajuste à 90% de la largeur de l'écran */
    max-width: 500px; /* Taille maximale en largeur */
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto; /* Ajuste automatiquement la hauteur */
}

/* Animation d'apparition */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.order-container h2 {
    font-size: 2rem;
    color: #0073e6;
    margin-bottom: 20px;
    position: relative;
}

.order-container h2::after {
    content: '';
    width: 50px;
    height: 3px;
    background: #ffcc00;
    display: block;
    margin: 5px auto;
    border-radius: 2px;
}

/* Image du produit */
.order-container img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
}

.order-container img:hover {
    transform: scale(1.05);
}

/* Détails du produit */
.order-container p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
    text-align: left;
    line-height: 1.6;
}

/* Formulaire */
.order-container form {
    margin-top: 20px;
    text-align: left;
}

.order-container form label {
    display: block;
    font-size: 1rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: bold;
}

.order-container form input[type="text"],
.order-container form input[type="tel"],
.order-container form input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.order-container form input[type="text"]:focus,
.order-container form input[type="tel"]:focus,
.order-container form input[type="number"]:focus {
    border-color: #0073e6;
    box-shadow: 0 0 8px rgba(0, 115, 230, 0.3);
    outline: none;
}

/* Bouton de commande */
.order-container form button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #0073e6, #ffcc00);
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-container form button:hover {
    background: linear-gradient(90deg, #005bb5, #ffaa00);
    transform: scale(1.02);
}

/* Pied de page */
footer {
    background: linear-gradient(90deg, #0073e6, #00c6ff);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
    position: relative;
}

/* Responsivité */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    .order-container {
        padding: 20px;
    }

    .order-container h2 {
        font-size: 1.8rem;
    }

    footer {
        font-size: 1rem;
    }
}
/* Responsivité pour petits écrans */
@media (max-height: 600px) {
    main {
        padding: 10px;
    }
    .order-container {
        padding: 15px;
    }
}