@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary: #2B6CB0;
    --primary-dark: #1E4F8A;
    --primary-light: #3B82C4;
    --accent: #E8A317;
    --accent-hover: #D4950F;
    --bg-page: #EEF2F7;
    --bg-card: #FFFFFF;
    --text-dark: #1A2332;
    --text-medium: #4A5568;
    --text-light: #8896AB;
    --border: #D8DFE9;
    --border-focus: #2B6CB0;
    --input-bg: #F7F9FC;
    --error: #E53E3E;
    --success: #38A169;
    --shadow-lg: 0 10px 40px rgba(43,108,176,0.12);
    --radius: 8px;
    --radius-lg: 14px;
    --radius-full: 50px;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-page);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -30%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(43,108,176,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -40%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232,163,23,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.main-container {
    width: 100%;
    max-width: 640px;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.6s ease-out;
}

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

/* ====== LOGO ====== */
.logo-section {
    text-align: center;
    margin-bottom: 28px;
}

.logo-section img {
    height: 52px;
    opacity: 0.9;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: var(--text-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 6px;
}

/* ====== CARTE FORMULAIRE ====== */
.form-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px 38px 32px;
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* ====== ONGLETS ====== */
.tabs-wrapper {
    display: flex;
    background: #F1F5F9;
    border-radius: var(--radius-full);
    padding: 4px;
    margin-bottom: 32px;
    position: relative;
}

.tab-btn {
    flex: 1;
    padding: 12px 0;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border: none;
    background: transparent;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    outline: none;
}

.tab-btn:hover {
    color: var(--text-medium);
}

.tab-btn.actif {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(43,108,176,0.3);
}

.tab-btn.actif::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 7px solid var(--primary);
}

.tab-btn i {
    margin-right: 6px;
    font-size: 13px;
}

/* ====== TAB CONTENT ====== */
.tabcontent {
    display: none;
}

.tabcontent.actif {
    display: block;
    animation: fadeIn 0.35s ease-out;
}

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

/* ====== CHAMPS ====== */
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
}

.form-group {
    flex: 1;
    position: relative;
}

.form-group.small {
    flex: 0 0 110px;
}

.form-label {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-medium);
    margin-bottom: 6px;
    display: block;
}

.form-label .required {
    color: var(--error);
    margin-left: 2px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 15px;
    pointer-events: none;
    transition: color 0.3s;
    z-index: 1;
}

.form-input, .form-select {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 42px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--input-bg);
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: var(--text-dark);
    transition: all 0.25s ease;
    outline: none;
}

.form-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    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='%238896AB' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.form-select.no-icon {
    padding-left: 16px;
}

.form-input:hover, .form-select:hover {
    border-color: var(--primary-light);
}

.form-input:focus, .form-select:focus {
    border-color: var(--border-focus);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(43,108,176,0.1);
}

.form-input::placeholder {
    color: var(--text-light);
    font-size: 14px;
}

/* Indicatif téléphone */
.phone-wrapper {
    display: flex;
    gap: 0;
}

.phone-indicatif {
    flex: 0 0 80px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EDF2F7;
    border: 1.5px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-medium);
}

.phone-wrapper .form-input {
    border-radius: 0 var(--radius) var(--radius) 0;
    padding-left: 16px;
}

/* Erreurs */
.message-erreur {
    font-size: 12px;
    color: var(--error);
    margin-top: 4px;
    padding-left: 2px;
    font-weight: 400;
}

/* ====== SÉPARATEUR ====== */
.form-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 24px 0;
}

/* ====== SECTION LABEL ====== */
.section-label {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ====== WHATSAPP TOGGLE ====== */
.whatsapp-toggle {
    margin: -6px 0 18px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.custom-check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.25s ease;
    background: var(--input-bg);
}

.checkbox-wrapper input:checked ~ .custom-check {
    background: #25D366;
    border-color: #25D366;
}

.checkbox-wrapper input:checked ~ .custom-check::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    font-family: 'Roboto', sans-serif;
    font-size: 13.5px;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 5px;
}

.whatsapp-icon {
    color: #25D366;
    font-size: 16px;
}

.whatsapp-field {
    animation: slideDown 0.3s ease-out;
}

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

.whatsapp-indicatif {
    background: #E8F8EE;
    border-color: #B2DFBC;
    color: #1B8A3A;
}

/* ====== BOUTONS ====== */
.form-actions {
    margin-top: 28px;
}

.btn {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

.btn-primary {
    padding: 15px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 15px rgba(43,108,176,0.3);
}
.container_img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.container_img img {
    width: fit-content;
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    box-shadow: 0 6px 25px rgba(43,108,176,0.4);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary i {
    font-size: 14px;
}

/* ====== FOOTER LIENS ====== */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 10px;
}

.form-footer a {
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.form-footer a i {
    font-size: 12px;
}

/* ====== BADGE SÉCURITÉ ====== */
.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-light);
}

.security-badge i {
    color: var(--success);
    font-size: 13px;
}


