@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: #323232;
    font-family: "Roboto", sans-serif;
    animation: backgroundColorChange 30s infinite alternate ease-in-out;
    font-size: 1.5rem;
    max-width: 100vw;
}

.row {
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right : 0 !important;
    padding-left: 0 !important;
}

.main-container {
    width: 95%;
    margin: 0 auto;
}

@media screen and (min-width: 768px) {
    .main-container {
        width: 75%;
    }
}

@media screen and (max-width: 992px) {
    .col-12 {
        width: 100%;
    }
}

h1, h2, h3 {
    font-family: 'Bebas Neue', sans-serif;
}

.h1, .h2, .h3 {
    background: linear-gradient(135deg, #8E271F, #F0442B);
    -webkit-background-clip: text;   /* Pour Safari et autres WebKit */
    background-clip: text;           /* Standard pour les autres navigateurs modernes */
    -webkit-text-fill-color: transparent;
}


/* Titres et textes */
h2 {
    font-weight: bold;
    font-size: 2.5rem !important;
    text-align: center;
}

.main-title {
    font-size: 2.5rem;
}

.text {
    color: #F5F5F5 !important;
    font-size: 1.3rem;
}

.slide-in-text {
    opacity: 0;
    transform: translateY(20px);
}

.slide-in-text.visible {
    animation: slideIn 1.5s ease-out forwards;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.justify-text-custom {
    text-align: justify;
}

/* Link */
a.link {
    color: #F5F5F5;
    text-decoration: none;
}

a.link:hover {
    color: #FEE281;
}

/* Boutons */
.btn-container {
    text-align: center;
}

.btn-container .btn {
    background-color: #8E271F;
    border : none;
    color: #fff;
    font-weight: bold;
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-container .btn:hover {
    background: linear-gradient(135deg, #8E271F, #FEE183);
}

/* Images */
.zoom.visible {
    animation: zoom 8s ease-out forwards;
}

/* Barre de navigation */
.hero-header {
    position: relative;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 50px;
}

.hero-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../images/header.jpeg') no-repeat center center;
    background-position: top center;
    background-position-y: 25%;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -1;
    transform: scale(1);
    animation: zoom 8s ease-out forwards;
}

.hero-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.hero-title {
    font-size: 3rem;
    color: white;
}

@media screen and (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
        color: white;
    }
}

.hero-text {
    transition: transform 0.1s ease;
    color: white;
}

.hero-text:hover {
    transform: scale(1.05);
    color: #FEE281;
}

.text-shadow {
    text-shadow: 0 0 10px rgba(0,0,0,0.6);
}

/* Barre latérale mobile */
.custom-offcanvas {
    background: linear-gradient(135deg, #8E271F, #F0442B);
    color: white;
    width: 75%; /* ou 100% si tu veux qu'elle prenne tout l’écran */
    padding: 2rem;
    border-left: none;
  }
  
  .custom-offcanvas a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 1rem;
    display: block;
  }
  
  .custom-offcanvas .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .custom-offcanvas .btn-close {
    filter: invert(1);
  }
  

/* Animation */
@keyframes zoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Page d'accueil */
/* Cartes */
.cards-container {
    padding-top: 90px;
}

.card {
    background-color: #2a2a2a;
    border: 2px solid #FEE281;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 155px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(254, 226, 129, 0.3);
}

.card-title {
    background: linear-gradient(135deg, #8E271F, #F0442B);
    -webkit-background-clip: text;   /* Pour Safari et autres WebKit */
    background-clip: text;           /* Standard pour les autres navigateurs modernes */
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    font-size: 1.4rem;
}

.card-text {
    color: #ffffff;
    font-size: 1.2rem;
}

[id^="summary-"] {
    scroll-margin-top: 100px; /* ajuste selon la hauteur de ton header ou la marge souhaitée */
}


/* Résumés des catégories */
.summary-categories-container {
    padding-top: 90px;
}

.summary-category {
    width: 100%;
    padding: 3rem 2rem;
    background-color: #1f1f1f;
    color: #FEE281;
    border-top: 5px solid #8E271F;
    border-bottom: 5px solid #8E271F;
    margin-bottom: 2rem;
}

.summary-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

.summary-category-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.summary-image {
    overflow: hidden;
    border-radius: 0.5rem;
}

.summary-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.summary-content h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.summary-content ul {
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.summary-content li {
    margin-bottom: 0.5rem;
    list-style-type: none;
}

.content-and-btn {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.summary-citation {
    color:#FEE281;
    font-size: 1.5rem;
    font-style: italic;
    margin-top: 1rem;
    text-align: center;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0,0,0,0.6);
    padding: 1rem;
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@media screen and (min-width: 992px) {
    .slide-in-right, .slide-in-left {
        opacity: 0;
    }

    .slide-in-right.visible {
        opacity: 1;
        animation: slideInFromRight 0.6s ease-out forwards;
    }

    .slide-in-left.visible {
        opacity: 1;
        animation: slideInFromLeft 0.6s ease-out forwards;
    }

    .summary-category-inner {
        flex-direction: row;
        align-items: center;
    }

    .summary-image {
        flex: 1;
    }

    .summary-content {
        flex: 2;
        padding-left: 2rem;
    }

    .content-and-btn {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .text {
        flex: 3;
    }

    .btn-container {
        flex: 1;
        text-align: right;
    }
}

/*Catégories détaillées*/
.details-categorie-container {
    margin-top: 100px;
    background-color: #1f1f1f;
    border: 3px solid #FEE281;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.details-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.details-title {
    font-weight: 700;
    margin-bottom: 2rem;
    font-size: 3rem;
}

.details-content h4 {
    margin-top: 1.5rem;
    font-weight: 600;
}

.details-content h4.themes, .details-content h4.deroulement {
    color: #FEE281;
}

.tarif p, .tarif {
    color: #F0442B !important;
    font-weight: bold;
    font-size: 2rem;
}

.details-content ul {
    padding-left: 1.2rem;
}

.details-content ul li {
    margin-bottom: 0.5rem;
    color: #f5f5f5;
}

.details-content p {
    color: #f5f5f5;
}

.details-media-modern {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    position: relative;
}

.details-img-modern {
    width: 100%;
    max-width: 280px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
}

.details-img-modern:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(254, 226, 129, 0.3);
}

.details-img-modern.top {
    align-self: flex-start;
}

.details-img-modern.mid {
    align-self: center;
}

.details-img-modern.bottom {
    align-self: flex-end;
}

li.no-tip {
    list-style-type: none;
}

@keyframes growIn {
    0% {
      transform: scale(0.3);
      opacity: 0;
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }

.grow-in {
    opacity: 0;
}
  
.grow-in.visible {
    opacity: 1;
    animation: growIn 0.5s ease-out forwards;
    transform-origin: center;
}

@media screen and (max-width: 991.98px) {
    .details-media-modern {
        align-items: center;
    }

    .details-img-modern {
        max-width: 100%;
    }
}

/*Contact*/
@media screen and (min-width: 992px) {
    .contact-container {
        margin-top: 30px;
        padding-left: 50px !important;
    }
}

.bi {
    color: white;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.icon-bg {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8E271F, #FEE183);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.contact-text {
    margin: 0;
    font-size: 1.125rem;
}

.contact-text {
    text-align: left;
    flex: 1;
}

/* Flèche pour remonter la page */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #8E271F;
    color: white;
    padding: 10px;
    border-radius: 25%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px; /* Largeur fixe pour maintenir une forme ronde */
    height: 50px; /* Hauteur fixe pour maintenir une forme ronde */
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top.show {
    visibility: visible;
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #8E271F, #FEE183);
    color: white;
    transform: scale(1.1);
    transition: all 0.3s ease-in-out;
}

.scroll-to-top span {
    font-size: 18px;
    font-weight: bold;
}

.bi-arrow-up-short {
    font-size: 48px;
}

@media screen and (max-width: 768px) {
    .scroll-to-top {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    .bi-arrow-up-short {
        font-size: 56px;
    }
}

/* Footer */
footer {
    background-color: #1f1f1f;
}

.footer-menu {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
}

.text-muted, .text-muted a {
    color: #f5f5f5 !important;
    font-size:1rem;
    text-align: center;
    text-decoration: none;
}

.text-muted a:hover {
    color:#FEE183 !important;
}