:root {
    --bg-dark: #0f0a14;
    --card-bg: #1c1326;
    --text-light: #FFFFFF;
    --shadow-color: #0d0812;
    --accent: #8b5cf6;
    --accent2: #22d3ee;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Fredoka', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100dvh;
    overflow-x: hidden;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

/* HEADER */
header {
    display: flex;
    align-items: center;
    padding: 20px 15px 10px;
    gap: 15px;
}

.btn-back {
    background: var(--card-bg);
    border: 2px solid #2d1c3d;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 15px;
    font-size: 1.2rem;
    box-shadow: 0 4px 0 var(--shadow-color);
    cursor: pointer;
    transition: 0.1s;
}
.btn-back:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 var(--shadow-color);
}

.titles h1 {
    font-size: 2rem;
    margin: 0;
    text-transform: uppercase;
}
.highlight { color: #FF004D; }
.titles p {
    color: #907d9e;
    margin: 2px 0 0 0;
    font-size: 1rem;
}

/* SETTINGS LIST */
#settings-container {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setting-card {
    background: var(--card-bg);
    border: 2px solid #2d1c3d;
    border-radius: 20px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 0 var(--shadow-color);
}

.setting-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    flex-shrink: 0;
}

.setting-info {
    flex: 1;
    min-width: 0;
}
.setting-info h2 {
    color: white;
    margin: 0 0 4px 0;
    font-size: 1.25rem;
}
.setting-info p {
    color: #907d9e;
    margin: 0;
    font-size: .88rem;
    line-height: 1.3;
}

/* TOGGLE SWITCH */
.toggle {
    position: relative;
    display: inline-block;
    width: 58px;
    height: 32px;
    flex-shrink: 0;
}
.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider-toggle {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #2d1c3d;
    border-radius: 999px;
    transition: .25s;
    border: 1px solid rgba(255,255,255,.08);
}
.slider-toggle::before {
    content: "";
    position: absolute;
    height: 24px;
    width: 24px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: .25s;
    box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.toggle input:checked + .slider-toggle {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.toggle input:checked + .slider-toggle::before {
    transform: translateX(26px);
}

/* TEST BUTTON */
.btn-test {
    background: linear-gradient(135deg, #7000FF 0%, #B200FF 100%);
    border: none;
    color: white;
    padding: 12px 18px;
    border-radius: 14px;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 0 #3a0075;
    transition: .1s;
}
.btn-test:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #3a0075;
}

.hint-version {
    text-align: center;
    color: #5a4868;
    font-size: .85rem;
    margin-top: auto;
    padding-top: 30px;
}

/* ====== Section "Mes données" ====== */
.section-title {
    color: #c5b0d5;
    margin: 28px 4px 4px;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.danger-card { border-color: rgba(255, 0, 77, 0.25); }
.danger-card.danger-strong { border-color: rgba(255, 0, 77, 0.55); }

.btn-danger {
    background: #2a1520;
    border: 1px solid rgba(255, 0, 77, 0.4);
    color: #ff5d8a;
    padding: 10px 16px;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.15s;
}
.btn-danger:hover, .btn-danger:active {
    background: rgba(255, 0, 77, 0.15);
    color: #fff;
}

.btn-danger.btn-danger-strong {
    background: linear-gradient(135deg, #FF004D 0%, #B00033 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 0 #6a001f;
}
.btn-danger.btn-danger-strong:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #6a001f;
}

.clear-feedback {
    min-height: 1.4em;
    text-align: center;
    color: #6ee7b7;
    font-size: 0.95rem;
    margin: 8px 0 0;
    font-weight: 600;
}
.clear-feedback.error { color: #ff5d8a; }
