/* Styles pour Sonef Blocks */

/* Styles généraux */
.sonef-block {
    margin: 20px 0;
}

/* Styles pour le formulaire de recherche */
.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-form select {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.search-bar {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 20px;
}

.track-button {
    padding: 10px 20px;
    background-color: #000192;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.track-button:hover {
    background-color: #005a87;
}

.track-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.tracking-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tracking-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Styles pour les titres */
.title-underlined {
    border-bottom: 2px solid;
    padding-bottom: 10px;
    margin: 20px 0;
}

.color-primary {
    color: #000192;
}

.uppercase {
    text-transform: uppercase;
}

/* Styles pour les tableaux */
.sonef-block table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.sonef-block table th,
.sonef-block table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

.sonef-block table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.sonef-block table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.sonef-block table tbody tr:hover {
    background-color: #f0f0f0;
}

/* Styles pour la grille d'agences */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card h4 {
    margin: 0 0 15px 0;
    color: #000192 !important;
    font-size: 18px;
}

.card p {
    margin: 10px 0;
    line-height: 1.6;
}

.agences-button {
    color: white;
    background-color: #FE7216;
}

.agences-button:hover {
    background-color: transparent;
    color: #FE7216;
}

.card a {
    display: inline-block;
    margin-top: 15px;
    color: #000192;
    text-decoration: none;
    font-weight: bold;
}

.card a:hover {
    text-decoration: underline;
}

/* Styles pour les messages de chargement et d'erreur */
#sonef-block-loading,
.sonef-block [id$="-loading"] {
    padding: 20px;
    text-align: center;
    color: #000192;
    font-weight: bold;
}

#sonef-block-error,
.sonef-block [id$="-error"] {
    padding: 15px;
    background-color: #ffe6e6;
    border: 1px solid #ff9999;
    border-radius: 4px;
    margin: 15px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
    }
    
    .search-form select,
    .track-button {
        width: 100%;
    }
    
    .tracking-form {
        flex-direction: column;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .sonef-block table {
        font-size: 14px;
    }
    
    .sonef-block table th,
    .sonef-block table td {
        padding: 8px;
    }
}

