/**
 * Citation Plus - Styles Frontend
 * 
 * Design brutal minimaliste avec guillemet typographique "
 */

/* Variables */
:root {
    --sp-ink: #000;
    --sp-border-thick: 3px solid #000;
    --sp-font-mono: 'Courier New', monospace;
}

/* --- SECTION QUOTE --- */
.sp-quote-section {
    padding: 6rem 5%;
    display: flex;
    justify-content: center;
    border-bottom: var(--sp-border-thick);
    position: relative;
}

.sp-quote-container {
    max-width: 900px;
    position: relative;
    width: 100%;
}

/* Guillemet typographique géant en ::before */
.sp-quote-container::before {
    content: '"'; /* ← Guillemet typographique correct */
    font-size: 8rem;
    position: absolute;
    top: -4rem;
    left: -3rem;
    opacity: 0.1;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

/* Texte de la citation */
.sp-quote-text {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.2;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

/* Section auteur */
.sp-quote-author {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--sp-font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

/* Ligne décorative en ::before */
.sp-quote-author::before {
    content: '';
    width: 50px;
    height: 1px;
    background: var(--sp-ink);
    display: block;
    flex-shrink: 0; /* Empêche la ligne de rétrécir */
}

/* Responsive mobile */
@media (max-width: 768px) {
    .sp-quote-section {
        padding: 4rem 5%;
    }

    .sp-quote-container::before {
        font-size: 5rem;
        top: -2rem;
        left: -1rem;
    }

    .sp-quote-text {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }

    .sp-quote-author {
        font-size: 0.7rem;
    }

    .sp-quote-author::before {
        width: 30px;
    }
}

/* Styles éditeur : masquer le ::before pour éviter le doublon visuel */
.qba-citation-editor .sp-quote-container::before {
    display: none; /* Masqué dans l'éditeur pour éviter confusion */
}

.qba-citation-editor .sp-quote-author::before {
    display: none; /* Masqué dans l'éditeur */
}
