
/*************** HEADER ****************/

/* .navbar {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 175px;
        /* align-items: stretch; */
            /* justify-content: flex-start; */
    /* background-image: url('../images/nav-banner.jpg'); */
/* }  */

.header-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    width: 100%;
    height: 175px;
    align-items: start;
    background-size: cover;
    background-position: center;
    background-image: url('../images/nav-banner.jpg');
}

.logo {
    /* grid-template-columns: 1 / 2;
    grid-template-rows: 1 / 2; */
    position: absolute;
    top: 20px;
    left: 150px;
    max-width: 30vw; /*(vw viewport width largeur du navigateur)*/
    font-family: "Irish Grover";
    transform: rotate(8deg);
    /* transform: rotate(8deg) skewX(10deg); */
    font-size: 35px;
    /* padding: 20px 0px 0px 150px; */
}

.logo a {
    color: white;
    font-size: 2rem;       /* Réduit le logo */
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap; 
}

.menu-area {
    position: absolute;
    right: 200px;  /* distance depuis le bord droit */
    bottom: 10px; /* distance depuis le bord inférieur */
    display: flex;
    gap: 20px;
}

.menu-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    display: inline-block;
    padding: 5px 20px;
    color: white;
    background-color: #ff7f50;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 8px;
}

.nav-link.active {
    font-weight: bold;
    color: rgb(88, 88, 88) !important;
    font-style: italic;
    /* color: #ff7f50; */
    /* border-bottom: 2px solid #ff7f50; */
}


/* .navbar-collapse {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    background-color: aqua;
} */

/* .navbar-item a {
    color: orange;
} */

/**************** FOOTER ****************/
.footer-container {
    display: flex;
    justify-content: center;
    color:white;
    background-color: black;
    padding: 20px 0px 20px 0px ;
}

.footer-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.footer-nav-link {
    font-size: 1.1rem;
    text-decoration: none;
    color: white;
    background-color: black;
    border-radius: 4px;

    margin: 20px;

}

/**************** BUTTON ****************/
.btn-link {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 20px;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    /* font-weight: bold; */
    border-radius: 8px;
    transition: all 0.3s ease;      /* transition douce pour hover */
    box-shadow: 0 3px 6px rgba(0,0,0,0.2); /* léger relief */
    border: none;
}

.btn-link-modify {
    width: 100px;
    background-color: #ff7f50;
}

.btn-link-delete {
    width: 100px;
    background-color: red;
}

.btn-link:hover {
    background-color: #ff6347;      /* couleur un peu plus foncée au survol */
    transform: translateY(-2px);    /* léger effet “pop” */
    box-shadow: 0 5px 10px rgba(0,0,0,0.3); /* shadow plus marqué */
}

/**************** BODY ****************/
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
    background-color: white;
}

.content {
    flex: 1; /* prend tout l’espace restant entre le header etle footer */
}

/**************** CONTAINERS ****************/
.main-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.standard-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width : 75vw;
}

.left-container {
    width: 25vw;
    display: flex;
    flex-direction: column;
    margin: 5px 0px 5px 5px;
    padding: 10px 30px 10px 30px;
    background-color: rgb(245, 242, 238);
    border-radius: 20px;      
}

.central-container{
    display: flex;
    flex-direction: column;
    width: 75vw;
}

.item-container {
    display: flex;
    flex-direction: row;
    margin:5px 5px 0px 5px;
    width: 100%;
}

.item-container a {
    text-decoration: none;
    display: block;
    width: 100%;
}

/**************** PAGE EVENTLIST ****************/

/* .day */
.date {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 0px 20px 0px 20px;
    margin: 5px;
    background-color: rgb(247, 226, 199);
    border-radius: 20px;  
}

.event a {
    text-decoration: none;
}

.event-medium-card{
    display: flex;
    flex-direction: row;
    margin: 5px;
    padding: 10px;
    background-color: rgb(245, 242, 238);
    border-radius: 20px;
}

.event-poster{
    padding-top: 10px;
    width: 100px;
    height: 150px;
}

.event-poster img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-medium-card-data{
    display: flex;
    flex-direction: column;
    margin-left: 20px;
    color: black;
}

/**************** FILTERS ****************/
/* Masquer toutes les listes par défaut */
.filter-options {
  display: none;
  margin-left: 20px; /* indentation optionnelle */
  margin-top: 5px;
}

/* Afficher la liste quand la checkbox "toggle" est cochée */
#toggle-organisateur:checked + .filter-title + .filter-options,
#toggle-thematic:checked + .filter-title + .filter-options,
#toggle-fee:checked + .filter-title + .filter-options,
#toggle-public:checked + .filter-title + .filter-options,
#toggle-town:checked + .filter-title + .filter-options,
#toggle-location:checked + .filter-title + .filter-options {
  display: block;
}

#toggle-date:checked ~ .filter-options {
    display: block;
}


/* Style des titres pour qu’ils ressemblent à des boutons */
.filter-title {
  display: block;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 5px;
}

/* Optionnel : petit effet visuel au survol */
.filter-title:hover {
  color: #d9534f; /* rouge bootstrap */
}


/* Animation ouverture */
.filter-options.open {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/*************** PAGE EVENT **************/
.event-description-container{
    display: flex;
    margin: 30px 0px 30px 0px;
}

.poster-big-format{
    width: 400px;
    height: 560px;
}

.poster-big-format img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-description-card{
    width: 600px;
    margin-left: 25px;
    padding-left: 10px;
}

.limited-textarea {
    width: 100%;
    resize: none;         /* Empêche le redimensionnement */
    overflow-y: auto;     /* Ajoute un scroll si le texte dépasse */
    line-height: 1.5em;   /* Hauteur d'une ligne */
    height: calc(1.5em * 3); /* 3 lignes visibles */
}

.truncate-multi-responsive {
  width: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  line-height: 1.3em;
}

.clamp-container {
  width: 250px;
  cursor: pointer;
}

/* Par défaut : tronqué */
.clamp3 {
  width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  cursor: pointer;
}

/* Quand tu coches → affichage complet */
#toggle-text:checked + .clamp3 {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  white-space: normal;
}

/**************** PAGE ORGANISATION ****************/

.left-container-btn {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 40px;
}

.event-small-card,
.orga-small-card {
    display: flex;
    flex-direction: row;
    width: 100%;
    /* margin: 5px; */
    padding: 10px;
    background-color: rgb(245, 242, 238);
    border-radius: 20px;
}

.event-small-card-data,
.orga-small-card-data  {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    color: black;
}

.btn-container {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: auto;
    margin: 0px 5px 0px 5px;
    padding: 20px;
    background-color: rgb(245, 242, 238);
    border-radius: 20px;
}

/***************  RESPONSIVE  *****************/

@media (max-width: 600px) {
        /* --- Layout global --- */
    .main-container {
        flex-direction: column !important;
        align-items: center;
        padding: 10px;
    }

    .left-container {
        width: 90vw;
        margin: 10px 0;
        /* order: 1 !important; */
    }

    .central-container {
        width: 100%;
        /*order: 2 !important;*/
    }

    /* --- Header --- */
    .header-container {
        height: 130px;
        background-size: cover;
    }

    .logo {
        font-size: 1.3rem;
        left: 10px;
        top: 10px;
        white-space: normal;
    }

    .menu-area {
        position:static;
        flex-direction: column;
        align-items: flex-end;
        margin-left: 10px;
    }

    .menu-links {
        flex-direction: column;
        gap: 5px;
    }

    .nav-link {
        padding: 5px 15px;
        font-size: 0.9rem;
    }

    /* --- Filters --- */
    .left-container {
        padding: 15px;
        border-radius: 12px;
        width: 95vw !important;
        margin: 10px 0 !important;
        order: 1;
    }

    .filter-title {
        font-size: 1rem;
    }

    label input[type="checkbox"] {
        transform: scale(1.2);
        margin-right: 5px;
    }

    /* --- Event page --- */
    .event-description-container {
        /* padding: 10px; */
        flex-direction: column;
        align-items: center;
    }

    .poster-big-format {
        max-width: 400px;
        height: 500px;
        margin-bottom: 15px;
        /* order: 1 !important; */
    }

    .event-description-card {
        width: 95%;
        /* order: 2 !important; */
    }
}

/* --- Burger Menu --- */
@media (min-width: 600px) {
    .navbar-toggler {
        display: none;
    } 
    #menu {
        display: flex !important;
    }
    .menu-links {
        display: flex !important;
        flex-direction: column;
        gap: 20px;
    }
}
