* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-container,
.location-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.5s ease;
}

.location-container {
    max-width: 800px;
    display: none;
}

.logo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo-item {
    text-align: center;
    flex: 1;
}

.logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    padding: 8px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-img:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-title {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 15px;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.project-title h1 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.project-subtitle {
    background: white;
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
}

.project-subtitle p {
    font-size: 13px;
    line-height: 1.8;
    text-align: center;
    font-weight: 500;
}

.project-highlight {
    color: #667eea;
    font-weight: 700;
}

/* ============================================================================
   STYLES DE FORMULAIRES - COMMENTÉS - Maintenant définis dans common-styles.css
   ============================================================================ */

/*
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    font-size: 0.95em;
}

input[type="text"],
input[type="password"],
input[type="file"],
input[type="date"],
input[type="tel"],
input[type="email"],
input[type="number"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

input:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

select:disabled,
input:disabled {
    background: #f0f0f0;
    cursor: not-allowed;
}
*/

.btn {
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-secondary {
    background: #e0e0e0;
    color: #666;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    animation: slideInDown 0.5s ease;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.loading-indicator {
    text-align: center;
    padding: 20px;
    background: #e3f2fd;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
}

.loading-indicator.active {
    display: block;
}

.breadcrumb {
    background: #e9ecef;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #666;
    display: none;
}

.breadcrumb.active {
    display: block;
}

.breadcrumb span {
    color: #667eea;
    font-weight: 600;
}

.location-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.main-container {
    display: none;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 95%;
    max-width: 1400px;
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.1em;
    opacity: 0.95;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #4CAF50;
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.7);
}

.location-badge-bottom {
    background: rgba(255, 255, 255, 0.25);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 15px;
    display: inline-block;
    margin-top: 5px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    position: absolute;
    top: 30px;
    right: 30px;
}

.user-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

.main-menu-tabs {
    display: flex;
    gap: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: 3px solid #5568d3;
}

.main-tab {
    flex: 1;
    padding: 18px 30px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 1.1em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.main-tab:last-child {
    border-right: none;
}

.main-tab:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.main-tab.active {
    background: white;
    color: #667eea;
    font-weight: 700;
}

.section-tabs {
    display: flex;
    gap: 10px;
    padding: 20px 40px;
    background: #f8f8f8;
    overflow-x: auto;
    border-bottom: 1px solid #e0e0e0;
}

.tab {
    padding: 10px 20px;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-size: 0.9em;
    color: #666;
    border: 2px solid transparent;
}

.tab:hover {
    background: #f0f0f0;
}

.tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.05);
}

.content-area {
    padding: 40px;
    min-height: 400px;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.section.active {
    display: block;
}

/* COMMENTÉ - Maintenant défini dans common-styles.css
.section-title {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
}
*/

/* Styles spécifiques pour les sections de formulaire (complémentaires à common-styles.css) */
.form-section {
    margin-bottom: 40px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.navigation {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.navigation.has-prev {
    justify-content: space-between;
}

@media (max-width: 768px) {
    .content-area {
        padding: 20px;
    }

    .navigation {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .main-container {
        width: 100%;
        border-radius: 0;
    }

    .user-info {
        position: static;
        justify-content: center;
        margin-top: 20px;
    }

    .location-badge {
        position: static;
        margin-top: 15px;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .section-tabs {
        padding: 15px 20px;
    }

    .logo-img {
        width: 65px;
        height: 65px;
        padding: 5px;
    }

    .button-group {
        flex-direction: column;
    }
}