/* ============================================================
   STYLE-ONEPAGE.CSS — TablaTalks /blog/ (page unique)
   ------------------------------------------------------------
   PARTIE 1 : règles CONSERVÉES de style.css (polices, couleurs,
              typographie, en-tête étoilé, pied de page, cookies)
   PARTIE 2 : règles AJOUTÉES pour la page unique pleine largeur
              (burger à droite, sections, player, commentaires)
   style.css reste en place pour les autres pages (contact,
   mentions légales…) : ce fichier ne le modifie pas.
   ============================================================ */

/* ============================================================
   PARTIE 1 — CONSERVÉ DE STYLE.CSS
   ============================================================ */

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

/* ---------- Base ---------- */
html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: inherit; }

body {
    margin: 0;
    padding: 0;
    font-family: arial;
    font-size: 18px;
    font-weight: bold;
    color: #4D4D4D;
    background-color: #B5F7B3;
}

/* ---------- En-tête (couleurs et effets d'origine) ---------- */
header {
    background-color: #F3C570;
    font-style: italic;
    color: #FF00E1;
    letter-spacing: 1px;
    text-decoration: underline;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 0;
}

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

/* ---------- Titres et textes ---------- */
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;
    letter-spacing: 4px;
    font-weight: normal;
    margin: 0;
}
h2 {
    font-family: 'garamond', cursive;
    text-align: center;
    color: #4D4D4D;
    margin: 0 0 10px 0;
}
h3 {
    font-family: 'garamond', cursive;
    color: #4D4D4D;
    text-align: center;
    font-size: 18px;
}
h4 {
    font-family: arial, sans-serif;
    color: #4D4D4D;
    text-align: center;
    font-size: 12px;
}
h5 {
    font-family: arial, sans-serif;
    color: #4D4D4D;
    text-align: center;
    font-size: 18px;
}
p {
    font-family: 'garamond', cursive;
    text-align: center;
    font-size: 16px;
    color: #4D4D4D;
}
/* Mots-clés en majuscules (Pakhawaj, Dayan, Bayan…) */
p span { text-transform: uppercase; }

li { color: #0F3B18; }
ul { list-style: none; }

a {
    color: #06F;
    text-decoration: none;
}
a:hover { text-decoration: underline; }

/* Images : pleine largeur disponible, centrées */
img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: auto;
    border: 0;
}
/* Petite image dans une phrase (pied de mouche) */
p img { display: inline-block; margin: 0; }

audio { width: 100%; }

/* ---------- Téléchargements (Cours) ---------- */
.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;
    display: block;
}
.download-form { display: none; }

/* ---------- Pied de page ---------- */
footer {
    background-color: #F3C570;
    font-family: arial;
    font-size: 12px;
    font-style: oblique;
    word-spacing: 5px;
    padding: 30px 20px;
    margin: 0;
    text-align: center;
}
.page-links { text-align: center; margin-bottom: 10px; }
.page-links a {
    display: inline-block;
    margin: 0 5px;
    color: #4D4D4D;
}
.page-links a:hover { color: #90EE90; }

/* ---------- Bandeau cookies ---------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(171, 234, 242, 0.95);
    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; }


/* ============================================================
   PARTIE 2 — AJOUTÉ POUR LA PAGE UNIQUE
   ============================================================ */

:root {
    --tt-pink: #F623D1;
    --tt-pink-soft: #F299E8;
    --tt-gold: #F3C570;
    --tt-green: #45A049;
    --tt-mint: #B5F7B3;
    --tt-sky: #ABEAF2;
    --tt-text: #4D4D4D;
    --tt-card: rgba(255, 255, 255, 0.78);
    --tt-border: rgba(77, 77, 77, 0.18);
}

/* ---------- En-tête fixe, burger à droite ---------- */
.tt-header {
    position: sticky;
    top: 0;
    z-index: 900;
    width: 100%;
    height: clamp(90px, 20vh, 160px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}
.tt-header #content {
    position: static;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#ttMenuBtn {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 950;
}
#ttMenuBtn span {
    display: block;
    width: 35px;
    height: 5px;
    background-color: #080E09;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
#ttMenuBtn.open span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
#ttMenuBtn.open span:nth-child(2) { opacity: 0; }
#ttMenuBtn.open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* ---------- Menu latéral droit (habillage de l'ancien sidenav) ---------- */
#ttMenu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(280px, 85vw);
    display: block;
    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;
    font-family: 'engravers mt', cursive;
    box-shadow: -6px 0 25px rgba(0, 0, 0, 0.35);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    padding: 145px 0 24px;
    overflow-y: auto;
}
#ttMenu.open { transform: translateX(0); }
#ttMenu ul { list-style: none; margin: 0; padding: 0; }
#ttMenu li { border-bottom: 2px solid #4D4D4D; }
#ttMenu a {
    display: block;
    padding: 12px 12px 12px 32px;
    font-size: 18px;
    color: #B5F7B3;
    text-align: left;
    text-decoration: none;
    transition: color 0.3s, background 0.3s;
}
#ttMenu a:hover,
#ttMenu a.active { color: #4D4D4D; background: rgba(255, 255, 255, 0.35); }
#ttMenuClose {
    position: absolute;
    top: 10px;
    right: 20px;
    background: none;
    border: none;
    color: #4D4D4D;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
}
#ttOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 990;
}
#ttOverlay.open { opacity: 1; pointer-events: auto; }

/* ---------- Corps de page : fond bouddha de l'ancien article ---------- */
.tt-main {
    display: block;
    width: 100%;
    background-color: #B5F7B3;
    background-image: url("images/boudha.webp");
    background-repeat: repeat;
    background-size: 35%;
    padding: 0 24px;
}

.tt-section {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0 40px;
    border-bottom: 2px solid rgba(77, 77, 77, 0.15);
    scroll-margin-top: 170px;
    text-align: center;
}
.tt-section:last-of-type { border-bottom: none; }
.tt-section > h2 {
    display: inline-block;
    font-size: 30px;
    margin-bottom: 28px;
    padding: 6px 24px;
    background: var(--tt-gold);
    border-radius: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}
.tt-section p { max-width: 800px; margin: 10px auto; }

.tt-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.tt-card {
    background: var(--tt-card);
    border: 1px solid var(--tt-border);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* À propos */
#my-image { width: 100%; max-width: 480px; cursor: pointer; }

/* ===== Player (repris de playermp3.php) ===== */
/* Styles spécifiques au player amélioré */
.player-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.audio-player-main {
    background: linear-gradient(135deg, #ABEAF2 0%, #B5F7B3 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.audio-player-main audio {
    width: 100%;
    height: 50px;
}

.now-playing {
    text-align: center;
    color: #4D4D4D;
    font-size: 14px;
    margin-top: 10px;
}

.now-playing strong {
    color: #F623D1;
}

.playlist-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: #F299E8;
    color: #4D4D4D;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tab-btn:hover, .tab-btn.active {
    background: #F623D1;
    color: white;
}

.playlist-section {
    display: none;
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    padding: 15px;
}

.playlist-section.active {
    display: block;
}

.playlist-section h3 {
    color: #4D4D4D;
    border-bottom: 2px solid #F3C570;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.track-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.track-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin: 5px 0;
    background: #f9f9f9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.track-item:hover {
    background: #ABEAF2;
    transform: translateX(5px);
}

.track-item.playing {
    background: #B5F7B3;
    border-left: 4px solid #45A049;
}

.track-icon {
    width: 40px;
    height: 40px;
    background: #F3C570;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 18px;
}

.track-info {
    flex: 1;
}

.track-title {
    color: #4D4D4D;
    font-weight: bold;
    font-size: 14px;
}

.track-duration {
    color: #888;
    font-size: 12px;
}

.track-category {
    background: #F299E8;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
}

/* Contrôles supplémentaires */
.player-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.control-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: #F3C570;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background: #F623D1;
    color: white;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 600px) {
    .playlist-tabs {
        flex-direction: column;
    }
    .tab-btn {
        width: 100%;
    }

.player-container .track-list { text-align: left; }
.tt-player-intro { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 10px; }
.tt-player-intro img { width: 150px; border-radius: 10px; }
.tt-player-intro div { max-width: 500px; text-align: left; }
.tt-player-intro div { text-align: center; } .player-container { padding: 0; } }

/* Cours */
.tt-downloads { display: grid; gap: 16px; max-width: 600px; margin: 0 auto; }
.tt-downloads .tt-card { display: flex; flex-direction: column; gap: 6px; align-items: center; }

/* Illustrations (diaporama) */
.slideshow-container { max-width: 800px; margin: 0 auto; padding: 20px; position: relative; }
.mySlides { display: none; flex-direction: column; align-items: center; justify-content: center; width: 100%; }
.mySlides.active-slide { display: flex; }
.mySlides img { display: block; margin: 20px auto; max-width: 100%; height: auto; }
.caption-container { text-align: center; background-color: rgba(0,0,0,0.6); padding: 10px 20px; color: #B5F7B3; border-radius: 8px; max-width: 90%; }
.caption-container p { margin: 0; font-size: 16px; color: #B5F7B3; }
.dots-container { text-align: center; padding: 15px 0; }
.dot { cursor: pointer; height: 15px; width: 15px; margin: 0 5px; background-color: #bbb; border-radius: 50%; display: inline-block; transition: background-color 0.3s ease; }
.dot:hover { background-color: #F623D1; }
.dot.active { background-color: #45A049; }
.slideshow-nav { display: flex; justify-content: center; gap: 20px; margin-top: 15px; }
.nav-btn { background: rgba(0,0,0,0.6); color: white; border: none; padding: 10px 20px; font-size: 18px; cursor: pointer; border-radius: 25px; transition: background 0.3s; font-family: inherit; }
.nav-btn:hover { background: #F623D1; }

/* Réfection */
.tt-gallery { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 20px; }
.tt-gallery img { width: calc(33.333% - 11px); min-width: 200px; margin: 0; border-radius: 10px; object-fit: cover; }

/* Applications */
.tt-app-logo { width: 200px; border: 1px solid var(--tt-gold); border-radius: 12px; }
.tt-features { padding: 0; margin: 16px 0; }
.tt-features li { padding: 6px 0; }

/* Bouton commun (dégradé du site) */
.tt-btn {
    display: inline-block;
    background: linear-gradient(135deg, #F623D1 0%, #F3C570 100%);
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 16px;
    font-family: arial, sans-serif;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.tt-btn:hover { transform: scale(1.05); box-shadow: 0 5px 15px rgba(246, 35, 209, 0.3); text-decoration: none; }
.tt-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Commentaires ---------- */
.tt-comments { max-width: 760px; margin: 0 auto; text-align: left; }
.tt-form { display: grid; gap: 12px; margin-bottom: 30px; }
.tt-form input[type="text"],
.tt-form textarea {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: arial, sans-serif;
    font-weight: normal;
    color: #4D4D4D;
    background: #fff;
    transition: border-color 0.3s;
}
.tt-form input:focus, .tt-form textarea:focus { border-color: var(--tt-pink); outline: none; }
.tt-form textarea { min-height: 110px; height: auto; resize: vertical; }
.tt-form .tt-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tt-count { font-size: 12px; opacity: 0.7; }
.tt-msg { padding: 10px 14px; border-radius: 8px; font-size: 14px; display: none; }
.tt-msg.error { display: block; background: #f8d7da; color: #721c24; }
.tt-msg.ok { display: block; background: #d4edda; color: #155724; }

.tt-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.tt-comment {
    color: #4D4D4D;
    background: var(--tt-card);
    border: 1px solid var(--tt-border);
    border-left: 4px solid var(--tt-pink);
    border-radius: 10px;
    padding: 14px 16px;
}
.tt-comment .tt-replies { list-style: none; padding: 0; margin: 12px 0 0 0; display: grid; gap: 10px; }
.tt-comment .tt-replies .tt-comment { border-left-color: var(--tt-gold); margin-left: 24px; }
.tt-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; margin-bottom: 6px; }
.tt-author { font-weight: bold; color: var(--tt-pink); }
.tt-date { opacity: 0.6; font-size: 12px; font-weight: normal; }
.tt-text {
    font-family: 'garamond', cursive;
    font-size: 16px;
    text-align: left;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    margin: 4px 0 10px;
    max-width: none;
}
.tt-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tt-act {
    background: #fff;
    border: 1px solid var(--tt-border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 13px;
    font-family: arial, sans-serif;
    cursor: pointer;
    color: #4D4D4D;
    transition: border-color 0.2s, background 0.2s;
}
.tt-act:hover { border-color: var(--tt-pink); }
.tt-act.liked { border-color: var(--tt-pink); background: #fde3f8; }
.tt-reply-box { margin-top: 10px; }
.tt-empty { text-align: center; opacity: 0.8; }
.tt-more { display: block; margin: 20px auto 0; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    h1 { font-size: 34px; letter-spacing: 2px; }
    .tt-main { padding: 0 16px; background-size: 70%; }
    .tt-section { padding: 40px 0 30px; scroll-margin-top: 110px; }
    .tt-section > h2 { font-size: 24px; }
    .tt-grid-2 { grid-template-columns: 1fr; gap: 24px; }
    .tt-gallery img { width: 100%; min-width: 0; }
    .tt-comment .tt-replies .tt-comment { margin-left: 12px; }
    #ttMenuBtn { right: 10px; }
    .nav-btn { padding: 8px 14px; font-size: 15px; }
}
@media (max-width: 479px) {
    h1 { font-size: 28px; }
    .tt-header { height: 80px; }
    #ttMenuBtn span { width: 28px; height: 4px; }
    #ttMenuBtn.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
    #ttMenuBtn.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
    .tt-card { padding: 16px; }
    .slideshow-nav { gap: 10px; }
    .cookie-banner button { font-size: 1rem; }
}
