/* === HEADER GLOBAL === */
header {
    width: 100%;
    background: linear-gradient(to right, white, #4FBEFF);
    color: black;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 30px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

/* === CONTENU CENTRAL === */
.header-content-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
    align-items: center;
    min-width: 0;
    padding: 0 20px;
}

/* === LOGO === */
header img {
    transition: all 0.3s ease;
}

header img:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.3));
}

/* === TITRES === */
.texte-contenu {
    margin-bottom: 10px;
}

.texte-contenu .site-title {
    font-weight: bold;
    color: inherit;
    margin: 0;
    font-size: clamp(1.5em, 5vw, 2em);
}

.texte-contenu span {
    display: block;
    margin-top: 5px;
    font-size: 1.1em;
}

/* === LIENS === */
header a {
    text-decoration: none;
    color: black;
}

/* === BOUTONS NAVIGATION === */
.header-nav-buttons {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.header-button {
    background-color: #004d99;
    color: white !important;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
    font-size: 0.9em;
    min-width: 120px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid black;
}

.header-button:hover {
    background-color: #003366;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/* === BLOC NOTE SATISFACTION === */
.header-rating {
    background: linear-gradient(to bottom right, #ffffff 30%, #4FBEFF 90%);
    border-radius: 15px;
    padding: 10px 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    margin-left: auto;
    margin-right: 10px;
    text-align: right;
    min-width: 130px;
    transition: transform 0.3s ease;
}

.header-rating:hover {
    transform: scale(1.05);
}

.header-rating p {
    margin: 0;
    line-height: 1.3em;
}

/* --- Animation scintillement étoiles --- */
@keyframes starGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 56, 92, 0.4),
                     0 0 10px rgba(255, 56, 92, 0.3);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 56, 92, 0.8),
                     0 0 25px rgba(255, 56, 92, 0.6);
        transform: scale(1.05);
    }
}

.header-rating .stars {
    color: #FF385C;
    font-weight: bold;
    font-size: 1.1em;
    letter-spacing: 2px;
    animation: starGlow 3s infinite ease-in-out;
}

.header-rating a {
    color: black;
    text-decoration: none;
    font-size: 0.85em;
    margin-top: 4px;
}

.header-rating a:hover {
    text-decoration: none;
}

/* === MOBILE === */
@media (max-width: 768px), (max-height: 500px) {
    header {
        position: static;
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    header a img {
        width: auto;
        margin-bottom: 10px;
        height: 60px;
        max-width: 100%;
    }

    .texte-contenu .site-title {
        font-size: clamp(1.2em, 5vw, 1.6em);
        margin: 0.3em 0;
    }

    .header-nav-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .header-button {
        width: 80%;
        font-size: 0.95em;
    }

    .header-rating {
        margin: 10px 0 0 0;
        align-items: center;
        text-align: center;
    }
}
