
.photo-word-style-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.photo-word-slots-head {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line, rgba(34, 49, 58, 0.12));
    border-radius: var(--radius-md, 16px);
    background: var(--surface-2, #f0e9df);
}

.photo-word-slots-head strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text, #22313a);
}

.photo-word-slots-head p,
.customize-help {
    margin: 0;
    color: var(--text-soft, #52616a);
    font-size: 0.9rem;
    line-height: 1.45;
}

.photo-word-slots {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    margin-top: 1rem;
}

.photo-word-slot-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: sticky;
    top: 1rem;
}

.photo-word-slot-tab {
    position: relative;
    min-height: 56px;
    border: 1px solid var(--line, rgba(34, 49, 58, 0.12));
    border-radius: 16px;
    background: var(--surface, #fffdfb);
    color: var(--text, #22313a);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.photo-word-slot-tab:hover {
    transform: translateY(-1px);
}

.photo-word-slot-tab.active {
    border-color: var(--primary, #5f7c8c);
    box-shadow: 0 10px 22px rgba(39, 72, 90, 0.12);
}

.photo-word-slot-tab.is-filled::after {
    content: '';
    position: absolute;
    top: 7px;
    right: 7px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2f7d4f;
    box-shadow: 0 0 0 3px rgba(47, 125, 79, 0.16);
}

.photo-word-slot-panels {
    min-width: 0;
}

.photo-word-slot-panel {
    display: none;
    padding: 0.95rem;
    border: 1px solid var(--line, rgba(34, 49, 58, 0.12));
    border-radius: var(--radius-md, 16px);
    background: var(--surface, #fffdfb);
}

.photo-word-slot-panel.active {
    display: block;
}

.photo-word-slot-panel .btn {
    width: 100%;
    margin-top: 0.45rem;
}

.photo-word-slot-meta {
    margin-bottom: 0.85rem;
}

.photo-word-slot-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    color: var(--text, #22313a);
}

.photo-word-slot-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--surface-2, #f0e9df);
    font-size: 0.95rem;
}

.photo-word-slot-meta p {
    margin: 0.35rem 0 0;
    color: var(--text-soft, #52616a);
    font-size: 0.9rem;
    line-height: 1.4;
}

.photo-word-file-name {
    margin-top: 0.45rem;
    font-size: 0.84rem;
    color: var(--text-soft, #52616a);
    word-break: break-word;
}

.customize-upload-status {
    display: block;
    margin-top: 0.55rem;
    font-size: 0.85rem;
    color: var(--text-soft, #52616a);
}

.customize-upload-status[data-status="success"] {
    color: #2f7d4f;
}

.customize-upload-status[data-status="error"] {
    color: #b23b3b;
}

.customize-upload-status[data-status="loading"] {
    color: var(--primary-dark, #27485a);
}

@media (max-width: 900px) {
    .photo-word-style-grid {
        grid-template-columns: 1fr;
    }

    .photo-word-slots {
        grid-template-columns: 1fr;
    }

    .photo-word-slot-tabs {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        position: static;
        padding-bottom: 0.35rem;
    }

    .photo-word-slot-tab {
        min-width: 52px;
        min-height: 52px;
        flex: 0 0 auto;
    }
}


@media (min-width: 901px) {
    .customize-page-section.is-singlepage .customize-layout {
        align-items: start;
    }

    .customize-page-section.is-singlepage .customize-panel {
        position: sticky;
        top: 1.25rem;
        align-self: start;
        max-height: calc(100vh - 2.5rem);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .customize-page-section.is-singlepage .customize-form {
        display: flex;
        flex-direction: column;
        min-height: 0;
        flex: 1 1 auto;
    }

    .customize-page-section.is-singlepage .customize-fields-list {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 0.35rem;
    }

    .customize-page-section.is-singlepage .customize-actions {
        margin-top: 1rem;
        padding-top: 0.75rem;
        background: inherit;
    }

    .photo-word-slots {
        max-height: 350px;
        min-height: 0;
        overflow: hidden;
        align-items: stretch;
    }

    .photo-word-slot-tabs,
    .photo-word-slot-panels {
        min-height: 0;
        max-height: 350px;
    }

    .photo-word-slot-tabs {
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 0.2rem;
    }

    .photo-word-slot-panels {
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 0.2rem;
    }
}

/* Font Imports pour que les polices restent les bonnes a l'export! */
@font-face {
    font-family: 'Great Vibes';
    src: url('/assets/fonts/photo-word/Great_Vibes/GreatVibes-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Allura';
    src: url('/assets/fonts/photo-word/Allura/Allura-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Parisienne';
    src: url('/assets/fonts/photo-word/Parisienne/Parisienne-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('/assets/fonts/photo-word/Cormorant_Garamond/static/CormorantGaramond-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}