/* ============================================================
   SINE.SH♡P — HEADER UNIFORME
   Le même header (couleur, logo, cœur qui bat) sur TOUTES les
   pages du site — ne change JAMAIS, quel que soit :
   - le thème choisi (clair/sombre/système)
   - le mode sombre du téléphone/navigateur
   - la langue (y compris arabe, RTL)
   ============================================================ */

.sine-header {
    /* direction/color-scheme figés : ni le RTL de la page, ni le mode
       sombre du système ne doivent jamais toucher ce bloc */
    direction: ltr !important;
    unicode-bidi: isolate;
    color-scheme: light only;

    background: linear-gradient(180deg, #eaf6ff 0%, #cfeaff 45%, #a9daff 100%);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 64px;
    box-shadow: inset 0 -1px 0 rgba(10, 40, 80, 0.06);
}

.sine-header .sine-header-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.sine-header .sine-header-stars span {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.6);
    animation: sineStarTwinkle 3s ease-in-out infinite alternate;
}

@keyframes sineStarTwinkle {
    0% { opacity: 0.25; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.3); }
}

.sine-header-brand {
    all: unset;
    position: relative;
    z-index: 2;
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline;
    font-family: Georgia, 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    direction: ltr;
}

.sine-word-1, .sine-header-brand .sine-word-1 { color: #0a1628; }
.sine-word-2, .sine-header-brand .sine-word-2 { color: #1f6fe0; }
.sine-word-3, .sine-header-brand .sine-word-3 { color: #0a1628; }

.sine-heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.85em;
    height: 0.85em;
    margin: 0 1px;
    color: #ff2d3d;
    animation: sineHeartBeat 1.2s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(255, 45, 61, 0.35));
}

.sine-heart svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes sineHeartBeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.25); }
    28% { transform: scale(1); }
    42% { transform: scale(1.15); }
    70% { transform: scale(1); }
}

.sine-header-actions {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    direction: ltr;
}

.sine-header-actions a,
.sine-header-actions button {
    color: #0a2a44;
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sine-header-actions a:hover,
.sine-header-actions button:hover {
    color: #1f6fe0;
}

/* Aucune règle [data-theme="dark"] ni [dir="rtl"] ici, volontairement :
   ce header reste identique quoi qu'il arrive au reste de la page. */

@media (max-width: 600px) {
    .sine-header { padding: 12px 16px; min-height: 56px; }
    .sine-header-brand { font-size: 1.2rem; }
}

/* ============================================================
   VARIANTE LÉGÈRE — pour les pages ayant déjà un header riche
   (navigation, icônes favoris/panier, profil...). Ne fournit que
   le fond bleu étoilé et les couleurs de marque, sans toucher à
   la mise en page (display/flex/overflow) déjà en place.
   ============================================================ */
.sine-header-bg {
    direction: ltr !important;
    unicode-bidi: isolate;
    color-scheme: light only;
    background: linear-gradient(180deg, #eaf6ff 0%, #cfeaff 45%, #a9daff 100%) !important;
    position: relative;
}

.sine-header-bg .sine-header-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.sine-header-bg .sine-header-stars span {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.6);
    animation: sineStarTwinkle 3s ease-in-out infinite alternate;
}

.sine-header-bg > *:not(.sine-header-stars) {
    position: relative;
    z-index: 1;
}
