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

body {
    font-family: 'Segoe UI', sans-serif;
    min-height: 100vh;
}

/* ===========================
   PAGE ACCUEIL
=========================== */
.accueil-body {
    background: #f5f5f5;
    min-height: 100vh;
}

.accueil-wrapper {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.accueil-header {
    background: #E30613;
    color: #fff;
    text-align: center;
    padding: 45px 30px 40px;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
}

.logo-img.small {
    height: 42px;
    margin: 0;
    flex-shrink: 0;
    display: inline-block;
}

.cie-titre {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.cie-sous-titre {
    font-size: 1rem;
    opacity: 0.92;
    margin-bottom: 16px;
}

.badge-recrutement {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 8px 22px;
    border-radius: 30px;
}

.carte-felicitations {
    background: #fff;
    padding: 40px 35px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    width: 100%;
}

.carte-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.carte-felicitations h2 {
    font-size: 1.5rem;
    color: #E30613;
    margin-bottom: 15px;
    font-weight: 800;
}

.carte-felicitations p {
    color: #555;
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.btn-acceder {
    display: inline-block;
    background: #E30613;
    color: #fff;
    padding: 14px 38px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(227,6,19,0.4);
}

.btn-acceder:hover {
    background: #b00010;
    transform: translateY(-2px);
}

/* ===========================
   FORMULAIRE
=========================== */
.form-body {
    background: #f5f5f5;
    padding: 30px 20px 60px;
}

.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 35px rgba(0,0,0,0.12);
    overflow: hidden;
}

.form-header {
    background: #E30613;
    color: #fff;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.form-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

.form-header p {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 3px;
}

/* PROGRESSION */
.progress-bar-wrapper {
    background: #f0d0d2;
    height: 8px;
}

.progress-bar {
    background: #E30613;
    height: 8px;
    transition: width 0.5s ease;
    border-radius: 0 4px 4px 0;
}

.steps-labels {
    display: flex;
    justify-content: space-around;
    padding: 10px 20px;
    background: #fff;
    border-bottom: 1px solid #f0d0d2;
}

.step-label {
    font-size: 0.78rem;
    color: #aaa;
    font-weight: 600;
    transition: color 0.3s;
}

.step-label.active {
    color: #E30613;
}

/* PAGES FORMULAIRE */
.form-page {
    display: none;
    padding: 35px 35px 30px;
}

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

.page-title {
    font-size: 1.1rem;
    color: #E30613;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f5c0c3;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 7px;
}

.req {
    color: #E30613;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d0d9e8;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border 0.3s;
    background: #fafbff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #E30613;
    background: #fff;
}

.form-group input[type="file"] {
    padding: 8px;
    border: 1.5px dashed #E30613;
    border-radius: 8px;
    width: 100%;
    background: #fff5f5;
    cursor: pointer;
}

.file-hint {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
    display: block;
}

.erreur {
    color: #E30613;
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

/* RADIO */
.radio-group {
    display: flex;
    gap: 25px;
    margin-top: 5px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    font-size: 0.95rem;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #E30613;
    cursor: pointer;
}

/* INFO SALAIRE */
.info-salaire {
    background: #fff5f5;
    border-left: 4px solid #E30613;
    border-radius: 8px;
    padding: 14px 18px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 10px 0 20px;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.6;
}

.info-salaire i {
    color: #E30613;
    margin-top: 2px;
    font-size: 1rem;
}

/* CNPS INFO */
.cnps-info {
    background: #fff5f5;
    border-radius: 12px;
    padding: 22px;
    margin-top: 15px;
    border: 1px solid #f5c0c3;
}

.cnps-info h4 {
    color: #E30613;
    margin-bottom: 12px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cnps-info p {
    font-size: 0.88rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 12px;
}

.cnps-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.cnps-info ul li {
    font-size: 0.88rem;
    color: #333;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cnps-info ul li i {
    color: #E30613;
}

.paiement-wave {
    background: #fff;
    border: 1.5px solid #E30613;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 15px;
}

.paiement-wave i {
    color: #E30613;
    font-size: 1.4rem;
    margin-top: 2px;
}

.paiement-wave p {
    font-size: 0.88rem;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.alerte-obligatoire {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 0.85rem;
    color: #5a3e00;
    line-height: 1.7;
    margin-top: 15px;
}

.alerte-obligatoire i {
    color: #e6a800;
    margin-right: 6px;
}

/* JURIDIQUE */
.juridique-box {
    background: #fff5f5;
    border: 1px solid #f5c0c3;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.juridique-box h4 {
    color: #E30613;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.juridique-box ul {
    list-style: none;
    padding: 0;
}

.juridique-box ul li {
    padding: 6px 0;
    border-bottom: 1px solid #f5c0c3;
    font-size: 0.87rem;
    color: #444;
    line-height: 1.5;
}

.juridique-box ul li:last-child {
    border-bottom: none;
}

/* ENGAGEMENT */
.engagement-group label.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.engagement-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #E30613;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}

.engagement-group span {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.6;
}

/* NAVIGATION BOUTONS */
.form-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 10px;
}

.btn-nav {
    padding: 12px 28px;
    border: none;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-nav.next {
    background: #E30613;
    color: #fff;
    margin-left: auto;
    box-shadow: 0 4px 15px rgba(227,6,19,0.3);
}

.btn-nav.next:hover {
    background: #b00010;
}

.btn-nav.prev {
    background: #f0f0f0;
    color: #333;
}

.btn-nav.prev:hover {
    background: #e0e0e0;
}

.btn-nav.soumettre {
    background: #E30613;
    color: #fff;
    margin-left: auto;
    box-shadow: 0 4px 15px rgba(227,6,19,0.3);
}

.btn-nav.soumettre:hover {
    background: #b00010;
}

/* HIDDEN */
.hidden {
    display: none;
}

/* BOUTON COPIER */
.numero-copiable {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-copier {
    background: #E30613;
    color: #fff;
    border: none;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.btn-copier:hover {
    background: #b00010;
}

.btn-copier.copie {
    background: #444;
}

/* ===========================
   PAGE FINALE
=========================== */
.finale-wrapper {
    text-align: center;
    padding: 20px 10px;
}

.finale-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.finale-wrapper h2 {
    font-size: 1.8rem;
    color: #E30613;
    margin-bottom: 10px;
    font-weight: 800;
}

.finale-sous {
    color: #555;
    font-size: 1rem;
    margin-bottom: 30px;
}

.etapes-suivantes {
    background: #fff5f5;
    border-radius: 12px;
    padding: 25px;
    text-align: left;
    margin-bottom: 25px;
    border: 1px solid #f5c0c3;
}

.etapes-suivantes h4 {
    color: #E30613;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.etapes-suivantes ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.etapes-suivantes ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #333;
}

.etapes-suivantes ul li i {
    color: #E30613;
    width: 20px;
    text-align: center;
}

.info-importante {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    padding: 15px 18px;
    text-align: left;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.88rem;
    color: #5a3e00;
    line-height: 1.7;
}

.info-importante i {
    color: #e6a800;
    font-size: 1.1rem;
    margin-top: 2px;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .form-page {
        padding: 25px 18px 20px;
    }
    .carte-felicitations {
        padding: 30px 22px;
    }
    .cie-titre {
        font-size: 1.2rem;
    }
    .form-nav {
        flex-direction: column;
    }
    .btn-nav.next,
    .btn-nav.soumettre {
        margin-left: 0;
        justify-content: center;
    }
    .form-header {
        flex-direction: column;
        text-align: center;
        padding: 20px 18px;
    }
    .logo-img.small {
        height: 50px;
        margin-bottom: 10px;
    }
    .form-header h2 {
        font-size: 1rem;
    }
    .paiement-wave {
        flex-direction: column;
    }
    .numero-copiable {
        flex-direction: column;
        align-items: flex-start;
    }
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
    .btn-nav {
        width: 100%;
        justify-content: center;
    }
    .accueil-wrapper {
        padding: 0;
    }
    .accueil-header {
        padding: 30px 18px 28px;
    }
    .logo-img {
        height: 55px;
    }
}
