/* ===== STYLE CSS PERSONNALISÉ AVANCÉ ===== */
/* Fichier : assets/css/registration.css */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #27ae60;
    --green-accent: #2ecc71;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    background-image: linear-gradient(rgba(248, 249, 250, 0.95), rgba(248, 249, 250, 0.95)), 
                      url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%23f8f9fa" width="100" height="100"/><path fill="%23e9ecef" d="M0 0h50v50H0z"/></svg>');
    background-size: 30px 30px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #08b12d 100%);
    color: white;
    padding: 2.5rem 0;
    text-align: center;
    border-radius: 15px 15px 0 0;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23000000" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,192C1248,192,1344,128,1392,96L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    z-index: 0;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    position: relative;
    border: none;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--green-accent);
    display: inline-block;
    font-weight: 600;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 500;
    color: #444;
}

input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: #f8f9fa;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    background-color: white;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.checkbox-item input {
    width: auto;
    margin-right: 10px;
}

.required::after {
    content: " *";
    color: var(--accent-color);
}

.btn {
    background: linear-gradient(135deg, #1f6fb2 0%, #1b5f95 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(27, 95, 149, 0.3);
}

.btn:hover {
    background: linear-gradient(135deg, #1b5f95 0%, #1f6fb2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 95, 149, 0.4);
}

.btn:disabled,
.btn[disabled] {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.9;
}

.btn-previous {
    background: #6b7280;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.btn-previous:hover {
    background: #4b5563;
    box-shadow: 0 6px 20px rgba(75, 85, 99, 0.4);
}

.btn i {
    margin-right: 8px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

footer {
    text-align: center;
    padding: 1.5rem;
    color: #777;
    font-size: 0.9rem;
}

.success-message {
    display: none;
    background: linear-gradient(135deg, var(--success-color), #229954);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.success-summary {
    margin-top: 1rem;
    display: grid;
    gap: 0.6rem;
    text-align: left;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    font-size: 0.95rem;
}

.summary-item i {
    font-size: 1rem;
    opacity: 0.9;
}

.error-message {
    display: none;
    background-color: var(--accent-color);
    color: white;
    padding: 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.2);
}

/* ========== Styles pour la navigation par étapes ========== */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    position: relative;
    padding: 0 25px;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    height: 4px;
    background: linear-gradient(90deg, #e9ecef 0%, #e9ecef 100%);
    z-index: 1;
    border-radius: 2px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 150px;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    transition: all 0.4s ease;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.step-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e74c3c;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
}

.step.has-error .step-badge {
    display: inline-flex;
}

.step.active .step-number {
    background: linear-gradient(135deg, var(--green-accent), #27ae60);
    color: white;
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.5);
    transform: scale(1.1);
    border-color: white;
}

.step.completed .step-number {
    background: linear-gradient(135deg, var(--success-color), #229954);
    color: white;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.step.completed .step-number::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    font-size: 1rem;
}

.step-label {
    font-size: 0.85rem;
    color: #4b5563;
    text-align: center;
    font-weight: 500;
    line-height: 1.3;
    max-width: 120px;
    transition: all 0.3s ease;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.step.completed .step-label {
    color: var(--success-color);
}

.form-page {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

.form-page.active {
    display: block;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    gap: 20px;
}

.left-buttons {
    display: flex;
    gap: 15px;
}

.right-buttons {
    display: flex;
    gap: 15px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 44px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #dbe4ef;
    background: #f6f8fb;
    color: #334155;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.password-toggle i {
    font-size: 0.95rem;
}

.password-toggle:hover {
    background: #eef3f8;
    color: var(--secondary-color);
    border-color: #c7d6e5;
}

.password-toggle:focus-visible {
    outline: 3px solid rgba(46, 204, 113, 0.4);
    outline-offset: 2px;
}

#password,
#registration_form_plainPassword,
#confirm_password,
#registration_form_confirmPassword {
    padding-right: 120px;
}

.password-strength {
    height: 8px;
    background: #e9ecef;
    border-radius: 999px;
    margin-top: 10px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    background: #e74c3c;
    transition: width 0.3s ease, background 0.3s ease;
}

.password-strength-bar.weak {
    background: #e74c3c;
}

.password-strength-bar.medium {
    background: #f39c12;
}

.password-strength-bar.strong {
    background: #27ae60;
}

.password-strength-text {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #4b5563;
}

.password-rules {
    margin: 8px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
    font-size: 0.85rem;
    color: #4b5563;
}

.password-rules li.valid {
    color: var(--success-color);
    font-weight: 600;
}

.password-rules li.invalid {
    color: #d9534f;
}

.password-match {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #4b5563;
}

.password-match.ok {
    color: var(--success-color);
    font-weight: 600;
}

.password-match.bad {
    color: #d9534f;
    font-weight: 600;
}

.password-server-error {
    margin-top: 6px;
    color: #d9534f;
    font-size: 0.85rem;
}

.password-server-error ul {
    margin: 0;
    padding-left: 18px;
}

/* ========== Barre de progression ========== */
.progress-bar {
    height: 10px;
    background: #e9ecef;
    border-radius: 10px;
    margin-bottom: 2.5rem;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.3) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--green-accent));
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    position: relative;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.4);
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5));
    border-radius: 0 10px 10px 0;
}

.form-note {
    font-size: 0.85rem;
    color: #4b5563;
    margin-top: 0.35rem;
    line-height: 1.35;
    font-style: italic;
}

.loading {
    display: none;
    text-align: center;
    margin: 1.5rem 0;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.add-new-link {
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 5px;
    display: inline-block;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.add-new-link:hover {
    color: var(--green-accent);
    text-decoration: underline;
}

.custom-domain-container {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--green-accent);
}

.custom-domain-input {
    display: flex;
    gap: 10px;
}

.custom-domain-input input {
    flex: 1;
}

.custom-domain-input button {
    padding: 12px 20px;
    white-space: nowrap;
}

.section-icon {
    margin-right: 10px;
    color: var(--green-accent);
}

.phone-input-group {
    display: flex;
    gap: 10px;
}

.indicatif-select {
    width: 120px;
    flex-shrink: 0;
}

.phone-input {
    flex: 1;
}

.password-suggest {
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--secondary-color);
    cursor: pointer;
    text-decoration: underline;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--green-accent);
}

.modal-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #4b5563;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-form .form-group {
    margin-bottom: 1.5rem;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 2rem;
}

.modal-buttons .btn {
    min-width: 120px;
}

/* ========== STYLES MODALES AJOUT ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal .modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    animation: modalSlideIn 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal .modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid var(--green-accent);
    padding-bottom: 0.8rem;
}

.modal .modal-content h3 i {
    font-size: 1.3rem;
    color: var(--green-accent);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #1f6fb2 0%, #1b5f95 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(27, 95, 149, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1b5f95 0%, #1f6fb2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 95, 149, 0.4);
}

.modal .loading {
    text-align: center;
    padding: 1rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.modal .loading i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    animation: spin 1s linear infinite;
}

/* ===== RESPONSIVE DESIGN - TÉLÉPHONES ET TABLETTES ===== */

@viewport {
    width: device-width;
    zoom: 1.0;
}

/* Tablettes (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        max-width: 95%;
        padding: 15px;
    }
    
    .form-container {
        padding: 2rem;
    }
    
    .step-indicator {
        margin-bottom: 2rem;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
}

/* Tablettes en mode portrait et grands téléphones (576px - 768px) */

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        padding: 2rem 0;
        border-radius: 10px 10px 0 0;
        margin-bottom: 1.5rem;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .form-container {
        padding: 1.2rem;
        border-radius: 10px;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    /* DISPOSITION EN 2 LIGNES SUR MOBILE */
    .step-indicator {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 10px;
        margin-bottom: 2rem;
        padding: 0 10px;
    }
    
    /* LIGNE CACHÉE SUR MOBILE */
    .step-indicator::before {
        display: none;
    }
    
    .step {
        flex: 0 0 calc(33.333% - 10px); /* 3 étapes par ligne */
        max-width: 90px;
    }
    
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
        border: 3px solid white;
        margin-bottom: 0.5rem;
    }
    
    .step-label {
        font-size: 0.7rem;
        line-height: 1.2;
        max-width: 100%;
        word-wrap: break-word;
    }
    
    .step.active .step-label {
        font-size: 0.75rem;
    }
    
    .step.active .step-number {
        transform: scale(1.05);
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group {
        margin-bottom: 1rem;
    }
    
    input, select, textarea {
        padding: 12px 14px;
        font-size: 16px !important;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 15px;
        min-height: 44px;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 1.2rem;
    }
    
    .left-buttons,
    .right-buttons {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .left-buttons .btn,
    .right-buttons .btn,
    .navigation-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .custom-domain-input {
        flex-direction: column;
        gap: 10px;
    }
    
    .custom-domain-input button {
        width: 100%;
    }
    
    .phone-input-group {
        flex-direction: column;
    }
    
    .indicatif-select {
        width: 100%;
    }
    
    .progress-bar {
        height: 6px;
        margin-bottom: 1.5rem;
    }
    
    .modal .modal-content {
        padding: 1.5rem;
        margin: 20px;
        width: calc(100% - 40px);
        max-width: none;
    }
    
    .modal .modal-content h3 {
        font-size: 1.3rem;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-actions .btn-secondary,
    .modal-actions .btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-buttons .btn {
        width: 100%;
    }
    
    input, select {
        min-height: 44px;
    }
    
    .form-container {
        -webkit-overflow-scrolling: touch;
    }
    
    .loading-spinner {
        width: 35px;
        height: 35px;
    }
}

/* Téléphones moyens (425px - 576px) */
@media (max-width: 576px) {
    .container {
        padding: 8px;
    }
    
    header {
        padding: 1.5rem 0;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .form-container {
        padding: 0.9rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .step-indicator {
        gap: 12px 8px;
        padding: 0 5px;
    }
    
    .step {
        flex: 0 0 calc(33.333% - 8px);
        max-width: 80px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
    
    .step-label {
        font-size: 0.65rem;
    }
    
    .form-group {
        margin-bottom: 0.9rem;
    }
    
    label {
        font-size: 0.9rem;
    }
    
    .form-note {
        font-size: 0.8rem;
    }
    
    .success-message,
    .error-message {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

/* Petits téléphones (320px - 425px) */
@media (max-width: 425px) {
    .container {
        padding: 5px;
    }
    
    header {
        padding: 1.2rem 0;
        margin-bottom: 1rem;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 0.85rem;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .step-indicator {
        gap: 10px 5px;
        margin-bottom: 1.5rem;
    }
    
    .step {
        flex: 0 0 calc(33.333% - 5px);
        max-width: 75px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        border: 2px solid white;
    }
    
    .step-label {
        font-size: 0.6rem;
    }
    
    input, select, textarea {
        padding: 10px 12px;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .password-toggle {
        right: 12px;
        top: 38px;
    }
    
    footer {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .modal .modal-content {
        padding: 1rem;
        margin: 15px;
        width: calc(100% - 30px);
    }
    
    .modal .modal-content h3 {
        font-size: 1.2rem;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
}

/* Très petits téléphones (moins de 320px) */
@media (max-width: 320px) {
    .container {
        padding: 3px;
    }
    
    header {
        padding: 1rem 0;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    .form-container {
        padding: 0.75rem;
    }
    
    .step {
        max-width: 55px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    
    .step-label {
        font-size: 0.58rem;
    }
}

/* Optimisations pour le mode paysage sur mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        padding: 10px;
    }
    
    header {
        padding: 1rem 0;
        margin-bottom: 1rem;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    .step-indicator {
        margin-bottom: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .navigation-buttons {
        margin-top: 1.5rem;
    }
}

/* Support des écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .step-number {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Correction pour les appareils avec encoches (notch) */
@supports(padding: max(0px)) {
    .container {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }
    
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Ajustements pour les très grands écrans (tablettes en mode paysage) */
@media (min-width: 1025px) and (max-width: 1366px) and (orientation: landscape) {
    .container {
        max-width: 90%;
    }
    
    .form-container {
        padding: 2rem 3rem;
    }
}

/* ========== VALIDATION EN TEMPS RÉEL ========== */
.form-group {
    position: relative;
}

.validation-icon {
    position: absolute;
    right: 16px;
    top: 44px;
    font-size: 1.2rem;
    transition: all 0.3s;
    pointer-events: none;
}

.validation-icon.valid {
    color: var(--success-color);
    animation: bounceIn 0.5s;
}

.validation-icon.invalid {
    color: var(--accent-color);
    animation: shakeX 0.5s;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes shakeX {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

input.valid {
    border-color: var(--success-color) !important;
    background-color: #f0fdf4 !important;
}

input.invalid {
    border-color: var(--accent-color) !important;
    background-color: #fef2f2 !important;
}

.validation-message {
    font-size: 0.8rem;
    margin-top: 0.4rem;
    display: none;
}

.validation-message.valid {
    color: var(--success-color);
    display: block;
}

.validation-message.invalid {
    color: var(--accent-color);
    display: block;
}

.validation-message i {
    margin-right: 5px;
}

/* ========== PAGE RÉCAPITULATIF ========== */
.recap-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--green-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.recap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e9ecef;
}

.recap-header h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recap-header h3 i {
    color: var(--green-accent);
}

.btn-edit {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.btn-edit:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.recap-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.recap-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid #e9ecef;
}

.recap-row:last-child {
    border-bottom: none;
}

.recap-label {
    font-weight: 600;
    color: #4b5563;
    flex: 0 0 40%;
}

.recap-value {
    color: var(--primary-color);
    font-weight: 500;
    flex: 1;
    text-align: right;
}

.btn-submit {
    background: linear-gradient(135deg, var(--success-color), #229954);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 16px 32px;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #229954, var(--success-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.5);
}

.btn-submit i {
    font-size: 1.2rem;
}

/* Responsive récapitulatif */
@media (max-width: 768px) {
    .recap-section {
        padding: 1rem;
    }
    
    .recap-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .btn-edit {
        width: 100%;
        justify-content: center;
    }
    
    .recap-row {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .recap-label {
        flex: none;
    }
    
    .recap-value {
        text-align: left;
        font-weight: 400;
    }
}

/* ===== FIN DU FICHIER CSS PERSONNALISÉ AVANCÉ ===== */

