
/* 
.cardWrapper{
    position: relative;
    perspective: 2000px;
    perspective-origin: top;
}

.cardWrapper:hover .card{
    transform: rotateY(180deg);
}

.cardWrapper .card{
    position:relative;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s ease-in-out;
    color:blue;
    font-weight: bold;
}

.cardWrapper .cardFront, .cardBack{
    position: absolute;
    height: 100%;
    width: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.cardWrapper .cardFront{
    background-color: aqua;
}

.cardWrapper .cardBack{
    background-color: #ECBF45;
    transform: rotateY(180deg);
} */









@media (min-width: 1029px) {

/* --------RESET DES STYLES DU NAVIGATEUR-------- */ 
*,
::before,
::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body{
    height: 100%;
}


/* ---------LAYOUTS PRINCIPAUX-------- */
body{
    font-family: Helvetica, Arial, sans-serif;
    display:flex;
    flex-direction: column;
    background-size: cover;
    height: 100%;
}

/* header et barre de navigation */
header{
    position:fixed;
    display: flex;
    width:100%;
    align-items: center;
    background: black;
    box-shadow: inset 0px -2px 0px #ECBF45;
    z-index: 10000;
}

.logo-container{
    width: 175px;
    flex-grow: 0;
}

img#logo-balteria{
    height: 80px;
    margin-right: 20px;
    left: 10px;
}

.hamburger{
    display: none;
}

.nav-container{
    display:flex;
    flex-grow: 1;
    z-index: 10000;
}

.nav-list{
    width: 100%;
    display: grid;
    grid-auto-flow: column;
    /*grid-template-columns: grid-auto-columns;*/
    text-align: center;
    position: relative;
}

.nav-item, .sous-nav-item{
    list-style-type: none;
}

.nav-item > a, .sous-nav-item > a{
    color: #ECBF45;
    text-decoration: none;
    font-size: 16px;
    font-weight: normal;
    font-family: sans-serif;
    /* font-family: "Lobster", sans-serif; */
}

.nav-item > a:hover{
    color: #e4d5ac;
}

.sous-nav-list{
    display:none;
    position:absolute;
    width: 100%;
    z-index: -1;
    border-left: solid #ECBF45 2px; 
    border-right: solid #ECBF45 2px; 
    border-bottom: solid #ECBF45 2px; 
    padding: 10px;
    text-align: center;
    background: black;
}


nav > ul li:hover .sous-nav-list{
    display: block;
}

.sous-nav-list li{
    text-align: center;
    list-style-type: none;
    margin-bottom: 5px;
}

.deroulant{
    position: relative;
}

.deroulant > a::after{
    content:"▼";
    font-size: 12px;
}

/* contenu principal de la page */
.global-container{
    background: linear-gradient(rgb(185, 152, 4), rgb(240, 229, 151));
    flex-direction: column;
    margin-top:80px;
    width: 100%;
    flex-grow: 10;
}

/* footer */
footer{
    background-color: black;
    min-height: 60px;
    max-height: 60px;
    text-align: center;
    border-top: solid 2px #ECBF45;
}

footer > p{
    color:#ECBF45;
    text-align: center;
    display: inline-block;
    margin-top: 10px;
    font-size: 18px;
}

/* bouton remontée de page*/
.up-aside{
    position: fixed;
    bottom: 0;
    left: 0;
    border: solid #C86435 1px;
    background: #f1eede;
    padding: 5px;
    border-radius: 5px;    
    margin: 5px;
}
.up-aside img{
    width:30px;
}



/* --------FORMAT DES ARTICLES DE LA PAGE */
/* conteneur principal*/
article{
    margin: auto;
    margin-top: 20px;
    overflow:hidden;
    width: 70%;
    /*min-width: 1000px;*/
    background-color: rgba(255,255,255, 0.4);
    border-radius: 5px;
}

/* pour le dernier article de la page, mettre un margin avant le footer */
article:last-child{
    margin-bottom:20px;
}

/* titre des articles */
h1{
    font-size: 25px;
    font-weight: normal;
    color: white;
    width: 100%;
    font-family: "Lobster", sans-serif;
    background-color: #C86435;
}

/* contenu des articles */
.articleContent{
    padding: 20px;
    border-left: solid #C86435 2px;
    border-right: solid #C86435 2px;
    border-bottom: solid #C86435 2px;
    border-radius: 0 0 5px 5px;
}



/* --------FORMAT DES TEXTES ET CONTENUS DES ARTICLES-------- */
p{
    font-size: 16px;
    color:rgb(5, 5, 39);
    text-align: justify;
    margin-bottom: 20px;
}

a{
    color: #C86435;
}

a:hover{
    color: rgb(255, 93, 35);
}

.imgContainer{
    overflow:hidden;
    width: 100%;
    
}
img#imgAccueil{
    max-width: 100%;
    margin-bottom: 20px;
    border-radius: 10px;
}

.center{
    text-align: center;
    align-self: center;
}

article *:last-child{
    margin-bottom: 0;
}


/* ORGA CARDS */
.cardContainer{
    display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); */
    grid-template-columns: repeat(auto-fit, 250px);
    grid-auto-rows: 250px;
    justify-content: center;
    grid-gap: 20px;
}

.orgaCard{
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: solid 3px #C86435;
    transition: transform 0.4s ease-out;
}

.orgaCard img{
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.orgaClic{
    display:none;
}

.orgaInfo{
    position:absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.orgaName{
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #C86435;
}

.orgaSurname{
    font-size: 18px;
    color:#ECBF45;
}

.orgaJob{
    font-size: 16px;
    font-weight: bold;
    color:#e4d5ac;
}

.orgaDesc{
    font-size: 16px;
    color:#e4d5ac;
}

.orgaCard:hover .orgaInfo{
    transform: translate(0);
}

.orgaCard:hover{
    transform: scale(1.05);
    box-shadow: 0 0 0 3px #C86435;
}




/*EVENEMENTS */


.eventContainer{
    display: flex;
    overflow: hidden;
    min-height: 300px;
}
.eventInfoContainer{
    flex-grow: 6;
    position:relative;
    margin-right: 20px;
}
.eventActionContainer{
    position: absolute;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap:10px;
    max-width: 100%;
}
.eventMapContainer{
    flex-grow: 4;
    max-width: 40%;
    overflow: hidden;
}

h2{
    font-size: 28px;
    color:#C86435;
    margin-bottom: 20px;
    font-family: "Lobster", sans-serif;
}

strong{
    color:#C86435;
}

.btn{
    width: 100%;
    padding: 10px 20px;
    background-color: black;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
}

a .btn{
    color: #ECBF45;
    
    text-decoration: none;
    font-weight: bold;
}

.btn:hover{
    background-color: #C86435;
}

a .btn:hover{
    color: white;
    text-decoration: none;
}

/* FENETRE MODALE */

.modalContainer{
    display: none;
    position: fixed;
    top:0;
    width: 100vw;
    height: 100vh;
}

.modalContainer.active{
    display: block;
}

.overlay{
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #5a5a5ad3;
}

.modal{
    width: 95%;
    max-width: 500px;
    min-width: 300px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    position:absolute;
    top:40%;
    left:50%;
    transform: translate(-50%, -50%);
}

.closeModal{
    padding: 8px 10px;
    border:none;
    border-radius: 5px;
    font-size: 18px;
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #C86435;
    color:white;
}

}



/* --------------------------------------------------------- media queries à partir de 1040px de large --------------------------------------------------------------*/

@media (max-width: 1028px) {

    /* --------RESET DES STYLES DU NAVIGATEUR-------- */ 
*,
::before,
::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body{
    height: 100%;
}


/* ---------LAYOUTS PRINCIPAUX-------- */
body{
    font-family: Helvetica, Arial, sans-serif;
    display:flex;
    flex-direction: column;
    background-size: cover;
    height: 100%;
}

/* header et barre de navigation */
header{
    position:fixed;
    display: flex;
    width:100%;
    align-items: center;
    background: black;
    box-shadow: inset 0px -2px 0px #ECBF45;
}

.logo-container{
    width: 200px;
    flex-grow: 0;
}

img#logo-balteria{
    height: 60px;
    margin-right: 20px;
    left: 10px;
}

.hamburger{
    display: none;
}

.nav-container{
    display:none;
}


/* contenu principal de la page */
.global-container{
    background: linear-gradient(rgb(185, 152, 4), rgb(240, 229, 151));
    flex-direction: column;
    margin-top:60px;
    width: 100%;
    flex-grow: 10;
}

/* footer */
footer{
    background-color: black;
    min-height: 60px;
    max-height: 60px;
    text-align: center;
    border-top: solid 2px #ECBF45;
}

footer > p{
    color:#ECBF45;
    text-align: center;
    display: inline-block;
    margin-top:20px;
    font-size: 12px;
}

/* bouton remontée de page*/
.up-aside{
    display:none;
}



/* --------FORMAT DES ARTICLES DE LA PAGE */
/* conteneur principal*/
article{
    margin-top: 20px;
    margin-left: 20px;
    margin-right: 20px;
    max-width: 100%;
    overflow:hidden;
    background-color: rgba(255,255,255, 0.4);
    border-radius: 10px;
    /*min-width: 1000px;*/
}

/* pour le dernier article de la page, mettre un margin avant le footer */
article:last-child{
    margin-bottom:20px;
}

/* titre des articles */
h1{
    padding: 0 20px;
    font-size: 30px;
    font-weight: normal;
    color: white;
    width: 100%;
    font-family: "Lobster", sans-serif;
    text-align: center;
    background-color: #C86435;
    
}

/* contenu des articles */
.articleContent{
    border-left: dotted #C86435 2px;
    border-right: dotted #C86435 2px;
    border-bottom: dotted #C86435 2px;
    padding: 20px;
    border-radius: 0 0 10px 10px;
}



/* --------FORMAT DES TEXTES ET CONTENUS DES ARTICLES-------- */
p{
    font-size: 16px;
    color:rgb(5, 5, 39);
    text-align: justify;
    margin-bottom: 20px;
}

a{
    color: #C86435;
}

a:hover{
    color: rgb(255, 93, 35);
}

.imgContainer{
    display: none;
}

.center{
    text-align: center;
    align-self: center;
}

article *:last-child{
    margin-bottom: 0;
}


/* ORGAS CARDS */

.cardContainer{
    display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); */
    grid-template-columns: repeat(auto-fit, 300px);
    grid-auto-rows: 300px;
    justify-content: center;
    grid-gap: 20px;
}

.orgaCard{
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: solid 3px #C86435;
    transition: transform 0.4s ease-out;
}

.orgaCard img{
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.orgaClic{
    background-color: transparent;
}

.orgaHamburger{
    width: 30px;
    height: 30px;
    cursor: pointer;
    position:absolute;
    top:0;
    right: 0;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    z-index:3;
}

.orgaHamburger span{
    display:block;
    width: 100%;
    height: 3px;
    position:absolute;
    pointer-events: none;
    transition: opacity 0.3s 0.15s ease-out;
    background-color: #C86435;
}

.orgaHamburger span:nth-child(1){
    transform: translateY(7px);
}

.orgaHamburger span:nth-child(3){
    transform: translateY(-7px);
}

.orgaInfo{
    position:absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.orgaName{
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #C86435;
}


.orgaSurname{
    font-size: 18px;
    color:#ECBF45;
}

.orgaJob{
    font-size: 16px;
    font-weight: bold;
    color:#e4d5ac;
}

.orgaDesc{
    font-size: 16px;
    color:#e4d5ac;
}

.orgaCard.active .orgaInfo{
    transform: translate(0);
}

.orgaCard.active{
    transform: scale(0.95);
    box-shadow: 0 0 0 3px #C86435;
}

/*EVENEMENTS */


.eventContainer{
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 300px;
}
.eventInfoContainer{
    position:relative;
    margin-bottom: 20px;
    min-height: 200px;
}
.eventActionContainer{
    position: absolute;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap:10px;
    max-width: 100%;
}
.eventMapContainer{
    overflow: hidden;
    height: 300px;
}

h2{
    font-size: 28px;
    color:#C86435;
    margin-bottom: 20px;
    font-family: "Lobster", sans-serif;
}

strong{
    color:#C86435;
}

.btn{
    width: 100%;
    padding: 10px 20px;
    background-color: #C86435;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
}

a .btn{
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.btn:hover{
    background-color: black;
}

a .btn:hover{
    color: #ECBF45;
    text-decoration: none;
}

/* FENETRE MODALE */

.modalContainer{
    display: none;
    position: fixed;
    top:0;
    width: 100vw;
    height: 100vh;
}

.modalContainer.active{
    display: block;
}

.overlay{
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #5a5a5ad3;
}

.modal{
    width: 95%;
    max-width: 500px;
    min-width: 300px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    position:absolute;
    top:40%;
    left:50%;
    transform: translate(-50%, -50%);
}

.closeModal{
    padding: 8px 10px;
    border:none;
    border-radius: 5px;
    font-size: 18px;
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #C86435;
    color:white;
}

}
