/**
 * Feuille de style principale pour TDR Music Group
 * Thème: Bleu vif, moderne et responsive
 */

/* Variables CSS */
:root {
    --primary-color: #1a73e8;      /* Bleu principal */
    --primary-dark: #0d47a1;      /* Bleu foncé */
    --primary-light: #4fc3f7;     /* Bleu clair */
    --accent-color: #ff4081;      /* Accent rose */
    --text-color: #333333;        /* Texte principal */
    --text-light: #757575;        /* Texte secondaire */
    --bg-light: #f5f7fa;          /* Fond clair */
    --white: #ffffff;             /* Blanc */
    --black: #000000;             /* Noir */
    --success: #4caf50;           /* Vert succès */
    --warning: #ff9800;           /* Orange avertissement */
    --danger: #f44336;            /* Rouge danger */
    --info: #2196f3;              /* Bleu info */
}

/* Styles généraux */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-dark);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.btn-primary {
    background-color: #29aeeb; /* Nouvelle couleur bleu demandée */
    border-color: #29aeeb;
    border-radius: 50px; /* Boutons très arrondis */
    padding: 0.75rem 2rem; /* Plus de padding horizontal */
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(41, 174, 235, 0.2); /* Légère ombre */
}

.btn-primary:hover {
    background-color: #1e3a8a; /* Nouvelle couleur bleu foncé au survol */
    border-color: #1e3a8a;
    transform: translateY(-2px); /* Effet de léger soulèvement */
    box-shadow: 0 6px 8px rgba(30, 58, 138, 0.3); /* Ombre plus prononcée */
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 1rem;
    background-color: var(--white) !important;
}

.navbar-brand {
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    padding: 0.25rem;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    color: var(--primary-dark);
    transform: scale(1.10);
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    box-shadow: 0 4px 8px rgba(56, 189, 248, 0.3);
}

.navbar-light .navbar-nav .nav-link {
    color: #233e8d;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin: 0 0.2rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: #38bdf8;
    background-color: rgba(35, 62, 141, 0.05);
}

/* Footer Styles */
.footer-new {
    background-color: #0f172a !important;
    color: #ffffff;
    position: relative;
}

.blue-gradient-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #0062cc, #2cbcf8, #00bfff);
}

.footer-new h4 {
    color: #2cbcf8;
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-new h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #2cbcf8;
}

.footer-links {
    margin: 0;
    padding: 0;
}

.footer-link {
    color: #ffffff;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #2cbcf8;
    transform: translateX(5px);
}

.social-icons {
    display: flex;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #2cbcf8;
    color: #0f172a;
    transform: translateY(-3px);
}

.navbar-light .navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: #38bdf8;
    transition: width 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover:after,
.navbar-light .navbar-nav .nav-link.active:after {
    width: 100%;
}

/* Styles pour le bouton du menu mobile sur fond blanc */
.navbar-light .navbar-toggler {
    border-color: rgba(35, 62, 141, 0.5);
    background-color: rgba(35, 62, 141, 0.05);
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(35, 62, 141, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section avec Slideshow */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 6rem 0; /* Padding vertical ajusté */
    margin-top: -1.5rem;
    position: relative;
    overflow: hidden;
    min-height: 400px; /* Hauteur ajustée à 400px */
    max-width: 1200px; /* Largeur maximale élargie à 1200px */
    width: 100%;
    margin-left: auto; /* Centrage horizontal */
    margin-right: auto; /* Centrage horizontal */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.svg');
    opacity: 0.1;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem; /* Taille de police ajustée */
    font-weight: 700;
    margin-bottom: 1.5rem; /* Marge inférieure ajustée */
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px; /* Espacement des lettres amélioré */
}

.hero p {
    font-size: 1.3rem; /* Taille de police ajustée */
    margin-bottom: 2rem; /* Marge inférieure ajustée */
    opacity: 0.9;
    max-width: 1000px; /* Largeur maximale ajustée */
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.6; /* Hauteur de ligne ajustée */
}

/* Styles pour le carousel dans la section hero */
.hero .carousel-inner {
    position: relative;
    z-index: 2;
}

.hero .carousel-item {
    min-height: 400px; /* Ajusté pour correspondre à la nouvelle hauteur de la section hero */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
    width: 5%;
    z-index: 10;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.hero .carousel-control-prev:hover,
.hero .carousel-control-next:hover {
    opacity: 1;
}

.hero .carousel-control-prev-icon,
.hero .carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    background-size: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .carousel-indicators {
    z-index: 10;
}

.hero .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
}

.hero .carousel-indicators .active {
    background-color: var(--white);
}

/* Animation pour les slides */
.hero .carousel-item.active h1,
.hero .carousel-item.active p,
.hero .carousel-item.active .btn {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0; /* Commence invisible */
}

.hero .carousel-item.active h1 {
    animation-delay: 0.2s;
}

.hero .carousel-item.active p {
    animation-delay: 0.4s;
}

.hero .carousel-item.active .btn {
    animation-delay: 0.6s;
}

/* Assurer que les slides inactifs sont complètement cachés */
.hero .carousel-item {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    position: absolute;
    top: 0;
    width: 100%;
    display: block;
    visibility: hidden;
}

.hero .carousel-item.active {
    opacity: 1;
    position: relative;
    visibility: visible;
}

/* Assurer que le contenu du carousel est bien positionné */
.hero .carousel-inner {
    overflow: visible;
    min-height: 400px; /* Ajusté pour correspondre à la nouvelle hauteur de la section hero */
}

/* Style des boutons dans le carousel */
.hero .btn {
    margin: 0 8px; /* Marge ajustée entre les boutons */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25); /* Ombre ajustée */
    transition: all 0.3s ease;
    padding: 0.75rem 1.8rem; /* Padding horizontal augmenté */
    font-size: 1.1rem; /* Taille de police ajustée */
    font-weight: 500; /* Police moins grasse pour correspondre au style */
    letter-spacing: 0.5px; /* Espacement des lettres */
    border-radius: 50px; /* Boutons plus arrondis comme dans l'image */
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35); /* Ombre ajustée au survol */
}

/* Style spécifique pour les boutons primaires dans le hero */
.hero .btn-primary {
    background-color: #29aeeb; /* Nouvelle couleur bleu demandée */
    border-color: #29aeeb;
}

.hero .btn-primary:hover {
    background-color: #1e3a8a; /* Nouvelle couleur bleu foncé au survol */
    border-color: #1e3a8a;
}

.hero .d-flex.justify-content-center {
    flex-wrap: wrap;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Style pour le bouton Écouter */
.btn-primary.listen-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary.listen-btn:hover {
    transform: scale(1.05);
}

.btn-primary.listen-btn .fa-headphones {
    transition: all 0.3s ease;
}

.btn-primary.listen-btn:hover .fa-headphones {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    background-color: #f8f9fa;
}

/* Style spécifique pour les images d'articles */
.article-card .card-img-top {
    height: 100px;
    object-fit: cover;
    max-width: 100%;
    margin: 0 auto;
}

/* Style pour l'image de la page article individuelle */
.blog-post .img-fluid {
    max-height: 200px;
    width: auto;
    margin: 0;
    display: block;
    float: left;
    margin-right: 15px;
    margin-bottom: 10px;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* Album Cards */
.album-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.album-card .card-img-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.album-card .card-title {
    color: var(--white);
    margin-bottom: 0.25rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.album-card .card-text {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Video Section */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Articles */
.article-card {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.article-meta i {
    margin-right: 0.25rem;
}

/* Témoignages */
.testimonials-section {
    background: linear-gradient(135deg, rgba(245, 247, 250, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(26, 115, 232, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 30%, rgba(79, 195, 247, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 30% 70%, rgba(200, 200, 200, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 35%);
    z-index: -1;
}

.testimonials-section::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Ccircle cx='25' cy='25' r='5' fill='%231a73e8' fill-opacity='0.1'/%3E%3Ccircle cx='75' cy='75' r='4' fill='%234fc3f7' fill-opacity='0.1'/%3E%3Ccircle cx='75' cy='25' r='3' fill='%23757575' fill-opacity='0.1'/%3E%3Ccircle cx='25' cy='75' r='6' fill='%23ffffff' fill-opacity='0.2'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}

/* Animation pour les particules flottantes */
@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(10px, 10px) rotate(5deg) scale(1.05);
    }
    50% {
        transform: translate(0, 20px) rotate(0deg) scale(1);
    }
    75% {
        transform: translate(-10px, 10px) rotate(-5deg) scale(0.95);
    }
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

.particles-container div {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(1px);
}

.testimonial {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    position: relative;
}

.testimonial::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 5rem;
    color: var(--primary-light);
    position: absolute;
    top: -1rem;
    left: 1rem;
    opacity: 0.2;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* Styles pour les cartes de témoignages */
.card-img-container {
    position: relative;
    overflow: hidden;
}

.card-img-overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.testimonial-avatar img {
    border: 3px solid var(--primary-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-placeholder i {
    font-size: 1.5rem;
    color: #757575;
}

.testimonial-author-info h5 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.testimonial-author-info p {
    margin-bottom: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Formulaire de contact et témoignages */
.contact-form, #testimonialForm {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Style spécifique pour le bouton d'envoi du formulaire de témoignage */
#testimonialForm .btn-primary {
    min-width: 200px; /* Largeur minimale */
    font-size: 1.1rem; /* Taille de police légèrement plus grande */
}

.contact-info {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    height: 100%;
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--primary-light);
}

/* Footer */
footer {
    background-color: #212529;
    color: var(--white);
}

footer h5 {
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

footer a {
    color: var(--white);
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-light);
    text-decoration: none;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Lecteur audio et playlist */
#audio-player {
    transition: all 0.3s ease;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

#audio-player .progress {
    height: 8px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.2);
}

#audio-player .progress-bar {
    transition: width 0.1s ease;
}

#playlist-container {
    transition: all 0.3s ease;
}

.bg-dark-light {
    background-color: rgba(255, 255, 255, 0.05);
}

#playlist .list-group-item {
    background-color: transparent;
    transition: all 0.3s ease;
    border-left: 0;
    border-right: 0;
}

#playlist .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#playlist .list-group-item.active-song {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

#playlist .play-playlist-item {
    opacity: 0.7;
    transition: all 0.3s ease;
}

#playlist .list-group-item:hover .play-playlist-item {
    opacity: 1;
}

#playlist .list-group-item.active-song .play-playlist-item {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .navbar-collapse {
        background-color: var(--white);
        padding: 1rem;
        border-radius: 0 0 10px 10px;
        margin-top: 0.5rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    }
    
    #audio-player .row {
        flex-direction: column;
    }
    
    #audio-player .col-md-3,
    #audio-player .col-md-5 {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .contact-info {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .testimonial {
        padding: 1.5rem;
    }
}