/* ============================================
   TEMPLATE BASE STYLES — Shared across all faire-part templates
   creer-faire-part.fr
   ============================================ */

/* A5 format: 148mm x 210mm = 559px x 793px at 96dpi */
.fp-preview {
    width: 559px;
    height: 793px;
    position: relative;
    overflow: hidden;
    font-family: var(--fp-font, 'Playfair Display', serif);
    color: var(--fp-text, #2c2c2c);
    background: var(--fp-bg, #faf8f5);
}

.fp-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    text-align: center;
    position: relative;
}

/* Photo styles */
.fp-photo {
    overflow: hidden;
    margin-bottom: 24px;
    border: 3px solid var(--fp-accent, #d4a574);
}

.fp-photo--round {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.fp-photo--rect {
    width: 160px;
    height: 120px;
    border-radius: 8px;
}

.fp-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text styles */
.fp-title {
    color: var(--fp-accent, #d4a574);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.fp-subtitle {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 16px;
    font-style: italic;
}

.fp-date {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.fp-details {
    font-size: 13px;
    opacity: 0.6;
    margin-bottom: 12px;
}

.fp-parents {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 12px;
}

.fp-location {
    font-size: 12px;
    opacity: 0.5;
    margin-bottom: 16px;
}

.fp-custom-text {
    font-size: 13px;
    line-height: 1.7;
    max-width: 380px;
    margin-bottom: 16px;
    opacity: 0.8;
}

/* Border */
.fp-border {
    position: absolute;
    inset: 12px;
    border: 2px solid var(--fp-accent, #d4a574);
    border-radius: 4px;
    pointer-events: none;
    opacity: 0.4;
}

/* Branding */
.fp-branding {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    opacity: 0.25;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}
