/* =========================================================
   STYLES GÉNÉRAUX
   ========================================================= */

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

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f8fcff 55%,
        #eaf6ff 100%
    );
    min-height: 100vh;
    height: auto;
    color: #333333;
}


/* =========================================================
   RÉSUMÉ / ZONE DE COMMANDE
   ========================================================= */

#commande-details {
    max-width: 600px;

    /* Position du bloc */
    margin: -50px auto 0;

    background: rgba(255, 255, 255, 0.96);

    padding: 24px 25px;

    border-radius: 20px;

    border: 1px solid #dcecff;

    box-shadow:
        0 5px 20px rgba(0, 100, 180, 0.10);

    box-sizing: border-box;
}


/* =========================================================
   TITRE DE LA PAGE
   ========================================================= */

main h1 {
    text-align: center;

    color: #0827a8;

    font-size: 34px;

    font-weight: 700;

    line-height: 1.2;

    margin-top: 0;

    margin-bottom: 15px;
}


/* =========================================================
   TITRE DU RÉSUMÉ DE COMMANDE
   ========================================================= */

#commande-details h2 {
    text-align: center;

    color: #0926a8;

    font-size: 25px;

    font-weight: 700;

    line-height: 1.25;

    margin-top: 0;

    margin-bottom: 20px;
}


/* =========================================================
   MESSAGE DE SUCCÈS
   ========================================================= */

.Avec_succès {
    position: relative;

    top: -18px;

    color: #0926c7;

    font-size: 20px;

    font-weight: bold;

    text-align: center;

    line-height: 1.35;

    margin: 0 auto;

    max-width: 650px;
}


/* =========================================================
   MESSAGE DE CONTACT
   ========================================================= */

.mode_de_contact {
    position: relative;

    top: -35px;

    color: #333333;

    font-size: 16px;

    text-align: center;

    line-height: 1.55;

    max-width: 650px;

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   TABLEAU DES INFORMATIONS
   ========================================================= */

.tableau-commande {
    width: 100%;

    background: #ffffff;

    border-radius: 15px;

    overflow: hidden;

    border: 1px solid #e4e4e4;
}


/* Une ligne */

.ligne-commande {
    display: grid;

    grid-template-columns: 38% 62%;

    align-items: start;

    padding: 13px 5px;

    border-bottom: 1px solid #e6e6e6;

    font-size: 18px;

    line-height: 1.4;
}


/* Colonne gauche */

.ligne-commande strong {
    color: #222222;

    font-weight: 700;

    text-align: left;
}


/* Colonne droite */

.ligne-commande span {
    color: #555555;

    text-align: right;

    word-break: break-word;
}


/* Dernière ligne */

.ligne-commande:last-child {
    border-bottom: none;
}


/* =========================================================
   TOTAL
   ========================================================= */

.ligne-total {
    background: #f8fbff;
}

.ligne-total strong {
    color: #222222;
}

.ligne-total span {
    color: #c62828;

    font-weight: bold;

    font-size: 20px;
}


/* =========================================================
   PRODUITS COMMANDÉS
   ========================================================= */

.liste-produits {
    list-style: none;

    padding: 0;

    margin: 12px 0;
}


.produit-commande {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 10px;

    padding: 10px;

    background: #f8fbff;

    border: 1px solid #e5eef8;

    border-radius: 12px;
}


.produit-commande img {
    width: 60px;

    height: 60px;

    object-fit: cover;

    border-radius: 10px;

    flex-shrink: 0;
}


.produit-commande span {
    font-size: 16px;

    color: #444444;

    line-height: 1.4;
}


/* =========================================================
   PARAGRAPHES
   ========================================================= */

p {
    font-size: 16px;

    color: #555555;

    line-height: 1.6;
}


/* =========================================================
   LISTES GÉNÉRALES
   ========================================================= */

ul {
    list-style: none;

    padding: 0;
}


ul li {
    background: #fafafa;

    margin: 5px 0;

    padding: 10px;

    border-left: 4px solid #27ae60;

    font-size: 16px;
}


/* =========================================================
   RECHERCHE DES COMMANDES
   ========================================================= */

#commandes-container {
    background: transparent;

    margin-top: 20px;
}


/* =========================================================
   CARTE D'UNE COMMANDE RECHERCHÉE
   ========================================================= */

.commande {
    background: #ffffff;

    padding: 18px;

    border-radius: 18px;

    border: 1px solid #dfeaf5;

    box-shadow:
        0 5px 18px rgba(0, 80, 160, 0.08);

    margin-bottom: 20px;

    animation: fadeIn 0.5s ease-in-out;
}


.commande h3 {
    color: #0926a8;

    margin-bottom: 15px;

    font-size: 21px;
}


.commande p {
    font-size: 16px;

    margin: 5px 0;
}


.commande ul {
    list-style: none;

    padding: 0;
}


.commande ul li {
    background: #eef7ff;

    padding: 8px;

    border-radius: 8px;

    margin-bottom: 5px;
}


/* =========================================================
   ANIMATION D'APPARITION
   ========================================================= */

@keyframes fadeIn {

    from {
        opacity: 0;

        transform: translateY(10px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}


/* =========================================================
   BOUTON "VOIR D'AUTRES PRODUITS"
   ========================================================= */

#voirautreproduit {

    display: inline-block;

    padding: 12px 20px;

    font-size: 20px;

    background: linear-gradient(
        135deg,
        #168cff,
        #0875e8
    );

    color: white;

    border: none;

    cursor: pointer;

    border-radius: 30px;

    position: relative;

    animation: vibration 1.4s infinite;

    font-weight: 600;

    text-decoration: underline;

    box-shadow:
        0 6px 15px rgba(0, 120, 255, 0.25);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


#voirautreproduit:hover {

    background: linear-gradient(
        135deg,
        #0875e8,
        #005fc7
    );

    box-shadow:
        0 8px 20px rgba(0, 100, 220, 0.30);
}


/* =========================================================
   ANIMATION VIBRATION
   ========================================================= */

@keyframes vibration {

    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-3px, 0);
    }

    50% {
        transform: translate(3px, 0);
    }

    75% {
        transform: translate(-3px, 0);
    }

    100% {
        transform: translate(0, 0);
    }
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {

    position: relative;

    margin-top: 0 !important;

    margin-bottom: 65px !important;

    top: 0 !important;

    transform: translateY(0) !important;

    padding-top: 0 !important;
}


/* =========================================================
   BOUTON WHATSAPP
   ========================================================= */

.navbar .whatsapp-groupe {

    position: absolute;

    top: calc(100% + 8px);

    left: 50%;

    transform: translateX(-50%);

    display: block;

    width: max-content;

    max-width: 88vw;

    margin: 0;

    padding: 8px 17px;

    background: rgba(70, 70, 0, 0.3);

    color: green;

    text-decoration: none;

    border-radius: 25px;

    text-align: center;

    box-sizing: border-box;

    z-index: 1000;

    box-shadow:
        0 6px 18px rgba(0, 150, 50, 0.22);

    animation: zoomWhatsApp 1.8s ease-in-out infinite;

    transition: box-shadow 0.2s ease;
}


/* Première ligne */

.navbar .whatsapp-titre {

    display: block;

    font-size: 17px;

    font-weight: bold;

    text-decoration: underline;

    line-height: 1.2;
}


/* Deuxième ligne */

.navbar .whatsapp-sous-titre {

    display: block;

    margin-top: 3px;

    font-size: 14px;

    font-weight: normal;

    color: black;

    line-height: 1.25;
}


/* =========================================================
   ANIMATION ZOOM WHATSAPP
   ========================================================= */

@keyframes zoomWhatsApp {

    0% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.05);
    }

    100% {
        transform: translateX(-50%) scale(1);
    }
}


/* =========================================================
   CONTENU PRINCIPAL
   ========================================================= */

main {

    margin-top: 0;

    padding: 0;

    text-align: center;

    background: transparent;

    height: auto;
}


/* =========================================================
   CONTENEUR PRINCIPAL
   ========================================================= */

#touslesdetails {

    margin: 10px auto;

    padding: 3px;

    border: none;

    border-radius: 20px;

    background: transparent;

    max-width: 500px;

    width: 100%;

    box-sizing: border-box;
}


/* =========================================================
   ZONE "AUCUNE COMMANDE"
   ========================================================= */

#commande-details > p {

    background: #ffffff;

    border: 1px solid #dcecff;

    border-radius: 18px;

    padding: 30px 15px;

    box-shadow:
        0 5px 18px rgba(0, 90, 180, 0.08);

    color: #555555;
}


/* =========================================================
   BOUTON DE RECHERCHE
   ========================================================= */

#voir-commande {

    display: flex;

    align-items: stretch;

    gap: 10px;

    padding: 5px;

    margin: 0 auto;

    width: 100%;

    box-sizing: border-box;
}


/* Champ téléphone */

#search-phone {

    padding: 12px 10px;

    border: 2px solid #168cff;

    border-radius: 12px;

    font-size: 16px;

    width: 150px;

    flex: 1;

    min-width: 0;

    outline: none;

    background: white;

    box-sizing: border-box;
}


#search-phone:focus {

    border-color: #006fe6;

    box-shadow:
        0 0 0 3px rgba(0, 130, 255, 0.12);
}


/* Bouton */

#voir-commande button {

    background: linear-gradient(
        135deg,
        #168cff,
        #0878ed
    );

    color: white;

    border: none;

    padding: 10px 15px;

    font-size: 16px;

    border-radius: 12px;

    cursor: pointer;

    margin-left: 0;

    min-width: 150px;

    font-weight: 500;

    box-shadow:
        0 5px 12px rgba(0, 110, 230, 0.20);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


#voir-commande button:hover {

    background: linear-gradient(
        135deg,
        #0878ed,
        #0065ce
    );

    transform: translateY(-1px);

    box-shadow:
        0 7px 16px rgba(0, 100, 220, 0.25);
}


/* =========================================================
   FOOTER / BAS DE PAGE
   ========================================================= */

/*
   Aucun footer forcé ici.
   Cela laisse la page se terminer naturellement.
*/


/* =========================================================
   RESPONSIVE — TABLETTE
   ========================================================= */

@media (max-width: 768px) {

    p {
        font-size: 14px;
    }

    ul li {
        font-size: 14px;
    }

    main h1 {
        font-size: 30px;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 600px) {

    #commande-details {

        width: 92%;

        padding: 20px;

        border-radius: 18px;
    }


    .ligne-commande {

        grid-template-columns: 38% 62%;

        font-size: 17px;

        padding: 11px 0;
    }


    .ligne-total span {

        font-size: 19px;
    }


    .produit-commande span {

        font-size: 15px;
    }


    .Avec_succès {

        font-size: 20px;

        line-height: 1.35;
    }


    .mode_de_contact {

        font-size: 16px;

        line-height: 1.5;
    }


    #voir-commande {

        gap: 8px;

        padding: 5px;
    }


    #search-phone {

        width: auto;

        min-width: 0;

        font-size: 16px;
    }


    #voir-commande button {

        min-width: 0;

        width: 48%;

        font-size: 16px;

        padding: 10px 8px;
    }


    #voirautreproduit {

        font-size: 20px;

        padding: 12px 18px;
    }


    .navbar .whatsapp-groupe {

        max-width: 88vw;

        padding: 7px 13px;

        border-radius: 20px;
    }


    .navbar .whatsapp-titre {

        font-size: 16px;
    }


    .navbar .whatsapp-sous-titre {

        font-size: 13px;
    }

}


/* =========================================================
   TRÈS PETITS ÉCRANS
   ========================================================= */

@media (max-width: 380px) {

    #commande-details {

        width: 94%;

        padding: 17px;
    }


    .ligne-commande {

        font-size: 16px;
    }


    .ligne-total span {

        font-size: 18px;
    }


    .navbar .whatsapp-groupe {

        max-width: 84vw;

        padding: 6px 10px;
    }


    .navbar .whatsapp-titre {

        font-size: 14px;
    }


    .navbar .whatsapp-sous-titre {

        font-size: 12px;
    }


    #voir-commande button {

        font-size: 14px;
    }


    #search-phone {

        font-size: 14px;
    }

}