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

body {
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: #0f172a;
}

.central-bg {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #29A9F0 0%, #3D5FE8 45%, #4A3FD6 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
}

.page-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 10px;
    max-width: 600px;
}

.page-subtitle {
    font-size: 14px;
    color: #dbeafe;
    text-align: center;
    margin-bottom: 28px;
    max-width: 520px;
    line-height: 1.5;
}

.sector-panel {
    width: 100%;
    max-width: 650px;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 25px 50px rgba(10, 30, 90, 0.25);
    padding: 28px;
}

.sector-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.sector-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #EEF1F6;
    border-radius: 16px;
    padding: 16px 8px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.sector-card:hover {
    border-color: #C7D6FB;
}

.sector-card.selected {
    border-color: #2E6BF6;
    box-shadow: 0 0 0 3px rgba(46, 107, 246, 0.12);
}

.sector-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-rose { background: #FCE8EF; }
.icon-green { background: #E4F8ED; }
.icon-blue { background: #E8F0FE; }
.icon-orange { background: #FEF1E6; }

.sector-label {
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
    text-align: center;
    line-height: 1.3;
}

.btn-continue {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 20px auto 0;
    padding: 14px;
    border-radius: 999px;
    border: 1.5px solid rgba(255,255,255,0.35);
    background: linear-gradient(90deg, #2E6BF6 0%, #4A3FD6 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.btn-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-continue:not(:disabled):hover {
    filter: brightness(1.08);
}

/* Responsive : mobile et tablette */
@media (max-width: 640px) {
    .page-title { font-size: 22px; }
    .page-subtitle { font-size: 13px; }
    .sector-panel { padding: 20px 16px; border-radius: 22px; }
    .sector-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .sector-card { padding: 14px 6px; }
    .sector-icon { width: 40px; height: 40px; }
    .sector-label { font-size: 11px; }
}

@media (min-width: 641px) and (max-width: 900px) {
    .sector-grid { grid-template-columns: repeat(3, 1fr); }
}

.form-panel {
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 25px 50px rgba(10, 30, 90, 0.25);
    padding: 32px 28px;
}

.form-row {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

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

.floating-group {
    position: relative;
}

.floating-input,
.floating-select {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 16px 8px 16px;
    font-size: 14px;
    outline: none;
    background: #fff;
    font-family: inherit;
    appearance: none;
    color: #0f172a;
}

.floating-select {
    padding-top: 20px;
    padding-bottom: 6px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 32px;
}

.floating-select:disabled {
    background-color: #f8fafc;
    cursor: not-allowed;
}

.floating-input:focus,
.floating-select:focus {
    border-color: #0B63F6;
    box-shadow: 0 0 0 3px rgba(11,99,246,0.12);
}

.floating-label {
    position: absolute;
    left: 16px;
    top: 16px;
    font-size: 14px;
    color: #94a3b8;
    pointer-events: none;
    transition: all 0.15s ease;
    background: #fff;
    padding: 0 2px;
}

/* Le label remonte quand le champ est en focus OU déjà rempli */
.floating-input:focus + .floating-label,
.floating-input:not(:placeholder-shown) + .floating-label {
    top: -8px;
    left: 12px;
    font-size: 11px;
    color: #0B63F6;
}

.floating-select:focus + .floating-label,
.floating-group.has-value .floating-label-select {
    top: -8px;
    left: 12px;
    font-size: 11px;
    color: #0B63F6;
}
/* Écran "Qui dirige cette entreprise ?" */

.central-input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14px;
    outline: none;
    margin-bottom: 12px;
    font-family: inherit;
    display: block;
}

.central-input:focus {
    border-color: #0B63F6;
    box-shadow: 0 0 0 3px rgba(11,99,246,0.12);
}

.phone-input {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 16px;
    margin-bottom: 12px;
}

.phone-prefix {
    font-size: 14px;
    color: #334155;
    padding-right: 12px;
    border-right: 1px solid #e2e8f0;
    margin-right: 12px;
    white-space: nowrap;
}

.phone-field {
    border: none;
    outline: none;
    padding: 14px 0;
    font-size: 14px;
    flex: 1;
    font-family: inherit;
    min-width: 0;
}

.central-error {
    font-size: 13px;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 12px;
}

/* Écran de vérification OTP */

.otp-card {
    text-align: center;
}

.whatsapp-icon {
    position: relative;
    display: inline-flex;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #dcfce7;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
}

.lock-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 14px;
}

.otp-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a;
}

.otp-subtitle {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 24px;
}

.otp-boxes {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.otp-box {
    width: 52px;
    height: 52px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    outline: none;
    font-family: inherit;
}

.otp-box:focus {
    border-color: #0B63F6;
    box-shadow: 0 0 0 3px rgba(11,99,246,0.12);
}

.otp-resend {
    font-size: 13px;
    color: #64748b;
}

.otp-resend a {
    color: #0B63F6;
    text-decoration: none;
    font-weight: 500;
}

.whatsapp-icon {
    position: relative;
    display: inline-flex;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #dcfce7;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

/* Écran "Que souhaitez-vous gérer ?" */

.module-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.module-select-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s;
}

.module-select-card .module-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
}

.module-select-card .module-select-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.module-select-card.selected {
    background: linear-gradient(90deg, #2E6BF6 0%, #4A3FD6 100%);
    border-color: transparent;
}

.module-select-card.selected .module-dot {
    background: #fff;
}

.module-select-card.selected .module-select-label {
    color: #fff;
}

/* Écran de préparation */

.prep-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

.prep-card {
    max-width: 460px;
    text-align: center;
}

.progress-circle-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 12px;
}

.progress-circle circle {
    transition: stroke-dashoffset 0.2s ease;
}

.progress-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    color: #0B63F6;
    font-size: 16px;
}

.prep-status {
    font-size: 13px;
    color: #0B63F6;
    font-weight: 600;
    margin-bottom: 20px;
}

.module-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    text-align: left;
}

.module-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 10px 12px;
}

.module-bar {
    width: 8px;
    height: 30px;
    border-radius: 999px;
    background: linear-gradient(180deg, #2E6BF6 0%, #4A3FD6 100%);
    flex-shrink: 0;
}

.module-list-label {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    flex: 1;
}

.module-refresh {
    color: #cbd5e1;
    font-size: 14px;
}
