* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Page de règlement */
.rules-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
}

.rules-card {
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 100%;
    animation: slideIn 0.5s ease-out;
}

.rules-header {
    text-align: center;
    margin-bottom: 30px;
}

.rules-header h1 {
    color: #333;
    font-size: 2.2em;
    margin-bottom: 10px;
}

.rules-steps {
    margin-bottom: 30px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.step-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.step-number {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content p {
    margin: 0;
    color: #333;
    line-height: 1.6;
    padding-top: 8px;
}

.rules-info {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.rules-info h3 {
    color: #856404;
    margin-top: 0;
    margin-bottom: 15px;
}

.rules-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rules-info li {
    color: #856404;
    padding: 8px 0 8px 25px;
    position: relative;
    list-style: none;
}

.rules-info li:before {
    content: "•";
    position: absolute;
    left: 10px;
    top: 8px;
    font-weight: bold;
}

.rules-info strong {
    color: #ff6b6b;
    text-transform: uppercase;
}

.rules-accept {
    margin: 25px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.1em;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid #667eea;
    border-radius: 6px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark:after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
}

.checkbox-text {
    color: #333;
}

.btn-continue {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: block;
    text-align: center;
}

.btn-continue:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-continue:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Fix pour centrer le texte dans tous les boutons pleine largeur */
button[class*="btn-"] {
    text-align: center;
}

/* Formulaire d'inscription */
.form-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
}

.form-card {
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    animation: slideIn 0.5s ease-out;
}

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

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.form-header p {
    color: #666;
    font-size: 1.1em;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    color: #666;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Désactiver les styles de validation du navigateur */
.form-group input:invalid {
    box-shadow: none !important;
    outline: none !important;
    border-color: #e0e0e0 !important;
}

.form-group input:valid {
    box-shadow: none !important;
    outline: none !important;
    border-color: #e0e0e0 !important;
}

.form-group input::-webkit-validation-bubble,
.form-group input::-webkit-validation-bubble-message {
    display: none !important;
}

/* Désactiver les styles de validation pour Firefox */
.form-group input:-moz-ui-invalid {
    box-shadow: none !important;
    border-color: #e0e0e0 !important;
}

/* Désactiver complètement la validation visuelle */
.form-group input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Nouveau style pour les sélecteurs de date */
.date-range-group {
    margin-bottom: 25px;
}

.date-inputs {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-input-wrapper {
    flex: 1;
}

.sub-label {
    font-size: 0.85em !important;
    color: #666 !important;
    font-weight: 500 !important;
    margin-bottom: 5px !important;
}

.date-separator {
    font-size: 24px;
    color: #667eea;
    margin-top: 25px;
}

.date-input-wrapper input {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.date-input-wrapper input::placeholder {
    color: #aaa;
    font-family: 'Poppins', sans-serif;
    letter-spacing: normal;
}

/* Personnalisation Flatpickr */
.flatpickr-calendar {
    font-family: 'Poppins', sans-serif !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    border-radius: 10px !important;
}

.flatpickr-day.selected {
    background: #667eea !important;
    border-color: #667eea !important;
}

.flatpickr-day.selected:hover {
    background: #764ba2 !important;
    border-color: #764ba2 !important;
}

.flatpickr-current-month {
    font-weight: 600 !important;
}

.flatpickr-calendar .flatpickr-innerContainer {
    border-radius: 0 0 10px 10px !important;
}

.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    cursor: pointer;
    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 15px center;
    background-size: 20px;
}

.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Style pour mobile */
@media (max-width: 600px) {
    .date-inputs {
        flex-direction: column;
        gap: 10px;
    }
    
    .date-separator {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .date-input-wrapper {
        width: 100%;
    }
}

.btn-submit {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    margin-bottom: 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Container principal */
.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.98);
    padding: 40px 30px 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
}

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

.header-section {
    margin-bottom: 30px;
}

.header-section h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.welcome-message {
    color: #666;
    font-size: 1.2em;
}

.welcome-message #userName {
    color: #667eea;
    font-weight: 600;
}

/* Roue */
.wheel-container {
    position: relative;
    margin: 0 auto 30px;
    width: min(400px, 85vw, 70vh);
    height: min(400px, 85vw, 70vh);
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid #ff6b6b;
    z-index: 10;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.wheel {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 4s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
    transform-origin: center center;
    -webkit-transform-origin: center center;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

#wheelCanvas {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* Contrôles */
.controls {
    margin: 20px 0;
    padding: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    margin: 0;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.btn-spin {
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-spin:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-spin:hover:before {
    left: 100%;
}

.btn-spin:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.5);
}

.btn-spin:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 1.2em;
}

/* Résultat */
.result {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border-radius: 15px;
    margin: 0;
    opacity: 0;
    transition: all 0.5s ease;
    border: 2px solid transparent;
}

.result.show {
    opacity: 1;
    padding: 20px;
    background: linear-gradient(45deg, #f093fb20 0%, #f5576c20 100%);
    border-color: #f093fb;
    margin-top: 20px;
    min-height: 60px;
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border: none;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

#rewardsList {
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
}

.reward-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.reward-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.reward-item button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.reward-item button:hover {
    background: #ff5252;
    transform: scale(1.05);
}

.add-reward {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.add-reward input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.add-reward input:focus {
    outline: none;
    border-color: #4caf50;
}

.add-reward button {
    background: #4caf50;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-reward button:hover {
    background: #45a049;
    transform: scale(1.05);
}

.btn-save {
    background: linear-gradient(45deg, #56ab2f 0%, #a8e063 100%);
    color: white;
    width: 100%;
    margin-top: 20px;
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(86, 171, 47, 0.4);
}

/* Responsive - Tablettes */
@media (max-width: 768px) {
    .form-card {
        padding: 30px 20px;
        max-width: 100%;
        margin: 10px;
    }
    
    .form-header h1 {
        font-size: 1.8em;
        line-height: 1.2;
    }

    .form-header p {
        font-size: 0.95em;
        white-space: normal;
    }
    
    .container {
        padding: 25px 15px;
    }
    
    .header-section h1 {
        font-size: 1.6em;
        line-height: 1.2;
        margin-bottom: 8px;
    }

    .welcome-message {
        font-size: 1em;
        line-height: 1.3;
    }

    .info-message {
        font-size: 0.9em;
        padding: 0 10px;
    }
    
    .wheel-container {
        width: min(300px, 80vw);
        height: min(300px, 80vw);
        margin: 15px auto;
    }
    
    #wheelCanvas {
        width: 100%;
        height: 100%;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 15px;
        white-space: nowrap;
    }

    .btn-spin {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .result {
        font-size: 18px;
        padding: 15px;
        line-height: 1.4;
    }

    /* Modals */
    .modal-content {
        margin: 5% auto;
        padding: 25px;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .reward-modal-content {
        padding: 40px 25px;
        width: 95%;
        max-width: 450px;
    }

    .modal-title {
        font-size: 2em;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .reward-text {
        font-size: 1.3em;
        padding: 15px;
        line-height: 1.3;
    }

    .final-step p {
        font-size: 1em;
        line-height: 1.4;
        margin: 12px 0;
    }

    .action-text {
        font-size: 1.1em !important;
        line-height: 1.3;
        padding: 0 10px;
    }

    .validation-text {
        font-size: 0.95em !important;
        line-height: 1.4;
    }

    .btn-airbnb {
        font-size: 16px !important;
        padding: 10px 25px !important;
        white-space: nowrap;
    }

    /* Règles */
    .rules-card {
        padding: 30px 20px;
        max-width: 100%;
        margin: 10px;
    }

    .rules-header h1 {
        font-size: 1.8em;
        line-height: 1.2;
    }

    .step-content p {
        font-size: 0.9em;
        line-height: 1.4;
    }

    .rules-info {
        padding: 15px;
    }

    .rules-info h3 {
        font-size: 1.1em;
        line-height: 1.2;
    }

    .rules-info li {
        font-size: 0.9em;
        line-height: 1.4;
    }

    /* Success page */
    .success-card {
        padding: 30px 25px;
        max-width: 90%;
    }

    .success-card h2 {
        font-size: 1.8em;
        line-height: 1.2;
    }

    .main-message {
        font-size: 1.2em;
        line-height: 1.4;
        margin-bottom: 25px;
    }

    .success-message {
        padding: 25px 30px;
    }
    
    .success-message p {
        font-size: 1.05em;
        line-height: 1.5;
    }

    .enjoy-message {
        font-size: 1.1em !important;
        line-height: 1.3;
    }
}

/* Optimisation pour la page de remerciement sur mobile */
@media (max-width: 768px) {
    .success-message p {
        font-size: 1.1em !important;
        line-height: 1.4 !important;
    }
    
    .success-message p:first-child {
        margin-bottom: 15px !important;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    body {
        padding: 5px;
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .form-card {
        padding: 20px 15px;
        border-radius: 15px;
        margin: 5px;
    }
    
    .form-header {
        margin-bottom: 20px;
    }

    .form-header h1 {
        font-size: 1.5em;
        line-height: 1.2;
        margin-bottom: 8px;
    }
    
    .form-header p {
        font-size: 0.9em;
        line-height: 1.3;
    }

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

    .form-group label {
        font-size: 0.9em;
        margin-bottom: 5px;
    }

    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 16px; /* Empêche le zoom sur iOS */
    }

    /* Date inputs */
    .date-range-group {
        margin-bottom: 20px;
    }

    .date-inputs {
        flex-direction: column;
        gap: 15px;
    }

    .date-separator {
        display: none;
    }

    .date-input-wrapper {
        width: 100%;
    }

    .sub-label {
        font-size: 0.8em !important;
    }

    /* Container principal */
    .container {
        padding: 20px 10px;
        border-radius: 15px;
    }
    
    .header-section h1 {
        font-size: 1.4em;
        line-height: 1.2;
        margin-bottom: 5px;
    }
    
    .welcome-message {
        font-size: 0.95em;
        line-height: 1.3;
        margin-bottom: 5px;
    }

    .info-message {
        font-size: 0.85em;
        line-height: 1.3;
        padding: 0 5px;
    }
    
    /* Roue */
    .wheel-container {
        width: min(280px, 85vw);
        height: min(280px, 85vw);
        margin: 10px auto;
    }

    .marker {
        top: -15px;
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-top: 30px solid #ff6b6b;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 14px;
        border-radius: 25px;
        white-space: nowrap;
    }

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

    .btn-submit {
        font-size: 16px;
        padding: 10px 15px;
        margin-top: 15px;
    }
    
    .result {
        font-size: 16px;
        padding: 12px;
        line-height: 1.4;
    }
    
    /* Modals */
    .modal-content {
        margin: 3% auto;
        padding: 20px 15px;
        width: 98%;
        border-radius: 15px;
        max-height: 95vh;
    }

    .reward-modal-content {
        padding: 25px 15px;
        width: 92%;
        max-width: 100%;
        border-radius: 15px;
        max-height: 80vh;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .modal-title {
        font-size: 1.6em;
        line-height: 1.2;
        margin-bottom: 15px;
        white-space: normal;
    }

    .modal-body {
        padding: 0;
    }

    .reward-text {
        font-size: 1.1em;
        padding: 12px;
        line-height: 1.3;
        margin: 15px 0;
        white-space: normal;
    }

    .final-step {
        padding: 20px 15px;
        margin-top: 20px;
    }

    .final-step p {
        font-size: 0.95em;
        line-height: 1.4;
        margin: 10px 0;
        white-space: normal;
    }

    .action-text {
        font-size: 1.05em !important;
        line-height: 1.3;
        margin: 15px 0 !important;
        white-space: normal;
    }

    .validation-text {
        font-size: 0.9em !important;
        line-height: 1.4;
        white-space: normal;
    }

    .btn-airbnb {
        font-size: 15px !important;
        padding: 8px 20px !important;
        border-radius: 25px;
        white-space: nowrap;
        display: inline-block !important;
    }

    /* Règles */
    .rules-card {
        padding: 25px 15px;
        border-radius: 15px;
        margin: 5px;
    }

    .rules-header h1 {
        font-size: 1.5em;
        line-height: 1.2;
        margin-bottom: 8px;
    }

    .rules-steps {
        margin-bottom: 20px;
    }

    .step-item {
        padding: 12px;
        margin-bottom: 15px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1em;
        margin-right: 15px;
    }

    .step-content p {
        font-size: 0.85em;
        line-height: 1.4;
        white-space: normal;
    }

    .rules-info {
        padding: 12px;
        margin-bottom: 20px;
    }

    .rules-info h3 {
        font-size: 1em;
        margin-bottom: 10px;
        line-height: 1.2;
    }

    .rules-info li {
        font-size: 0.85em;
        line-height: 1.4;
        padding: 5px 0 5px 20px;
        white-space: normal;
    }

    .rules-info li:before {
        left: 5px;
        top: 5px;
    }

    .checkbox-container {
        font-size: 0.95em;
    }

    .checkmark {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }

    .btn-continue {
        font-size: 16px;
        padding: 10px 15px;
    }

    /* Success page */
    .success-container {
        padding: 10px;
    }

    .success-card {
        padding: 25px 20px;
        border-radius: 15px;
        max-width: 95%;
    }

    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
        margin-bottom: 15px;
    }

    .success-card h2 {
        font-size: 1.5em;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .main-message {
        font-size: 1.1em;
        line-height: 1.4;
        margin-bottom: 20px;
        white-space: normal;
        padding: 0 10px;
    }

    .success-message {
        padding: 20px 25px;
    }

    .success-message p {
        font-size: 1em;
        line-height: 1.4;
        margin-bottom: 12px;
        white-space: normal;
        word-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
    }
    
    .success-message p:first-child {
        margin-bottom: 10px;
    }

    .enjoy-message {
        font-size: 1em !important;
        line-height: 1.3;
        margin: 20px 0 !important;
        white-space: normal;
    }

    .signature {
        font-size: 0.9em !important;
        margin-top: 15px !important;
    }

    /* CGU Modal */
    #cguModal .modal-content {
        padding: 15px;
    }

    #cguModal h2 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }

    #cguModal h3 {
        font-size: 1.1em;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    #cguModal p,
    #cguModal li {
        font-size: 0.85em;
        line-height: 1.4;
    }

    /* Learn more button */
    .learn-more-btn {
        font-size: 14px;
        padding: 10px 24px;
        margin-top: 15px;
        white-space: nowrap;
    }
}

/* Très petits écrans */
@media (max-width: 360px) {
    .form-header h1 {
        font-size: 1.3em;
    }
    
    /* Optimisations supplémentaires pour la page de succès */
    .success-card {
        padding: 20px 15px;
    }
    
    .success-message {
        padding: 15px 20px;
    }
    
    .success-message p {
        font-size: 0.95em !important;
        line-height: 1.35 !important;
        margin-bottom: 10px !important;
    }
    
    .main-message {
        font-size: 1em !important;
        padding: 0 5px;
    }
    
    .enjoy-message {
        font-size: 1.05em !important;
    }

    .header-section h1 {
        font-size: 1.2em;
    }

    .wheel-container {
        width: min(260px, 90vw);
        height: min(260px, 90vw);
    }

    .modal-title {
        font-size: 1.4em;
    }

    .btn {
        padding: 6px 14px;
        font-size: 13px;
    }

    .btn-spin {
        padding: 8px 16px;
        font-size: 14px;
    }

    /* Reward modal pour très petits écrans */
    .reward-modal-content {
        padding: 20px 12px;
        width: 95%;
        max-height: 85vh;
    }

    .reward-text {
        font-size: 1em;
        padding: 10px;
    }

    .final-step {
        padding: 15px 10px;
    }

    .final-step p {
        font-size: 0.85em;
        margin: 8px 0;
    }

    .btn-airbnb {
        font-size: 14px !important;
        padding: 6px 16px !important;
    }
}

/* Modal de récompense spectaculaire */
.reward-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.reward-modal-content {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalPopIn 0.5s ease-out;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) transparent;
}

.reward-modal-content::-webkit-scrollbar {
    width: 6px;
}

.reward-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.reward-modal-content::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

@keyframes modalPopIn {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.02);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.modal-title {
    color: #333;
    font-size: 2.8em;
    margin-bottom: 30px;
    font-weight: 700;
}

.modal-body {
    margin: 20px 0;
}

.reward-text {
    font-size: 1.6em;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    display: inline-block;
}

.final-step {
    background: #f8f9fa;
    padding: 35px;
    border-radius: 20px;
    margin-top: 30px;
    border: 2px solid #e9ecef;
}

.final-step p {
    font-size: 1.2em;
    line-height: 1.8;
    margin: 15px 0;
    color: #555;
}

.action-text {
    font-size: 1.4em !important;
    color: #333 !important;
    font-weight: 700;
    margin: 25px 0 !important;
}

.validation-text {
    color: #28a745 !important;
    font-weight: 600;
    font-size: 1.1em !important;
}

.btn-airbnb:hover {
    background: #E41E3F !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 90, 95, 0.4);
}

@keyframes modalPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.trophy-icon {
    font-size: 80px;
    animation: bounce 1s infinite;
    margin-bottom: 20px;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.reward-title {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 60px rgba(255, 255, 255, 0.8);
    }
}

.reward-text {
    font-size: 1.8em;
    font-weight: 600;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.reward-info {
    margin: 30px 0;
    font-size: 1.1em;
}

.reward-info p {
    margin: 10px 0;
    opacity: 0.9;
}

.btn-continue {
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 14px 40px;
    border: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.5);
    animation: pulse 2s infinite;
}

.btn-continue:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(240, 147, 251, 0.7);
}

/* Canvas confettis */
#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1999;
}

/* Optimisations pour mobile */
@media (orientation: portrait) {
    .container {
        padding: 15px;
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    /* Optimisations spécifiques pour la page de succès en portrait */
    .success-card {
        max-width: 100%;
        padding: 30px 25px;
    }
    
    .success-message {
        padding: 25px 30px;
    }
    
    .success-message p {
        font-size: 1.05em;
        line-height: 1.5;
    }
    
    .form-container {
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .rules-container {
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .wheel-section {
        padding: 20px 15px;
    }
    
    .wheel-container {
        margin: 10px auto;
        flex-shrink: 0;
    }
    
    /* Ajustements pour le modal de récompense en portrait */
    .reward-modal-content {
        padding: 30px 20px;
        width: 95%;
        max-width: 400px;
    }
    
    .trophy-icon {
        font-size: 60px;
        margin-bottom: 15px;
    }
    
    .reward-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    
    .reward-text {
        font-size: 1.4em;
    }
    
    .reward-info p {
        font-size: 0.9em;
    }
    
    .btn-continue {
        padding: 10px 25px;
        font-size: 1em;
    }
}

/* Optimisations mobiles */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    .wheel {
        transition: transform 3.5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
        -webkit-transition: -webkit-transform 3.5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    }
    
    .btn-spin:before {
        display: none;
    }
    
    /* Empêcher le zoom sur les inputs */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    select {
        font-size: 16px !important;
    }
    
    /* Améliorer le scroll */
    .modal-content,
    .modal-body {
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
    }
}

/* Animation de démarrage */
.wheel-starting {
    animation: wheelStart 0.5s ease-out;
}

@keyframes wheelStart {
    0% {
        transform: rotate(0deg) scale(1);
    }
    100% {
        transform: rotate(10deg) scale(1.02);
    }
}

/* Animation pendant la rotation */
.wheel-spinning {
    animation: wheelPulse 0.8s ease-in-out infinite;
}

@keyframes wheelPulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.1);
    }
}

/* Message d'erreur pour doublon */
.error-message {
    background: #ff6b6b;
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

/* Bouton En savoir plus */
.learn-more-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.learn-more-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.learn-more-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

.modal-body {
    padding: 40px;
    max-height: calc(85vh - 40px);
    overflow-y: auto;
}

.modal-body h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.modal-body h3 {
    color: #555;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.modal-body p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-body ul {
    color: #666;
    margin-left: 20px;
    margin-bottom: 15px;
}

.modal-body ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #000;
}

/* Success container */
.success-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1000;
}

.success-card {
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 95%;
    text-align: center;
    animation: slideIn 0.5s ease-out;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4ECDC4 0%, #45B7D1 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 20px;
    animation: pulse 2s ease-in-out infinite;
}

.success-card h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 2.2em;
    font-weight: 700;
}

.main-message {
    color: #333;
    font-size: 1.4em;
    margin-bottom: 30px;
    margin-top: 10px;
    font-weight: 600;
}

.success-message {
    background: #f8f9fa;
    padding: 35px 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.success-message p {
    color: #555;
    font-size: 1.15em;
    line-height: 1.6;
    margin-bottom: 20px;
    white-space: normal;
}

.enjoy-message {
    color: #667eea !important;
    font-size: 1.2em !important;
    font-weight: 600;
    margin: 15px 0 10px !important;
    line-height: 1.4 !important;
}

.signature {
    color: #999 !important;
    font-style: italic;
    margin-top: 15px !important;
    font-size: 0.95em !important;
}

.success-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    text-align: left;
}

.success-info p {
    margin: 10px 0;
    font-size: 1em;
}

.next-steps {
    text-align: left;
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-radius: 15px;
}

.next-steps h3 {
    color: #333;
    margin-bottom: 15px;
}

.next-steps ol {
    margin-left: 20px;
    color: #666;
}

.next-steps li {
    margin: 10px 0;
    line-height: 1.6;
}