/* ============================================================
   🌸 JARDIN DE CLASSE — Thème Journal Maternelle
   Police : Nunito (ronde, chaleureuse) + Playfair Display (titres)
   Palette : crème, pêche, lavande, menthe, jaune soleil
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Playfair+Display:ital,wght@0,700;1,400&display=swap');

/* ─── VARIABLES ─────────────────────────────────────────── */
:root {
    --cream:          #fdf8f0;
    --cream-dark:     #f0e4d0;
    --peach:          #ffb085;
    --peach-light:    #ffe0cc;
    --lavender:       #c4b5fd;
    --lavender-light: #ede9fe;
    --mint:           #6ee7b7;
    --mint-light:     #d1fae5;
    --sun:            #fcd34d;
    --sun-light:      #fef9c3;
    --rose:           #fda4af;
    --rose-light:     #ffe4e6;
    --sky:            #7dd3fc;
    --sky-light:      #e0f2fe;
    --text-dark:      #3d2c1e;
    --text-mid:       #7c5c48;
    --text-light:     #b08870;
    --white:          #ffffff;
    --shadow-soft:    0 4px 20px rgba(61,44,30,0.08);
    --shadow-card:    0 8px 32px rgba(61,44,30,0.12);
    --radius-sm:      10px;
    --radius-md:      18px;
    --radius-lg:      28px;
    --radius-xl:      40px;
}

/* ─── RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(ellipse 800px 600px at 10% 20%, rgba(255,176,133,0.18) 0%, transparent 70%),
        radial-gradient(ellipse 600px 800px at 90% 80%, rgba(196,181,253,0.20) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 50% 50%, rgba(110,231,183,0.10) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 80% 10%, rgba(252,211,77,0.15) 0%, transparent 60%);
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle 6px at 8% 15%, rgba(255,176,133,0.35) 100%, transparent),
        radial-gradient(circle 4px at 15% 75%, rgba(196,181,253,0.45) 100%, transparent),
        radial-gradient(circle 8px at 92% 20%, rgba(110,231,183,0.35) 100%, transparent),
        radial-gradient(circle 5px at 85% 60%, rgba(252,211,77,0.45) 100%, transparent),
        radial-gradient(circle 7px at 50% 92%, rgba(253,164,175,0.35) 100%, transparent),
        radial-gradient(circle 3px at 25% 45%, rgba(125,211,252,0.35) 100%, transparent);
    z-index: -1;
    pointer-events: none;
}

/* ─── TYPOGRAPHIE ───────────────────────────────────────── */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
}

h1 {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    font-style: italic;
    text-transform: none !important;
    letter-spacing: 0 !important;
    background: linear-gradient(135deg, #c2724f, #9333ea) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: none !important;
}

/* ─── HEADER ────────────────────────────────────────────── */
.main-header {
    position: relative;
    padding: 1.4rem 2rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    width: 100%;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(255,176,133,0.2);
    box-shadow: 0 4px 24px rgba(61,44,30,0.07);
}

.header-title {
    font-family: 'Playfair Display', serif !important;
    font-style: italic;
    font-size: 1.9rem !important;
    background: linear-gradient(135deg, #c2724f 0%, #9333ea 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: none !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* ─── NAV HEADER ────────────────────────────────────────── */
.glass-radio-group {
    display: flex;
    position: relative;
    background: rgba(255,255,255,0.65);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(61,44,30,0.09), inset 0 1px 2px rgba(255,255,255,0.9);
    border: 1.5px solid rgba(255,176,133,0.28);
    overflow: hidden;
    width: fit-content;
    padding: 5px;
}

.glass-radio-group input { position: absolute; opacity: 0; width: 0; height: 0; }

.glass-radio-group label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: 100px;
    font-size: 14px;
    padding: 0.55rem 1.4rem;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    color: var(--text-mid);
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
    background: transparent;
}

.glass-radio-group label:hover { color: var(--text-dark); }
.glass-radio-group input:checked + label { color: var(--text-dark); }

.glass-glider {
    position: absolute;
    top: 5px; bottom: 5px; left: 5px;
    width: calc((100% - 10px) / 3);
    border-radius: calc(var(--radius-xl) - 5px);
    z-index: 1;
    transition: transform 0.45s cubic-bezier(0.37, 1.95, 0.66, 0.56), background 0.4s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}

#glass-silver:checked ~ .glass-glider { transform: translateX(0%);   background: linear-gradient(135deg, var(--peach), var(--sun)); }
#glass-gold:checked   ~ .glass-glider { transform: translateX(100%); background: linear-gradient(135deg, var(--lavender), #a78bfa); }
#glass-platinum:checked ~ .glass-glider { transform: translateX(200%); background: linear-gradient(135deg, var(--mint), var(--sky)); }

/* ─── PROFIL & LOGOUT ───────────────────────────────────── */
.login-anchor { position: absolute; top: 16px; right: 24px; z-index: 1000; }
.login-link-wrapper { text-decoration: none !important; }

.user-profile {
    width: 130px; height: 46px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-soft), inset 0 1px 2px rgba(255,255,255,0.9);
    border: 1.5px solid rgba(255,176,133,0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.user-profile-inner {
    width: 100%; height: 100%;
    border-radius: calc(var(--radius-md) - 2px);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-dark);
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
}

.user-profile:hover { background: rgba(255,176,133,0.15); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.user-profile-inner svg { width: 22px !important; height: 22px !important; fill: var(--text-mid); flex-shrink: 0; }
.user-profile-inner p { margin: 0; font-size: 13px; color: var(--text-dark); white-space: nowrap; }

.user-menu-wrapper { display: flex; align-items: center; gap: 10px; }

.logout-btn {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(253,164,175,0.38);
    border-radius: var(--radius-sm);
    color: #e05c72;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.logout-btn:hover { background: rgba(253,164,175,0.18); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(253,164,175,0.28); }

.back-anchor { position: absolute; top: 24px; left: 32px; z-index: 1000; }

.btn-back-glass {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 16px;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(196,181,253,0.38);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-back-glass:hover { background: var(--lavender-light); transform: translateX(-4px); }

/* ─── ONGLETS JOURS ─────────────────────────────────────── */
.radio-inputs {
    position: relative;
    display: flex;
    width: 90%;
    margin: 0 auto 60px auto;
    padding: 0.5rem 1rem 0 1rem;
    min-height: 600px;
    height: auto;
    background: none;
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
    font-size: 14px;
    font-family: 'Nunito', sans-serif;
}

.radio-inputs::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 52px;
    background: linear-gradient(135deg, var(--peach-light) 0%, var(--lavender-light) 50%, var(--mint-light) 100%);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border: 2px solid rgba(255,176,133,0.22);
    border-bottom: none;
    z-index: 0;
}

.radio-inputs .radio input { display: none; }

.radio-inputs .radio .name {
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.15s ease-in-out;
    position: relative;
    border-top-left-radius: var(--radius-sm);
    border-top-right-radius: var(--radius-sm);
    z-index: 2;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 13px;
    color: var(--text-mid);
}

.radio-inputs .radio input + .name:hover { color: var(--text-dark); }

.radio-inputs .radio input + .name .pre-name,
.radio-inputs .radio input + .name .pos-name {
    content: "";
    position: absolute;
    width: 10px; height: 10px;
    bottom: 0; opacity: 0;
}

.radio-inputs .radio input + .name .pre-name {
    right: -10px;
    border-bottom-left-radius: 300px;
    box-shadow: -3px 3px 0px 3px var(--white);
}

.radio-inputs .radio input + .name .pos-name {
    left: -10px;
    border-bottom-right-radius: 300px;
    box-shadow: 3px 3px 0px 3px var(--white);
}

.radio-inputs .radio input:checked + .name {
    animation: name-activated 0.12s forwards;
}

@keyframes name-activated {
    from { background: transparent; color: var(--text-mid); }
    to   { background: var(--white); color: var(--text-dark); font-weight: 900; }
}

.radio-inputs .radio input:checked + .name .pre-name,
.radio-inputs .radio input:checked + .name .pos-name {
    animation: name-border-activated 0.12s forwards;
    z-index: 0;
}

@keyframes name-border-activated { from { opacity: 0; } to { opacity: 1; } }

.radio-inputs .radio .name span:last-child {
    z-index: 1;
    padding: 0.55rem 0.9rem;
    border-top-left-radius: var(--radius-sm);
    border-top-right-radius: var(--radius-sm);
}

.radio-inputs .radio input:checked + .name span:last-child {
    animation: name-text-activated 0.12s forwards;
}

@keyframes name-text-activated { from { background: transparent; } to { background: var(--white); } }

/* ─── CONTENU ONGLETS ───────────────────────────────────── */
.radio-inputs > .radio > .content { display: none; }
.radio-inputs .radio input:checked ~ .content { display: block !important; }
.radio-inputs .radio input:checked ~ .content div .form-group,
.radio-inputs .radio input:checked ~ .content div h3 {
    animation: content-activated 0.45s forwards;
}

.content {
    background: var(--white);
    position: absolute;
    left: 0; right: 0;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: 1;
}

.content > div {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    padding-bottom: 1.6rem;
    border: 2px solid var(--cream-dark);
    border-top-width: 0;
    box-shadow: var(--shadow-card);
}

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

/* ─── FORM GROUP ────────────────────────────────────────── */
.form-group {
    margin-bottom: 18px;
    padding: 0 8px;
}

.form-group label {
    display: block;
    font-weight: 800 !important;
    font-family: 'Nunito', sans-serif !important;
    color: var(--text-dark) !important;
    font-size: 13px !important;
    text-shadow: none !important;
    margin-bottom: 5px;
}

/* ─── ÉDITEUR ───────────────────────────────────────────── */
.editor-box {
    border: 2px solid var(--cream-dark);
    padding: 10px 12px;
    min-height: 90px;
    background: #fffdf9;
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow-y: auto;
}

.editor-box:focus {
    outline: none;
    border-color: var(--peach);
    box-shadow: 0 0 0 3px rgba(255,176,133,0.18);
}

.editor-box-recre {
    background: #f5f3ff !important;
    border: 2px dashed var(--lavender) !important;
}

.editor-box-recre::before {
    content: "🏃 Récréation";
    display: block;
    font-size: 10px;
    color: var(--text-mid);
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    margin-bottom: 4px;
}

/* ─── COLOR BUBBLES ─────────────────────────────────────── */
.color-bubble {
    width: 20px; height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(61,44,30,0.10);
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.color-bubble:hover { transform: scale(1.3); box-shadow: 0 2px 8px rgba(0,0,0,0.18); }
.color-bubble.active { border: 2.5px solid var(--text-dark); transform: scale(1.15); }

/* ─── CHECKBOX JOUR (flip) ──────────────────────────────── */
.cbx {
    display: block;
    width: 24px; height: 24px;
    border: 2px solid var(--cream-dark);
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    perspective: 100px;
    flex-shrink: 0;
}

.cbx:hover { border-color: var(--peach); }

.flip {
    display: block;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    position: relative;
    width: 20px; height: 20px;
}

input[type="checkbox"]:checked + .cbx { border-color: var(--peach); }
input[type="checkbox"]:checked + .cbx .flip { transform: rotateY(180deg); }

.front, .back {
    backface-visibility: hidden;
    position: absolute;
    top: 0; left: 0;
    width: 20px; height: 20px;
    border-radius: 3px;
}

.front { background: #fff; z-index: 2; backface-visibility: hidden; }
.back  { transform: rotateY(180deg); background: var(--peach); z-index: 1; backface-visibility: hidden; }
.back svg { margin-top: 3px; fill: none; }
.back svg path { stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ─── INPUTS CONFIG ─────────────────────────────────────── */
.radio-inputs .content input[type="text"],
.radio-inputs .content input[type="time"] {
    background-color: #fffdf9 !important;
    color: var(--text-dark) !important;
    border: 2px solid var(--cream-dark) !important;
    border-radius: var(--radius-sm) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    height: 36px !important;
    min-width: 100px !important;
    font-family: 'Nunito', sans-serif !important;
    font-weight: 600 !important;
    padding: 0 10px !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.radio-inputs .content input[type="text"]:focus,
.radio-inputs .content input[type="time"]:focus {
    border-color: var(--peach) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255,176,133,0.18) !important;
}

/* Checkbox "cours" cachée (remplacée par .cbx custom) */
input[type="checkbox"].cbx-hidden {
    display: none !important;
}

.radio-inputs .content input[type="checkbox"] {
    display: none !important;
}

/* Checkboxes récré (toggle principal + jours) : visibles */
.radio-inputs .content input[type="checkbox"].recre-toggle,
.radio-inputs .content input[type="checkbox"].recre-day-check {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    min-width: unset !important;
    background-color: transparent !important;
    border: none !important;
    accent-color: #ffb085;
    cursor: pointer !important;
    vertical-align: middle;
}

.radio-inputs .content label {
    color: var(--text-dark) !important;
    font-size: 13px !important;
    font-family: 'Nunito', sans-serif !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

.radio-inputs .content .recre-days-zone label {
    color: var(--text-mid) !important;
    font-size: 13px !important;
    text-shadow: none !important;
    font-weight: 600 !important;
}

.radio-inputs .content .recre-toggle-label {
    color: #7c3aed !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    text-shadow: none !important;
}

/* ─── INPUT DATE ────────────────────────────────────────── */
.textInputWrapper {
    position: relative;
    width: 250px;
    --accent-color: var(--peach);
}

.textInputWrapper:before, .textInputWrapper:after {
    content: "";
    left: 0; right: 0;
    position: absolute;
    pointer-events: none;
    bottom: 0;
    z-index: 4;
    width: 100%;
}

.textInputWrapper:before {
    transition: border-bottom-color 200ms ease;
    border-bottom: 1.5px solid var(--cream-dark);
}

.textInputWrapper:after {
    transform: scaleX(0);
    transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
    will-change: transform;
    border-bottom: 2px solid var(--peach);
}

.textInputWrapper:focus-within:after { transform: scaleX(1); }

.textInputWrapper .textInput {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    background: rgba(255,255,255,0.85);
    color: var(--text-dark);
    font-size: 14px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    padding: 8px 12px;
    width: 100%;
    border: none;
    height: 40px;
}

.textInputWrapper .textInput::placeholder { color: var(--text-light); }
.textInputWrapper .textInput:focus { outline: none; background: #fff; }

/* ─── BOUTONS FLOTTANTS ─────────────────────────────────── */
.btn-container-fixed {
    position: fixed;
    bottom: 28px; right: 28px;
    z-index: 9999;
    display: flex;
    gap: 12px;
}

.btn-action {
    padding: 12px 24px;
    border-radius: var(--radius-xl);
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, var(--peach), #f472b6);
    box-shadow: 0 6px 20px rgba(255,176,133,0.42);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 12px;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-action:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(255,176,133,0.52);
    letter-spacing: 1px;
}

.btn-reset-style {
    background: linear-gradient(135deg, var(--rose), #f43f5e) !important;
    box-shadow: 0 6px 20px rgba(244,63,94,0.28) !important;
}

.btn-reset-style:hover {
    background: linear-gradient(135deg, #f43f5e, #be123c) !important;
    box-shadow: 0 10px 28px rgba(244,63,94,0.42) !important;
}

/* ─── BULK / RÉPÉTITIONS ────────────────────────────────── */
.bulk-container {
    background: rgba(255,255,255,0.5);
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-md);
    padding: 20px;
}

.repetition-row {
    background: #fffdf9;
    border: 2px solid var(--cream-dark);
    padding: 1.2rem;
    border-radius: var(--radius-md);
    position: relative;
    box-shadow: var(--shadow-soft);
}

/* ─── LOGIN / REGISTER ──────────────────────────────────── */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255,176,133,0.22);
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    box-shadow: var(--shadow-card);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: "✿";
    position: absolute;
    top: -15px; right: 18px;
    font-size: 90px;
    opacity: 0.05;
    color: var(--peach);
    pointer-events: none;
}

.login-card h2 {
    margin-bottom: 28px;
    font-size: 1.9rem;
    font-style: italic;
    color: var(--text-dark);
    font-family: 'Playfair Display', serif;
}

.input-group { text-align: left; margin-bottom: 18px; }

.input-group label {
    display: block;
    color: var(--text-mid);
    margin-bottom: 7px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
}

.input-group input {
    width: 100%;
    padding: 11px 15px;
    background: rgba(255,255,255,0.85);
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--peach);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255,176,133,0.18);
}

.btn-login {
    width: 100%;
    padding: 13px;
    margin-top: 10px;
    border: none;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--peach), #f472b6);
    color: white;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255,176,133,0.38);
    letter-spacing: 0.5px;
}

.btn-login:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(255,176,133,0.48); }

.auth-switch {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-family: 'Nunito', sans-serif;
}

.auth-switch a { color: #c2724f; text-decoration: none; font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; }

/* ─── RADIO CYCLE ───────────────────────────────────────── */
.radio-selection { display: flex; gap: 18px; margin-top: 10px; }

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-mid);
    font-size: 0.9rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    gap: 8px;
}

.radio-option input { display: none; }

.custom-radio {
    width: 18px; height: 18px;
    border: 2px solid var(--cream-dark);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: 0.3s;
    flex-shrink: 0;
}

.radio-option input:checked + .custom-radio { border-color: var(--peach); background: rgba(255,176,133,0.12); }
.radio-option input:checked + .custom-radio::after {
    content: "";
    width: 8px; height: 8px;
    background: var(--peach);
    border-radius: 50%;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

/* ─── CONFIG SEMAINIER ──────────────────────────────────── */
.glass-card {
    background: rgba(255,255,255,0.75) !important;
    backdrop-filter: blur(20px) !important;
    border: 2px solid rgba(255,176,133,0.22) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-card) !important;
}

/* ─── TEXTAREA & INPUTS GLOBAUX ─────────────────────────── */
textarea, input[type="text"] {
    background-color: #fffdf9;
    color: var(--text-dark);
    font-family: 'Nunito', sans-serif;
    border-radius: var(--radius-sm);
    border: 2px solid var(--cream-dark);
}

textarea {
    width: 100%;
    min-height: 80px;
    resize: none;
    overflow: hidden;
    transition: background-color 0.2s, border-color 0.2s;
    padding: 10px 12px;
}

textarea:focus {
    outline: none;
    border-color: var(--peach);
    box-shadow: 0 0 0 3px rgba(255,176,133,0.16);
}

/* ─── PALETTE BILLES ────────────────────────────────────── */
.container-items { display: flex; align-items: center; gap: 8px; padding: 10px; height: 50px; }

.item-color {
    position: relative;
    width: 28px; height: 28px;
    border: none; outline: none;
    cursor: pointer;
    background: transparent;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.27);
    z-index: 1;
}

.item-color::after {
    position: absolute;
    content: "";
    inset: 0;
    background-color: var(--color);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.16);
    border: 2.5px solid white;
}

.item-color:hover { transform: scale(1.6); z-index: 10; }
.item-color:hover + .item-color { transform: scale(1.2) translateX(5px); }
.item-color:has(+ .item-color:hover) { transform: scale(1.2) translateX(-5px); }

/* ─── BOUTON GÉNÉRER ────────────────────────────────────── */
.btn-generate {
    background: linear-gradient(135deg, var(--peach), #f472b6);
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 15px;
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
    box-shadow: 0 6px 20px rgba(255,176,133,0.38);
    transition: all 0.3s;
}

.btn-generate:hover { transform: scale(1.05) translateY(-3px); box-shadow: 0 10px 28px rgba(255,176,133,0.48); }

.spacer-generer { position: relative; margin-top: 50px; padding-bottom: 100px; text-align: center; clear: both; z-index: 100; }

/* ─── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--peach-light); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--peach); }