/**
 * ACAFT - Vols d'Observation
 * Styles CSS
 */

/* === FILTRES === */
.acaft-vols-filtres {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.acaft-vols-filtres input {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.acaft-vols-filtres input:focus {
    outline: none;
    border-color: #0073aa;
}

/* === GRILLE DE VOLS === */
.acaft-vols-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.acaft-vols-grid .acaft-vol-card {
    max-width: none;
}

.acaft-vols-grid::before,
.acaft-vols-grid::after {
    display: none;
}

/* === CARTE DE VOL === */
.acaft-vol-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.acaft-vol-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Header de la carte */
.acaft-vol-header {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    padding: 20px;
    position: relative;
}

.acaft-vol-route {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.acaft-vol-arrow {
    font-size: 20px;
    opacity: 0.8;
}

.acaft-vol-date {
    text-align: center;
    font-size: 14px;
    opacity: 0.9;
}

.acaft-statut-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.acaft-statut-disponible {
    background: rgba(76, 175, 80, 0.9);
    color: white;
}

.acaft-statut-reserve {
    background: rgba(255, 152, 0, 0.9);
    color: white;
}

.acaft-statut-termine {
    background: rgba(158, 158, 158, 0.9);
    color: white;
}

.acaft-statut-annule {
    background: rgba(244, 67, 54, 0.9);
    color: white;
}

/* Body de la carte */
.acaft-vol-body {
    padding: 20px;
}

.acaft-vol-info {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.acaft-vol-info strong {
    color: #333;
}

.acaft-vol-notes {
    margin-top: 15px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 5px;
    font-size: 13px;
}

.acaft-vol-notes p {
    margin: 5px 0 0;
    color: #555;
}

.acaft-vol-reservation-info {
    margin-top: 15px;
    padding: 12px;
    background: #e3f2fd;
    border-left: 3px solid #2196f3;
    border-radius: 3px;
    font-size: 13px;
    line-height: 1.6;
}

/* Footer de la carte */
.acaft-vol-footer {
    padding: 15px 20px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* === BOUTONS === */
.acaft-btn-reserver,
.acaft-btn-primary {
    background: #0073aa;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.acaft-btn-reserver:hover,
.acaft-btn-primary:hover {
    background: #005a87;
}

.acaft-btn-secondary {
    background: #fff;
    color: #0073aa;
    padding: 12px 24px;
    border: 2px solid #0073aa;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.acaft-btn-secondary:hover {
    background: #0073aa;
    color: #fff;
}

.acaft-btn-annuler {
    background: #d32f2f;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.acaft-btn-annuler:hover {
    background: #b71c1c;
}

.acaft-btn-supprimer-vol {
    background: #d32f2f;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.acaft-btn-supprimer-vol:hover {
    background: #b71c1c;
}

.acaft-btn-supprimer-vol:disabled,
.acaft-btn-supprimer-souhait:disabled {
    background: #999;
    cursor: not-allowed;
}

.acaft-btn-supprimer-souhait {
    background: #d32f2f;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.acaft-btn-supprimer-souhait:hover {
    background: #b71c1c;
}

.acaft-vol-footer-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.acaft-btn-login {
    background: #f5f5f5;
    color: #555;
    padding: 12px 24px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.acaft-btn-login:hover {
    background: #e0e0e0;
    color: #333;
}

/* === MESSAGES === */
.acaft-no-vols {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.acaft-vol-indisponible {
    color: #999;
    font-size: 14px;
    font-style: italic;
}

.acaft-vol-passe {
    color: #999;
    font-size: 14px;
    font-style: italic;
}

/* === MODAL === */
.acaft-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.acaft-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.acaft-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.acaft-modal-close:hover {
    color: #000;
}

.acaft-modal-content h3 {
    margin-top: 0;
    color: #333;
}

.acaft-modal-content input[type="tel"] {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.acaft-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.acaft-modal-buttons button {
    flex: 1;
}

.acaft-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 5px;
    font-size: 14px;
}

.acaft-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.acaft-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* === COLONNES ADMIN === */
.acaft-statut {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.status-disponible {
    background: #d4edda;
    color: #155724;
}

.status-reserve {
    background: #fff3cd;
    color: #856404;
}

.status-termine {
    background: #e2e3e5;
    color: #383d41;
}

.status-annule {
    background: #f8d7da;
    color: #721c24;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .acaft-vols-grid {
        grid-template-columns: 1fr;
    }
    
    .acaft-vols-filtres {
        flex-direction: column;
    }
    
    .acaft-vols-filtres input {
        width: 100%;
        min-width: auto;
    }
    
    .acaft-vol-footer {
        flex-direction: column;
    }
    
    .acaft-modal-buttons {
        flex-direction: column;
    }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.acaft-vol-card {
    animation: fadeIn 0.3s ease-in-out;
}

/* === TITRES DE SECTION === */
.acaft-mes-reservations h2,
.acaft-mes-vols-proposes h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #333;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 10px;
}

/* === SOUHAITS DE VOL === */

/* === NAVIGATION — Pages d'accueil === */

.acaft-nav-accueil {
    text-align: center;
    padding: 20px 0;
}

.acaft-nav-subtitle {
    font-size: 17px;
    color: #555;
    margin-bottom: 35px;
}

.acaft-nav-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.acaft-nav-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 30px 35px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.acaft-nav-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.acaft-nav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    color: #fff;
    text-decoration: none;
}

.acaft-nav-card--formation {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
}

.acaft-nav-card--ligne {
    background: linear-gradient(135deg, #1a8a4a 0%, #0d6b35 100%);
}

.acaft-nav-card-icon {
    margin-bottom: 18px;
    opacity: 0.9;
}

.acaft-nav-card-icon svg {
    color: #fff;
}

.acaft-nav-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #fff;
}

.acaft-nav-card p {
    font-size: 14px;
    opacity: 0.85;
    margin: 0 0 15px;
    line-height: 1.5;
    color: #fff;
}

.acaft-nav-card-arrow {
    font-size: 22px;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.acaft-nav-card:hover .acaft-nav-card-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Dashboard tiles */
.acaft-nav-dashboard {
    padding: 10px 0;
}

.acaft-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.acaft-nav-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.acaft-nav-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #0073aa;
    text-decoration: none;
    color: #333;
}

.acaft-nav-tile-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.acaft-tile-blue {
    background: #e3f2fd;
    color: #0073aa;
}

.acaft-tile-green {
    background: #e8f5e9;
    color: #2e7d32;
}

.acaft-tile-orange {
    background: #fff3e0;
    color: #e65100;
}

.acaft-nav-tile-icon svg {
    stroke: currentColor;
}

.acaft-nav-tile h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #222;
}

.acaft-nav-tile p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Navigation responsive */
@media (max-width: 768px) {
    .acaft-nav-cards {
        grid-template-columns: 1fr;
    }
    .acaft-nav-grid {
        grid-template-columns: 1fr;
    }
}

/* Labels dans le modal souhait */
#acaft-modal-souhait label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 12px 0 4px;
}

#acaft-modal-souhait input[type="text"],
#acaft-modal-souhait select,
#acaft-modal-souhait textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
}

#acaft-modal-souhait textarea {
    resize: vertical;
}

#acaft-modal-souhait input:focus,
#acaft-modal-souhait select:focus,
#acaft-modal-souhait textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.acaft-souhait-modal-info {
    background: #e3f2fd;
    border-left: 3px solid #2196f3;
    padding: 8px 12px;
    border-radius: 3px;
    font-size: 13px;
    color: #444;
    margin-bottom: 5px;
}

/* Titre de section */
.acaft-mes-souhaits h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #333;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 10px;
}

/* Responsive modal souhait */
@media (max-width: 600px) {
    #acaft-modal-souhait .acaft-modal-content {
        padding: 20px 15px;
    }
}