/* ════════════════════════════════════════════════════════════════════
   Editenix — Homepage applicative en cartes (étape 3)
   Même langage visuel que la porte d'entrée : fond bleu nuit immersif,
   logotype, cartes claires flottantes. Couleurs : #132739, #34a4c6.
   ════════════════════════════════════════════════════════════════════ */

.enx-home {
    --enx-nuit:   #132739;
    --enx-nuit-2: #0d1c2a;
    --enx-cyan:   #34a4c6;
    --enx-bleu:   #3b5998;
    --enx-ink:    #1f2d3d;
    --enx-muted:  #6b7a8d;
    --enx-line:   #e3e9f0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3.5rem 1.25rem 3rem;
    box-sizing: border-box;
    overflow: hidden;
}

.enx-home__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(1300px 650px at 50% -15%, rgba(52,164,198,0.20), transparent 60%),
        radial-gradient(1000px 520px at 90% 115%, rgba(59,89,152,0.18), transparent 55%),
        linear-gradient(165deg, var(--enx-nuit) 0%, var(--enx-nuit-2) 100%);
}
.enx-home__bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 50% 25%, #000 35%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle at 50% 25%, #000 35%, transparent 85%);
}

.enx-home__shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 880px;
}

/* ── En-tête ─────────────────────────────────────────────────────── */
.enx-home__header {
    text-align: center;
    margin-bottom: 2.25rem;
    animation: enx-home-rise .55s cubic-bezier(.2,.7,.3,1) both;
}
.enx-home__brand {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}
.enx-home__brand-dot { color: var(--enx-cyan); }

.enx-home__hello {
    margin: 1.1rem 0 .25rem;
    font-size: 1.9rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
}
.enx-home__intro {
    margin: 0;
    font-size: .95rem;
    color: rgba(255,255,255,0.6);
}

/* ── Grille de cartes ────────────────────────────────────────────── */
.enx-home__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.1rem;
}

.enx-home__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .55rem;
    padding: 1.5rem 1.4rem;
    background: #fff;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 12px 32px -14px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform .16s cubic-bezier(.2,.7,.3,1), box-shadow .16s;
    animation: enx-home-rise .5s cubic-bezier(.2,.7,.3,1) both;
}
.enx-home__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -14px rgba(0,0,0,0.55);
}

.enx-home__card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(160deg, var(--enx-cyan), var(--enx-bleu));
}
/* Nuances d'icône par carte, pour distinguer les espaces sans surcharger. */
.enx-home__card--dashboard .enx-home__card-icon { background: linear-gradient(160deg,#34a4c6,#2b7fa0); }
.enx-home__card--catalogue .enx-home__card-icon { background: linear-gradient(160deg,#3b7dd8,#3b5998); }
.enx-home__card--ventes    .enx-home__card-icon { background: linear-gradient(160deg,#39b58a,#2e8f73); }
.enx-home__card--diffusion .enx-home__card-icon { background: linear-gradient(160deg,#7a6fe0,#5a4fc0); }
.enx-home__card--stats     .enx-home__card-icon { background: linear-gradient(160deg,#e0915a,#c87038); }
.enx-home__card--reglages  .enx-home__card-icon { background: linear-gradient(160deg,#6b7a8d,#4a5667); }

.enx-home__card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--enx-ink);
}
.enx-home__card-desc {
    font-size: .85rem;
    line-height: 1.4;
    color: var(--enx-muted);
}

/* ── Déconnexion ─────────────────────────────────────────────────── */
.enx-home__logout {
    text-align: center;
    margin: 2.25rem 0 0;
    font-size: .85rem;
}
.enx-home__logout a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .15s, border-color .15s;
}
.enx-home__logout a:hover {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.5);
}

/* ── État vide / invite connexion ────────────────────────────────── */
.enx-home--empty {
    align-items: center;
}
.enx-home__login-btn {
    display: inline-block;
    margin-top: .75rem;
    padding: .7rem 1.8rem;
    background: linear-gradient(180deg, var(--enx-cyan), #2b8aa8);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 18px -6px rgba(52,164,198,0.6);
}

/* ── Animation ───────────────────────────────────────────────────── */
@keyframes enx-home-rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .enx-home__header, .enx-home__card { animation: none; }
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .enx-home { padding: 2.5rem 1rem; }
    .enx-home__hello { font-size: 1.55rem; }
    .enx-home__grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════════
   Écran de bienvenue (étape 5) — onboarding première connexion
   ════════════════════════════════════════════════════════════════════ */
.enx-welcome {
    --enx-nuit: #132739;
    --enx-nuit-2: #0d1c2a;
    --enx-cyan: #34a4c6;
    --enx-cyan-d: #2b8aa8;
    --enx-bleu: #3b5998;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.25rem;
    box-sizing: border-box;
    overflow: hidden;
}
.enx-welcome__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(1200px 600px at 50% -10%, rgba(52,164,198,0.22), transparent 60%),
        radial-gradient(900px 500px at 85% 110%, rgba(59,89,152,0.20), transparent 55%),
        linear-gradient(160deg, var(--enx-nuit) 0%, var(--enx-nuit-2) 100%);
}
.enx-welcome__bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 80%);
}
.enx-welcome__shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    text-align: center;
    animation: enx-home-rise .6s cubic-bezier(.2,.7,.3,1) both;
}
.enx-welcome__brand {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}
.enx-welcome__brand-dot { color: var(--enx-cyan); }
.enx-welcome__title {
    margin: 1.4rem 0 .6rem;
    font-size: 2.1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.12;
}
.enx-welcome__intro {
    margin: 0 auto 1.6rem;
    max-width: 30em;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.72);
}
.enx-welcome__points {
    list-style: none;
    margin: 0 auto 2rem;
    padding: 0;
    max-width: 30em;
    text-align: left;
}
.enx-welcome__points li {
    position: relative;
    padding: .5rem 0 .5rem 1.9rem;
    color: rgba(255,255,255,0.85);
    font-size: .94rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.enx-welcome__points li:last-child { border-bottom: none; }
.enx-welcome__points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(160deg, var(--enx-cyan), var(--enx-bleu));
}
.enx-welcome__cta {
    display: inline-block;
    padding: .85rem 2rem;
    background: linear-gradient(180deg, var(--enx-cyan), var(--enx-cyan-d));
    color: #fff;
    border-radius: 11px;
    text-decoration: none;
    font-size: 1.02rem;
    font-weight: 700;
    box-shadow: 0 10px 24px -8px rgba(52,164,198,0.6);
    transition: transform .12s, box-shadow .15s, filter .15s;
}
.enx-welcome__cta:hover {
    filter: brightness(1.06);
    box-shadow: 0 14px 30px -8px rgba(52,164,198,0.7);
    transform: translateY(-2px);
}
@media (max-width: 600px) {
    .enx-welcome__title { font-size: 1.6rem; }
}
