/* =========================================================
   CLOVER ISLAND — PAGE COMMANDES
   Palette et composants alignés sur les pages Bestiaire / Testeurs.
   ========================================================= */

.commandes-body {
    min-height: 100vh;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    background: #06191c;
    color: #edf1df;
}

.commandes-body .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.commandes-page {
    min-height: calc(100vh - 74px);
    padding: 26px 4vw 76px;
    background:
        radial-gradient(circle at 78% 3%, rgba(44,113,92,.16), transparent 27%),
        radial-gradient(circle at 8% 38%, rgba(166,239,88,.035), transparent 25%),
        #06191c;
}

.commandes-shell {
    width: min(1450px, 100%);
    margin: 0 auto;
}

.commandes-hero {
    min-height: 340px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 40px;
    padding: 28px 0 36px;
    overflow: hidden;
}

.commandes-hero-copy { min-width: 0; position: relative; z-index: 2; }

.commandes-eyebrow,
.guide-label {
    color: #9bed55;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .22em;
}

.commandes-hero h1 {
    margin: 14px 0 0;
    font-size: clamp(42px, 6vw, 78px);
    line-height: .9;
    letter-spacing: -.055em;
    font-weight: 950;
}

.commandes-hero h1 span { color: #a6ef58; }

.commandes-hero-copy > p {
    max-width: 690px;
    margin: 22px 0 25px;
    color: rgba(237,241,223,.62);
    font-size: 14px;
    line-height: 1.75;
}

.commandes-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.commandes-summary div { display: flex; flex-direction: column; gap: 3px; }
.commandes-summary strong { color: #a6ef58; font-size: 21px; font-weight: 900; }
.commandes-summary span {
    color: rgba(237,241,223,.42);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
}

.commandes-hero-art {
    position: relative;
    width: 300px;
    height: 300px;
    justify-self: center;
    display: grid;
    place-items: center;
    border: 1px solid rgba(151,219,179,.13);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(72,137,102,.15), transparent 68%);
}

.commandes-orbit { position: absolute; border: 1px dashed rgba(166,239,88,.24); border-radius: 50%; }
.orbit-one { inset: 24px; }
.orbit-two { inset: 58px; border-style: solid; border-color: rgba(151,219,179,.13); }

.commandes-hero-symbol {
    width: 116px;
    height: 116px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(166,239,88,.3);
    border-radius: 30px;
    background: rgba(5,25,28,.86);
    color: #a6ef58;
    font-size: 70px;
    font-weight: 800;
    transform: rotate(-8deg);
    box-shadow: 0 22px 55px rgba(0,0,0,.24), 0 0 45px rgba(166,239,88,.07);
}

.floating-command {
    position: absolute;
    padding: 9px 12px;
    border: 1px solid rgba(166,239,88,.2);
    border-radius: 10px;
    background: #0a2527;
    color: #d9f6b0;
    font: 800 12px ui-monospace, SFMono-Regular, Menlo, monospace;
    box-shadow: 0 10px 25px rgba(0,0,0,.18);
}
.floating-one { top: 34px; left: 3px; transform: rotate(-8deg); }
.floating-two { right: -5px; top: 110px; transform: rotate(7deg); }
.floating-three { left: 28px; bottom: 36px; transform: rotate(5deg); }

.commandes-guide {
    display: grid;
    grid-template-columns: 48px minmax(0,1fr);
    gap: 20px;
    align-items: start;
    margin: 0 0 24px;
    padding: 25px 28px;
    border: 1px solid rgba(151,219,179,.14);
    border-radius: 22px;
    background: rgba(7,26,29,.72);
}

.guide-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(166,239,88,.2);
    border-radius: 14px;
    color: #a6ef58;
    background: rgba(166,239,88,.07);
    font-size: 24px;
}

.commandes-guide h2 {
    margin: 7px 0 7px;
    font-size: clamp(20px, 2.5vw, 28px);
    letter-spacing: -.035em;
}

.commandes-guide p {
    max-width: 900px;
    margin: 0;
    color: rgba(237,241,223,.56);
    font-size: 13px;
    line-height: 1.7;
}

.commandes-guide code {
    color: #d9f6b0;
    font-size: .95em;
}

.commandes-toolbar {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(240px,330px);
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(151,219,179,.15);
    border-radius: 22px;
    background: rgba(7,26,29,.72);
}

.commandes-filters { display: flex; flex-wrap: wrap; gap: 6px; }

.commandes-filter {
    padding: 12px 14px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: rgba(237,241,223,.57);
    font: inherit;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    cursor: pointer;
    transition: .2s ease;
}
.commandes-filter:hover { color: #edf1df; background: rgba(255,255,255,.04); }
.commandes-filter.is-active { color: #06191c; background: #a6ef58; }

.commandes-search {
    height: 52px;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 15px;
    border: 1px solid rgba(151,219,179,.16);
    border-radius: 14px;
    background: rgba(19,39,42,.76);
}
.commandes-search > span { color: #a6ef58; font-size: 25px; line-height: 1; }
.commandes-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #edf1df;
    font: inherit;
    font-size: 13px;
}
.commandes-search input::placeholder { color: rgba(237,241,223,.4); }

.commandes-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 13px;
    margin-top: 14px;
}

.command-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 48px minmax(0,1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 21px;
    border: 1px solid rgba(151,219,179,.14);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(10,37,39,.98), rgba(7,28,31,.98));
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.command-card:hover {
    transform: translateY(-2px);
    border-color: rgba(166,239,88,.35);
    background: linear-gradient(135deg, rgba(13,43,42,.98), rgba(7,28,31,.98));
}
.command-card[hidden] { display: none !important; }

.command-card-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(166,239,88,.18);
    border-radius: 14px;
    background: rgba(166,239,88,.06);
    color: #a6ef58;
    font-size: 22px;
}

.command-card-content { min-width: 0; }
.command-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.command-category {
    color: #9bed55;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.command-index { color: rgba(237,241,223,.25); font-size: 10px; font-weight: 900; }
.command-card h2 { margin: 9px 0 7px; font-size: 17px; line-height: 1.2; letter-spacing: -.025em; }
.command-card p { margin: 0; color: rgba(237,241,223,.55); font-size: 12px; line-height: 1.65; }

.command-card-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 9px;
    min-width: 104px;
}
.command-code {
    display: inline-block;
    max-width: 100%;
    padding: 9px 10px;
    border: 1px solid rgba(166,239,88,.18);
    border-radius: 9px;
    background: rgba(166,239,88,.07);
    color: #d9f6b0;
    font: 800 12px ui-monospace, SFMono-Regular, Menlo, monospace;
    white-space: nowrap;
}
.copy-command {
    border: 0;
    padding: 5px 2px;
    background: transparent;
    color: rgba(237,241,223,.5);
    font: inherit;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
    cursor: pointer;
    transition: color .2s ease;
}
.copy-command span { color: #a6ef58; font-size: 13px; margin-right: 4px; }
.copy-command:hover, .copy-command.copied { color: #a6ef58; }
.command-note {
    color: rgba(237,241,223,.3);
    font-size: 8px;
    text-align: right;
    line-height: 1.4;
}

.command-aliases { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.command-aliases > span { color: rgba(237,241,223,.35); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.command-aliases code {
    padding: 4px 7px;
    border: 1px solid rgba(151,219,179,.12);
    border-radius: 6px;
    color: rgba(237,241,223,.7);
    background: rgba(255,255,255,.025);
    font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.command-empty {
    grid-column: 1 / -1;
    padding: 35px 20px;
    border: 1px dashed rgba(151,219,179,.2);
    border-radius: 18px;
    color: rgba(237,241,223,.5);
    text-align: center;
    font-size: 13px;
}
.command-empty[hidden] { display: none; }

.commandes-footer-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 23px;
    color: rgba(237,241,223,.35);
    font-size: 10px;
    letter-spacing: .04em;
}
.commandes-footer-note span { color: #a6ef58; font-size: 17px; }

@media (max-width: 1000px) {
    .commandes-hero { grid-template-columns: minmax(0,1fr) 250px; gap: 20px; }
    .commandes-hero-art { width: 240px; height: 240px; }
    .commandes-hero-symbol { width: 90px; height: 90px; font-size: 54px; }
    .commandes-toolbar { grid-template-columns: 1fr; }
    .commandes-results { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
    .commandes-page { padding: 18px 18px 55px; }
    .commandes-hero { display: block; padding: 24px 0 30px; }
    .commandes-hero h1 { font-size: clamp(42px, 12vw, 62px); }
    .commandes-hero-copy > p { font-size: 13px; }
    .commandes-hero-art { width: 190px; height: 190px; margin: 28px auto 4px; }
    .commandes-hero-symbol { width: 74px; height: 74px; border-radius: 20px; font-size: 44px; }
    .orbit-one { inset: 16px; }
    .orbit-two { inset: 40px; }
    .floating-command { padding: 7px 9px; font-size: 10px; }
    .floating-one { top: 19px; left: -5px; }
    .floating-two { right: -10px; top: 78px; }
    .floating-three { left: 7px; bottom: 18px; }
    .commandes-summary { gap: 22px; }
    .commandes-guide { grid-template-columns: 36px minmax(0,1fr); gap: 13px; padding: 20px 17px; }
    .guide-icon { width: 36px; height: 36px; font-size: 20px; }
    .commandes-toolbar { padding: 13px; border-radius: 17px; }
    .commandes-filter { padding: 10px 11px; font-size: 9px; }
    .command-card { grid-template-columns: 40px minmax(0,1fr); gap: 12px; padding: 16px; border-radius: 17px; }
    .command-card-icon { width: 40px; height: 40px; font-size: 19px; }
    .command-card-action { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; min-width: 0; margin-top: 2px; }
    .command-note { text-align: left; }
    .command-card h2 { font-size: 16px; }
}
