/* Style Chapatiz / Testoland — Symfony */

*, *::before, *::after {
    box-sizing: border-box;
}

body.chapa-body {
    margin: 0;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #284555;
    background-color: #6090be;
    background-image: url('/img/chapa_tile_all.gif');
    background-repeat: repeat-x;
    background-attachment: scroll;
}

a {
    color: #6090be;
    font-weight: bold;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.chapa-layout {
    width: 800px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 8px 24px;
}

.chapa-header {
    text-align: left;
    margin-bottom: 4px;
}

.chapa-header-banner {
    background: linear-gradient(180deg, #7eb8e8 0%, #5a9fd4 45%, #4a8fc8 100%);
    border: 2px solid #3e7eb5;
    border-radius: 12px 12px 0 0;
    padding: 14px 20px;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.chapa-logo {
    font: bold 22px Verdana, sans-serif;
    color: #fff;
    text-shadow: 1px 1px 0 #2a5578;
    letter-spacing: -0.5px;
}

.chapa-logo span {
    color: #fff4d5;
}

.chapa-tagline {
    font-size: 10px;
    color: #e8f4fc;
    font-style: italic;
}

.chapa-main-row {
    display: grid;
    grid-template-columns: 147px 1fr;
    gap: 8px;
    align-items: start;
}

@media (max-width: 640px) {
    .chapa-main-row {
        grid-template-columns: 1fr;
    }
}

/* Nav gauche */
.chapa-nav {
    background-image: url('/img/chapa_tile_nav.gif');
    background-repeat: repeat-y;
    border-radius: 0 0 0 8px;
    overflow: hidden;
}

.chapa-nav-top img {
    display: block;
    width: 100%;
    height: auto;
}

.chapa-nav-links {
    padding: 8px 10px 14px;
    font-size: 10px;
    line-height: 1.7;
}

.chapa-nav-links .navtitle {
    color: #6090be;
    font-size: 11px;
    font-weight: bold;
    display: block;
    margin: 8px 0 4px;
}

.chapa-nav-links b {
    color: #284555;
}

/* Panneau beige principal */
.chapa-panel {
    position: relative;
}

.chapa-panel-corners {
    display: grid;
    grid-template-columns: 11px 1fr 11px;
    grid-template-rows: 11px 1fr 11px;
    min-height: 200px;
}

.chapa-corner {
    width: 11px;
    height: 11px;
    display: block;
}

.chapa-edge-h {
    background: #fff4d5;
}

.chapa-edge-v {
    background: #fff4d5;
}

.chapa-panel-body {
    background: #fff4d5;
    padding: 16px 18px 20px;
}

.chapa-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #726338;
    margin: 0 0 12px;
}

.chapa-subtitle {
    font-size: 10px;
    font-style: italic;
    color: #a69052;
    margin: -8px 0 16px;
}

/* Hero accueil */
.chapa-hero {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #e8c97a;
}

@media (max-width: 520px) {
    .chapa-hero {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
}

.chapa-avatar-frame {
    position: relative;
    background: #fff4d6;
    border: 2px solid #e8c97a;
    border-radius: 10px;
    padding: 6px;
    width: 132px;
    height: 122px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.chapa-avatar-frame.is-loading::before {
    content: '';
    position: absolute;
    z-index: 2;
    width: 22px;
    height: 22px;
    border: 2px solid #e8c97a;
    border-top-color: #6090be;
    border-radius: 50%;
    animation: chapa-spin 0.8s linear infinite;
    pointer-events: none;
}

.chapa-avatar-frame.is-ready::before {
    display: none;
}

@keyframes chapa-spin {
    to { transform: rotate(360deg); }
}

.chapa-avatar-frame object,
.chapa-avatar-frame embed,
.chapa-avatar-frame ruffle-player,
.chapa-avatar-frame ruffle-embed,
.chapa-avatar-frame #ruffle-avatar-player {
    display: block;
    margin: 0 auto;
    width: 120px !important;
    height: 110px !important;
    max-width: 120px !important;
    max-height: 110px !important;
    background: #fff4d6 !important;
    background-color: #fff4d6 !important;
}

.chapa-avatar-frame ruffle-player,
.chapa-avatar-frame #ruffle-avatar-player {
    --ruffle-blue: #6090be;
    --ruffle-orange: #e8c97a;
}

.chapa-welcome h2 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #3e6891;
}

.chapa-welcome p {
    margin: 0 0 8px;
    line-height: 1.5;
    font-size: 11px;
}

.chapa-pseudo {
    font-weight: bold;
    font-size: 13px;
}

.chapa-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.chapa-stat-pill {
    background: #fff;
    border: 1px solid #c5d9e8;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 10px;
    color: #5a7a94;
}

.chapa-stat-pill strong {
    color: #c47a00;
}

/* Slots services */
.chapa-slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

@media (max-width: 520px) {
    .chapa-slots {
        grid-template-columns: 1fr;
    }
}

.chapa-slot {
    background: #fff;
    border: 1px solid #b0c9d6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(40, 69, 85, 0.08);
}

.chapa-slot-head {
    background: linear-gradient(180deg, #ff66aa 0%, #ff3399 100%);
    color: #fff;
    font-weight: bold;
    font-size: 11px;
    padding: 8px 12px;
}

.chapa-slot-body {
    padding: 10px 12px;
    font-size: 10px;
    line-height: 1.5;
}

.chapa-slot-body a {
    color: #ff3399;
}

.chapa-slot-foot {
    text-align: right;
    padding: 6px 12px 10px;
    font-size: 10px;
}

.chapa-slot-foot a {
    color: #ff3399;
}

/* Cabine démo */
.chapa-cabine {
    background: #f8fbfe;
    border: 1px solid #b0c9d6;
    border-radius: 10px;
    padding: 14px 16px;
}

.chapa-cabine h3 {
    margin: 0 0 10px;
    font-size: 12px;
    color: #6090be;
}

.chapa-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.chapa-preset-btn {
    padding: 6px 12px;
    border: 1px solid #9ebdd4;
    border-radius: 6px;
    background: linear-gradient(180deg, #fff 0%, #e8f2fa 100%);
    color: #3e6891;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
}

.chapa-preset-btn:hover {
    background: #dceaf5;
}

.chapa-preset-btn.active {
    border-color: #6090be;
    background: #c5dff5;
}

.chapa-sliders {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

@media (max-width: 520px) {
    .chapa-sliders {
        grid-template-columns: 1fr 1fr;
    }
}

.chapa-slider label {
    display: block;
    font-size: 9px;
    font-weight: bold;
    color: #5a7a94;
    margin-bottom: 4px;
}

.chapa-slider input[type="range"] {
    width: 100%;
}

.chapa-design-code {
    font-family: Consolas, monospace;
    font-size: 10px;
    color: #6b879c;
    word-break: break-all;
    margin-top: 8px;
}

/* Footer */
.chapa-footer {
    text-align: center;
    margin-top: 16px;
    padding: 12px;
    font-size: 10px;
    color: #d5e6f3;
}

.chapa-footer a {
    color: #d5e6f3;
    font-weight: normal;
}

.chapa-api-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    font-size: 9px;
    color: #e8f4fc;
}