/* ============================================================
   YJ SITE — Page 404
============================================================ */

.yj-404{
    position:relative;
    width:100%;
    min-height:calc(100vh - 80px);
    padding:60px 5% 100px;
    box-sizing:border-box;
    font-family:var(--yj-body);
    color:var(--yj-ink);
    display:flex;
    align-items:center;
}

.yj-404__inner{
    position:relative;z-index:2;
    max-width:1100px;
    width:100%;
    margin:0 auto;
    text-align:center;
}

/* ============ HERO (le grand 404) ============ */
.yj-404__hero{
    position:relative;
    margin-bottom:50px;
    opacity:0;transform:translateY(20px);
    animation:yj404Reveal .9s var(--yj-ease-out) forwards;
}
@keyframes yj404Reveal{to{opacity:1;transform:translateY(0);}}

.yj-404__eyebrow{
    display:inline-flex;
    align-items:center;
    gap:10px;
    font-family:var(--yj-body);
    font-size:12px;
    font-weight:500;
    letter-spacing:.18em;
    text-transform:uppercase;
    color:var(--yj-terracotta);
    padding:8px 16px;
    border:1px solid rgba(199,93,58,.25);
    border-radius:4px;
    background:rgba(255,255,255,.5);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    margin-bottom:30px;
}
.yj-404__dot{
    width:7px;height:7px;
    border-radius:50%;
    background:var(--yj-terracotta);
    box-shadow:0 0 0 4px rgba(199,93,58,.18);
    animation:yj404Pulse 2.4s ease-in-out infinite;
}
@keyframes yj404Pulse{
    0%,100%{box-shadow:0 0 0 4px rgba(199,93,58,.18);}
    50%{box-shadow:0 0 0 9px rgba(199,93,58,.04);}
}

/* Le grand 404 typographique */
.yj-404__number{
    font-family:var(--yj-display);
    font-size:clamp(120px, 22vw, 280px);
    font-weight:900;
    line-height:.9;
    letter-spacing:-.06em;
    margin:0;
    display:flex;
    justify-content:center;
    align-items:baseline;
    gap:.02em;
    user-select:none;
}
.yj-404__digit{
    display:inline-block;
    color:var(--yj-green-deep);
    transition:transform .4s var(--yj-ease), color .4s var(--yj-ease);
    cursor:default;
}
.yj-404__digit--1{
    animation:yj404Float1 5s ease-in-out infinite;
}
.yj-404__digit--zero{
    color:var(--yj-terracotta);
    position:relative;
    animation:yj404Spin 12s linear infinite;
}
.yj-404__digit--2{
    animation:yj404Float2 6s ease-in-out infinite;
    animation-delay:.5s;
}
@keyframes yj404Float1{
    0%,100%{transform:translateY(0) rotate(-2deg);}
    50%{transform:translateY(-12px) rotate(2deg);}
}
@keyframes yj404Float2{
    0%,100%{transform:translateY(0) rotate(2deg);}
    50%{transform:translateY(-10px) rotate(-2deg);}
}
@keyframes yj404Spin{
    0%{transform:rotate(0);}
    100%{transform:rotate(360deg);}
}
.yj-404__digit:hover{
    color:var(--yj-terracotta);
    transform:scale(1.06);
}
.yj-404__digit--zero:hover{
    color:var(--yj-green-deep);
}

/* Feuille décorative qui flotte */
.yj-404__leaf{
    position:absolute;
    top:50%;right:8%;
    width:64px;height:64px;
    color:var(--yj-green);
    transform:translateY(-50%) rotate(15deg);
    opacity:.45;
    animation:yj404LeafFloat 8s ease-in-out infinite;
    pointer-events:none;
}
@keyframes yj404LeafFloat{
    0%,100%{transform:translateY(-50%) rotate(15deg);}
    50%{transform:translateY(-65%) rotate(-10deg);}
}

/* ============ MESSAGE ============ */
.yj-404__message{
    max-width:680px;
    margin:0 auto 50px;
    opacity:0;transform:translateY(20px);
    animation:yj404Reveal .9s var(--yj-ease-out) .25s forwards;
}
.yj-404__title{
    font-family:var(--yj-display);
    font-size:clamp(28px, 4vw, 44px);
    font-weight:900;
    line-height:1.1;
    letter-spacing:-.025em;
    color:var(--yj-ink);
    margin:0 0 16px;
}
.yj-404__title span{
    color:var(--yj-green-deep);
    position:relative;
    display:inline-block;
}
.yj-404__title span::after{
    content:"";
    position:absolute;
    left:0;right:0;
    bottom:-0.12em;
    height:.1em;
    background:var(--yj-terracotta);
    border-radius:2px;
}
.yj-404__text{
    font-family:var(--yj-body);
    font-size:16px;
    line-height:1.65;
    color:var(--yj-muted);
    margin:0;
}

/* ============ SUGGESTIONS (cards) ============ */
.yj-404__suggestions{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
    gap:14px;
    max-width:900px;
    margin:0 auto 50px;
    opacity:0;transform:translateY(20px);
    animation:yj404Reveal .9s var(--yj-ease-out) .45s forwards;
}

.yj-404__card{
    display:flex;
    align-items:center;
    gap:16px;
    padding:18px 20px;
    background:rgba(255,255,255,.7);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    border:1px solid var(--yj-line);
    border-radius:6px;
    text-align:left;
    text-decoration:none;
    color:inherit;
    cursor:pointer;
    font-family:inherit;
    transition:all .4s var(--yj-ease);
    position:relative;
    overflow:hidden;
    width:100%;
}
.yj-404__card::before{
    content:"";
    position:absolute;
    top:0;left:0;
    width:3px;height:100%;
    background:var(--yj-terracotta);
    transform:scaleY(0);
    transform-origin:top center;
    transition:transform .4s var(--yj-ease-out);
}
.yj-404__card:hover{
    transform:translateY(-3px);
    border-color:var(--yj-green-deep);
    background:rgba(255,255,255,.95);
    box-shadow:0 18px 32px -16px rgba(27,94,61,.3);
}
.yj-404__card:hover::before{
    transform:scaleY(1);
}

.yj-404__card-icon{
    width:44px;
    height:44px;
    flex-shrink:0;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--yj-green-deep);
    background:rgba(45,122,79,.08);
    border-radius:6px;
    transition:transform .5s var(--yj-ease), background .4s var(--yj-ease), color .4s var(--yj-ease);
}
.yj-404__card-icon svg{
    width:22px;
    height:22px;
}
.yj-404__card:hover .yj-404__card-icon{
    transform:scale(1.06) rotate(-4deg);
    background:rgba(199,93,58,.12);
    color:var(--yj-terracotta);
}

.yj-404__card-body{
    flex:1;
    min-width:0;
}
.yj-404__card-title{
    font-family:var(--yj-body);
    font-size:14px;
    font-weight:600;
    color:var(--yj-ink);
    margin-bottom:2px;
    transition:color .3s var(--yj-ease);
}
.yj-404__card:hover .yj-404__card-title{
    color:var(--yj-green-deep);
}
.yj-404__card-text{
    font-family:var(--yj-body);
    font-size:12.5px;
    color:var(--yj-muted);
    line-height:1.4;
}
.yj-404__ext{
    display:inline-block;
    width:11px;height:11px;
    color:var(--yj-terracotta);
    margin-left:4px;
    vertical-align:-1px;
}

.yj-404__card-arrow{
    width:20px;
    height:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--yj-green-deep);
    transition:transform .4s var(--yj-ease), color .4s var(--yj-ease);
    flex-shrink:0;
}
.yj-404__card-arrow svg{
    width:18px;
    height:18px;
}
.yj-404__card:hover .yj-404__card-arrow{
    color:var(--yj-terracotta);
    transform:translateX(6px);
}

/* ============ FOOTNOTE ============ */
.yj-404__footnote{
    font-family:var(--yj-body);
    font-size:13px;
    color:var(--yj-muted);
    max-width:600px;margin:0 auto;
    padding-top:30px;border-top:1px solid var(--yj-line);
    opacity:0;
    animation:yj404Reveal .9s var(--yj-ease-out) .7s forwards;
}
.yj-404__footnote a{
    color:var(--yj-green-deep);
    font-weight:500;
    text-decoration:none;
    border-bottom:1px solid var(--yj-terracotta);
    transition:color .3s var(--yj-ease);
}
.yj-404__footnote a:hover{
    color:var(--yj-terracotta);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 720px){
    .yj-404{padding:50px 6% 80px;min-height:auto;display:block;}
    .yj-404__number{font-size:140px;}
    .yj-404__leaf{display:none;}
    .yj-404__message{margin-bottom:40px;}
    .yj-404__suggestions{margin-bottom:40px;}
    .yj-404__card{padding:16px;gap:14px;}
    .yj-404__card-icon{width:40px;height:40px;}
    .yj-404__card-icon svg{width:20px;height:20px;}
}
@media (max-width: 420px){
    .yj-404__number{font-size:110px;}
    .yj-404__title{font-size:24px;}
    .yj-404__text{font-size:14.5px;}
}
