/* ============================================
   FORMULAIRE D'ADHÉSION FFPP - Design Moderne
   ============================================ */

* {
    box-sizing: border-box;
}

:root {
    /* Couleurs principales - Bleu FFPP */
    --color-primary: #2563eb;
    --color-primary-dark: #1e40af;
    --color-primary-light: #3b82f6;
    --color-primary-bg: #eff6ff;
    
    /* Couleurs secondaires */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;
    
    /* Nuances de gris */
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    
    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* ============================================
   Layout Principal
   ============================================ */

.adhesion-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #202d4b 0%, #a8c5e8 100%);
    padding: 40px 0px 0px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    position: relative;
    overflow: hidden;
}

.adhesion-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    padding: 40px;
    animation: fadeInUp 0.5s ease;
    position: relative;
    z-index: 10;
}

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

/* ============================================
   En-tête
   ============================================ */

.adhesion-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--color-gray-100);
}

.adhesion-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 10px;
}

.adhesion-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 10px 0;
}

.adhesion-subtitle {
    font-size: 16px;
    color: var(--color-gray-600);
    margin: 0;
}

/* ============================================
   Barre de progression
   ============================================ */

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 0 20px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-gray-200);
    color: var(--color-gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    transition: var(--transition-base);
    margin-bottom: 8px;
}

.step-number.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 0 0 4px var(--color-primary-bg);
}

.step-number.completed {
    background: var(--color-success);
    color: white;
}

.step-label {
    font-size: 13px;
    color: var(--color-gray-600);
    font-weight: 500;
    text-align: center;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--color-gray-200);
    margin: 0 15px;
    position: relative;
    top: -18px;
}

/* ============================================
   Formulaire
   ============================================ */

.adhesion-form {
    margin-top: 30px;
}

.form-step {
    animation: fadeIn 0.3s ease;
}

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

.step-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-gray-800);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

.step-description {
    font-size: 15px;
    color: var(--color-gray-600);
    margin-bottom: 25px;
    margin-top: -20px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--color-gray-700);
    margin-bottom: 8px;
    font-size: 15px;
}

.form-control,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-gray-200);
    border-radius: 8px;
    font-size: 15px;
    transition: var(--transition-fast);
    background: white;
    color: var(--color-gray-800);
    box-sizing: border-box;
}

/* Select multiple styling */
.form-select[multiple] {
    padding: 8px;
}

.form-select[multiple] option {
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 2px;
    cursor: pointer;
    background: white;
    color: var(--color-gray-800);
}

.form-select[multiple] option:checked {
    background: var(--color-primary-bg);
    color: var(--color-primary-dark);
    font-weight: 600;
}

.form-select[multiple] option:hover {
    background: var(--color-gray-100);
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-bg);
}

.form-control::placeholder {
    color: var(--color-gray-400);
}

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

.form-help,
small.form-help {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--color-gray-500);
}

/* ============================================
   Rangées de formulaire
   ============================================ */

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

.form-group-small {
    flex: 0 0 30%;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-group-small {
        flex: 1;
    }
}

/* ============================================
   Checkboxes et Radios
   ============================================ */

.checkbox-grid,
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.form-check {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid var(--color-gray-200);
    border-radius: 8px;
    transition: var(--transition-fast);
    cursor: pointer;
    background: var(--color-gray-50);
}

.form-check:hover {
    border-color: var(--color-primary-light);
    background: var(--color-primary-bg);
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.form-check input[type="checkbox"]:checked,
.form-check input[type="radio"]:checked {
    + label {
        font-weight: 600;
        color: var(--color-primary);
    }
}

.form-check label {
    margin: 0;
    cursor: pointer;
    flex: 1;
    font-weight: 500;
    color: var(--color-gray-700);
}

input[type="checkbox"]:checked + label,
input[type="radio"]:checked + label {
    font-weight: 600;
    color: var(--color-primary);
}

/* Style alternatif pour les radios */
.radio-group .form-check {
    background: white;
    border-width: 2px;
}

.radio-group input[type="radio"]:checked ~ * {
    border-color: var(--color-primary);
    background: var(--color-primary-bg);
}

/* ============================================
   Champs conditionnels
   ============================================ */

.conditional-field {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

/* ============================================
   Boîtes d'information
   ============================================ */

.info-box {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid;
}

.info-box {
    background: var(--color-primary-bg);
    border-color: var(--color-primary);
    color: var(--color-gray-700);
}

.info-box.success {
    background: #d1fae5;
    border-color: var(--color-success);
}

.info-box p {
    margin: 8px 0;
}

.info-box p:first-child {
    margin-top: 0;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Alerts
   ============================================ */

.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: #d1fae5;
    border-color: var(--color-success);
    color: #065f46;
}

.alert-warning {
    background: #fef3c7;
    border-color: var(--color-warning);
    color: #92400e;
}

.alert-error {
    background: #fee2e2;
    border-color: var(--color-error);
    color: #991b1b;
}

.alert-info {
    background: var(--color-primary-bg);
    border-color: var(--color-info);
    color: #1e3a8a;
}

/* ============================================
   Récapitulatif tarif
   ============================================ */

.tarif-summary {
    background: var(--color-gray-50);
    border: 2px solid var(--color-gray-200);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

.tarif-summary h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-gray-800);
    margin: 0 0 20px 0;
}

.tarif-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tarif-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.tarif-row.total {
    border-top: 2px solid var(--color-gray-300);
    margin-top: 10px;
    padding-top: 20px;
}

.tarif-label {
    font-weight: 500;
    color: var(--color-gray-700);
}

.tarif-value {
    font-weight: 600;
    color: var(--color-gray-800);
    font-size: 16px;
}

.tarif-row.total .tarif-value {
    font-size: 24px;
    color: var(--color-primary);
}

.tarif-value.discount {
    color: var(--color-success);
}

/* ============================================
   Boutons
   ============================================ */

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--color-gray-200);
    color: var(--color-gray-700);
}

.btn-secondary:hover {
    background: var(--color-gray-300);
}

.btn-success {
    background: var(--color-success);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-gray-300);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ============================================
   Navigation du formulaire
   ============================================ */

.form-navigation {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--color-gray-100);
}

.btn-prev,
.btn-next,
.btn-submit {
    flex: 1;
    max-width: 200px;
}

.btn-prev {
    margin-right: auto;
}

.btn-next,
.btn-submit {
    margin-left: auto;
}

/* ============================================
   Page de confirmation
   ============================================ */

.confirmation-container {
    text-align: center;
}

.confirmation-header {
    margin-bottom: 40px;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-success);
    color: white;
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s ease;
}

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

.confirmation-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-gray-800);
    margin: 0 0 10px 0;
}

.confirmation-subtitle {
    font-size: 18px;
    color: var(--color-gray-600);
}

.confirmation-content {
    margin-bottom: 30px;
}

.payment-section {
    background: var(--color-gray-50);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.payment-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-gray-800);
    margin-bottom: 15px;
}

.tarif-display {
    background: white;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tarif-display .tarif-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-gray-700);
}

.tarif-display .tarif-amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
}

.btn-payment {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    display: block;
    padding: 18px 32px;
    font-size: 18px;
}

.payment-info {
    margin-top: 20px;
    color: var(--color-gray-600);
}

.help-section {
    margin-top: 40px;
    padding: 25px;
    background: var(--color-primary-bg);
    border-radius: 8px;
}

.help-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-gray-800);
    margin-bottom: 10px;
}

.help-section a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.help-section a:hover {
    text-decoration: underline;
}

.confirmation-footer {
    padding-top: 30px;
    border-top: 2px solid var(--color-gray-100);
}

/* ============================================
   Erreurs de formulaire
   ============================================ */

.form-error,
.invalid-feedback {
    color: var(--color-error);
    font-size: 14px;
    margin-top: 6px;
    display: block;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--color-error);
}

.field-error {
    color: var(--color-error);
    font-size: 14px;
    margin-top: 5px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .adhesion-page {
        padding: 20px 15px;
    }

    .adhesion-container {
        padding: 25px 20px;
    }

    .adhesion-title {
        font-size: 28px;
    }

    .progress-bar {
        padding: 0;
    }

    .step-label {
        font-size: 11px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .progress-line {
        margin: 0 8px;
    }

    .checkbox-grid,
    .radio-group {
        grid-template-columns: 1fr;
    }

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

    .btn-prev,
    .btn-next,
    .btn-submit {
        max-width: 100%;
        width: 100%;
    }

    .tarif-display {
        flex-direction: column;
        gap: 10px;
    }

    .tarif-display .tarif-amount {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .adhesion-title {
        font-size: 24px;
    }

    .step-title {
        font-size: 20px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* ============================================
   Animations et transitions
   ============================================ */

/* ============================================
   Cartes cliquables pour statut et adhésion
   ============================================ */

.status-cards,
.adhesion-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.status-card,
.adhesion-card {
    position: relative;
    border: 2px solid var(--color-gray-200);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
    background: white;
}

.status-card:hover,
.adhesion-card:hover {
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.status-card input[type="radio"],
.adhesion-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.status-card input[type="radio"]:checked + label,
.adhesion-card input[type="radio"]:checked + label {
    color: var(--color-primary);
}

.status-card.selected,
.adhesion-card.selected {
    border-color: var(--color-primary);
    background: var(--color-primary-bg);
    box-shadow: var(--shadow-lg);
}

.status-card label,
.adhesion-card label {
    cursor: pointer;
    margin: 0;
    display: block;
}

.status-title,
.adhesion-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-gray-800);
    display: block;
    transition: var(--transition-fast);
}

/* Chips pour sélections multiples */
.selected-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    min-height: 36px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--color-primary-bg);
    border: 1px solid var(--color-primary-light);
    border-radius: 20px;
    font-size: 14px;
    color: var(--color-primary-dark);
    animation: chipIn 0.2s ease;
}

@keyframes chipIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.chip button {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    line-height: 1;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chip button:hover {
    color: var(--color-primary-dark);
}

/* Radio inline pour Oui/Non syndicat */
.radio-group-inline {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-group-inline > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-group-inline input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--color-primary);
}

.radio-group-inline label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

/* ============================================
   Animations et transitions
   ============================================ */

.form-control,
.form-select,
.btn,
.form-check {
    transition: var(--transition-fast);
}

/* Effet de hover sur les form-checks */
.form-check:has(input:checked) {
    border-color: var(--color-primary);
    background: var(--color-primary-bg);
    box-shadow: var(--shadow-sm);
}

/* Effet disabled */
.btn:disabled,
.form-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   Utilitaires
   ============================================ */

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

.mb-0 {
    margin-bottom: 0;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none !important;
}

/* ============================================
   Animation de Neige - Décembre 🎄
   ============================================ */

.snowflake {
    position: fixed;
    top: -100px;
    color: white;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    user-select: none;
    pointer-events: none;
    z-index: 1;
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* Variantes pour rendre la neige plus naturelle */
.snowflake:nth-child(1) { left: 10%; animation-duration: 16s; animation-delay: 0s; font-size: 1.2em; top: -150px; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 18s; animation-delay: 1s; font-size: 0.8em; top: -300px; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 14s; animation-delay: 2s; font-size: 1em; top: -50px; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 20s; animation-delay: 0.5s; font-size: 1.5em; top: -400px; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 17s; animation-delay: 1.5s; font-size: 0.9em; top: -200px; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 15s; animation-delay: 3s; font-size: 1.3em; top: -250px; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 19s; animation-delay: 2.5s; font-size: 0.7em; top: -100px; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 16s; animation-delay: 1s; font-size: 1.1em; top: -350px; }
.snowflake:nth-child(9) { left: 90%; animation-duration: 18s; animation-delay: 0s; font-size: 0.9em; top: -180px; }
.snowflake:nth-child(10) { left: 15%; animation-duration: 17s; animation-delay: 2s; font-size: 1.4em; top: -220px; }
.snowflake:nth-child(11) { left: 25%; animation-duration: 15s; animation-delay: 1s; font-size: 0.8em; top: -120px; }
.snowflake:nth-child(12) { left: 35%; animation-duration: 19s; animation-delay: 0s; font-size: 1em; top: -380px; }
.snowflake:nth-child(13) { left: 45%; animation-duration: 16s; animation-delay: 2.5s; font-size: 1.2em; top: -160px; }
.snowflake:nth-child(14) { left: 55%; animation-duration: 18s; animation-delay: 1.5s; font-size: 0.9em; top: -280px; }
.snowflake:nth-child(15) { left: 65%; animation-duration: 14s; animation-delay: 3s; font-size: 1.1em; top: -90px; }
.snowflake:nth-child(16) { left: 75%; animation-duration: 20s; animation-delay: 0.5s; font-size: 0.7em; top: -320px; }
.snowflake:nth-child(17) { left: 85%; animation-duration: 17s; animation-delay: 2s; font-size: 1.3em; top: -240px; }
.snowflake:nth-child(18) { left: 95%; animation-duration: 15s; animation-delay: 1s; font-size: 1em; top: -140px; }
.snowflake:nth-child(19) { left: 5%; animation-duration: 16s; animation-delay: 0s; font-size: 0.8em; top: -200px; }
.snowflake:nth-child(20) { left: 12%; animation-duration: 18s; animation-delay: 1.5s; font-size: 1.5em; top: -360px; }
.snowflake:nth-child(21) { left: 18%; animation-duration: 17s; animation-delay: 0.5s; font-size: 1.1em; top: -110px; }
.snowflake:nth-child(22) { left: 28%; animation-duration: 19s; animation-delay: 2s; font-size: 0.9em; top: -290px; }
.snowflake:nth-child(23) { left: 38%; animation-duration: 16s; animation-delay: 1s; font-size: 1.2em; top: -170px; }
.snowflake:nth-child(24) { left: 48%; animation-duration: 15s; animation-delay: 2.5s; font-size: 0.7em; top: -80px; }
.snowflake:nth-child(25) { left: 58%; animation-duration: 18s; animation-delay: 0s; font-size: 1.4em; top: -340px; }
.snowflake:nth-child(26) { left: 68%; animation-duration: 17s; animation-delay: 1.5s; font-size: 1em; top: -210px; }
.snowflake:nth-child(27) { left: 78%; animation-duration: 20s; animation-delay: 3s; font-size: 0.8em; top: -390px; }
.snowflake:nth-child(28) { left: 88%; animation-duration: 16s; animation-delay: 0.5s; font-size: 1.3em; top: -130px; }
.snowflake:nth-child(29) { left: 92%; animation-duration: 15s; animation-delay: 2s; font-size: 0.9em; top: -260px; }
.snowflake:nth-child(30) { left: 8%; animation-duration: 19s; animation-delay: 1s; font-size: 1.1em; top: -190px; }

/* ============================================
   Étoiles de Noël ⭐✨
   ============================================ */

.christmas-star {
    position: fixed;
    color: #ffd700;
    font-size: 1.5em;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.4);
    user-select: none;
    pointer-events: none;
    z-index: 1;
}

@keyframes starFall {
    to {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Positions et variations des étoiles */
.star-1 { left: 15%; top: -80px; animation: starFall 14s ease-in 0s infinite, starTwinkle 2s ease-in-out infinite; }
.star-2 { left: 20%; top: -200px; animation: starFall 14s ease-in 5s infinite, starTwinkle 2s ease-in-out infinite; }
.star-3 { left: 85%; top: -120px; animation: starFall 14s ease-in 10s infinite, starTwinkle 2s ease-in-out infinite; }
.star-4 { left: 22%; top: -150px; animation: starFall 14s ease-in 15s infinite, starTwinkle 2s ease-in-out infinite; }
.star-5 { left: 80%; top: -90px; animation: starFall 14s ease-in 20s infinite, starTwinkle 2s ease-in-out infinite; }
.star-6 { left: 10%; top: -180px; animation: starFall 14s ease-in 25s infinite, starTwinkle 2s ease-in-out infinite; }

/* ============================================
   Page d'accueil adhésion
   ============================================ */

.home-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.carousel-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.carousel-slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(32, 45, 75, 0.9);
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.3);
    font-size: 48px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.carousel-arrow:hover {
    background: rgba(58, 90, 158, 1);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 4px 20px rgba(32, 45, 75, 0.6);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(1.05);
}

.carousel-arrow-left {
    left: -30px;
}

.carousel-arrow-right {
    right: -30px;
}


.home-section {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.home-title {
    color: #202d4b;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-intro {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #333;
}

.home-intro p {
    margin-bottom: 15px;
}

.home-intro .highlight,
.home-block .highlight {
    background: linear-gradient(135deg, #202d4b 0%, #3a5a9e 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    font-weight: 500;
    margin-top: 20px;
}

.home-block {
    margin-bottom: 25px;
}

.home-block h2 {
    color: #202d4b;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.home-block p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
}

.home-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.home-list li {
    padding: 12px 0 12px 35px;
    position: relative;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

.home-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3a5a9e;
    font-weight: bold;
    font-size: 20px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.advantage-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid #3a5a9e;
}

.advantage-card h3 {
    color: #202d4b;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.advantage-card p {
    margin-bottom: 10px;
    color: #555;
    font-size: 15px;
}

.advantage-card ul {
    list-style: none;
    padding-left: 0;
}

.advantage-card ul li {
    padding: 8px 0 8px 25px;
    position: relative;
    font-size: 15px;
    line-height: 1.5;
    color: #444;
}

.advantage-card ul li::before {
    content: "•";
    position: absolute;
    left: 5px;
    color: #3a5a9e;
    font-weight: bold;
    font-size: 20px;
}

.advantages-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.advantage-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #3a5a9e;
}

.advantage-item h3 {
    color: #202d4b;
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}

.advantage-item p {
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
    line-height: 1.4;
}

.advantage-item ul {
    list-style: none;
    padding-left: 0;
    margin: 8px 0;
}

.advantage-item ul li {
    padding: 5px 0 5px 20px;
    position: relative;
    font-size: 14px;
    line-height: 1.4;
    color: #444;
}

.advantage-item ul li::before {
    content: "•";
    position: absolute;
    left: 3px;
    color: #3a5a9e;
    font-weight: bold;
    font-size: 16px;
}

.tarifs-section {
    background: linear-gradient(135deg, #202d4b 0%, #3a5a9e 100%);
    color: white;
}

.tarifs-section .home-title {
    color: white;
}

.tarifs-intro {
    text-align: center;
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: 500;
}

.tarifs-intro-mensuel {
    margin-top: 40px;
    margin-bottom: 20px;
}

.tarifs-grid-annuelle {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.tarifs-grid-mensuelle {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.tarifs-grid-mensuelle .tarif-card {
    max-width: 300px;
}

.tarifs-grid-mensuelle .tarif-label {
    min-height: 40px;
    margin-bottom: 10px;
}

.tarifs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.tarif-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.tarif-card:hover {
    transform: translateY(-5px);
}

.tarif-card-special {
    background: linear-gradient(135deg, #fff9e6 0%, #ffe6b3 100%);
    border: 2px solid #ffd700;
}

.tarif-label {
    color: #202d4b;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tarif-sublabel {
    font-size: 13px;
    font-weight: 400;
    margin-top: 5px;
    color: #555;
}

.tarif-price {
    color: #3a5a9e;
    font-size: 32px;
    font-weight: 700;
}

.tarif-discount {
    color: #27ae60;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    padding: 8px;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 6px;
}

.tarif-note {
    color: #d68910;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
    font-style: italic;
}

.home-cta {
    text-align: center;
    margin: 40px 0;
}

.btn-start-adhesion {
    display: inline-block;
    background: linear-gradient(135deg, #3a5a9e 0%, #202d4b 100%);
    color: white;
    font-size: 24px;
    font-weight: 700;
    padding: 20px 50px;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(32, 45, 75, 0.4);
    transition: all 0.3s ease;
}

.btn-start-adhesion:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(32, 45, 75, 0.6);
    color: white;
}

@media (max-width: 768px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .tarifs-grid {
        grid-template-columns: 1fr;
    }
    
    .home-section {
        padding: 25px;
    }
    
    .home-title {
        font-size: 28px;
    }
}

/* ============================================
   Footer
   ============================================ */

.adhesion-footer {
    background: linear-gradient(135deg, #202d4b 0%, #1a2438 100%);
    color: white;
    padding: 30px 20px;
    margin-top: 40px;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.footer-column {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.footer-column h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.footer-column h3 a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column h3 a:hover {
    color: #a8c5e8;
}

.footer-center p {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
    background: rgba(168, 197, 232, 0.3);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

