:root {
    --primary-color: #8a328a;
    --wheat-color: wheat;
    --wheat-dark: #e3cfab; /* Version légèrement plus foncée de wheat */
    --text-dark: #5a4a2f; /* Brun foncé complémentaire */
}

/* Styles for language selector buttons */
.title-and-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

@media screen and (max-width: 768px) {
    .title-and-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

.lang-buttons {
    display: flex;
    gap: 0.75rem;
}

.lang-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0.5rem;
    border-radius: 4px;
}

.lang-button:hover {
    background-color: var(--wheat-color);
}

@media screen and (max-width: 768px) {
    .lang-button {
        font-size: 1.3rem;
    }
}

.lang-button.active {
    background-color: var(--wheat-color);
    transform: scale(1.1);
}

body {
    background-color: #fefaf3; /* Fond très pâle tirant sur le wheat */
}

.hero-body {
    padding: 2rem 1.5rem;
}

.title-link,
a {
    color: var(--primary-color);
    text-decoration: none; /* Supprime le soulignement */
    transition: opacity 0.2s ease; /* Ajoute une transition au survol */
}

.title-link:hover,
a:hover {
    opacity: 0.8; /* Légère réduction d'opacité au survol */
    color: var(--primary-color); /* Garde la même couleur au survol */
}

.boumtac-footer {
    font-family: "Dancing Script", cursive;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.title-font {
    font-family: "Dancing Script", cursive;
    color: var(--primary-color);
    font-size: 8rem;
}

.custom-hero {
    background-color: var(--wheat-color);
}

.custom-section {
    background-color: white;
    border-left: 5px solid var(--wheat-color);
    margin-bottom: 2rem;
}

.post-link {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    display: block;
    transition: transform 0.2s ease;
    padding: 0.5rem;
    border-radius: 4px;
}

.post-link:hover {
    transform: translateX(10px);
    background-color: var(--wheat-color);
}

.post-date {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    margin-left: 0.5rem;
}

.about-section {
    background-color: var(--wheat-dark);
    border-radius: 6px;
    padding: 1.5rem 3.5rem;
}

.about-title {
    color: var(--primary-color);
}

.footer {
    background-color: var(--wheat-color);
    padding: 2rem 1.5rem;
}

.footer a {
    color: var(--primary-color);
    font-weight: bold;
}

.section-title {
    position: relative;
    display: inline-block;
    color: var(--primary-color);
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 4px;
    background-color: var(--wheat-color);
    border-radius: 2px;
}

/* Media queries pour responsive */
@media screen and (max-width: 768px) {
    .title-font {
        font-size: 4.5rem;
    }
    .hero-body {
        padding: 1.5rem 1rem;
    }
    .title.is-3 {
        font-size: 1.5rem;
    }
    .about-section {
        padding: 1.5rem;
    }
}

@media screen and (min-width: 769px) and (max-width: 1023px) {
    .title-font {
        font-size: 6rem;
    }
}

.post {
    h1 {
        font-size: 2rem;
        color: var(--primary-color);
        font-weight: 700 !important;
        margin-bottom: 1.5rem;
        line-height: 1.125;
    }
    h2 {
        font-size: 1.5rem;
        color: var(--primary-color);
        font-weight: 700 !important;
        margin-bottom: 1.5rem;
        margin-top: 0.8rem;
        line-height: 1.125;
    }
    h3 {
        color: var(--primary-color);
        font-size: 1.4rem;
    }
    a {
        color: var(--primary-color);
        text-decoration: none;
        transition: opacity 0.2s ease;
    }
    .post-date-header {
        text-align: left;
        color: var(--text-dark);
        font-size: 0.9rem;
        margin-bottom: 2rem;
        font-style: italic;
    }
    figure {
        margin: 2rem auto;
        text-align: center;
    }
    figcaption {
        font-size: 0.9rem;
        color: var(--text-dark);
        font-style: italic;
        margin-top: 0.5rem;
        text-align: center;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media screen and (min-width: 769px) {
    .post img {
        max-width: 600px; /* Limite à 600px sur desktop uniquement */
        max-height: 600px;
        margin: 0 auto;
        display: block;
    }
}

.presentation {
    a {
        font-weight: 600;
    }
    figure {
        color: var(--primary-color);
        font-weight: bold;
    }
    p {
        font-size: 1.15rem !important;
    }
}

.now-section {
    background-color: #f8f4ec;
    border: 1px solid var(--wheat-dark);
    border-radius: 6px;
    padding: 1.5rem 3.5rem;
}

.now-section p,
.now-section li {
    font-size: 1.15rem;
}

.now-section hr {
    border: none;
    height: 2px;
    background-color: var(--wheat-dark);
    margin: 1.5rem 0;
    border-radius: 1px;
    opacity: 0.6;
}

i {
    color: var(--primary-color);
}

.twitter-tweet {
    margin: auto;
}

/* fix iframe youtube video */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin: 20px auto;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px; /* optionnel pour des coins arrondis */
}

/* Styles pour la page des projets */
.project-list {
    margin-top: 2rem;
}

.project-item {
    background-color: #f8f4ec;
    border: 1px solid var(--wheat-dark);
    border-radius: 6px;
    padding: 2rem;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.project-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 50, 138, 0.1);
}

.project-item h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.project-item h2 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.project-item h2 a:hover {
    opacity: 0.8;
}

.project-item p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-item hr {
    border: none;
    height: 2px;
    background-color: var(--wheat-dark);
    margin: 1.5rem 0;
    border-radius: 1px;
    opacity: 0.6;
}
