/* ============================================
   STYLE.CSS CORRIGÉ - TablaTalks
   ============================================ */

/* 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;
}

html {
    margin: 0;
    padding: 0;
    height: 100%;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: arial;
    font-size: 18px;
    font-weight: bold;
    color: white;
    min-height: 100%;
    background-color: #B5F7B3; /* Couleur de fond = couleur article, élimine bandes blanches */
}

/* Grille principale - sans min-height pour éviter espaces blancs */
#grille {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto auto auto; /* header, article, nav, aside, footer */
    grid-row-gap: 0; /* Pas d'espace entre les rangées */
}

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;
    margin: 0; /* Pas de marge au-dessus */
}

/* 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;
    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;
    padding: 20px 0;
    height: 31vh;
    margin: 0; /* Pas de marge sous le footer */
}

.get-list {
    list-style: none;
    margin: 30px 0;
}


/* CORRECTION: article était display: none - maintenant visible */
article {
    background-color: #B5F7B3;
    margin-top: 0px;
    background-image: url("images/boudha.webp");
    background-repeat: repeat;
    background-size: 35%; 
    align-items: center; 
    display: flex; /* CORRIGÉ: était "none" */
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

#images {
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 10px;
}
 
img {
    border: 0px solid white;
    width: 55%;
    right: 0px;
    left: 0px;
    margin: auto;    
}

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

#image:hover {
    -webkit-filter: blur(0px);
    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;
    margin: 0; /* Évite l'espace au-dessus du header */
}

h2 {
    font-family: 'garamond', cursive;
    text-align: center;
    justify-content: center;
    font-size: 18px;
    color: #4D4D4D;
    display: flex;
    margin: 0 0 10px 0; /* Pas de marge en haut */
}

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

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 {
    background-color: #F299E8;
    background-image: url("images/tigreop30.webp");
    background-repeat: no-repeat;
    background-position: center;
}

aside {
    background-color: #F299E8;
    background-image: url("images/tigreop30flip.webp");
    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: 75%;
    height: 75vh;
}

.login {
    width: 500px;
    background: #ABEAF2;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 15px;
}

.acces {
    text-align: left;
}

.champ {
    width: 100%;
    max-width: 400px;
    height: 30px;
    border: 1px solid #F3C570;
    padding: 15px;
    border-radius: 5px;
    background: #e4e4e4;
    box-sizing: border-box;
}

.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;
}

.download-counter {
    font-size: 0.95rem;
    font-style: italic;
    color: #4D4D4D;
    margin-bottom: 20px;
    display: block;
}

.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;
    scroll-behavior: smooth;
    z-index: 1000;
}

.popup-content {
    height: 100%;
}
  
/* diaporama photo */
.slideshow-container {
    max-width: 800px;
    position: relative;
    margin: auto;
}
        
.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.6);
    padding: 10px 20px;
    color: #B5F7B3;
    margin: 10px auto;      /* ← CENTRAGE ! */
    width: auto;            /* ← Largeur auto */
    max-width: 90%;
    display: inline-block;
    border-radius: 8px;
}

.mySlides {
    display: none;
    text-align: center;     /* ← Centre tout le contenu */
}

.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;
}

.page-links {
    text-align: center;
    margin-bottom: 10px;
}

.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; 
}

/* 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;
			justify-content: center;
			display: flex;
			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: 1000;
    top: 0;
    left: -250px;
    background-color: #F299E8;
    overflow-x: hidden;
    transition: 0.3s;
    padding-top: 145px;
    background-color: #F299E8;
    background-image: url("images/filigrane.webp"), url("images/tablatalks.webp");
    background-repeat: repeat, no-repeat;
    background-size: auto, 55%;  
    background-position: top center;
    margin-right: 25px;
    font-family:'engravers mt', cursive;
}

#mySidenav ul li {
    border-bottom: 2px solid #4D4D4D; 
    padding-bottom: 10px; 
}

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

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

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

.sidenav.active {
    left: 0;  
}

.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;
}

ul{
list-style: none;
}

/* Style pour le lecteur MP3 */
#audio-player {
    margin: 20px 0;
}

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

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

.playlist {
    flex: 1;
    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%;
}

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

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

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

/* vidéo carousel */
.video-carousel {
    position: relative;
    margin-top: 20px;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.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;
}

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

iframe, video {
    display: block;
    max-width: 100%;
    height: 370px;
}

.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;
    cursor: pointer;
}

.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;    
}

.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 p {
    margin-bottom: 10px;
}

footer .page-links a {
    margin-top: 20px;
}

#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 {
    background-color: #ABEAF2;
}

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

/* COOKIES */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(171, 234, 242, 0.95);
    color: white;
    padding: 15px;
    text-align: center;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 9999;
}

.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;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media screen and (max-width: 479px) {
    .video-slide {
        flex: 0 0 100%;
        margin-right: 0;
    }
    
    .prev-slide, .next-slide {
        font-size: 16px;
    }
    
    .prev, .next {
        font-size: 14px;
    }
    
    .number-text {
        font-size: 14px;
    }

    .login, .champ {
        width: 90%;
    }
    
    h1 {
        font-size: 32px;
    }
    
    iframe, video {
        height: 250px;
    }
}    

@media screen and (min-width: 480px) and (max-width: 959px) {
    .video-slide {
        flex: 0 0 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 {
        display: grid;
        grid-template-columns: 1fr 4fr 1fr;
        grid-template-rows: auto 1fr auto;
        grid-column-gap: 0; /* Pas d'espace entre colonnes */
        grid-row-gap: 0;    /* Pas d'espace entre rangées */
        /* Pas de min-height - évite l'espace blanc */
    }

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

    nav {
        grid-column: 1;
        grid-row: 2;
    }

    article {
        grid-column: 2;
        grid-row: 2;
    }

    aside {
        grid-column: 3;
        grid-row: 2;
    }

    footer {
        grid-column: 1 / span 3;
        grid-row: 3;
    }
    
    .login, .champ {
        width: 100%;
    }   
}
