:root {
    --color-primary: #007bff;
    --color-light: #f8f9fa;
    --color-dark: #333;
    --color-grey: #e9ecef;
    --color-selected: rgba(0, 123, 255, 0.2);
    --border-radius: 8px;
}

body {
    min-height: 100vh;
    background: #020024;
    background: linear-gradient(90deg,rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 23%, rgba(0, 212, 255, 1) 100%);
    padding: 20px;
    -webkit-tap-highlight-color: transparent;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
}

p {
		color: var(--color-light);
}

h1 {
	font-family: "Archivo Black", sans-serif;
    font-weight: 800;
    font-style: normal;
	color: var(--color-light);
	 text-align: center;
}

.info {
	color: var(--color-light);
}

.select-grid {
    display: grid;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .select-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .select-grid { grid-template-columns: 1fr; }
    .custom-select-wrapper { width: 100%; }
}

/* ===== CUSTOM SELECT ===== */
.custom-select-wrapper {
    position: relative;
    width: 100%;
    margin: 0;
    z-index: 1;
}

.custom-select-wrapper.open { z-index: 999; }
.custom-select-wrapper select { display: none; }

.custom-select {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 18px;
    background-color: #ffffff;
    cursor: pointer;
    user-select: none;
    transition: box-shadow 0.3s ease, border-radius 0.3s ease;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    outline: none;
}

.custom-select.open {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-radius: 20px 20px 0 0;
}

.custom-select-trigger {
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 30px);
}

.arrow {
    margin-left: 10px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease; 
	font-size:35px;
}
/*
.arrow.material-symbols-outlined {
            font-variation-settings:
                'FILL' 0,
                'wght' 400,
                'GRAD' 0,
                'opsz' 24;
            
            font-size: 2.1em; 
            color: #555;     
            transition: transform 0.3s ease;
            user-select: none;
        }
*/

.custom-select.open .arrow {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    max-height: 220px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.custom-options.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    cursor: pointer;
    position: relative;
}

.custom-option:hover { background-color: #f0f0f0; }

.custom-select-wrapper.single-select .custom-option { padding: 12px 20px; }
.custom-select-wrapper.single-select .custom-option.selected {
    background-color: #e0e0e0;
    font-weight: bold;
}
.custom-select-wrapper.single-select .custom-checkbox { display: none; }

.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.custom-checkbox::after {
    content: '✓';
    color: white;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-option.selected .custom-checkbox {
    background-color: #474bff;
    border-color: #474bff;
}

.custom-option.selected .custom-checkbox::after { opacity: 1; }

.custom-option-filter {
    padding: 8px 12px;
    cursor: default;
    position: sticky;
    top: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    z-index: 100;
}

.custom-option-filter input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 50px;
    box-sizing: border-box;
    font-size: 14px;
    outline: none;
}

.custom-option-filter input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0,123,255,0.5);
}

/* ===== INPUT DATE ===== */
.input-group { margin: 0 20px 0 0; }

#birthday {
    width: 100%;
    padding: 16px 15px;
    font-size: 16px;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 50px;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

#birthday:focus {
    outline: none;
    box-shadow: 0 12px 16px rgba(0,0,0,0.1);
}

.message {
    margin-top: 10px;
    font-size: 13px;
    min-height: 20px;
}

.error-message { color: #e74c3c; }
.success-message { color: #2ecc71; }

/* ===== DATE PICKER ===== */
.date-picker-container {
    position: relative;
    width: 100%;
}

#dateInput {
    width: 100%;
    padding: 16px 15px;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 50px;
    cursor: pointer;
    box-sizing: border-box;
    border: none;
}

#dateInput:focus {
    outline: none;
    box-shadow: 0 12px 16px rgba(0,0,0,0.1);
}

#calendarWrapper {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 620px;
    max-width: 90vw;
    padding: 15px;
    box-sizing: border-box;
}

#calendarWrapper.visible { display: block; }

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.calendar-nav {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-primary);
    padding: 5px 6px 5px 0;
    border-radius: 50px;
}

.calendar-nav:hover:not(:disabled) { background-color: var(--color-grey); }
.calendar-nav:disabled {
    color: #F1F1F1;
    cursor: not-allowed;
}

.calendar-title {
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    flex-grow: 1;
}

.calendar-months {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.calendar-month { width: 100%; }

.month-name {
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: var(--color-dark);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 38px;
    text-align: center;
    font-size: 0.9em;
    color: var(--color-dark);
}

.day-header {
    font-weight: 600;
    color: #777;
    font-size: 0.8em;
}

.day-cell {
    cursor: pointer;
    border-radius: 50%;
    position: relative;
}

.day-cell:not(.disabled):hover { background-color: var(--color-grey); }
.day-cell.today {
    font-weight: bold;
    border: 1px solid var(--color-primary);
}

.day-cell.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.day-cell.selected-start,
.day-cell.selected-end {
    background-color: var(--color-primary);
    color: #fff;
}

.day-cell.in-range {
    background-color: var(--color-selected);
    border-radius: 0;
}

.day-cell.selected-start.in-range { border-radius: 50% 0 0 50%; }
.day-cell.selected-end.in-range { border-radius: 0 50% 50% 0; }
.day-cell.selected-start:not(.selected-end) { border-radius: 50% 0 0 50%; }
.day-cell.selected-end:not(.selected-start) { border-radius: 0 50% 50% 0; }
.day-cell.selected-start.selected-end { border-radius: 50%; }

.calendar-footer {
    text-align: right;
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-top: 15px;
}

#resetDates {
    background: none;
    border: 1px solid #ccc;
    color: #555;
    padding: 8px 8px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s; 
	width:120px;
}

#resetDates:hover { background-color: var(--color-grey); }

@media (max-width: 650px) {
    #calendarWrapper {
        width: 320px;
        max-width: 95vw;
        left: 0;
        transform: translateX(0);
    }
    .calendar-months {
        flex-direction: column;
        gap: 25px;
    }
}

/* ===== PASSWORD INPUT ===== */
.password-container { position: relative; width: 100%; }
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

#passwordInput {
    width: 100%;
    padding: 16px 45px 16px 15px;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    background: white;
    border: none;
}

#passwordInput:focus { box-shadow: 0 12px 16px rgba(0,0,0,0.1); }

.toggle-password {
    position: absolute;
    right: 15px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s ease;
}

.toggle-password:hover { transform: scale(1.1); }
.toggle-password:active { transform: scale(0.95); }

.eye-icon {
    width: 24px;
    height: 24px;
    fill: #666;
    transition: fill 0.3s ease;
}

.toggle-password:hover .eye-icon { fill: #667eea; }

/* ===== CHECKBOX ===== */
.checkbox-wrapper .input {
    display: none;
    visibility: hidden;
}

.checkbox-wrapper .checkbox {
    margin: auto;
    user-select: none;
    cursor: pointer;
}

.checkbox-wrapper .checkbox span {
    display: inline-block;
    vertical-align: middle;
}

.checkbox-wrapper .checkbox span:first-child {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1.3px solid #dbdcef;
	background-color: #dbdcef;
    transition: all 0.2s ease;
}

.checkbox-wrapper .checkbox span:first-child svg {
    width: 16px;
    height: 13.3px;
    position: absolute;
    top: 4px;
    left: 2.7px;
    fill: none;
    stroke: #FFFFFF;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 16px;
    stroke-dashoffset: 16px;
    transition: all 0.3s ease;
    transition-delay: 0.1s;
}

.checkbox-wrapper .checkbox span:first-child:before {
    content: "";
    width: 100%;
    height: 100%;
    background: #474bff;
    display: block;
    transform: scale(0);
    opacity: 1;
    border-radius: 50%;
}

.checkbox-wrapper .checkbox span:last-child { padding-left: 10px; }
.checkbox-wrapper .checkbox:hover span:first-child { border-color: #474bff; }

.checkbox-wrapper .input:checked + .checkbox span:first-child {
    background: #474bff;
    border-color: #474bff;
    animation: wave 0.4s ease;
}

.checkbox-wrapper .input:checked + .checkbox span:first-child svg { stroke-dashoffset: 0; }

.checkbox-wrapper .input:checked + .checkbox span:first-child:before {
    transform: scale(3.5);
    opacity: 0;
    transition: all 0.6s ease;
}

@keyframes wave {
    50% { transform: scale(0.9); }
}

/* ===== TOGGLE SWITCH ===== */
.switch-wrapper .input {
    visibility: hidden;
    display: none;
}

.switch-wrapper .toggle {
    position: relative;
    display: block;
    width: 51.2px;
    height: 25.6px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.switch-wrapper .toggle:before {
    content: "";
    position: relative;
    top: 3.8px;
    left: 3.8px;
    width: 43.5px;
    height: 17.9px;
    display: block;
    background: #9A9999;
    border-radius: 10.2px;
    transition: background 0.2s ease;
}

.switch-wrapper .toggle span {
    position: absolute;
    top: 0;
    left: 0;
    width: 25.6px;
    height: 25.6px;
    display: block;
    background: white;
    border-radius: 12.8px;
    box-shadow: 0 3px 8px rgba(154, 153, 153, 0.5);
    transition: all 0.2s ease;
}

.switch-wrapper .toggle span:before {
    content: "";
    position: absolute;
    display: block;
    margin: -23px;
    width: 71.7px;
    height: 71.7px;
    background: rgba(71,75,255,0.5);
    border-radius: 50%;
    transform: scale(0);
    opacity: 1;
    pointer-events: none;
}

.switch-wrapper .input:checked + .toggle:before { background: #9396ff; }

.switch-wrapper .input:checked + .toggle span {
    background: #474bff;
    transform: translateX(25.6px);
    transition: all 0.2s cubic-bezier(0.8, 0.4, 0.3, 1.25), background 0.15s ease;
    box-shadow: 0 3px 8px rgba(71,75,255,0.2);
}

.switch-wrapper .input:checked + .toggle span:before {
    transform: scale(1);
    opacity: 0;
    transition: all 0.4s ease;
}

/* ===== RADIO BUTTON ===== */
@keyframes single-glow {
    0% { box-shadow: 0 0 0 rgba(0, 150, 255, 0); }
    50% { box-shadow: 0 0 40px 5px rgba(0, 150, 255, 0.9); }
    100% { box-shadow: 0 0 20px 2px rgba(0, 150, 255, 0.7); }
}

.container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    cursor: pointer;
    font-size: 22px;
    user-select: none;
}

.container input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #ccc;
    border: 2px solid #ccc;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.container:hover input ~ .checkmark { background-color: #ccc; }

.container input:checked ~ .checkmark {
    /*background: linear-gradient(135deg, #cccdff, #474bff);*/
	background-color:#474bff;
    border-color: #474bff;
    animation: single-glow 0.8s forwards;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.container input:checked ~ .checkmark:after { display: block; }

.container .checkmark:after {
    top: 6px;
    left: 6px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    /*background: linear-gradient(135deg, #ffffff, #f0f0f0);*/
	background-color:white;
    transition: all 0.3s ease;
}
/* ===== Counteur ===== */

        .counter-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
        }

        button {
            width: 60px;
            height: 60px;
            font-size: 34px;
            font-weight: 100;
            border: none;
            border-radius: 50%;
            color: #555;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        }

        button:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
        }

        button:active {
            transform: scale(0.95);
        }

        button:disabled {
            background: #ccc;
            cursor: not-allowed;
            box-shadow: none;
        }

        button:disabled:hover {
            transform: scale(1);
        }
        /*
		#decrementBtn .material-symbols-outlined, #incrementBtn .material-symbols-outlined {
            font-variation-settings:
                'FILL' 0,
                'wght' 100,
                'GRAD' 0,
                'opsz' 24;
            
            font-size: 1.5em; 
            color: #555;     
            transition: transform 0.3s ease;
            user-select: none;
        }
		*/

        #counterInput {
            width: 120px;
            height: 60px;
            font-size: 36px;
            font-weight: bold;
            text-align: center;
            border-radius: 50px;
			box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            outline: none;
            transition: all 0.3s ease;
			border:none;
        }

         #counterInput:focus {
            outline: none;
            box-shadow: 0 12px 16px rgba(0,0,0,0.1);
        }

        /* Masquer les flèches du input number */
         #counterInput::-webkit-inner-spin-button,
         #counterInput::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

         #counterInput {
            -moz-appearance: textfield;
        }

        .info {
            margin-top: 20px;
            color: #666;
            font-size: 14px;
        }
		
		