/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Couleurs du logo QSM */
    --primary-blue: #17254A;      /* Bleu marine du logo */
    --primary-red: #C1121F;       /* Rouge vif du logo */
    --secondary-blue: #2a3f5f;    /* Bleu plus clair */
    --light-blue: #e8eef5;        /* Bleu très clair pour backgrounds */
    --accent-red: #d91f2e;        /* Rouge accent */
    --text-dark: #1a1a1a;         /* Texte principal */
    --text-light: #666666;        /* Texte secondaire */
    --background-light: #f8f9fa;  /* Fond clair */
    --border-color: #dee2e6;      /* Bordures */
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 50%, #5a6d8c 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-dark);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* En-tête */
.header {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: fadeInDown 0.8s ease;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.logo-image {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    text-align: center;
}

.logo i {
    font-size: 60px;
    color: var(--primary-blue);
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.company-subtitle {
    font-size: 1.1rem;
    color: var(--primary-red);
    font-weight: 500;
    font-style: italic;
    margin: 0;
}

.seminar-title {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border-radius: 15px;
    color: white;
}

.seminar-title h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.theme {
    font-size: 1.2rem;
    font-weight: 500;
    font-style: italic;
    opacity: 0.95;
}

/* Informations du séminaire */
.seminar-info {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px solid #dee2e6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(193, 18, 31, 0.2);
    border-color: var(--primary-red);
}

.info-card:hover i {
    color: var(--primary-red);
}

.info-card i {
    font-size: 40px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-card p {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    margin: 5px 0;
}

.info-card .small {
    font-size: 0.9rem;
    color: #777;
}

/* Container principal */
.main-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Formulaire */
.form-container {
    padding: 50px;
}

.form-container h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
}

.form-description {
    color: #666;
    margin-bottom: 40px;
    font-size: 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 40px 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-red);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
    margin-left: auto;
}

.participant-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 2px solid #e9ecef;
}

.participant-title {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.optional {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 400;
    font-style: italic;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.required {
    color: var(--primary-red);
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.error-message {
    color: var(--primary-red);
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    min-height: 18px;
}

/* Boutons */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.btn-submit,
.btn-reset,
.btn-back,
.btn-view-list,
.btn-close-list {
    padding: 16px 35px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    flex: 1;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(23, 37, 74, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-reset {
    background: #6c757d;
    color: white;
}

.btn-reset:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Message de succès */
.success-container {
    padding: 70px 50px;
    text-align: center;
    animation: fadeIn 0.8s ease;
}

.success-icon {
    font-size: 100px;
    color: var(--primary-red);
    margin-bottom: 25px;
    animation: scaleIn 0.5s ease;
}

.success-container h2 {
    color: var(--primary-red);
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.success-container p {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.7;
}

.success-details {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin: 30px auto;
    max-width: 600px;
    text-align: left;
}

.success-details p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.success-details ul {
    list-style: none;
    padding: 0;
}

.success-details li {
    padding: 10px 0;
    color: #555;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.success-details li:before {
    content: "✓";
    color: var(--primary-red);
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Styles additionnels pour inscription */
.program-ref {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #666;
}

.add-participant-section {
    text-align: center;
    margin: 30px 0;
}

.btn-add-participant {
    background: var(--primary-blue);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-add-participant:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
}

.add-note {
    margin-top: 10px;
    color: #666;
    font-size: 0.9rem;
}

.participant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-remove-participant {
    background: var(--primary-red);
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.btn-remove-participant:hover {
    background: #c0392b;
}

.info-box, .tarif-box, .important-note {
    margin: 30px 0;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid;
}

.info-box {
    background: #e3f2fd;
    border-color: #2196f3;
}

.info-box h4 {
    color: #1976d2;
    margin-bottom: 10px;
}

.tarif-box {
    background: #fff9e6;
    border-color: var(--primary-red);
}

.tarif-box h4 {
    color: #f57c00;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.tarif-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.tarif-item {
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    position: relative;
}

.tarif-item.featured {
    border-color: var(--primary-red);
    box-shadow: 0 5px 15px rgba(193, 18, 31, 0.2);
}

.tarif-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-red);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.tarif-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.tarif-price {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 10px 0;
}

.tarif-total {
    color: var(--primary-red);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 10px;
}

.tarif-includes {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.important-note {
    background: #fff3cd;
    border-color: var(--primary-red);
}

.important-note h4 {
    color: #856404;
    margin-bottom: 10px;
}

.important-note p {
    color: #856404;
    line-height: 1.6;
}

.payment-info-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    border: 2px solid #dee2e6;
}

.payment-info-box h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.payment-info-box ul {
    list-style: none;
    padding-left: 0;
}

.payment-info-box li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.payment-info-box li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
}

.bank-details-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.bank-details-box h5 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.bank-table {
    width: 100%;
    border-collapse: collapse;
}

.bank-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.bank-table td {
    padding: 12px 10px;
}

.bank-table td:first-child {
    width: 180px;
    color: #666;
}

.bank-table td:last-child {
    color: var(--primary-blue);
    font-weight: 600;
}

.contact-confirmation {
    margin-top: 20px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
}

.contact-confirmation p {
    margin: 10px 0;
}

.email-list {
    font-size: 0.95rem;
}

.email-list a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.email-list a:hover {
    text-decoration: underline;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-payment-cta {
    background: linear-gradient(135deg, var(--primary-red) 0%, #229954 100%);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
}

.btn-payment-cta:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(39, 174, 96, 0.4);
}

.footer-address {
    font-size: 0.9rem;
    margin-top: 5px;
}

.footer-signataires {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.btn-back,
.btn-view-list {
    background: var(--primary-blue);
    color: white;
    margin: 10px;
    display: inline-flex;
}

.btn-back:hover,
.btn-view-list:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

/* Liste des inscriptions */
.prospects-list {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-top: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: fadeIn 0.8s ease;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.list-header h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
}

.btn-close-list {
    background: #6c757d;
    color: white;
}

.btn-close-list:hover {
    background: #5a6268;
}

/* Filtres */
.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.filters input,
.filters select {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.filters input {
    flex: 1;
}

.filters select {
    min-width: 200px;
}

/* Table */
.prospects-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.prospects-table thead {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
}

.prospects-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.prospects-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s ease;
}

.prospects-table tbody tr:hover {
    background: #f8f9fa;
}

.prospects-table td {
    padding: 15px;
    color: #333;
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-en_attente {
    background: #ffc107;
    color: #000;
}

.status-confirmé {
    background: #17a2b8;
    color: white;
}

.status-payé {
    background: #28a745;
    color: white;
}

.status-annulé {
    background: #dc3545;
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.pagination button {
    padding: 10px 18px;
    border: 2px solid var(--primary-blue);
    background: white;
    color: var(--primary-blue);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
    background: var(--primary-blue);
    color: white;
}

.pagination button.active {
    background: var(--primary-blue);
    color: white;
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Footer */
.footer {
    text-align: center;
    color: white;
    margin-top: 40px;
    padding: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-section p {
    margin: 5px 0;
    opacity: 0.9;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .header {
        padding: 25px;
    }

    .logo-image {
        height: 70px;
    }

    .company-subtitle {
        font-size: 0.95rem;
    }

    .logo i {
        font-size: 40px;
    }

    .seminar-title h2 {
        font-size: 1.5rem;
    }

    .theme {
        font-size: 1rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .form-container,
    .prospects-list {
        padding: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-submit,
    .btn-reset {
        width: 100%;
        justify-content: center;
    }

    .filters {
        flex-direction: column;
    }

    .filters select {
        width: 100%;
    }

    .prospects-table {
        font-size: 0.8rem;
        display: block;
        overflow-x: auto;
    }

    .prospects-table th,
    .prospects-table td {
        padding: 10px 8px;
    }

    .list-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-direction: column;
        text-align: center;
    }

    .form-container h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .section-subtitle {
        margin-left: 0;
        margin-top: 5px;
    }
}
