/*
 * Tampon reutilisable L'Hermitage — classe .event-stamp
 * Charge sur toutes les pages par header.inc.php.
 *
 * Exemple HTML (remplacer librement les deux textes) :
 * <span class="event-stamp">
 *   <svg class="event-stamp__icon" viewBox="0 0 32 32" fill="none" aria-hidden="true" focusable="false">
 *     <circle cx="16" cy="16" r="13" stroke="currentColor" stroke-width="1.8" stroke-dasharray="73 2 5 2" />
 *     <path d="M9 16.5l4.5 4.5L24 10.5" stroke="currentColor" stroke-width="2.7" stroke-linecap="round" stroke-linejoin="round" />
 *   </svg>
 *   <span class="event-stamp__text">
 *     <span class="event-stamp__label">Soirée</span>
 *     <strong class="event-stamp__word">Complète</strong>
 *   </span>
 * </span>
 *
 * Ajouter .event-stamp--long-text pour un libelle long, comme "Fully booked".
 * Personnalisation possible sur l'element : --stamp-width, --stamp-angle,
 * --stamp-ink, --stamp-paper, --stamp-icon-size et --stamp-word-size.
 * Le placement appartient au conteneur : aucune position de page n'est imposee.
 *
 * Pour une autre soiree complete sur l'accueil, renseigner 'status' avec
 * '[FR]Soirée complète[/FR][EN]Fully booked[/EN]' dans $home_news (index.php).
 * Le tampon apparait automatiquement. .home-hero-news__status le centre entre
 * le haut de la vignette et le titre, y compris quand le titre change de hauteur.
 * Le texte est accessible par defaut. Sur l'accueil seulement, le tampon est
 * aria-hidden car la meme information figure deja dans l'aria-label du lien.
 */
.event-stamp {
    --stamp-width: 226px;
    --stamp-angle: -7deg;
    --stamp-ink: #87352f;
    --stamp-paper: rgba(249, 239, 216, .94);
    --stamp-icon-size: 34px;
    --stamp-word-size: 22px;
    --stamp-word-spacing: .06em;
    --stamp-gap: 9px;
    --stamp-padding-x: 10px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--stamp-gap);
    box-sizing: border-box;
    width: var(--stamp-width);
    min-height: 56px;
    max-width: calc(100% - 24px);
    padding: 4px var(--stamp-padding-x);
    border: 3px double currentColor;
    border-radius: 3px 5px 2px 4px;
    background: var(--stamp-paper);
    color: var(--stamp-ink);
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.15;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(var(--stamp-angle));
    box-shadow: 1px 3px 9px rgba(0, 0, 0, .2), inset 0 0 0 2px rgba(249, 239, 216, .8);
    pointer-events: none;
}

.event-stamp::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: repeating-linear-gradient(118deg, transparent 0 17px, rgba(249, 239, 216, .45) 18px, transparent 19px 32px);
    opacity: .45;
}

.event-stamp__icon {
    width: var(--stamp-icon-size);
    height: var(--stamp-icon-size);
    flex: 0 0 var(--stamp-icon-size);
}

.event-stamp__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.event-stamp__label {
    font-size: 12px;
    letter-spacing: .21em;
    color: inherit;
}

.event-stamp__word {
    font-size: var(--stamp-word-size);
    font-weight: 700;
    letter-spacing: var(--stamp-word-spacing);
    white-space: nowrap;
    color: inherit;
}

.event-stamp--long-text {
    --stamp-word-size: 19px;
    --stamp-word-spacing: .025em;
}
