/* Rendre compatible les balises html5 pour les anciennes versions de IE */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: flex;
}

/* Fonts */

@font-face {
  font-family: 'Kaushan Script';
  font-style: normal;
  font-weight: 400;
  src: local('Kaushan Script'), url('fonts/KaushanScript-Regular.ttf') format('truetype');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}

@font-face {
  font-family:'engravers mt';
  font-style: normal;
  src: local('engravers mt'), url('fonts/ENGR.TTF') format('truetype');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
 } 
 
@font-face { 
  font-family:'garamond';
  font-style: normal;
  src: local('garamond'), url('fonts/GARA.TTF') format('truetype');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}

body {
    margin: 0;
    padding: 0;
    font-family: arial;
    font-size: 18px;
    font-weight: bold;
    color: white;
}

#grille {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 3fr repeat(4, 1fr);
    height: 100vh;
    grid-row-gap: 3px;
}

header {
    background-color: #F3C570;
    font-size: 50px;
    color: #f47213;
    font-style: italic;
    color: #FF00E1;
    text-shadow: 0px 0px 1px #F928DF;
        1px 1px #000;
        2px 2px #000;
        3px 3px #000;
        4px 4px 1px #000;
    -webkit-transform: skewY(0deg);
    letter-spacing: 1px;
    text-decoration: underline;
    position: relative;
    height: 20vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Animation de header */

.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #FF00E1; /* Étoiles rouges */
    clip-path: polygon(50% 0%, 61.8% 38.2%, 100% 50%, 61.8% 61.8%, 50% 100%, 38.2% 61.8%, 0% 50%, 38.2% 38.2%);
    animation: sparkle 2s infinite linear;
}

@keyframes sparkle {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) scale(0.7);
        opacity: 0;
    }
}

.star:nth-child(1) {
    top: 10%;
    left: 10%;
    background-color: #45A049;
}

.star:nth-child(2) {
    top: 20%;
    left: 70%;
    background-color: #EFFF00;
}

.star:nth-child(3) {
    top: 50%;
    left: 30%;
    background-color: #007BFF;
}
.star:nth-child(4) {
    top: 30%;
    left: 80%;
    background-color: #FF6E00;
    
}

.star:nth-child(5) {
    top: 45%;
    left: 60%;
    background-color: #7F197D;
}

.star:nth-child(6) {
    top: 80%;
    left: 35%;
    background-color: #FF0094;
}
.star:nth-child(7) {
    top: 20%;
    left: 35%;
    background-color: #FF0046;
}

footer {
    background-color: #F3C570;
    font-family: arial;
    font-size: 12px;
    font-style: oblique;
    word-spacing: 5px;
    height: 16vh;
}

article {
    background-color: #B5F7B3;
    margin-top: 0px;
    background-image: url("images/boudha.png");
    background-repeat: repeat;
    background-size: 35%; 
    align-items: center; 
    display: none;
}

#images {
	display: flex;
	justify-content: space-between;
	justify-content: center;
   flex-direction: row;
}

 
img {
    border: 0px solid white;
    width: 55%;
    right: 0px;
    left: 0px;
    margin: auto;    
}

#image {
  -webkit-filter:blur(10px);
  -webkit-transition:1s;
}

#image:hover {
  -webkit-filter:blur(0px);
}

figure {
    margin: 0;
    background-color: #000;
    font-size: 0;
    position: relative;
    overflow: hidden;
}

h1 {
	 font-family: 'Kaushan Script', cursive;
    text-align:center;
    font-size:46px;
    color:#F623D1; 
    text-shadow: 0px 0px 1px #F623D1, 1px 1px #000,  2px 2px #000, 3px 3px #000, 4px 4px 1px #000; -webkit-transform:skewY( 0deg); 
    letter-spacing:4px; 
    font-weight:normal;  
}

h2 {
	 font-family:'garamond', cursive;
    text-align:center;
    justify-content: center;
    font-size:18px;
    color: #4D4D4D;
    display: flex;
}

h3 {
	 font-family:'garamond', cursive;
	 color: #4D4D4D;
    font-size: 18px;
    text-align:center;
    justify-content: center;
    display: flex;
}

h4 {
    font-family:'arial', cursive;
	 color: #4D4D4D;
    text-align: center;
    font-size: 12px;
}

h5 {
	 font-family:'arial', cursive;
	 color: #4D4D4D;
    text-align: center;
    font-size: 18px;
}

nav {
    margin: 0;
    padding: 0;
    background-color: #F299E8;
    background-image: url("images/tigreop30.png");
    background-repeat: no-repeat;
    background-position: center;
}

aside {
    background-color: #F299E8;
    background-image: url("images/tigreop30flip.png");
    background-repeat: no-repeat;
    background-position: center;    
}

span {
	text-transform: uppercase;
}

/* formulaire de création de compte */

.container {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 75vh;
}
.login {
	width: 470px;
	background: #ABEAF2;
	text-align: center;
	border: 1px solid #ccc;
	border-radius: 15px;
	padding: 15px;
}

h2 {
	font-family: 'garamond' cursive;
	font-size: 29px;
	color: #4D4D4D;
	margin: 0;
	padding:0;
	text-align: left;
}

.acces {
	text-align: left;
}
.champ {
	width: 360px;
	height: 30px;
	border: 1px solid #F3C570;
	padding: 15px;
	border-radius: 5px;
	background: #e4e4e4;
}
.champ:hover {
	background: #fff;
	border: 1px solid #000;
}
.loginbottom {
	background: #d3dfdf;
	padding-top: 20px;
	padding-bottom: 20px;
	border-radius: 5px;
}
.bt {
	background: #45A049;
	color: #fff;
	width: 150px;
	height: 50px;
	font-size: 20px;
	border: none;
	border-radius: 15px;
	cursor: pointer;
	transition: 0.5s;
	outline:none;
}
.bt:hover {
	background: #0062CC;
	transition: 0.5s;
}
.msg {
	color: red;
}
a {
	color: #06F;
	text-decoration: none;
	text-align: center;
}
a:hover {
	text-decoration: underline;
}

/* Liens de téléchargement */
.download-link {
    display: block;
    margin: 15px 0 5px;
    font-size: 1.2rem;
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.download-link:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Compteur de téléchargements */
.download-counter {
    font-size: 0.95rem;
    font-style: italic;
    color: #4D4D4D;
    margin-bottom: 20px;
    display: block;
}

/* Formulaire caché (non nécessaire à styler mais clair pour maintenance) */
.download-form {
    display: none;
}


 /* Popup avec menu déroulant */  
 
    .popup-button {
      cursor: pointer;
      color: blue;
      text-decoration: underline;
    }

    .popup {
      display: none;
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 400px;
      height: 300px;
      padding: 20px;
      background-color: #fff;
      box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
      overflow: auto; /* Ajout de la propriété overflow pour activer le défilement */
      scroll-behavior: smooth;
    }

    .popup-content {
      height: 100%; /* Ajout de la hauteur à 100% pour que la fenêtre puisse être scrollée */
    }
    
/* Captcha */

       .captcha-image {
        margin-bottom: 10px;
        color: #080E09;
        font-size: 24px;
    }
   
/* diaporama photo */

.slideshow-container {
			max-width: 800px;
			position: relative;
			margin: auto;
		}
		
.mySlides {
			display: none;
			
}

.prev, .next {
			cursor: pointer;
			position: absolute;
			top: 50%;
			width: auto;
			padding: 16px;
			margin-top: -22px;
			color: white;
			font-weight: bold;
			font-size: 18px;
			transition: 0.6s ease;
			border-radius: 0 3px 3px 0;
			user-select: none;
			background-color: rgba(0,0,0,0.8);
}

.next {
			right: 0;
			border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
			background-color: rgba(0,0,0,0.4);
}

.caption-container {
			text-align: center;
			background-color: rgba(0,0,0,0.4);
			padding:  auto;
			width: 250px;	
			color: #B5F7B3;		
}

.number-text {
			display: inline-block;
			color: white;
			font-size: 18px;
			padding: 8px 12px;
			position: absolute;
			top: 0;
}

img {
			display: block;
			max-width: 100%;
			height: auto;
			margin: auto;
}

.dot {
			cursor: pointer;
			height: 15px;
			width: 15px;
			margin: 0 2px;
			background-color: #bbb;
			border-radius: 50%;
			display: inline-block;
			transition: background-color 0.6s ease;
}

.active, .dot:hover {
			background-color: #717171;
}

#caption-1 {  
 margin-left: auto;
  margin-right: auto;
  color: #B5F7B3;
}

#caption-2 {  
margin-left: auto;
  margin-right: auto; /* Pour éliminer la marge par défaut du paragraphe */
  color: #B5F7B3;
}

#caption-3 {  
margin-left: auto;
  margin-right: auto; /* Pour éliminer la marge par défaut du paragraphe */
  color: #B5F7B3;
}

#caption-4 {  
margin-left: auto;
  margin-right: auto; /* Pour éliminer la marge par défaut du paragraphe */
  color: #B5F7B3;
}

#caption-5 {  
margin-left: auto;
  margin-right: auto; /* Pour éliminer la marge par défaut du paragraphe */
  color: #B5F7B3;
}
       
p {
	font-family:'garamond', cursive;
  text-align: center;
  font-size: 16px;
	color: #4D4D4D;
}

/* Sidenav menu */

.sidenav {
  height: 100%;
  width: 250px;
  position: fixed;
  z-index: 1;
  top: 0px;
  left: -250px;
  background-color: #F299E8;
  padding-top: 145px;
  transition: left 0.5s ease;
  background-image: url("images/filigrane.png"), url("images/tablatalks.png");
  background-repeat: repeat, no-repeat;
  background-size: auto, 55%;  
  background-position: top center;
  margin-right: 25px;
  font-family:'engravers mt', cursive;
}

.page-links a {
  display: inline-block;
  margin-right: 10px;
  color: #4D4D4D;
}

.page-links a:last-child {
  margin-right: 0;
}

.page-links a:hover {
	display: inline-block;
   margin-right: 10px;
	color: #90EE90; 
}
.flexbox p a {
  display: block !important;
  text-align: center;
}  
 
.flexbox {
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
}

.flexbox img {
  margin: auto; 
}

.content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Sidenav menu links */

.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 18px;
  color: #B5F7B3;
  display: block;
  transition: 0.3s;
  margin-top: 10px;
}

.sidenav a:hover {
  color: #4D4D4D;
}

.sidenav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* Active class */

.sidenav.active {
  left: 0;  
}

/* Close btn */

.sidenav .close {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
}

/* Icône burger */

.burger-icon span {
  display: block;
  width: 35px;
  height: 5px;
  background-color: #080E09;
  margin: 6px 0;
}

footer  p {
    display: inline;
    margin: 0;
}

li { color: #0F3B18;
}

/* Style pour le lecteur MP3 */

#audio-player {
    margin: 20px 0;
}

#audio-player audio {
    width: 100%;
    height: 50px;
    background-color: #FF4000;
    border: none;
}

#audio-player audio::-webkit-media-controls-panel {
    background-color: #FF4000;
}

#audio-player audio::-webkit-media-controls-play-button {
    background-image: url(chemin/vers/icone-play.png);
    background-size: cover;
}

#audio-player audio::-webkit-media-controls-pause-button {
    background-image: url(chemin/vers/icone-pause.png);
    background-size: cover;
}

.flexbox {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row; /* ajouter la direction de flexion horizontale */
}

.playlist {
  flex: 1;
  margin-right: 10px;
  margin: 10px;
}

.playlist:last-child {
  margin-right: 0;
}

.playlist h2 {
  text-align: center;
}

.playlist ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  color: #4D4D4D;
}

.playlist li {
  margin: 5px;
}

.playlist li a {
  text-decoration: none;
  color: #4D4D4D;
}

.playlist li a:hover {
  color: red;
}

audio {
  width: 100%;
}

/* Style for the playlist image */

.playlist-image {
  float: right;
  margin-right: 10px;
}

a[href$=".pdf"] {
  display: inline-block;
  height: 50px;
  background: url("images/pdf.png") top left no-repeat;
  line-height: 50px; 
  padding-left: 60px;
  color: #007BFF;
  text-transform: lowercase;
  font-weight: bold;
  font-family: Arial; 
  line-height: 18px;
  word-spacing: normal;
}

.flexbox p a {
  display: block !important;
}

/*    vidéo carousel   */

.article {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  margin-right: 90px;
}

.video-carousel {
  position: relative;
  margin-top: 20px;
  text-align: center;
}

.carousel-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
  align-items: center; /* Ajout */
}

.video-slide {
  scroll-snap-align: center;
  flex-shrink: 0;
  width: 100%;
  margin-right: 20px;
  display: flex; /* Ajout */
  justify-content: center; /* Ajout */
}

iframe {
   display: block;
  max-width: 100%;
  height:370px; /* hauteur de la vidéo */
}

.prev-slide,
.next-slide {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background-color: transparent;
  border: none;
  font-size: 30px;
  color: #080E09;
  z-index: 1;
}

.prev-slide {
  left: 20px;
}

.next-slide {
  right: 20px;
}
      
/* formulaire de contact */

.form {
  display: flex;
  flex-direction: column;
  align-items: left;
  margin: 0 auto;
  max-width: 600px;
   
}

.label {
  font-weight: bold;
  margin-bottom: 10px;
}

.col{
border-radius: 15px;
  border: 2px solid #ABEAF2;	
}

.input[type="text"]{
}

.input[type="email"]{
}

.input[type="file"]{
}

.label, input, textarea {
  color: black;
}

form label {
  color: #000;
  font-size: 10px;
}

textarea {
  padding: 10px;
  border-radius: 5px;
  border: 2px solid #ccc;
  width: 100%;
  max-width: 400px;
  margin-bottom: 20px;
  color: #4D4D4D;
  height: 150px;
}

button[type="submit"] {
  background-color: #45A049;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  display: inline-block;
  width: 50%;
  color: #FFFFFF;
}

button[type="submit"]:hover {
  background-color: #0062CC;
}


.flexbox {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flexbox p {
  margin-bottom: 10px;
}

footer .page-links a {
  margin-top: 20px; /* ajuster la valeur selon l'espace souhaité */
}

.article.flexbox img {
	display: flex;
  flex-direction: column;
  align-items: center;
  width: 350px; /* définit une largeur de 200 pixels */
  height: auto; /* ajuste la hauteur proportionnellement */
}

#piece-jointe {
  margin-bottom: 10px;
}

form button {
  margin-left: 10px;
}

.rss-link {
  display: inline-block;
  padding: 10px 10px;
  background-color: #B5F7B3;
  margin-left: 70px;
  font-weight: bold;
  border-radius: 5px;
  margin-right: 30px;
  text-align: justify;
}

.rss-link i {
  margin-right: 20px;
  margin-left: 20px;
}

.rss-link:hover {
  display: inline-block;
  padding: 10px 10px;
  background-color:#ABEAF2;
  margin-left: 70px;
  font-weight: bold;
  border-radius: 5px;
  margin-right: 30px;
  text-align: justify;
}

a[aria-label="Ouvrir le menu de navigation"] {      
   color: blue;   
   text-decoration: underline; 
}

.caption-container {
  margin-left: auto;
  margin-right: auto;
}

/******************* COOKIES ********/
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: -15px;
    width: 100%;
    background-color: rgba(171, 234, 242, 0.7); /* Utilisation de rgba pour la transparence (0.7 signifie 70% d'opacité) */
    color: white; /* Couleur du texte */
    padding: 10px;
    text-align: center;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.1);
    display: none; /* L'avertissement est initialement caché */
    margin-right: 5px;
}

.cookie-banner button{
  background-color: #45A049;
  color: #FFFFFF;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out; 
}

.cookie-banner button:hover{
	background-color: #0062CC;
}

@media screen and (max-width: 479px) {
.video-slide {
    flex: 0 0 100%; /* La largeur de chaque slide sera de 100% */
    margin-right: 0; /* Il n'y aura pas de marge à droite de chaque slide */
  }
  
  .prev-slide, .next-slide {
    font-size: 16px; /* La taille de police des boutons de navigation sera réduite */
  }
  .prev, .next{font-size: 14px;}
	.number-text{font-size: 14px;}

.login, .champ {
		width: 80%;
	}
}	

@media screen and (min-width: 480px) and (max-width: 959px) {
.video-slide {
    flex: 0 0 50%; /* La largeur de chaque slide sera de 50% */
  }
  
  
.flexbox {
    flex-direction: row;
    justify-content: center;
  }
  
  .content {
    text-align: left;
  }
  .prev, .next{font-size: 16px;}
 .number-text{font-size: 16px;}
}

@media screen and (min-width: 960px) {
    #grille {
        grid-template-columns: 1fr 4fr 1fr;
        grid-template-rows: 1fr 4fr 1fr;
        grid-column-gap: 3px;
    }

    header {
        grid-column: 1 / span 3;
        order: 1;
    }

    footer {
        grid-column: 1 / span 3;
        order: 4;
    }

    nav {
        order: 1;
    }

    article {
        order: 2;
    }

    aside {
        order: 3;
    } 
  }