* {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;    
    box-sizing: border-box;
    line-height: 1.5;  
}
    
.a:hover {
    cursor: pointer;
}

::selection {
    background-color : darkmagenta;
    color: white;    
}

/* Header & Navigation */
header {
    background-color: black;
    height: 134px;
    width: 100%;
    position: fixed;
    box-shadow: 0 10px 30px black;
    z-index: 1;
}

.logo-banniere{
    position: absolute;
    margin-left: 10%;
    width: 200px;
}

.logos {
    display: flex;
    margin-top: 30px;
    float: inline-end;
    margin-right: 10%;
}

.logos-1 {
    margin-right: 15px;
}

.logo-fb, .logo-insta {
    width: 30px;
}

.logo-fb:hover, .logo-insta:hover {
    opacity: 0.5;
    transform: scale(1.15);
    transition: transform 0.4s ease;
}

.texte-banniere {
    display: inline;
    position: absolute;
    font-size: 1.8em;
    color: darkmagenta;
    font-family: "Carter One", system-ui;
    font-style: italic;
    top: 30px;
    left: 35%;
}

nav {
    margin-top: 110px;
    padding: 0 12% 0 30%;
}

.conteneur-nav { 
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 25px;
}

nav a{
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    opacity: 0.5;
    transform: scale(1.15);
    transition: transform 0.4s ease;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;    
    cursor: pointer;
    background: none;
    border: none;
    position: absolute;
    right: 0;
    top: 60px;
    width: 60px;
    height: 60px;
    padding: 5px;    
    z-index: 2;
    overflow: visible;
}

.burger span {
    width: 40px;
    height: 5px;
    background: white;
    margin: 2.6px 0;
    display: block;
    transition: transform 0.35s ease, opacity 0.3s ease;
    transform-origin: center;
}

.burger span:nth-child(2) {
    transform: none;
}

/* ligne du haut */
.burger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

/* ligne du milieu */
.burger.active span:nth-child(2) {
    opacity: 0;
}

/* ligne du bas */
.burger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.burger:hover, .burger:focus, .burger:active {
    outline: none;
    background: none;
}

/* Body & Main */
body {
    background-image: url('../src/fond.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: top;
}

main {    
    padding: 150px 10% 0;
    font-size: 1em;
}

.titre-main {
    color: darkmagenta;
    text-align: center;
}

.section-main {
    background-color: white;
    padding: 50px;
    text-indent: 5%;
    text-align: justify;
    border-radius: 30px;
    overflow: hidden;
    opacity: 0.85;
}

.section-main a {   
    color:darkmagenta;
    text-decoration: none;
}

.section-main a:hover {
    text-decoration: underline;
}

.section-main p {
    margin-bottom: 1.2em;
}

.img-president {
    float: left;
    margin: 0 25px 15px 0;
    width: 250px;
}

.logo-baladins {
    float: right;
    margin: 0 0 15px 25px;
    width: 250px;
}

section img {
    display: flex;
    margin: auto;
}

.masques1 {
    margin-bottom: 50px;
    width: 100px;
}

.masques2 {
    margin-top: 50px;
    width: 100px;
}

.image-evenements {
    float: right;
    width: 250px;
    border-radius: 15px;
    margin: 0 0 15px 25px;
}

/* Les Bouttons*/
button {
    display: flex;
    justify-self: center;
    margin: 15px;
    color: white;
    background-color: darkmagenta;
    border-radius: 15px;
    padding: 5px 15px;
    font-weight: bold;
    font-size: 1.1em;
}

button:hover {
    cursor: pointer;
    background-color: rgb(52, 0, 52);
    transform: scale(1.1);
    transition: transform 0.4s ease;
}

/* le texte defilant dans l'index*/
.marquee {
    overflow: hidden;
    width: 100%;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: defilement 12s linear infinite;
}

.marquee-track span {
    white-space: nowrap;
    margin-right: 50px; /* espace entre répétitions */
    color: darkmagenta;
    font-weight: bold;
}

/* animation fluide */
@keyframes defilement {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.marquee-responsive {
    visibility: hidden;
    color: darkmagenta;
    font-weight: bold;
    text-align: center;    
}


/* disposition du main et des asides*/
.conteneur {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-gap: 15px;
}

.un {
    grid-column :1/4;
    grid-row: 1/3;
}

.deux {
    grid-column: 4/5;
    grid-row: 1/2;
    position: sticky;
    top: 0;
}

.trois {
    grid-column: 4/5;
    grid-row: 2/3;
    position: sticky;
    top: 150px;
}

/* Les Asides */
aside {
    border: 2px solid black;
    margin: auto;    
    border-radius: 30px;
    overflow: hidden;
    text-align: center;
    opacity: 0.85;
    background-color: white;    
}

aside a {
    color:darkmagenta;
    text-decoration: none;
    font-weight: bold;
}

aside a:hover {
    text-decoration: underline;
}

.aside-titre {
    padding: 15px;
    background: linear-gradient(90deg, black, darkmagenta);
    border-bottom: 2px solid black;
    font-size: 1.5em;
    color: white;
}

.aside-txt {
    padding: 15px;
}

/* Le Footer */
footer {
    color: darkmagenta;
    text-align: center;
    background-color: black;
    padding: 25px 0 25px 0;
}

/* La Popup */
.popupBackground {
    display: none;
    position: fixed;
    inset: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 2;    
}

.popupBackground.active {
    display: flex;
}

.popup img {
    width: 400px;
    border-radius: 15px;
}

/* responsive telephones*/
@media (max-width: 768px) {

/* bannière et navigation */    
.logo-banniere{
    margin-left: 0%;
}

.logos {
    margin-top: 20px;
    margin-right: 5%;
}

.texte-banniere {
    display: none;
}

.burger {
    display: flex;
  }

.conteneur-nav {
    position: absolute;
    top: 130px;
    right: 0px;
    width: 170px;
    background: black;
    flex-direction: column;
    align-items: center;
    border-radius: 15px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
  }
 
.conteneur-nav a {
    display: block;
    padding: 0px;
    font-size: 1.3em;
}

.conteneur-nav.active {
    max-height: 500px;
    opacity: 1;
  }

/* Le Main */
main {    
    padding: 150px 0;
    font-size: 1.2em;
}

.section-main {
    padding: 10px;
}

.img-president {
    display: none;
}

.logo-baladins {
    display: none;
}

.image-evenements {
    float: none;
    margin: 0 auto;
}

.marquee-track {
    display: none;
}

.marquee-responsive {
    visibility: visible;
    animation: neon 3s infinite;
}

@keyframes neon {
    0% {
        opacity: 1;
        text-shadow: 
            0 0 10px magenta,
            0 0 20px magenta,
            0 0 40px purple;
    }
    50% {
        opacity: 0.2;
        text-shadow: none;
    }
    100% {
        opacity: 1;
        text-shadow: 
            0 0 10px magenta,
            0 0 20px magenta,
            0 0 40px purple;
    }
}

/* Les Box */
.conteneur {
    grid-template-columns: 1fr;
    grid-template-rows: 3fr;
}

.un {
    grid-column: 1;
    grid-row: 1;
    position: static;
}

.deux {
    grid-column: 1;
    grid-row: 2;
    position: static;
}

.trois {
    grid-column: 1;
    grid-row: 3;
    position: static;
}

}

/*responsive tablettes*/
@media (min-width: 769px) and (max-width: 1280px){

/* bannière et navigation*/
.logo-banniere{
    margin-left: 0%;
}

.logos {
    margin-top: 20px;
    margin-right: 5%;
}

.texte-banniere {
    top: 45px;
}

nav {
    padding: 0 10px 0 0;
}

.conteneur-nav { 
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 15px;
}

/*le main*/
main {    
    padding: 150px 5px;
}

.section-main {
    padding: 10px;
}

}