/* PAGE BACKGROUND */
.td-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding: clamp(18px, 3vw, 42px);
    background:
            radial-gradient(1200px 800px at 70% 30%, rgba(86, 164, 255, .22), transparent 60%),
            radial-gradient(900px 650px at 30% 75%, rgba(34, 92, 255, .20), transparent 60%),
            linear-gradient(180deg, #121a4a 0%, #0e1541 55%, #0b1237 100%);
    overflow:hidden;
}

.td-page:before{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 130px 130px;
    opacity:.12;
}

/* MAIN FRAME */
.td-frame{
    width: min(1080px, 100%);
    height: auto;
    min-height: 520px;
    max-height: 620px;

    border-radius: 22px;
    overflow:hidden;
    display:grid;
    grid-template-columns: 380px 1fr;

    box-shadow: 0 28px 95px rgba(0,0,0,.45);
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(10px);
}

/* LEFT */
.td-left{
    background: rgba(255,255,255,.96);
    display:flex;
    align-items:center;
    justify-content:center;
    padding: 24px;
}
.td-left-inner{ width:100%; max-width: 295px; }

.td-brand{ display:flex; align-items:center; justify-content:flex-start; margin-bottom:18px; margin-left: 10px; }
.td-logo{ width:250px; height:auto; display:block; }

.td-avatar{ display:flex; justify-content:center; margin:0px 0 30px; }
.td-avatar-circle{
    width:86px; height:86px; border-radius:999px;
    background:#1b2a66; display:flex; align-items:center; justify-content:center;
    color:#fff; font-size:34px;
    box-shadow: 0 12px 30px rgba(27,42,102,.22);
}

/* INPUTS (PILLS) – CLEAN, PERFECT ROUND */
.td-pill{
    position: relative;
    height: 46px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 8px 20px rgba(15,23,42,.06);

    display:flex;
    align-items:center;
    padding: 0 16px;
    gap: 10px;

    overflow: hidden;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

/* focus premium sobre */
.td-pill:focus-within{
    border-color: rgba(27, 42, 102, .30);
    box-shadow:
            0 16px 36px rgba(15,23,42,.12),
            0 0 0 6px rgba(86,164,255,.12);
    transform: translateY(-1px);
}

.td-pill-ic{
    width: 22px;
    min-width: 22px;
    color: rgba(15, 23, 42, .45);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size: 14px;
}

.td-pill-in{
    width:100%;
    height:100%;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;

    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(15, 23, 42, .92);
}
.td-pill-in::placeholder{ color: rgba(15, 23, 42, .40); }

/* neutralize bootstrap */
.td-pill .form-control,
.form-control.td-pill-in{
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Chrome autofill fix */
.td-pill-in:-webkit-autofill,
.td-pill-in:-webkit-autofill:hover,
.td-pill-in:-webkit-autofill:focus,
.td-pill-in:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,0) inset !important;
    box-shadow: 0 0 0 1000px rgba(255,255,255,0) inset !important;
    -webkit-text-fill-color: rgba(15, 23, 42, .92) !important;
    caret-color: rgba(15, 23, 42, .92) !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* OPTIONS */
.td-left-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin: 10px 2px 14px;
    font-size: 12.5px;
}
.td-check{
    display:inline-flex;
    align-items:center;
    gap: 8px;
    margin:0;
    font-weight: 500;
    color: rgba(0,0,0,.65);
}
.td-link{ color: rgba(27,42,102,.85); text-decoration:none; }
.td-link:hover{ text-decoration:underline; }

/* BUTTON */
.td-btn{
    width:100%;
    height: 46px;
    border-radius: 999px;
    border:none;
    background: #1b2a66;
    color:#fff;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.td-btn:hover{
    background:#162456;
    transform: translateY(-1px);
    box-shadow: 0 18px 45px rgba(15,23,42,.18);
}

/* Errors */
.form-error .td-pill{
    border-color:#dc3545 !important;
    box-shadow: 0 16px 36px rgba(220,53,69,.12);
}
.form-error .help-block{ color:#dc3545; margin-top:6px; font-size:12px; }

/* RIGHT PANEL */
.td-right{
    position:relative;
    color:#fff;
    padding: 22px 28px;
    overflow:hidden;
    background:
            radial-gradient(560px 420px at 72% 32%, rgba(245, 210, 150, .85), rgba(245,210,150,0) 60%),
            radial-gradient(780px 540px at 55% 60%, rgba(70, 190, 255, .60), rgba(70,190,255,0) 60%),
            radial-gradient(780px 560px at 38% 40%, rgba(60, 75, 255, .50), rgba(60,75,255,0) 62%),
            linear-gradient(135deg, #0c1c52 0%, #0b2a62 45%, #0a356a 100%);
}

/* Fond en <img> (plus fiable que :after) */
.td-bg-img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit: cover;
    opacity: .22;
    filter: saturate(1.05) contrast(1.10);
    z-index:1;
    pointer-events:none;
}

.td-veil{
    position:absolute;
    inset:0;
    background: linear-gradient(140deg, rgba(7,12,30,.55) 0%, rgba(7,12,30,.15) 60%, rgba(7,12,30,.05) 100%);
    z-index:2;
    pointer-events:none;
}

/* TOP MENU */
.td-menu{
    position:relative;
    z-index:3;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap: 18px;
}

/* cachés pour le moment */
.td-menu-links{ display:none !important; }

.td-menu-right{
    margin-left:auto;
    display:flex;
    align-items:center;
    gap: 12px;
}

/* ==========================
   FIX LINK HOVER (NO GREEN)
========================== */

/* liens par défaut dans le shell */
.td-page a{
    color: rgba(15,23,42,.85);
    text-decoration: none;
    transition: color .16s ease;
}

/* hover */
.td-page a:hover{
    color: #1b2a66; /* bleu premium */
    text-decoration: underline;
}

/* liens dans panneau droit (fond sombre) */
.td-right a{
    color: rgba(255,255,255,.90);
}

.td-right a:hover{
    color: #ffffff;
    text-decoration: underline;
}

/* ==========================
   SUBTLE SECONDARY LINKS
========================== */

/* liens secondaires sous boutons */
.td-sub-link,
.td-sub-link a{
    font-weight: 400 !important;     /* enlève le bold */
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(15,23,42,.65);
}

/* hover subtil */
.td-sub-link a{
    color: rgba(15,23,42,.75);
    text-decoration: none;
    transition: all .15s ease;
}

.td-sub-link a:hover{
    color: #1b2a66;
    text-decoration: underline;
}

/* version panneau droit (fond sombre) */
.td-right .td-sub-link,
.td-right .td-sub-link a{
    color: rgba(255,255,255,.70);
}

.td-right .td-sub-link a:hover{
    color: #ffffff;
}

/* =========================
LANG BUTTONS (FR / NL / EN) – ROUND
========================= */

.td-lang-flags{
    display:flex;
    align-items:center;
    gap: 10px;
}

/* round pill */
.td-flag{
    width: 34px;
    height: 34px;
    border-radius: 50%;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    text-decoration:none;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;

    color: rgba(255,255,255,.92);
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);

    box-shadow: 0 10px 28px rgba(0,0,0,.16);
    transform: translateY(1px);

    transition: transform .16s ease,
    background .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    color .16s ease;
}

.td-flag:hover{
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.22);
    transform: translateY(0px);
    box-shadow: 0 16px 40px rgba(0,0,0,.22);
    color:#fff;
    text-decoration:none;
}

/* active state */
.td-flag.is-active{
    background: rgba(255,255,255,.22);
    border-color: rgba(255,255,255,.28);
    box-shadow:
            0 16px 40px rgba(0,0,0,.22),
            0 0 0 6px rgba(86,164,255,.10);
    color:#fff;
}

/* force color + no underline in ALL states */
.td-flag,
.td-flag:link,
.td-flag:visited,
.td-flag:hover,
.td-flag:active,
.td-flag:focus{
    color: rgba(255,255,255,.92);
    text-decoration: none !important;
}

.td-menu-actions{ display:flex; align-items:center; }

.td-burger{
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.10);
    display:flex;
    align-items:center;
    justify-content:center;
    gap: 4px;
    flex-direction:column;
    cursor:pointer;
}
.td-burger span{
    width: 14px;
    height: 2px;
    background: rgba(255,255,255,.85);
    border-radius: 99px;
}

/* WELCOME (sans “Seegma”) */
.td-welcome{
    position:absolute;
    right: 56px;
    bottom: 58px;
    z-index:3;
    text-align:right;
    max-width: 640px;
    padding: 18px 18px;
}

.td-welcome-title{
    margin:0;
    font-size: clamp(58px, 6vw, 96px);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: rgba(255,255,255,.92);
    text-shadow: 0 18px 55px rgba(0,0,0,.55);
    line-height: 1; /* évite chevauchements */
}
.td-welcome-title span{ opacity:.95; }

.td-welcome-mini{
    margin: 25px 0 0;
    font-size: 12px;
    color: rgba(255,255,255,.78);
    text-shadow: 0 10px 30px rgba(0,0,0,.45);
}

.td-welcome-link{
    color:#fff;
    font-weight: 800;
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 980px){
    .td-frame{ grid-template-columns: 1fr; max-height: none; }
    .td-right{ min-height: 340px; }
    .td-welcome{ right: 22px; left: 22px; bottom: 22px; text-align:left; }
}