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

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&family=Archivo+Black&display=swap');

body {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #F7F7F7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 7.6vh 3.25vw;
    color: #1e1e1d;
}

.container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    flex: 1;
}

.logo-container {
    flex-shrink: 0;
}

.form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Media queries pour responsive */
@media (max-width: 768px) {
    /* Tablette */
    body {
        padding: 2.5vh 5vw;
    }

    .container {
        max-width: 90%;
    }

    .form-container {
        padding: 3.2vh 3.75vw;
    }
}

@media (max-width: 480px) {
    /* Mobile */
    body {
        padding: 2.5vh 3.75vw;
    }

    .container {
        max-width: 100%;
    }

    .form-container {
        padding: 2.5vh 3.75vw;
        border-radius: 1.9vh;
    }

    .form-title {
        font-size: 1.25rem;
    }

    .logo-svg,
    .logo {
        width: 12.7vh;
        height: 12.7vh;
    }
}

/* Logo */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    position: relative;
}

.logo-svg {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f658e 0%, #649d50 50%, #f08d35 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(30, 30, 29, 0.1);
}

.logo::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(100, 157, 80, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(240, 141, 53, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(110, 111, 117, 0.2) 0%, transparent 60%);
    border-radius: 50%;
}

.logo-text {
    font-family: 'Archivo Black', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #F7F7F7;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    font-style: italic;
}

/* Conteneur du formulaire */
.form-container {
    width: 100%;
    background-color: #F7F7F7;
    border: 2px solid #649d50;
    border-radius: 20px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 24px;
    font-weight: 400;
    text-align: center;
    color: #1e1e1d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* Étapes du formulaire */
.form-step {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.form-step.active {
    display: flex;
}

/* Groupes de formulaire */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 16px;
    font-weight: 700;
    color: #1e1e1d;
    text-transform: capitalize;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background-color: #F7F7F7;
    border: 1px solid #6e6f75;
    border-radius: 10px;
    font-size: 16px;
    color: #1e1e1d;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #1f658e;
    background-color: #F7F7F7;
    box-shadow: 0 0 0 2px rgba(31, 101, 142, 0.1);
}

.form-input::placeholder {
    color: #999999;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231f658e' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form-select:focus {
    border-color: #1f658e;
    background-color: #F7F7F7;
    box-shadow: 0 0 0 2px rgba(31, 101, 142, 0.1);
}

.form-select:disabled {
    background-color: #6e6f75;
    cursor: not-allowed;
    opacity: 0.4;
}

/* Date selector */
.date-selector {
    display: grid;
    grid-template-columns: 1fr 2fr 1.5fr;
    gap: 10px;
    width: 100%;
}

.date-select {
    width: 100%;
}

/* Date display */
.date-display {
    padding: 12px 15px;
    font-size: 16px;
    color: #1e1e1d;
    font-weight: 500;
}

@media (max-width: 480px) {
    .date-selector {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.form-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 15px;
    background-color: #F7F7F7;
    border: 1px solid #6e6f75;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    color: #1e1e1d;
    resize: vertical;
    outline: none;
    transition: all 0.3s ease;
}

.form-textarea:focus {
    border-color: #1f658e;
    background-color: #F7F7F7;
    box-shadow: 0 0 0 2px rgba(31, 101, 142, 0.1);
}

.form-textarea::placeholder {
    color: #999999;
}

/* Checkboxes */
.checkbox-group {
    margin: 10px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #1e1e1d;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #1f658e;
    flex-shrink: 0;
}

/* Boutons */
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-next,
.btn-previous {
    flex: 1;
    padding: 14px 20px;
    background-color: #F7F7F7;
    border: 2px solid #1f658e;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #1e1e1d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-next:hover,
.btn-previous:hover {
    background-color: #3d7b9a;
    border-color: #3d7b9a;
    color: #F7F7F7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(31, 101, 142, 0.2);
}

.btn-next:active,
.btn-previous:active {
    transform: translateY(0);
}

.btn-submit {
    flex: 1;
    padding: 16px 20px;
    background-color: #1f658e;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #F7F7F7;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    background-color: #3d7b9a;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(31, 101, 142, 0.3);
}

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

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

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #1f658e;
    background-color: transparent;
    transition: all 0.3s ease;
}

.pagination-dot.active {
    background-color: #1f658e;
}

/* Footer */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #6e6f75;
    width: 100%;
}

.footer-link {
    font-size: 14px;
    color: #1e1e1d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #1f658e;
    text-decoration: underline;
}

.footer-separator {
    color: #6e6f75;
    font-size: 14px;
}

/* Checkboxes inline */
.checkbox-inline-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 8px;
}

.checkbox-label-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1e1e1d;
    cursor: pointer;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

/* Radio buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.radio-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #1e1e1d;
    cursor: pointer;
    line-height: 1.5;
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #1f658e;
    flex-shrink: 0;
}

/* Info boxes */
.info-box {
    background-color: rgba(100, 157, 80, 0.1);
    border: 1px solid #649d50;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #1e1e1d;
}

.info-box-small {
    background-color: rgba(240, 141, 53, 0.1);
    border: 1px solid #f08d35;
    border-radius: 10px;
    padding: 12px;
    margin: 15px 0;
    font-size: 13px;
    line-height: 1.5;
    color: #1e1e1d;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.info-list div {
    padding-left: 10px;
}

/* Section title */
.section-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #1e1e1d;
    margin-bottom: 15px;
    text-align: left;
}

/* Skills grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.form-textarea-large {
    width: 100%;
    min-height: 150px;
    padding: 12px 15px;
    background-color: #F7F7F7;
    border: 1px solid #6e6f75;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    color: #1e1e1d;
    resize: vertical;
    outline: none;
    transition: all 0.3s ease;
}

.form-textarea-large:focus {
    border-color: #1f658e;
    background-color: #F7F7F7;
    box-shadow: 0 0 0 2px rgba(31, 101, 142, 0.1);
}

/* Conditional fields */
.conditional-field {
    margin-top: 10px;
    margin-left: 20px;
    padding-left: 15px;
    border-left: 2px solid #1f658e;
}

/* Responsive */
@media (max-width: 480px) {
    .form-container {
        padding: 25px 15px;
    }

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

    .logo-svg {
        width: 100px;
        height: 100px;
    }

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

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

    .checkbox-inline-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* Widget Règlement intérieur */
.reglement-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4rem);
    overflow-y: auto;
}

.reglement-overlay.active {
    display: flex;
}

.reglement-widget {
    background-color: #FFFFFF;
    border-radius: clamp(0.75rem, 1.5vw, 1.25rem);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    width: 100%;
    max-width: clamp(500px, 80vw, 800px);
    max-height: calc(100vh - clamp(4rem, 10vw, 8rem));
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.reglement-close {
    position: absolute;
    top: clamp(1rem, 2vw, 1.5rem);
    right: clamp(1rem, 2vw, 1.5rem);
    background: none;
    border: none;
    cursor: pointer;
    width: clamp(2rem, 3vw, 2.5rem);
    height: clamp(2rem, 3vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    z-index: 10;
}

.reglement-close:hover {
    transform: scale(1.1);
}

.reglement-close svg {
    width: 100%;
    height: 100%;
}

.reglement-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #1e1e1d;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    padding-right: clamp(3rem, 5vw, 4rem);
}

.reglement-content {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.6;
    color: #1e1e1d;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    overflow-y: auto;
    flex: 1;
    max-height: calc(100vh - clamp(12rem, 20vw, 16rem));
    padding-right: clamp(0.5rem, 1vw, 1rem);
}


.btn-reglement {
    padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    background-color: #1f658e;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
}

.btn-reglement:hover {
    background-color: #1a5474;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 101, 142, 0.3);
}

.btn-reglement-valider {
    padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    background-color: #1f658e;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
}

.btn-reglement-valider:hover {
    background-color: #1a5474;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 101, 142, 0.3);
}
