/* Corps général */
body {
    font-family: Garamond;
    line-height: 1.6;
    background-color: #ffffff;
    color: #48494C;
}

/* Navigation */
.navbar {
    font-family: Garamond;
    font-weight: bold;
    font-size: large;
    text-align: center;
}

.nav-link {
    color: #646C77;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover {
    color: #FFFFFF;
    background-color: #BD9D7E;
    border-radius: 5px;
}

.navbar-nav {
    justify-content: center;
}


/* Bandeau principal */
.jumbotron {
    background-color: #48494C;
    color: #FFFFFF;
    padding: 40px 20px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.jumbotron h1,
.jumbotron h2 {
    margin: 10px 0;
}

/* Section principale */
.hero {
    background: url('../img/Mercure\ galant\ et\ Mercure\ de\ France\,\ composition\ \(BCU\ Fribourg\,\ Marc-Olivier\ Schatz\).jpg') no-repeat center center;
    background-size: cover;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
    color: #FFFFFF;
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    background: url('../img/Mercure\ galant\ et\ Mercure\ de\ France\,\ composition\ \(BCU\ Fribourg\,\ Marc-Olivier\ Schatz\).jpg') no-repeat center center;
    background-size: cover;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
    color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.overlay-text {
    position: absolute;
    bottom: 20px;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    backdrop-filter: blur(5px);
}

.hero:hover .overlay-text {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}


/* Modal Image */
.modal-image-container {
    position: relative;
    width: 100%;
}

/* Texte au survol dans le modal */
.overlay-text-modal {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal-image-container:hover .overlay-text-modal {
    opacity: 1;
}

.modal-body img {
    width: 100%;
    display: block;
}

.hero h1 {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    max-width: 90%;
    box-sizing: border-box;
    display: inline-block;
}

.hero p {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 0;
    max-width: 90%;
    box-sizing: border-box;
    display: inline-block;
}

/* Section About */
#about {
    background-color: #E9EAEE;
    padding: 60px 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3B2715;
    margin-bottom: 20px;
}

.text-muted {
    color: #48494C;
    font-size: 1.2rem;
    text-align: justify;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    text-indent: 30px;
}


/* Axes principaux */

#themes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

#themes .card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    border: none;
    background-color: #D0D8E3;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    min-height: 400px;
    height: 100%;
}

#themes .card:hover {
    transform: scale(1.05);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15);
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    flex-grow: 1;
}

.card-body img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

#themes .card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3B2715;
    margin-bottom: 10px;
}

#themes .card-text {
    color: #48494C;
    font-size: 1.1rem;
    text-align: justify;
    hyphens: auto;
    line-height: 1.8;
    text-indent: 30px;
    max-width: 95%;
    margin: 0 auto;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    background: transparent;
    min-height: 60px;
    margin-top: auto;
}

#themes .card:hover .card-text {
    color: #595D5F;
    transition: color 0.3s ease-in-out;
}


/* Événements */

.news-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.news-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
}

.news-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    padding: 20px;
    background: #f9f9f9;
    border-left: 5px solid #3B2715;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    height: 100%;
}

.news-row .news-item {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 350px;
}

.news-item h3 {
    font-size: 1.6rem;
    font-weight: bold;
    color: #3B2715;
    margin-bottom: 10px;
}

.news-item p {
    flex-grow: 1;
    color: #48494C;
    font-size: 1.1rem;
    text-align: justify;
    line-height: 1.8;
    text-indent: 30px;
    margin-bottom: 10px;
}

.news-footer {
    margin-top: auto;
    padding-top: 10px;
}

.news-item a {
    color: #3B2715;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.news-item a:hover {
    color: #7A4E25;
    text-decoration: underline;
}

.btn-news {
    display: inline-block;
    background-color: #3B2715;
    color: #fff;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.btn-news:hover {
    background-color: #7A4E25;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}


/* Section citations et articles */

#quote {
    position: relative;
    padding: 60px 20px;
    background: #3B2715;
    background-size: cover;
    color: white;
    overflow: hidden;
}

.content-bg {
    background-color: rgba(255, 255, 255, 0.3);
    padding: 20px;
    border-radius: 8px;
}

.display-none {
    display: none;
}

.quote-link {
    color: #BD9D7E;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.quote-link:hover {
    color: #ffffff;
    text-decoration: underline;
}


/* Texte citations et articles */

/* Citations */

.quote-section .quote-date {
    font-size: 1.2rem;
    color: #ffffff;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-decoration-color: #ffffff;
    text-underline-offset: 5px;
    text-transform: uppercase;
    color: #ffffff;
    font-weight: bold;
    padding-left: 10px;
}

.quote-section .blockquote {
    font-style: normal;
    border-left: 4px solid #ffffff;
    padding-left: 15px;
    padding-right: 30px;
}

.quote-section p {
    text-align: justify;
    text-indent: 20px;
    margin-bottom: 10px;
}

.blockquote p {
    text-align: justify;
    text-indent: 20px;
}


/* Articles */

.article-section .article-date {
    font-size: 1.2rem;
    color: #ffffff;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-decoration-color: #ffffff;
    text-underline-offset: 5px;
    text-transform: uppercase;
    color: #ffffff;
    font-weight: bold;
    padding-left: 10px;
}

.article-section .blockquote {
    font-style: normal;
    border-left: 4px solid #ffffff;
    padding-left: 15px;
    padding-right: 30px;
}

.article-section p {
    text-align: justify;
    text-indent: 20px;
    margin-bottom: 10px;
}

.illustration-janv{
    width: 30%;
    float: left;
    margin: 4px 18px 4px 0;
}

/* BOUTON ARCHIVES */

#archives-btn {
    display: block;
    margin: 50px auto;
    padding: 30px 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #595D5F;
    color: #E9EAEE;
    transition: background-color 0.3s;
}

#archives-btn:hover {
    background-color: #646C77;
}


/* MENU ARCHIVES */

#archives-nav {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

/* Menu caché */
#archives-nav.hidden {
    display: none;
}


/* BOUTONS DES MOIS */

#archives-nav a {
    display: block;
    text-align: center;
    padding: 12px 0;
    background-color: #f2f2f2;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

#archives-nav a:hover {
    background-color: #ddd;
    transform: translateY(-2px);
}


/* RESPONSIVE ARCHIVES */

@media (max-width: 900px) {
    #archives-nav {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 500px) {
    #archives-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}



/* Espacement */

.mt-4 {
    margin-top: 20px;
}

/* FOOTER */
footer,
.footer-copyright,
footer p,
footer h5,
footer ul,
footer ul li,
footer ul li a {
    font-style: normal !important;
}

/* FOOTER - Conteneur général */
footer {
    padding: 40px 0;
    color: white;
}

footer.bg-primary {
    background-color: #48494C !important;
}

/* FOOTER - Titres */
footer h5 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-decoration-color: #ffffff;
    text-underline-offset: 10px;
    font-weight: bold;
}

/* FOOTER - Listes et liens */
footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* FOOTER - Section droits d'auteurs */
.footer-copyright {
    text-align: center;
    font-weight: bolder;
    color: #E9EAEE;
    display: inline-block;
    background-color: rgba(108, 117, 125, 0.75);
    border-radius: 50rem;
    padding: 0.25rem 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer-copyright a {
    color: #BD9D7E;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease-in-out, text-decoration 0.3s ease-in-out;
}

.footer-copyright a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.logos-section {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
    position: relative;
    background: #E9EAEE;
    border: 1px solid #d3c7b5;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.logos-section::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    width: 100%;
    height: 40px;
    background: #E9EAEE;
    clip-path: polygon (0 0, 50% 100%, 100% 0);
    z-index: -1;
}

.footer-logo {
    max-height: 60px;
    margin: 0 50px;
}

/* Alignement du menu déroulant */

.dropdown-menu-end {
    right: 0;
    left: auto;
}

@media (max-width: 768px) {

    /* Navbar */
    .navbar-brand:hover {
        color: inherit;
        background-color: transparent;
        padding: 0;
        border-radius: 0;
    }

    .nav-link:hover {
        color: inherit;
        background-color: transparent;
        border-radius: 0;
    }

    /* Hero section */
    .hero {
        height: 50vh;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Logos */
    .footer-logo {
        max-height: 50px;
        margin: 0 8px;
    }

    #themes .card {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transform: none;
    }

    #themes .card:hover {
        transform: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 480px) {

    /* Hero section */
    .hero {
        height: auto;
    }

    .hero h1 {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    /* Logos */
    .footer-logo {
        max-height: 40px;
        margin: 0 5px;
    }

    .logos-section {
        margin-top: 15px;
    }
}

/* Styles bouton Haut */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    color: #3B2715;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top:hover {
    background-color: #949CA3;
    transform: scale(1.1);
}