/* === Firefox === */
* {
  scrollbar-width: thin;
  scrollbar-color: #D67895 #ECDFF7;
}

/* === Chrome / Edge / Safari === */
*::-webkit-scrollbar {
  width: 10px;
}

*::-webkit-scrollbar-track {
  background: #ECDFF7;
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #D67895, #496E9E);
  border-radius: 10px;
  border: 2px solid #ECDFF7;
}

/* Hover effet (optionnel mais sympa) */
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #496E9E, #D67895);
}

/* ===== GLOBAL ===== */ 
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #222;

    background-image: url('/img/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* ===== NAVBAR FULL WIDTH ===== */
.top-menu {
    width: 100%;
    background: #ffffff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    box-shadow: 0 5px 20px rgba(0,0,0,0.1);

    display: flex;
    justify-content: center;
}


.menu-container {
    width: 100%;
    display: flex;
    justify-content: space-between; /* 👈 gauche / droite */
    align-items: center;

    padding: 10px 30px;
    position: relative;
}

/* MENU GAUCHE */
.menu-left {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.menu-left a {
    text-decoration: none;
    color: #D67895;
    font-size: 0.85em;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.menu-left a:hover {
    opacity: 0.7;
}

/* DROITE (recherche) */
.menu-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

#search, input#search {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ECDFF7;
    font-size: 0.85em;
}

::-webkit-input-placeholder {
color: #CEBADE;
}

::-ms-input-placeholder {
color: #CEBADE;}

/* BURGER */
.burger {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
}

/* ===== HEADER IMAGE ===== */
.header-image {
    text-align: center;
}

.header-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-top: 30px;
}

.header-image h1 {
    font-family: 'Playfair Display', serif;
    margin: 15px 0 5px;
    font-size: 2em;
}

.tagline {
    font-size: 0.95em;
    color: #555;
}

/* ===== CARTE ===== */
.page-wrapper {
    width: 60%;
    max-width: 800px;
    margin: 40px auto;

    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    padding: 40px;
    border-radius: 12px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ===== ARTICLES ===== */
.post {
    margin-bottom: 60px;
    border-bottom: 2px solid #FCF2D4;
    padding-bottom: 20px;
}

.post h2 {
    font-family: 'Playfair Display', serif;
}

h1, h2, h3, h4, h5, h6{
    font-family: 'Playfair Display', serif;
}

.date {
    font-size: 0.8em;
    color: #888;
    margin-bottom: 10px;
}

.content p {
    line-height: 1.7;
}

/* ===== TAGS ===== */
.tags {
    margin: 10px 0;
}

.tag {
    display: inline-block;
    background: #ECDFF7;
    padding: 4px 8px;
    margin: 2px;
    font-size: 0.75em;
    border-radius: 5px;
    cursor: pointer;
}

.tag:hover {
    background: #F2EBF7;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination button {
    padding: 8px 12px;
    border: none;
    background: #496E9E;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ===== FOOTER ===== */
.site-footer {
    border-top: 1px solid #FCF2D4;
    margin-top: 30px;
    padding-top: 15px;
    text-align: center;
    font-size: 0.85em;
}

/* 🌈 Rainbow text */
.rainbow-text {
    text-align: center;
}

.rainbow-text .block-line > span {
    display: inline-block;
}

.block-line {
    background-image: linear-gradient(
        90deg,
        #496E9E,
        #ECDFF7,
        #D67895,
        #ECDFF7,
        #496E9E
    );
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

    .menu-container {
        width: 90%;
    }

    .burger {
        display: block;
    }

    .menu-left {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        background: rgba(236, 223, 247, 0.95);
        backdrop-filter: blur(8px);

        flex-direction: column;
        align-items: center;
        gap: 15px;

        padding: 20px;
        display: none;
    }

    .menu-left.active {
        display: flex;
    }

    /* option : cacher la recherche sur mobile */
    .menu-right {
        display: none;
    }
}