:root {
    --red: #f5314a;
    --red-hover: #e11f38;
    --dark: #181a1f;
    --text-dark: #1f2933;
    --text-grey: #9aa5b1;
    --input-bg: #eef1f4;
    --input-border: #dfe4ea;
    --input-border-focus: #7fb4e8;
    --link-blue: #2e7dd7;
    --green: #1fa855;
    --max-width: 480px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #ffffff;
    color: var(--text-dark);
    line-height: 1.5;
}

/* Header */
header.topbar {
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    color: var(--red);
    font-size: 26px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: flex-start;
    gap: 2px;
}

.logo sup { 
    font-size: 10px; 
    font-weight: 400; 
    margin-top: 2px;
    color: var(--red);
}

.icon-group { 
    display: flex; 
    align-items: center; 
    gap: 18px; 
}

.icon-group svg { 
    stroke: #9aa5b1; 
    width: 22px; 
    height: 22px; 
    cursor: pointer;
    transition: stroke 0.2s;
}

.icon-group svg:hover { stroke: #ffffff; }

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 20px 40px;
}

/* Messages */
.alert {
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-error { 
    background: #fdeaea; 
    color: #c0242f; 
    border: 1px solid #f4c2c6; 
}

.alert-success { 
    background: #e8f7ee; 
    color: #1e8a4c; 
    border: 1px solid #bfe8cf; 
}

/* Tabs */
.tabs { 
    display: flex; 
    gap: 24px; 
    margin-bottom: 20px;
    border-bottom: 2px solid transparent;
}

.tabs button {
    background: none;
    border: none;
    padding: 0 0 8px;
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-grey);
    position: relative;
    transition: color 0.2s;
}

.tabs button.active { 
    color: var(--text-dark); 
}

.tabs button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
}

/* Titres */
h1.subtitle {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 24px;
    color: var(--text-dark);
}

h3.form-heading {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--text-dark);
}

/* Formulaires */
form { display: flex; flex-direction: column; }

label.field-label {
    color: #52606d;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
}

.field,
select.field {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-dark);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.2s;
}

select.field {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23617284' stroke-width='2'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.field::placeholder { color: #9aa5b1; }

.field:focus { 
    border-color: var(--input-border-focus); 
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(127, 180, 232, 0.15);
}

/* Liens */
.forgot {
    color: var(--link-blue);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    display: inline-block;
    font-weight: 500;
}

.forgot:hover { text-decoration: underline; }

/* Boutons */
.btn-submit {
    background: var(--red);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.15s ease;
    text-transform: none;
}

.btn-submit:hover { 
    background: var(--red-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 49, 74, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Checkboxes */
.remember,
.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.4;
    cursor: pointer;
}

.remember { 
    align-items: center; 
    margin-bottom: 24px;
}

.remember input[type="checkbox"],
.checkbox-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    accent-color: var(--link-blue);
    border-radius: 4px;
    margin-top: 1px;
    cursor: pointer;
}

.checkbox-row a { 
    color: var(--link-blue); 
    text-decoration: underline;
    font-weight: 500;
}

.checkbox-row a:hover { text-decoration: none; }

/* Features Box */
.features-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.features-box h2 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.4;
    color: var(--text-dark);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.4;
    color: #4b5563;
}

.feature-item:last-child { margin-bottom: 0; }

.feature-item svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    stroke: var(--green);
    flex-shrink: 0;
    margin-top: 1px;
}

/* Langues */
.languages { 
    font-size: 14px; 
    color: var(--text-dark);
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.languages a { 
    color: var(--link-blue); 
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.languages a:hover { 
    background: #f3f4f6;
    text-decoration: underline;
}

.languages a.active { 
    font-weight: 700;
    color: var(--text-dark);
    background: #e5e7eb;
}

.languages span.arrow { 
    color: var(--text-grey); 
    margin-right: 4px;
    font-size: 12px;
}

/* Views */
.view { 
    display: none;
    animation: fadeIn 0.3s ease;
}

.view.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer.site-footer {
    background: var(--dark);
    color: #ffffff;
    padding: 32px 20px 24px;
    margin-top: 40px;
}

.footer-logo {
    color: var(--red);
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 24px;
}

.footer-logo sup { 
    font-size: 10px; 
    font-weight: 400; 
    margin-top: 2px;
}

.footer-links { 
    list-style: none; 
    margin: 0 0 20px; 
    padding: 0; 
}

.footer-links li { margin-bottom: 16px; }

.footer-links a { 
    color: #ffffff; 
    text-decoration: none; 
    font-size: 16px;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.footer-links a:hover { 
    opacity: 1;
    text-decoration: underline;
}

.support-card {
    background: #212429;
    border-radius: 10px;
    margin: 24px 0;
    overflow: hidden;
}

.support-title {
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    border-bottom: 1px solid #33373f;
}

.support-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-top: 1px solid #33373f;
    text-decoration: none;
    color: #ffffff;
    transition: background 0.2s;
}

.support-row:first-of-type { border-top: none; }

.support-row:hover { background: #2a2f36; }

.support-row span { 
    font-size: 15px; 
    font-weight: 600;
}

.support-row svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: #ffffff;
}

.legal-links { 
    list-style: none; 
    margin: 16px 0; 
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.legal-links li { margin: 0; }

.legal-links a { 
    color: #9aa5b1; 
    text-decoration: none; 
    font-size: 14px;
    transition: color 0.2s;
}

.legal-links a:hover { 
    color: #ffffff;
    text-decoration: underline;
}

.copyright { 
    color: #6b7280; 
    font-size: 13px; 
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #33373f;
}

/* Responsive */
@media (max-width: 480px) {
    header.topbar { padding: 14px 16px; }
    .container { padding: 20px 16px 32px; }
    .tabs button { font-size: 18px; }
    h1.subtitle { font-size: 18px; }
    .features-box { padding: 16px; }
    footer.site-footer { padding: 24px 16px; }
}
/* Ajoute ça à la fin de ton style.css */

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--dark);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.open {
    right: 0;
}

body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #333;
}

.mobile-menu-header .logo {
    color: var(--red);
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
}

.close-menu {
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav {
    padding: 20px;
}

.mobile-nav a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 16px 0;
    font-size: 16px;
    border-bottom: 1px solid #333;
    transition: color 0.2s;
}

.mobile-nav a:hover {
    color: var(--red);
}

.mobile-lang {
    padding: 20px;
    border-top: 1px solid #333;
    margin-top: 20px;
}

.mobile-lang span {
    color: #9aa5b1;
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
}

.mobile-lang a {
    color: #fff;
    text-decoration: none;
    margin-right: 15px;
    font-size: 14px;
    opacity: 0.7;
}

.mobile-lang a.active {
    color: var(--red);
    font-weight: bold;
    opacity: 1;
}

/* Hamburger cursor */
.hamburger {
    cursor: pointer;
}