:root {
    --primary-color: #c7352e;
    --secondary-color: #1fd34a;
    --success-color: #198754;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    background-color: #f6e6e5;
    background-color: #fff;
    font-family: 'Cairo', sans-serif;
     background: linear-gradient(135deg, #c7352e, #b02a24);
     /* background: #fff8f8; */
}
  .status-dot {
            width: 20px;
            height: 20px;
            background: #4caf50;
            border-radius: 50%;
            margin-right: 1rem;
            box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
            animation: blink 2s infinite;
        }
         @keyframes blink {
            0%, 100% {
                opacity: 1;
            }
            50% {
                opacity: 0.3;
            }
        }
main {
    flex: 1;
}

.custom-container{
    max-width: 800px;
}
/*******Timer*************/

.timer {
    position: absolute;
    top: 50px;
    right: 50px;
    border-radius: 46px;
    background-color: #fff;
    width: 270px;
    height: 90px;
    z-index: 10000;
    padding: 10px 15px;
    display: flex;
}
.countdown {
    border-radius: 39px;
    background-color: rgb(255, 255, 255);
    background-color: #1fd34a;
    width: 110px;
    height: 100%;
    text-align: center;
    display: grid;
    place-content: center;

}
.countdown .time {
    font-size: 28px;
    color: #fff;
    font-weight: bold;
    line-height: 1; animation: blink 2s infinite;
}
.timer-heading {
    font-size: 18px;
    color: rgb(44, 42, 42);
    font-weight: bold;
    line-height: 1.4;
    display: grid;
    place-items: center;
    margin-left: auto;
    margin-right: auto;
}
/*************/
.screen {

    background-color:  white ;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
}
 /* En-tête avec logo */
        .header {
            display: flex;
                align-items: center;
              justify-content: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            /* border-bottom: 2px solid #e3f2fd; */
        }

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

        .logo  img{
            max-width: 120px;
            max-width: 90px;
        }

        .logo-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #c7352e 0%, var(--secondary-blue) 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-weight: bold;
            font-size: 24px;
            box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
        }

        .logo-text {
            font-size: 28px;
            font-weight: 800;
            color: #c7352e;
        }

        .logo-text span {
            color: var(--accent-orange);
        }

        .step-indicator {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 600;
            color: var(--dark-gray);
        }

        .step-circle {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background-color: var(--light-blue);
            color: #c7352e;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }

        .step-circle.active {
            background-color: #c7352e;
            color: var(--white);
        }

        /* Écran 1 - Présentation */
        .screen-1 .title {
            color: #c7352e;
            font-size: 32px;
            font-weight: 800;
            margin-bottom: 25px;
            text-align: center;
        }

        .reminder-box {
            background-color: #FFFDE1;

            border-radius: 15px;
            padding: 30px;
            margin-bottom: 40px;
            /* border-right: 5px solid #1fd34a; */
        }

        .reminder-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: 20px;
        }

        .reminder-item:last-child {
            margin-bottom: 0;
        }

        .reminder-icon {
            background-color: #c7352e;
            color:white;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: 15px;
            flex-shrink: 0;
            font-size: 14px;
        }

        .reminder-text {
            font-size: 18px;
            line-height: 1.5;
        }

        .btn-primary {

            color: white;
            border: none;
            padding: 18px 40px;
            font-size: 20px;
            font-weight: 700;
            border-radius: 12px;
            cursor: pointer;
            display: block;
            width: 100%;
            max-width: 400px;
            margin: 0 auto;
            transition: all 0.3s ease;
            box-shadow: 0 6px 15px rgba(0, 86, 179, 0.3);
        }

        #btn-adhere, .btn-primary {
        /* background: linear-gradient(135deg, #1fd34a 0%, #198754 100%); */
        background: #1fd34a;
        color: #fff;
        padding: 14px 30px;
        border-radius: 30px;
        text-decoration: none;
        font-weight: 600;
        transition: transform .2s, box-shadow .2s;
        }
        .btn-primary:hover,.btn-primary:focus,.btn-primary:active {
            transform: translateY(-3px);
            background-color: #198754 !important;

        }

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

/******fin ********/
.header-custom {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-custom {
    background-color: #212529;
    color: white;
    padding: 1.5rem 0;
    margin-top: auto;
}


.form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 1rem 1rem 0 0;
    position: relative;
    overflow: hidden;
}

.form-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

.form-step {
    opacity: 0;
    animation: fadeInUp 0.5s forwards;
}

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

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-control.is-invalid, .form-select.is-invalid {
    border-color: #dc3545;
}

.form-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 1.2rem; display: none;
}
.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    text-align: right;
}
select.form-select{
     width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    text-align: right;
}
.input-with-icon {
    position: relative;
}

.input-with-icon .form-control,
.input-with-icon .form-select {
    padding-left: 3rem;
}

.required-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.optional-badge {
    background: #6c757d;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.consent-box {
    background:#F1F3E0;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.consent-box .form-check-input {
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.2rem;
}

.info-alert {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
    border-radius: 0.5rem;
    padding: 1rem;
}

.btn-submit {

    background: linear-gradient(135deg, #1fd34a 0%, #198754 100%);
   background: #1fd34a;
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
}

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

.btn-back {
    background: white;
    border: 2px solid #6c757d;
    color: #6c757d;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-back:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
}

.loading-spinner {
    display: none;
}

.field-group {
    margin-bottom: 1.5rem;
    animation-delay: 0.1s;
}

.hero-section {
       background: linear-gradient(135deg, #c7352e, #b02a24);
    color: white;
    padding: 3rem 0;
    margin: 0;
    border-radius: 0 0 2rem 2rem;
}

.counter-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.counter-box:hover {
    transform: translateY(-5px);
}

.counter-number {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1fd34a 0%, #1fd34a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-card {
    border-left: 4px solid #667eea;
    background: #f8f9ff;
    transition: all 0.3s;
}

.info-card:hover {
    border-left-width: 8px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.checkbox-wrapper {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 2px solid #667eea;
}

.btn-adhesion {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.3);
    transition: all 0.3s;
}

.btn-adhesion:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-adhesion:disabled {
    background: #6c757d;
    cursor: not-allowed;
    box-shadow: none;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.download-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
@media (max-width: 1440px) {
    .timer {
        position: static;
        top: auto;
        right: auto;
        margin: 10px auto 30px;
    }
}
@media (max-width: 1199.98px) {
    .screen {
        padding: 24px !important;
    }
}
@media (max-width: 767.98px) {
    .screen {
        padding: 24px 16px !important;
    }
}
