/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: #ffffff;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: -1;
}

/* Container principal */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    margin-bottom: 40px;
    text-align: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}

.header-logo-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo {
    height: 48px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 117, 255, 0.2);
}

.back-button {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid #0075FF;
    border-radius: 16px;
    background: #ffffff;
    color: #0075FF;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 117, 255, 0.2);
}

.back-button:hover {
    background: #0075FF;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 117, 255, 0.3);
}

.page-title {
    font-size: 36px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Message de contact */
.contact-info {
    text-align: center;
    margin-bottom: 20px;
    padding: 12px 20px;
    background: rgba(0, 117, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 117, 255, 0.1);
}

.contact-info p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.contact-info a {
    color: #0075FF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: #0056CC;
    text-decoration: underline;
}

/* Sections de statut */
.loading-section,
.error-section {
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(59, 130, 246, 0.1);
    border-top: 4px solid #0075FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error-section {
    background: rgba(254, 242, 242, 0.95);
    border: 1px solid rgba(252, 165, 165, 0.3);
    color: #dc2626;
}

.error-icon {
    margin-bottom: 20px;
    color: #ef4444;
}

/* Formulaire principal */
.form-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    position: relative;
}

/* Liseré coloré supprimé */

.offer-form {
    padding: 48px 40px;
}

/* Groupes de formulaire */
.form-group {
    margin-bottom: 32px;
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    font-size: 16px;
    letter-spacing: -0.01em;
}

.label-icon {
    display: flex;
    align-items: center;
    color: #0075FF;
    background: rgba(0, 117, 255, 0.1);
    padding: 8px;
    border-radius: 12px;
    width: 36px;
    height: 36px;
    justify-content: center;
}

/* Inputs de base */
.form-input,
.form-select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #1e293b;
}

/* Menu déroulant avec fond opaque */
.form-select {
    background: #ffffff !important;
    background-color: #ffffff !important;
    position: relative;
    z-index: 1002 !important;
    opacity: 1 !important;
}

.form-select:focus {
    background: #ffffff !important;
    background-color: #ffffff !important;
    z-index: 1002 !important;
}

.form-select option {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #1e293b !important;
}

/* Forcer l'opacité du select sur tous les navigateurs */
.form-select,
.form-select:focus,
.form-select:active,
.form-select:hover {
    background: #ffffff !important;
    background-color: #ffffff !important;
    opacity: 1 !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Suppression des couleurs de validation */
.form-input:invalid,
.form-input:valid {
    border-color: rgba(226, 232, 240, 0.8);
    box-shadow: none;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #0075FF;
    box-shadow: 0 0 0 4px rgba(0, 117, 255, 0.1);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Chips de sélection */
.contract-chips,
.diploma-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.contract-chip,
.diploma-chip {
    padding: 12px 24px;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #475569;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.contract-chip:hover::before,
.diploma-chip:hover::before {
    left: 100%;
}

.contract-chip:hover,
.diploma-chip:hover {
    border-color: #0075FF;
    color: #0075FF;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 117, 255, 0.15);
}

.contract-chip.selected,
.diploma-chip.selected {
    background: linear-gradient(135deg, #0075FF 0%, #0056CC 100%);
    border-color: #0075FF;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 117, 255, 0.3);
}

/* Container de durée */
.duration-container {
    display: flex;
    gap: 20px;
    align-items: end;
    position: relative;
    z-index: 1001;
}


.duration-input {
    flex: 1;
}

.duration-unit {
    flex: 1;
    position: relative;
    z-index: 20;
}

.unit-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

/* Container de localisation */
.location-container {
    position: relative;
}

/* Augmenter le z-index du form-group de localisation quand il a des suggestions */
.form-group.has-suggestions {
    z-index: 10000;
    position: relative;
}

.suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 117, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    z-index: 99999 !important;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    margin-top: 8px;
}

.suggestion-item {
    padding: 16px 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(243, 244, 246, 0.8);
    transition: all 0.2s ease;
    font-weight: 600;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.9);
}

.suggestion-item:hover {
    background: rgba(0, 117, 255, 0.1);
    color: #0075FF;
    transform: translateX(4px);
    font-weight: 700;
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* Éditeur de texte */
.editor-container {
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.editor-container:focus-within {
    border-color: #0075FF;
    box-shadow: 0 0 0 4px rgba(0, 117, 255, 0.1);
    transform: translateY(-2px);
}

.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(248, 250, 252, 0.8);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    backdrop-filter: blur(10px);
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.toolbar-separator {
    width: 1px;
    height: 24px;
    background: #d1d5db;
    margin: 0 8px;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.toolbar-btn:hover {
    background: rgba(0, 117, 255, 0.1);
    color: #0075FF;
    transform: translateY(-1px);
}

.toolbar-btn.active {
    background: linear-gradient(135deg, #0075FF 0%, #0056CC 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 117, 255, 0.3);
}

.font-size-select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    font-size: 12px;
}

.editor-content {
    min-height: 200px;
    padding: 24px;
    font-size: 16px;
    line-height: 1.7;
    outline: none;
    color: #1e293b;
    font-weight: 400;
}

.editor-content:empty:before {
    content: attr(data-placeholder);
    color: #94a3b8;
    font-style: italic;
    font-weight: 400;
}


/* Actions du formulaire */
.form-actions {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(229, 231, 235, 0.5);
}

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 20px 32px;
    background: linear-gradient(135deg, #0075FF 0%, #0056CC 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 117, 255, 0.3);
    letter-spacing: -0.01em;
}

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

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 117, 255, 0.4);
}

.submit-button:active {
    transform: translateY(-1px);
}

/* Message de succès */
.success-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 60px 40px;
    text-align: center;
    position: relative;
}

.success-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #34d399 50%, #6ee7b7 100%);
    border-radius: 32px 32px 0 0;
}

.success-content {
    max-width: 400px;
    margin: 0 auto;
}

.success-icon {
    color: #10b981;
    margin-bottom: 32px;
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.success-content h2 {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.success-content p {
    color: #64748b;
    margin-bottom: 40px;
    line-height: 1.7;
    font-size: 18px;
    font-weight: 500;
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn {
    padding: 16px 32px;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, #0075FF 0%, #0056CC 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 117, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 117, 255, 0.4);
}

.btn-secondary {
    background: rgba(107, 114, 128, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.btn-secondary:hover {
    background: rgba(75, 85, 99, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(75, 85, 99, 0.3);
}

/* Footer */
.footer {
    margin-top: auto;
    padding: 40px 0;
    text-align: center;
    color: #64748b;
    font-size: 16px;
    font-weight: 500;
    border-top: 1px solid #e2e8f0;
}

.footer a {
    color: #0075FF;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #0056CC;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px 16px;
    }

    .offer-form {
        padding: 32px 24px;
    }

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

    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .back-button {
        position: static;
        order: -1;
    }

    .duration-container {
        flex-direction: column;
        gap: 16px;
    }

    .contract-chips,
    .diploma-chips {
        gap: 8px;
    }

    .contract-chip,
    .diploma-chip {
        padding: 10px 20px;
        font-size: 14px;
    }

    .success-actions {
        flex-direction: column;
        gap: 16px;
    }

    .btn {
        width: 100%;
    }

    .form-container {
        border-radius: 24px;
    }

    .success-container {
        border-radius: 24px;
        padding: 40px 24px;
    }
}

/* États de validation - couleurs supprimées pour uniformité */

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-container,
.success-container {
    animation: fadeIn 0.6s ease-out;
}

.form-group {
    animation: slideIn 0.4s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.form-group:nth-child(3) {
    animation-delay: 0.3s;
}

.form-group:nth-child(4) {
    animation-delay: 0.4s;
}

.form-group:nth-child(5) {
    animation-delay: 0.5s;
}

.form-group:nth-child(6) {
    animation-delay: 0.6s;
}

.form-group:nth-child(7) {
    animation-delay: 0.7s;
}

.form-group:nth-child(8) {
    animation-delay: 0.8s;
}

/* Focus visible pour l'accessibilité */
.contract-chip:focus-visible,
.diploma-chip:focus-visible,
.toolbar-btn:focus-visible {
    outline: 3px solid #0075FF;
    outline-offset: 3px;
}

/* Effets de particules flottantes */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Effet de particules supprimé pour fond blanc */