/* ==========================================================
   GIROUETTE — ACCUEIL
   Fichier : assets/css/home.css
   Rôle : styles uniquement pour index.php
   ========================================================== */

/* ==========================================================
   1. STRUCTURE GÉNÉRALE
   ========================================================== */

.home-page {
    min-height: 100vh;
}

.home-shell {
    width: min(1120px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 24px 0 36px;
    display: grid;
    gap: 18px;
}

.home-page .muted {
    color: #94a3b8;
}


/* ==========================================================
   2. HERO PRINCIPAL
   ========================================================== */

.home-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    padding: clamp(22px, 3vw, 34px);
    border-radius: 30px;
    background:
        radial-gradient(circle at 0% 0%, rgba(250, 204, 21, 0.16), transparent 21rem),
        radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.14), transparent 22rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.home-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -180px;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.075);
    filter: blur(8px);
    pointer-events: none;
}

.home-hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 22px;
    align-content: start;
}

.home-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.home-logo-wrap {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 19px;
    background: linear-gradient(135deg, #facc15, #eab308);
    box-shadow:
        0 16px 36px rgba(250, 204, 21, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.home-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}

.home-brand strong {
    display: block;
    margin-top: 5px;
    color: #f8fafc;
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.home-brand small {
    display: block;
    margin-top: 5px;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.35;
}

.home-kicker,
.home-section-kicker,
.home-panel-label,
.mode-label {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #111827;
    background: #facc15;
    font-size: 0.7rem;
    font-weight: 1000;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-hero-text {
    max-width: 700px;
}

.home-hero-text h1 {
    max-width: 720px;
    margin: 0;
    color: #f8fafc;
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.075em;
}

.home-hero-text p {
    max-width: 720px;
    margin: 18px 0 0;
    color: #cbd5e1;
    font-size: 1.02rem;
    line-height: 1.65;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-action {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    border-radius: 16px;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(148, 163, 184, 0.24);
    text-decoration: none;
    font-weight: 1000;
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.home-action:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.085);
    border-color: rgba(250, 204, 21, 0.42);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.home-action.primary {
    color: #111827;
    background: #facc15;
    border-color: rgba(250, 204, 21, 0.85);
}

.home-action span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: inherit;
    background: rgba(255, 255, 255, 0.22);
}

.home-action:not(.primary) span {
    color: #facc15;
    background: rgba(250, 204, 21, 0.10);
}


/* ==========================================================
   3. PANNEAU HERO LATÉRAL
   ========================================================== */

.home-hero-panel {
    position: relative;
    z-index: 1;
    min-height: 100%;
    display: grid;
    align-content: space-between;
    gap: 18px;
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.48));
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.home-hero-panel strong {
    display: block;
    color: #f8fafc;
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.home-hero-panel p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.96rem;
    line-height: 1.6;
}

.home-status-list {
    display: grid;
    gap: 10px;
}

.home-status-list div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
}

.status-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    flex: 0 0 auto;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.10);
}

.status-dot.is-ready {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
}

.status-dot.is-warning {
    background: #facc15;
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.16);
}


/* ==========================================================
   4. SECTIONS
   ========================================================== */

.home-section,
.home-server-card {
    padding: 22px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.09), transparent 18rem),
        rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.20);
    box-shadow:
        0 18px 46px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.home-section-title h2,
.home-server-card h2 {
    margin: 8px 0 0;
    color: #f8fafc;
    font-size: clamp(1.45rem, 3vw, 2.05rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.home-section-title small {
    color: #94a3b8;
}

.home-section-kicker {
    color: #facc15;
    background: rgba(250, 204, 21, 0.10);
    border: 1px solid rgba(250, 204, 21, 0.22);
}


/* ==========================================================
   5. CARTES MODES
   ========================================================== */

.home-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.home-mode-card {
    position: relative;
    overflow: hidden;
    min-height: 205px;
    display: grid;
    gap: 14px;
    padding: 22px;
    border-radius: 24px;
    text-decoration: none;
    color: #f8fafc;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.90), rgba(15, 23, 42, 0.94));
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 16px 38px rgba(0, 0, 0, 0.15);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.home-mode-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(250, 204, 21, 0.18), transparent 16rem);
    opacity: 0.85;
    pointer-events: none;
}

.home-mode-card.control-mode::before {
    background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.20), transparent 16rem);
}

.home-mode-card:hover {
    transform: translateY(-3px);
    border-color: rgba(250, 204, 21, 0.46);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.26);
}

.home-mode-card > * {
    position: relative;
    z-index: 1;
}

.mode-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mode-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    color: #111827;
    background: #facc15;
    font-size: 1.25rem;
    font-weight: 1000;
    flex: 0 0 auto;
}

.control-mode .mode-icon {
    color: #082f49;
    background: #7dd3fc;
}

.mode-label {
    color: #facc15;
    background: rgba(250, 204, 21, 0.10);
    border: 1px solid rgba(250, 204, 21, 0.20);
}

.control-mode .mode-label {
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.10);
    border-color: rgba(56, 189, 248, 0.20);
}

.home-mode-card strong {
    display: block;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.home-mode-card p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.55;
}

.home-mode-card em {
    color: #facc15;
    font-style: normal;
    font-weight: 1000;
}

.control-mode em {
    color: #7dd3fc;
}


/* ==========================================================
   6. OUTILS RAPIDES
   ========================================================== */

.home-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-tool-card {
    min-height: 168px;
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 20px;
    border-radius: 22px;
    color: #f8fafc;
    text-decoration: none;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.80), rgba(15, 23, 42, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.20);
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.home-tool-card:hover {
    transform: translateY(-3px);
    border-color: rgba(250, 204, 21, 0.42);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.98));
}

.tool-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #111827;
    background: #facc15;
    font-weight: 1000;
    font-size: 1.1rem;
}

.home-tool-card strong {
    font-size: 1.16rem;
    line-height: 1.1;
}

.home-tool-card p {
    margin: 0;
    color: #94a3b8;
    line-height: 1.52;
}


/* ==========================================================
   7. ADRESSES SERVEUR
   ========================================================== */

.home-server-card {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 22px;
}

.home-server-card p {
    margin: 10px 0 0;
}

.home-url-grid {
    display: grid;
    gap: 12px;
}

.home-url-item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.52);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.home-url-item span {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 1000;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-url-item code {
    color: #e0f2fe;
    font-size: 0.92rem;
    word-break: break-all;
}


/* ==========================================================
   8. FOOTER
   ========================================================== */

.home-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 4px;
    color: #94a3b8;
}

.home-footer a {
    color: #facc15;
    font-weight: 1000;
    text-decoration: none;
}

.home-footer a:hover {
    text-decoration: underline;
}


/* ==========================================================
   9. RESPONSIVE
   ========================================================== */

@media (max-width: 1040px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-hero-panel {
        align-content: start;
        min-height: auto;
    }

    .home-tools-grid {
        grid-template-columns: 1fr;
    }

    .home-server-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .home-shell {
        width: min(100% - 18px, 1120px);
        padding-top: 18px;
    }

    .home-hero,
    .home-section,
    .home-server-card {
        border-radius: 24px;
        padding: 18px;
    }

    .home-brand {
        align-items: flex-start;
    }

    .home-logo-wrap {
        width: 56px;
        height: 56px;
        border-radius: 18px;
    }

    .home-logo {
        width: 40px;
        height: 40px;
    }

    .home-hero-text h1 {
        font-size: clamp(2.1rem, 12vw, 3.25rem);
    }

    .home-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .home-action {
        justify-content: center;
    }

    .home-section-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-mode-grid {
        grid-template-columns: 1fr;
    }

    .home-mode-card {
        min-height: 210px;
        padding: 20px;
    }

    .home-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
