/* ========================================
   APAC - Bourse aux Équipiers - Styles
   ======================================== */

/* Bouton de téléchargement */
.apac-download-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.apac-download-section form {
    margin: 0;
}

.apac-download-btn {
    display: inline-block;
    padding: 15px 35px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.apac-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

.apac-download-info {
    color: white;
    margin-top: 12px;
    margin-bottom: 0;
    font-size: 14px;
    opacity: 0.95;
}

/* Message si vide */
.apac-bourse-message {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.apac-bourse-message p {
    font-size: 18px;
    color: #495057;
    margin: 15px 0;
}

.apac-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #007bff;
    color: white !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
}

.apac-btn:hover {
    background: #0056b3;
}

/* Container principal */
.apac-bourse-equipiers {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Sections */
.apac-section {
    margin-bottom: 50px;
}

.apac-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #007bff;
}

.apac-icon {
    font-size: 32px;
}

.apac-count {
    font-size: 20px;
    color: #6c757d;
    font-weight: 400;
}

/* Grid de cartes */
.apac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Cartes */
.apac-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.apac-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.15);
    border-color: #007bff;
}

.apac-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.apac-card-icon {
    font-size: 28px;
    line-height: 1;
}

.apac-card-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.apac-card-bateau {
    background: #e7f3ff;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.apac-card-bateau strong {
    color: #0066cc;
    font-size: 15px;
}

.apac-card-taille {
    background: #007bff;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.apac-card-info {
    color: #495057;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.apac-card-permis {
    color: #28a745;
    font-size: 13px;
    margin-bottom: 10px;
    font-weight: 500;
}

.apac-crr-badge {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
}

.apac-card-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.apac-btn-details {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.apac-btn-details:hover {
    background: #0056b3;
}

/* ========================================
   MODAL
   ======================================== */

.apac-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.apac-modal-content {
    background-color: #fff;
    margin: 3% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s;
    position: relative;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.apac-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #999;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.apac-modal-close:hover {
    color: #333;
}

#apac-modal-body {
    padding: 30px;
}

/* En-tête du modal */
.apac-modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 3px solid #007bff;
    margin-bottom: 25px;
}

.apac-modal-icon {
    font-size: 48px;
}

.apac-modal-title {
    flex: 1;
}

.apac-modal-title h2 {
    margin: 0 0 5px 0;
    font-size: 26px;
    color: #1a1a1a;
}

.apac-modal-title .apac-modal-numero {
    font-size: 14px;
    color: #6c757d;
    font-weight: 400;
}

/* Sections du modal */
.apac-modal-section {
    margin-bottom: 25px;
}

.apac-modal-section h3 {
    font-size: 18px;
    color: #007bff;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.apac-modal-section h3::before {
    content: '●';
    font-size: 12px;
}

.apac-modal-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px;
    margin-bottom: 8px;
    align-items: start;
}

.apac-modal-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.apac-modal-value {
    color: #1a1a1a;
    font-size: 14px;
}

.apac-modal-value a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.apac-modal-value a:hover {
    text-decoration: underline;
}

/* Liste à puces dans le modal */
.apac-modal-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.apac-modal-list li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.apac-modal-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Boutons de contact */
.apac-modal-contact {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.apac-contact-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
}

.apac-contact-email {
    background: #007bff;
    color: white !important;
}

.apac-contact-email:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.apac-contact-tel {
    background: #28a745;
    color: white !important;
}

.apac-contact-tel:hover {
    background: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Badge */
.apac-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #28a745;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

/* Zone commentaires */
.apac-commentaires {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    font-style: italic;
    color: #495057;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .apac-grid {
        grid-template-columns: 1fr;
    }
    
    .apac-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .apac-modal-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .apac-modal-contact {
        flex-direction: column;
    }
    
    .apac-section-title {
        font-size: 22px;
    }
}
