/* Styles généraux */
body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #e0e0e0;
}

.container {
    margin-left: 0;
    margin-right: auto;
    padding: 0 0 20px 0;
    /*max-width: 1200px;*/
}

.container-welcome {
    margin-left: 0;
    margin-right: auto;
    padding: 0 0 20px 0;
    max-width: 1200px;
}

/* Header et Navigation */
.navbar {
    /*background-color: #333;*/
    background: linear-gradient(135deg, #1565C0, #0D47A1);
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    padding: 0 0 0 20px;
    justify-content: space-between;
    border-radius: 10px 10px 10px 10px;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-logo-link {
    display: flex;
    align-items: center;
}

.navbar-logo-link img {
    height: 40px;
    margin-right: 20px;
}

.navbar-links {
    display: flex;
    align-items: center;
}

.navbar-links-a {
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    display: block;
}

.navbar-links-a:hover {
    background-color: #2196F3;
    color: white;
}

.navbar-links-a.active {
    background-color: #2196F3;
    color: white !important;
}

/* Tableaux */
table {
    margin-left: 0;
    margin-right: auto;
    border-collapse: collapse;
    width: max-content;
    margin: 20px 0;
    background-color: white;
    box-shadow: 0 1px 3px rgba(33, 150, 243, 0.1);
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #E3F2FD;
    color: #1565C0;
    font-weight: bold;
    border-bottom: 2px solid #90CAF9;
}

td.center, th.center {
    text-align: center;
}

tr:hover {
    background-color: #F5F9FF;
}

/* Boutons */
.btn-add, .btn-submit {
    background-color: #2196F3;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
}

.btn-add:hover, .btn-submit:hover {
    background-color: #1976D2;
}

/* Messages */
.success-message,
.error-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.success-message {
    background-color: #E3F2FD;
    color: #1565C0;
    border: 1px solid #90CAF9;
}

.error-message {
    background-color: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

/* Icônes et actions */
.btn-icon {
    padding: 4px;
    width: 32px;
    background: white !important;
}

.btn-modifier {
    background: white !important;
}

.btn-modifier:hover {
    background: #2196F3 !important;
}

.btn-supprimer {
    background: white !important;
}

.btn-supprimer:hover {
    background: #dc3545 !important;
}

/* Page d'accueil */
.container-welcome {
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-section {
    text-align: center;
    padding: 40px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 30px;
}

.welcome-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.quick-links {
    margin-top: 40px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.quick-link:hover {
    background-color: #2196F3;
    color: white;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-logo {
        max-width: 200px;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .navbar {
        flex-direction: column;
        padding: 10px;
    }

    .navbar-left {
        flex-direction: column;
        width: 100%;
    }

    .navbar-links {
        flex-direction: column;
        width: 100%;
    }

    .navbar-right {
        width: 100%;
        margin-top: 10px;
        /*margin-left: auto;*/
    }

    .navbar-links-a {
        width: 100%;
        text-align: center;
    }

    .navbar-logo-link {
        margin-bottom: 10px;
    }

    .navbar-logo-link img {
        margin-right: 0;
    }
}

/* ACCUEIL */
.welcome-section {
    text-align: center;
    padding: 40px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 30px;
}

.welcome-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    /*color: #333;*/
    color: #f7eea0;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.container h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1.2em;
    margin-bottom: 30px;
}

.description {
    text-align: left;
    margin: 30px auto;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.description p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.description ul {
    list-style-type: none;
    padding: 0;
}

.description li {
    margin: 10px 0;
    padding-left: 25px;
    position: relative;
}

.description li:before {
    content: "•";
    color: #2196F3;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.quick-links {
    margin-top: 40px;
}

.quick-links h2 {
    color: #333;
    margin-bottom: 20px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.quick-link:hover {
    background-color: #2196F3;
    color: white;
    transform: translateY(-2px);
}

.quick-link i {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Icônes personnalisées pour les liens rapides */
.icon-pilots:before {
    content: "👤";
}

.icon-races:before {
    content: "🏁";
}

.icon-tracks:before {
    content: "🏎️";
}

@media (max-width: 768px) {
    .welcome-logo {
        max-width: 200px;
    }

    h1 {
        font-size: 2em;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }
}

/* PAGES */

.btn-add {
    background-color: #2196F3;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
}

.btn-add:hover {
    background-color: #1976D2;
}

#add-form-container {
    margin: 0;
    padding: 20px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 500px;
}

#add-form-container h2 {
    margin-top: 0;
}

.add-form {
    max-width: 500px;
}

.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    height: 35px;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
    font-family: inherit;
}

.form-actions-resultats {
    margin-top: 20px;
    display: inline-flex;
    gap: 10px;
}

.btn-submit {
    background-color: #2196F3;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn-submit:hover {
    background-color: #1976D2;
}

.error {
    color: #f44336;
    background-color: #ffebee;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}

.form-group select option strong {
    font-weight: bold;
}

/* Style spécifique pour les options */
.form-group select option {
    padding: 8px;
}

/* Messages de succès et d'erreur */
.success-message,
.error-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.success-message {
    background-color: #E3F2FD;
    color: #1565C0;
    border: 1px solid #90CAF9;
}

.error-message {
    background-color: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

/* Style pour le bouton Modifier */
.btn-modifier {
    background-color: #2196F3;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-modifier:hover {
    background-color: #1976D2;
}

/* Liens dans le tableau */
td a {
    color: #2196F3;
    text-decoration: none;
}

td a:hover {
    color: #1976D2;
    text-decoration: underline;
}

/* Focus des champs de formulaire */
.form-group input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 3px rgba(33, 150, 243, 0.3);
}

/* Style pour l'icône de modification */
.icon-modifier {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-icon:hover {
    background-color: rgba(33, 150, 243, 0.1); /* Fond bleu très léger au survol */
}

.btn-icon:hover .icon-modifier {
    opacity: 0.8;
}

/* Style pour la colonne des actions */
table th:last-child,
table td:last-child {
    width: auto; /* Permettre à la colonne de s'adapter au contenu */
    white-space: nowrap; /* Empêcher le retour à la ligne des boutons */
}

.action-buttons {
    display: flex;
    gap: 10px; /* Réduire l'espace entre les boutons */
    justify-content: center;
    align-items: center;
}

/* Style uniforme pour tous les boutons d'action */
.btn-action {
    background-color: #2196F3;
    color: white;
    padding: 4px 8px; /* Réduire le padding pour des boutons plus compacts */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
    min-width: 60px; /* Largeur minimum pour uniformité */
}

.btn-action:hover {
    background-color: #1976D2;
}

.btn-action.disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-action.disabled:hover {
    background-color: #ccc;
}

/* Styles pour resultats_course.php */
.course-info {
    color: #666;
    line-height: 1.6;
}

.no-results {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.actions {
    margin-top: 20px;
    text-align: center;
    vertical-align: middle;
}

.meilleur-temps {
    border-radius: 4px;
    padding: 10px 15px;
    margin-top: 15px;
    width: max-content;
    /*background-color: #e8f5e9;*/
    background-color: rgb(203, 243, 205);
    border: 1px solid #d9f5db;
    padding: 15px;
    border-radius: 8px;
    color: #2e7d32;
}

.meilleur-temps h3 {
    color: #856404;
    margin: 0 0 5px 0;
    font-size: 1.1em;
}

.meilleur-temps p {
    /*color: #856404;*/
    color: #2e7d32;
    margin: 0;
    font-weight: bold;
}

.meilleur-temps-ligne {
    /*background-color: #28a745;*/
    background-color: #91ee99;
    color: black;
    font-weight: bold;
}

.meilleur-temps-ligne-pilote {
    background-color: #ffd890;
    color: black;
    font-weight: bold;
}

.grid-pilotes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.carte-pilote {
    background: rgb(203, 243, 205);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.pilote-nom {
    font-weight: bold;
    margin-bottom: 8px;
}

.pilote-temps {
    font-weight: bold;
    color: #2e7d32;
    font-size: 1.1em;
}

.login-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /*background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);*/
}

.login-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 480px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.login-header h2 {
    color: #1565C0;
    font-size: 2em;
    margin-bottom: 10px;
}

.login-subtitle {
    color: #6c757d;
    font-size: 1.1em;
}

.login-form {
    margin-top: 30px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #6c757d;
    font-size: 1.2em;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    border-color: #1565C0;
    box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.1);
    outline: none;
}

.input-wrapper input::placeholder {
    color: #adb5bd;
}

.error-message {
    background-color: #fff3f3;
    color: #dc3545;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-icon {
    font-size: 1.2em;
}

.btn-submit {
    width: 100%;
    padding: 14px 20px;
    background-color: #1565C0;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    background-color: #0D47A1;
    transform: translateY(-2px);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn-submit:hover .btn-arrow {
    transform: translateX(5px);
}

.login-footer {
    margin-top: 25px;
    text-align: center;
}

.back-link {
    color: #6c757d;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #1565C0;
}

.back-arrow {
    transition: transform 0.3s ease;
}

.back-link:hover .back-arrow {
    transform: translateX(-5px);
}

.user-menu {
    display: none;
}

.btn-logout {
    display: none;
}

.login-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-logo img {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
    animation: logoFadeIn 0.8s ease-out;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajuster l'espacement du titre puisque nous avons maintenant un logo */
.login-box h1 {
    margin-bottom: 2rem;  /* Réduit de 3rem à 2rem car nous avons le logo au-dessus */
}

/* Ajuster la taille de la boîte de connexion pour accommoder le logo */
.login-box {
    padding-top: 2.5rem;  /* Légèrement réduit pour compenser l'espace du logo */
}

/* Ajouter le style spécifique pour le bouton de déconnexion */
.navbar-logout {
    background-color: #aa2936;
    color: white;
}

.navbar-logout:hover {
    background-color: #c82333;
    color: white;
}

/* Styles pour strategie_relais.php */

.course-details {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.course-details h2 {
    margin: 0 0 10px 0;
    color: #1565C0;
}

.course-info {
    margin: 0;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.relai-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.relai-numero {
    width: 80px;
    font-weight: bold;
    color: #1565C0;
}

.pilote-select, .spotter-select {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.strategie-summary {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #2196F3;
}

.strategy-summary-noborder {
    border: none;
}

.strategie-summary h3 {
    margin: 0 0 10px 0;
    color: #1565C0;
}

.strategie-summary p {
    margin: 10px 0;
    font-size: 1.1em;
}

.strategie-summary span {
    font-weight: bold;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-submit {
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    text-decoration: none;
}

.btn-submit {
    background: #1565C0;
    color: white;
}

.btn-submit:hover {
    background: #0D47A1;
}

.btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-cancel {
    display: inline-block;
    background: #6c757d;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.btn-cancel:hover {
    background: #5a6268;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-info {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    color: #0d47a1;
}

/* Styles généraux pour les boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: normal;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
    height: 32px; /* Hauteur fixe pour tous les boutons */
    vertical-align: middle;
}

/* Style pour les boutons avec icônes */
.btn-icon {
    padding: 4px;
    width: 32px;
    background: white !important;
}

.btn-icon img {
    width: 24px;
    height: 24px;
    display: block;
}

/* Styles pour les boutons textuels */
.btn-strategie {
    background-color: #28a745;
    color: white !important;
    text-decoration: none !important;
}

.btn-strategie:hover {
    background-color: #218838;
    color: white !important;
}

.btn-resultats {
    background-color: #6c757d;
    color: white !important;
    text-decoration: none !important;
}

.btn-resultats:hover {
    background-color: #5a6268;
    color: white !important;
}

.btn-resultats.disabled {
    background-color: #cccccc;
    color: #666666 !important;
    cursor: not-allowed;
    pointer-events: none;
    text-decoration: none !important;
}

/* Style pour les boutons désactivés */
.btn[disabled] {
    background-color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

/* Style pour la cellule contenant les actions */
.actions {
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
}

.circuit-link {
    color: #1565C0;
    text-decoration: none;
}

.circuit-link:hover {
    text-decoration: underline;
}

/* Styles pour la sélection des pilotes */
.select-all-container {
    margin-bottom: 15px;
    cursor: pointer;
}

.select-all-text {
    font-weight: bold;
}

.pilotes-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.pilote-item {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.pilote-item:hover {
    background: #e9ecef;
}

.pilote-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    min-height: 24px;
}

.pilote-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

/* Style commun pour tous les items (y compris "Tous") */
.pilote-item, .select-all-container label {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.pilote-item:hover, .select-all-container label:hover {
    background: #e9ecef;
}

.pilote-item label, .select-all-container label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    min-height: 24px;
}

.pilote-item input[type="checkbox"], .select-all-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

/* Stratégie relais */
.strategie-form {
    background: white;
    padding: 10px 20px 20px 20px;
    border-radius: 8px;
    max-width: 1000px;
}

.config-course {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
}

.relais-container {
    margin-top: 20px;
}

.relai-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.relai-numero {
    width: 80px;
    font-weight: bold;
    color: #1565C0;
}

.relai-details {
    flex: 1;
    display: flex;
    gap: 20px;
    align-items: center;
}

.relai-details select {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ravitaillement-check {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ravitaillement-checkbox {
    margin: 0;
    transform: translateY(-2px);
}

.relai_fantome-checkbox {
    margin: 0;
    transform: translateY(-2px);
}

.btn-duplicate {
    display: none;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    width: 100%;
}

.form-group input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    height: 35px;
    font-size: 14px;
    box-sizing: border-box;
}

.alert {
    padding: 15px;
    margin: 20px 0;
    border-radius: 6px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

.btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.selection-pilotes-section {
    margin: 20px 0;
    padding: 20px;
    text-align: left;
}

.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background-color: #1565C0;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #0D47A1;
}

.btn-primary-delete  {
    margin-left: 20px;
    display: inline-block;
    padding: 12px 24px;
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.btn-primary-delete:hover {
    background-color: #c82333;
}

.pilotes-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pilotes-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 600px;
}

.pilotes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.pilote-tag {
    background: #e3f2fd;
    color: #1565C0;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9em;
}

.alert-info {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    color: #0d47a1;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.recap-table {
    width: max-content;
    margin-top: 20px;
    border-collapse: collapse;
    border-radius: 10px;
    background-color: white;
}

.recap-table th,
.recap-table td {
    padding: 15px;
    /*text-align: left;*/
    border: 1px solid #dee2e6;
}

.recap-table th {
    background-color: #E3F2FD;
    font-weight: bold;
    color: #1565C0;
    border-bottom: 2px solid #90CAF9;
}

.recap-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.recap-table tr:hover {
    background-color: #e9ecef;
}

/* Styles du header et de la navigation */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 10px;
    margin: 0;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-right {
    margin-left: auto;
}

.nav-brand {
    flex-shrink: 0;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.nav-logo-img {
    height: 50px;
    width: auto;
}

.nav-logo-text {
    color: #1565C0;
    font-size: 1.2em;
    font-weight: bold;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: #f0f0f0;
}

.nav-links a.active {
    background-color: #007bff;
    color: white;
}

.nav-auth {
    margin-left: 30px;
}

.btn-login, 
.btn-logout {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login {
    background-color: #1565C0;
    color: white;
}

.btn-login:hover {
    background-color: #0D47A1;
    transform: translateY(-2px);
}

.btn-login.active {
    background-color: #0D47A1;
}

.btn-logout {
    background-color: #dc3545;
    color: white;
}

.btn-logout:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

/* Ajout de responsive design */
@media (max-width: 768px) {
    .nav-logo-text {
        display: none;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-auth {
        margin-left: 15px;
    }
}

/* Ajustement pour le contenu principal */
main {
    min-height: calc(100vh - 70px); /* Hauteur du viewport moins la hauteur du header */
    background-color: #f8f9fa;
    padding-bottom: 40px;
}

/* Styles pour la page d'accueil */
.welcome-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, #1565C0, #0D47A1);
    color: white;
    border-radius: 10px;
    margin: 20px 0;
}

.hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.8em;
    margin-bottom: 15px;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.8;
}

/* Features Section */
.features-section {
    padding-top: 20px;
}

.features-section h2 {
    text-align: center;
    color: #1565C0;
    font-size: 2em;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: #1565C0;
    margin-bottom: 15px;
}

.feature-card ul {
    list-style-type: none;
    padding: 0;
}

.feature-card ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.feature-card ul li:before {
    content: "•";
    color: #1565C0;
    position: absolute;
    left: 0;
}

/* How it works Section */
.how-it-works {
    padding: 0;
    /*background-color: #f8f9fa;*/
    border-radius: 10px;
    margin: 0;
}

.how-it-works h2 {
    text-align: center;
    color: #1565C0;
    font-size: 2em;
    margin-bottom: 40px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 40px;
    height: 40px;
    background: #1565C0;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.2em;
    font-weight: bold;
}

/* Benefits Section */
.benefits-section {
    padding: 40px 0;
}

.benefits-section h2 {
    text-align: center;
    color: #1565C0;
    font-size: 2em;
    margin-bottom: 40px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.benefit-card h3 {
    color: #1565C0;
    margin-bottom: 15px;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #1565C0, #0D47A1);
    color: white;
    border-radius: 10px;
    margin: 20px 0;
}

.cta-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.btn-cta {
    display: inline-block;
    padding: 15px 40px;
    background-color: white;
    color: #1565C0;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.3s ease;
    margin-top: 20px;
}

.btn-cta:hover {
    transform: scale(1.05);
    background-color: #f8f9fa;
}

.hero-logo {
    margin-bottom: 30px;
}

.logo-image {
    max-width: 300px; /* Ajusté pour votre logo */
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.form-group-connexion {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.form-group-connexion label {
    width: 100%;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group-connexion-button {
    margin-top: 20px;
    text-align: center;
}

.separator {
    height: 1px;
    background-color: #ddd;
    margin: 20px 0;
    width: 100%;
}

.btn-submit {
    display: inline-block;
    background-color: #2196F3;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    width: 100%;
}

.btn-submit:hover {
    background-color: #1976D2;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #6c757d;
    font-size: 1.2em;
}

.input-connexion {
    padding: 12px 15px 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.input-connexion:focus {
    border-color: #1565C0;
    box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.1);
    outline: none;
}

.input-connexion::placeholder {
    color: #adb5bd;
}

.password-container {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    line-height: normal;
}

.password-container input {
    width: 100%;
    margin-left: 6px;
    cursor: pointer;
    accent-color: #007bff;
    vertical-align: middle;
}

.modif_relais input {
    width: 117px;
    text-align: center;
}

.modif_relais label {
    font-weight: normal;
}

.form-control {
    width: 100%;
    font-family: monospace;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
} 

input[type="checkbox" i] {
    background-color: initial;
    cursor: default;
    appearance: auto;
    box-sizing: border-box;
    margin: 3px 3px 4px 4px;
    padding: initial;
    border: initial;
}

.modif_relais input {
    font-weight: bold;
}
