/* Reset global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Police moderne et élégante */
body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    min-height: 100vh;
}

/* Conteneur principal */
.tracking-container {
    background-color: #ffffff;
    width: 100%;
    max-width: 900px;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    animation: fadeSlideIn 0.8s forwards;
}

/* Titre principal */
h1 {
    color: #000000;
    font-size: 32px;
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #000;
    letter-spacing: 1px;
}

/* Formulaire */
.tracking-form label {
    display: block;
    font-size: 16px;
    color: #222;
    margin-bottom: 8px;
    font-weight: 600;
}

.tracking-form input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    background-color: #f9f9f9;
    color: #000;
    transition: border-color 0.3s, background-color 0.3s;
}

.tracking-form input:focus {
    border-color: #3498db;
    background-color: #fff;
    outline: none;
}

.tracking-form button {
    width: 100%;
    padding: 14px;
    background-color: #000000;
    color: #ffffff;
    font-size: 17px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tracking-form button:hover {
    background-color: #222222;
}

/* Message d'erreur */
.error {
    color: #c0392b;
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
}

/* Bloc important */
.avis-important {
    background-color: #f7f7f7;
    color: #000;
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
    border-left: 4px solid #000;
    animation: fadeSlideIn 0.8s forwards;
}

/* Titres dans les blocs importants */
.avis-important h2,
.avis-important h3 {
    color: #000;
    font-weight: 700;
    letter-spacing: 1px;
}

.avis-important h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.avis-important h3 {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 15px;
}

/* Paragraphes et listes */
.avis-important p,
.avis-important ul,
.avis-important ol {
    font-size: 16px;
    line-height: 1.7;
}

/* Tableau client */
.client-info {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    background-color: #ffffff;
    color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.client-info th, .client-info td {
    padding: 14px;
    text-align: left;
    font-size: 15px;
    border-bottom: 1px solid #eee;
}

.client-info th {
    background-color: #000000;
    color: #ffffff;
    font-weight: 600;
}

.client-info tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Listes */
ul, ol {
    padding-left: 20px;
    margin-top: 10px;
}

ul li, ol li {
    margin-bottom: 10px;
}

/* Note d'information */
.important-note {
    background-color: #c3ba8b;
    border: 1px solid #38808f;
    color: #000000;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 30px;
    font-size: 19px;
    text-align: center;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .tracking-container {
        padding: 25px;
    }

    h1 {
        font-size: 26px;
    }

    .tracking-form input,
    .tracking-form button {
        font-size: 14px;
    }

    .client-info th, .client-info td {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tracking-container {
        padding: 20px;
    }

    h1 {
        font-size: 22px;
        padding-bottom: 15px;
    }

    .tracking-form input,
    .tracking-form button {
        font-size: 13px;
    }

    .client-info th, .client-info td {
        font-size: 13px;
    }
}

/* Retour Accueil */
.retour-accueil {
    text-align: center;
    margin-top: 40px;
}

.btn-retour {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    font-size: 16px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.btn-retour:hover {
    background-color: #2874a6;
}

/* Animation globale */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Timeline améliorée */
.tracking-timeline {
    position: relative;
    margin: 40px 0;
    padding-left: 40px;
    list-style: none;
    border-left: 3px solid #3498db;
}

.tracking-step {
    position: relative;
    margin-bottom: 30px;
    animation: fadeSlideIn 0.8s forwards;
}

.tracking-step::before {
    content: "🚚";
    position: absolute;
    left: -30px;
    top: 0;
    background: white;
    font-size: 20px;
}

/* Détails de chaque étape */
.step-date {
    font-weight: bold;
    color: #555;
}

.step-location {
    font-style: italic;
    color: #888;
    margin-top: 5px;
}

.step-status {
    margin-top: 5px;
    color: #3498db;
    font-weight: 600;
}
