:root {
    --yellow: #F7C814;
    --beige: #EAE3BF;
    --green: #6B8949;
    --brown: #A75844;
    --green-light: #88a96b;
    --dark: #111827;
}

body {
    font-family: 'Quicksand', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
}

/* Header modernisé avec logo horizontal plus grand */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.7rem 0;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--yellow), var(--green));
    border-image-slice: 1;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo-horizontal {
    height: 70px; /* Logo plus grand */
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    max-height: 70px;
}

.navbar-brand:hover .logo-horizontal {
    transform: scale(1.03);
    filter: drop-shadow(0 0 5px rgba(247, 200, 20, 0.3));
}

/* Bouton Mixcloud dans le header */
.btn-mixcloud {
    background-color: #4fa1c0 !important;
    color: white !important;
    border: none !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 30px !important;
    transition: all 0.3s ease !important;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(79, 161, 192, 0.3);
}

.btn-mixcloud:hover {
    background-color: #52b9df !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(79, 161, 192, 0.5) !important;
}

/* Animation du header au scroll */
.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

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

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--green);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 80%;
}

/* Hero Section modernisée */
.hero {
    min-height: 100vh;
    position: relative;
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Mise à jour de l'image de fond avec une image HD d'énergie renouvelable */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1497435334941-8c899ee9e8e9?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.z-index-2 {
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-glass-light {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    color: white;
    transition: all 0.3s ease;
}

.btn-glass-light:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.glow-effect {
    position: relative;
    overflow: hidden;
}

.glow-effect:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 60%);
    opacity: 0;
    transition: all 0.8s ease;
}

.glow-effect:hover:after {
    opacity: 1;
    transform: scale(0.8);
}

.hero-graphic {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eco-radio-animation {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-element {
    max-width: 200px;
    animation: floating 5s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.orbit-circle {
    position: absolute;
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 100%;
    height: 100%;
    animation: orbit 20s linear infinite;
}

.orbit-circle:nth-child(2) {
    width: 85%;
    height: 85%;
    animation-duration: 15s;
    animation-direction: reverse;
}

@keyframes orbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.play-btn {
    background-color: var(--yellow);
    border: none;
    color: #000;
    transition: transform 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.play-btn:hover {
    background-color: var(--beige);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.play-btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.play-btn:hover:before {
    left: 100%;
}

.section-padding {
    padding: 100px 0;
}

/* Améliorations pour les cartes d'émission */
.emission-card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: visible;  /* Modification pour éviter que les contenus soient coupés */
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

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

.emission-card .card-img {
    position: relative;
    overflow: hidden;
    height: 280px;  /* Augmentation significative de la hauteur */
    border-radius: 15px 15px 0 0; /* Arrondir uniquement les coins supérieurs */
}

.emission-card .card-img img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block; /* Élimine les espaces blancs sous l'image */
}

.episode-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.card-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.card-tags .badge {
    padding: 5px 10px;
    font-weight: 500;
    border-radius: 20px;
}

.emission-card i {
    color: var(--green);
    display: block;
    text-align: center;
    margin: 0 auto 1rem;
}

.emission-card .btn {
    transition: all 0.3s ease;
    border-color: var(--green);
    color: var(--green);
}

.emission-card .btn:hover {
    background-color: var(--green);
    color: white;
    transform: translateY(-3px);
}

.btn-play-episode {
    background-color: var(--green);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.btn-play-episode:hover {
    background-color: var(--yellow);
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.emission-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
}

.emission-card h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: var(--green);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-title .subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* Text gradient pour titres spéciaux */
.text-gradient {
    background: linear-gradient(45deg, var(--yellow), var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--green); /* Fallback */
}

/* Section Newsletter modernisée */
.newsletter-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    position: relative;
}

.newsletter-box {
    background: linear-gradient(45deg, var(--green-light), var(--green));
    padding: 40px;
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.newsletter-box h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-form .form-control {
    height: 50px;
    border-radius: 25px 0 0 25px;
    border: none;
    padding-left: 20px;
}

.newsletter-form .btn {
    border-radius: 0 25px 25px 0;
    background-color: var(--yellow);
    border: none;
    color: #333;
    font-weight: 500;
}

.newsletter-form .btn:hover {
    background-color: var(--beige);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    animation: revealRight 1s ease forwards;
    animation-delay: 0.5s;
}

@keyframes revealRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-content {
    position: relative;
    padding: 30px;
    background: var(--beige);
    border-radius: 15px;
}

.footer {
    background-color: #2b2b2b;
    color: #f8f9fa;
    position: relative;
    overflow: hidden;
    padding: 50px 0;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--yellow), var(--green));
    z-index: 1;
}

.footer-brand img {
    margin-bottom: 1rem;
}

.footer h5 {
    color: var(--yellow);
    margin-bottom: 1.25rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h5::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--green);
}

.footer-links {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #f8f9fa;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    padding-left: 15px;
    display: block;
}

.footer-links a::before {
    content: "›";
    position: absolute;
    left: 0;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--yellow);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 0;  /* Annuler la marge précédente */
}

.social-links a:hover {
    background-color: var(--green);
    color: white;
    transform: translateY(-3px);
}

address p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: start;
}

address p i {
    margin-right: 10px;
    color: var(--yellow);
    min-width: 16px;
    margin-top: 4px;
}

.eco-certified {
    display: flex;
    align-items: center;
    background-color: rgba(107, 137, 73, 0.2);
    padding: 10px;
    border-radius: 8px;
}

.eco-certified img {
    margin-right: 10px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-bottom {
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.footer-legal li {
    margin-left: 1.5rem;
}

.footer-legal a {
    color: #f8f9fa;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-legal a:hover {
    color: var(--yellow);
}

@media (max-width: 767.98px) {
    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 1rem;
    }
    
    .footer-legal li {
        margin: 0 0.75rem;
    }
    
    .footer-bottom {
        text-align: center;
    }
}

.mixcloud-placeholder {
    min-height: 40px;
    display: flex;
    justify-content: center;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        height: 70vh;
    }
    
    .section-padding {
        padding: 50px 0;
    }
}

/* Header Styles */
.main-header {
    position: relative;
    z-index: 1030;
}

/* Mini Player */
.mini-player {
    background-color: #2b2b2b;
    color: white;
    padding: 10px 0;
    position: relative;
    z-index: 1031;
}

.btn-play {
    background-color: var(--yellow);
    color: #2b2b2b;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 12px;
}

.btn-play:hover {
    transform: scale(1.1);
}

.now-playing-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.live-badge {
    font-size: 0.7rem;
    width: fit-content;
    margin-bottom: 2px;
}

.show-name {
    font-weight: 500;
}

.player-wave {
    flex-grow: 1;
    height: 30px;
    margin: 0 20px;
}

.volume-control {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.volume-control i {
    margin-right: 8px;
}

.volume-control .form-range {
    width: 80px;
}

/* Ajout de styles pour la photo de profil dans la section équipe */

/* Team Member Styles - Updated */
.team-member {
    text-align: center;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-photo {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    width: 200px;  /* Taille fixe et raisonnable */
    height: 200px; /* Taille fixe et raisonnable */
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Assure que l'image couvre bien le cercle sans être déformée */
}

/* Effet subtil au survol de la photo */
.member-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(107, 137, 73, 0.2);
}



/* ========== INDICATEUR VISUEL MODERNE DES RÉSEAUX SOCIAUX ========== */

.social-indicator {
    margin-top: 15px;
    margin-bottom: 20px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hover-hint {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: linear-gradient(135deg, 
        rgba(107, 137, 73, 0.1) 0%, 
        rgba(247, 200, 20, 0.08) 100%);
    border-radius: 20px;
    border: 1px solid rgba(107, 137, 73, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

.hover-hint::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s ease;
}

.hover-hint:hover::before {
    left: 100%;
}

.floating-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
}

.social-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    animation: floatSocial 3s ease-in-out infinite;
    text-decoration: none;
}

.social-preview:hover {
    color: white;
    text-decoration: none;
}

.social-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-preview:hover::before {
    opacity: 1;
}

.social-preview.facebook {
    background: linear-gradient(135deg, #1877F2 0%, #42A5F5 100%);
    animation-delay: 0s;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.social-preview.instagram {
    background: linear-gradient(135deg, #E4405F 0%, #FCCC63 50%, #833AB4 100%);
    animation-delay: 0.5s;
    box-shadow: 0 4px 15px rgba(228, 64, 95, 0.3);
}

.social-preview.threads {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    animation-delay: 1s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.social-preview:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hint-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--green);
    font-weight: 500;
    text-align: center;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.hint-text i {
    font-size: 16px;
    color: var(--yellow);
    animation: pointPulse 2s ease-in-out infinite;
}

.hint-text span {
    background: linear-gradient(45deg, var(--green), var(--yellow));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

/* Animation des icônes flottantes */
@keyframes floatSocial {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Animation de l'icône de partage */
@keyframes pointPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.15) rotate(5deg);
        opacity: 1;
    }
}



/* Animation d'apparition */
.social-indicator {
    animation: slideUpFade 0.8s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

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

/* Responsive */
@media (max-width: 768px) {
    .floating-icons {
        gap: 10px;
    }
    
    .social-preview {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .hint-text {
        font-size: 13px;
    }
    
    .hint-text span {
        text-align: center;
    }
}

/* Effet glassmorphism moderne */
.hover-hint {
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hover-hint:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(31, 38, 135, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.member-photo .social-links a {
    color: #fff;
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.member-photo .social-links a:hover {
    background-color: var(--yellow);
    color: #333;
    transform: scale(1.1);
}

.team-member h4 {
    margin-bottom: 5px;
    font-weight: 600;
}

.team-member .role {
    color: var(--green);
    font-weight: 500;
    margin-bottom: 8px;
}

/* Student Card Styles for equipe.html */
.student-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

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

.student-photo {
    width: 160px;  /* Plus petit que team-member */
    height: 160px; /* Plus petit que team-member */
    border-radius: 50%;
    overflow: hidden;
    margin: 20px auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.student-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-info {
    padding: 20px;
    text-align: center;
}

.student-info h3 {
    margin-bottom: 5px;
}

.project-name {
    color: var(--green);
    font-weight: 600;
    margin-bottom: 15px;
}

.student-social {
    margin-top: 15px;
}

.student-social .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5em;
    height: 2.5em;
    margin: 0 0.25em;
    font-size: 1.4em;
    color: #6B8949;
    background: #f5f5f5;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(107,137,73,0.08);
    transition: transform 0.18s, box-shadow 0.18s, color 0.18s, background 0.18s;
    border: 2px solid transparent;
    text-decoration: none;
}

.student-social .social-icon:hover {
    transform: scale(1.18) rotate(-4deg);
    color: #fff;
    background: linear-gradient(90deg, #6B8949 60%, #0085FF 100%);
    box-shadow: 0 4px 18px rgba(0,133,255,0.18);
    border-color: #0085FF;
    text-decoration: none;
}

.student-social .social-icon i {
    vertical-align: middle;
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none;
    display: block;
    width: 1.3em;
    height: 1.3em;
    line-height: 1.3em;
}

/* Partner Projects Styles */
.partner-project {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.partner-project h4 {
    color: var(--green);
    margin-bottom: 5px;
}

.partner-project p {
    color: #666;
    margin-bottom: 15px;
}

/* Styles pour le calculateur d'empreinte carbone */
.calculator-form {
    background-color: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.calculator-form h4 {
    color: var(--green);
    display: flex;
    align-items: center;
}

.calculator-form label {
    font-weight: 500;
    color: #555;
}

.calculator-result {
    position: relative;
}

.result-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.result-card.show-result {
    transform: translateY(-10px);
}

.result-header {
    text-align: center;
    margin-bottom: 20px;
}

.eco-gauge {
    position: relative;
    width: 100%;
    height: 200px;
    margin: 0 auto;
}

.score-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    text-align: center;
}

.score-display span {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.score-display small {
    font-weight: normal;
    opacity: 0.8;
}

.comparison {
    margin-top: 20px;
    border-top: 1px dashed #ddd;
    padding-top: 15px;
}

.breakdown-chart {
    height: 200px;
    margin: 20px 0;
    padding: 10px;
}

.eco-tips {
    list-style: none;
    padding-left: 0;
}

.eco-tips li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.eco-tips li i {
    color: var(--green);
    position: absolute;
    left: 0;
    top: 5px;
    font-size: 16px;
}

.result-tips .accordion-item {
    border-color: #eee;
    margin-bottom: 5px;
}

.result-tips .accordion-button {
    padding: 12px 16px;
    font-weight: 600;
}

.result-tips .accordion-button:not(.collapsed) {
    background-color: rgba(107, 137, 73, 0.1);
    color: var(--green);
}

.result-tips .accordion-button:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 0.25rem rgba(107, 137, 73, 0.25);
}

.result-tips .accordion-button i {
    margin-right: 8px;
    color: var(--green);
}

@media (max-width: 992px) {
    .calculator-form {
        margin-bottom: 30px;
    }
}

/* Améliorations visuelles pour la playlist */
.playlist-header {
    background: linear-gradient(45deg, rgba(107, 137, 73, 0.1), rgba(247, 200, 20, 0.1));
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.playlist-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="%236B8949" opacity="0.1"/></svg>') repeat;
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    from { background-position: 0 0; }
    to { background-position: 100px 100px; }
}

.playlist-info {
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.track-list-table {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.track-list-table thead th {
    background: linear-gradient(45deg, var(--green), #88A96B);
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: none;
}

.track-list-table tbody tr {
    border-left: 3px solid transparent;
}

.track-list-table tbody tr:hover {
    border-left-color: var(--green);
}

.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    font-weight: 600;
    color: var(--green);
    padding: 20px;
}

.accordion-button:not(.collapsed) {
    color: var(--green);
}

.accordion-body {
    padding: 25px;
    background: rgba(255, 255, 255, 0.9);
}

.accordion-body h5 {
    color: var(--green);
    margin-top: 1.5rem;
    font-weight: 600;
}

.playlist-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

/* Styles pour les images de remplacement Unsplash */
.student-photo img,
.playlist-cover img,
.playlist-suggestion img {
    transition: opacity 0.3s ease;
}

.student-photo img.loading,
.playlist-cover img.loading,
.playlist-suggestion img.loading {
    opacity: 0.5;
}

.image-credit {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 5px;
    font-size: 0.7rem;
    border-radius: 3px 0 0 0;
}

.image-credit a {
    color: white;
    text-decoration: none;
}

.image-credit a:hover {
    text-decoration: underline;
}

/* Project Section Styles */
.project-section {
    background-color: #f8f9fa;
}

.project-section .container {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-section h2 {
    margin-bottom: 20px;
}

.project-section p {
    font-size: 1.1rem;
    color: #555;
}

.project-features {
    list-style: none;
    padding-left: 0;
}

.project-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.project-features li i {
    color: var(--green);
    position: absolute;
    left: 0;
    top: 5px;
    font-size: 16px;
}

/* Footer Styles - Updated */
.footer {
    background: #1a1a1a;
    color: #fff;
    position: relative;
    padding: 80px 0 30px;
}

.footer-wave {
    position: absolute;
    top: -119px;
    left: 0;
    width: 100%;
    height: 120px;
    color: #1a1a1a;
}

.footer-wave svg {
    width: 100%;
    height: 100%;
}

.footer-logo img {
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.footer-description {
    color: #aaa;
    line-height: 1.6;
}

.footer-title {
    color: var(--yellow);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--green);
}

.footer-links.custom-list {
    list-style: none;
    padding: 0;
}

.footer-links.custom-list li {
    margin-bottom: 0.8rem;
}

.footer-links.custom-list a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links.custom-list i {
    font-size: 0.8rem;
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.footer-links.custom-list a:hover {
    color: var(--yellow);
}

.footer-links.custom-list a:hover i {
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-hover-effect {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-hover-effect:hover {
    background: var(--yellow);
    color: #1a1a1a;
    transform: translateY(-3px);
}

.partner-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.partner-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.partner-card:hover {
    transform: translateX(5px);
}

.partner-card h6 {
    color: var(--yellow);
    margin: 0;
}

.partner-card p {
    color: #aaa;
    font-size: 0.9rem;
    margin: 5px 0;
}

.learn-more {
    color: var(--green);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.learn-more:hover {
    color: var(--yellow);
}

.learn-more i {
    transition: transform 0.3s ease;
}

.learn-more:hover i {
    transform: translateX(5px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 10px;
}

.contact-item i {
    color: var(--yellow);
    margin-top: 5px;
}

.contact-item p {
    color: #aaa;
    margin: 0;
}

.eco-hosting {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.eco-hosting small {
    color: #aaa;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.copyright {
    color: #aaa;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-legal a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--yellow);
}

@media (max-width: 768px) {
    .footer {
        padding-top: 60px;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
        margin-top: 15px;
    }
}

/* Footer 2.0 - Ultra stylish with animations */
.footer {
    position: relative;
    background: #111827;
    color: #f5f5f5;
    overflow: hidden;
    margin-top: 100px;
    z-index: 1;
}

/* Waves Animation */
.footer-top-waves {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23111827" d="M0,224L60,218.7C120,213,240,203,360,213.3C480,224,600,256,720,240C840,224,960,160,1080,144C1200,128,1320,160,1380,176L1440,192L1440,320L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z"></path></svg>') repeat-x;
    background-size: 1440px 100px;
    animation: wave-animation 18s linear infinite;
}

.wave1 {
    opacity: 0.8;
    z-index: 1000;
}

.wave2 {
    opacity: 0.5;
    animation: wave-animation 12s linear infinite;
    animation-direction: reverse;
    z-index: 999;
}

@keyframes wave-animation {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Main Content */
.footer-content {
    position: relative;
    padding: 80px 0 40px;
    z-index: 2;
}

.footer-logo {
    height: 80px;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(247, 200, 20, 0.5));
}

.tagline {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--yellow);
    letter-spacing: 1px;
}

.footer-intro {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* 3D Social Icons */
.social-icons-3d {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-3d {
    position: relative;
    width: 50px;
    height: 50px;
    perspective: 300px;
    text-decoration: none;
}

.social-3d .front,
.social-3d .back {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backface-visibility: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-3d .front {
    background: #2a2a2a;
    color: white;
    transform: rotateY(0deg);
    font-size: 20px;
}

.social-3d .back {
    transform: rotateY(180deg);
    color: white;
    font-size: 20px;
}

.social-3d:hover .front {
    transform: rotateY(180deg);
}

.social-3d:hover .back {
    transform: rotateY(360deg);
}

.social-3d.insta .back {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-3d.fb .back {
    background: #1877F2;
}

.social-3d.threads .back {
    background: #000000;
}

.social-3d.mixcloud .back {
    background: #5000ff;
}

/* Footer Cards */
.footer-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 25px;
    height: 100%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.footer-card h4 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.footer-card h4 i {
    margin-right: 10px;
    color: var(--yellow);
}

/* Animated Links */
.footer-links-animated {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-animated li {
    margin-bottom: 15px;
}

.footer-links-animated a {
    display: block;
    text-decoration: none;
    color: #f5f5f5;
    position: relative;
    padding: 5px 5px 5px 10px;
    overflow: hidden;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.footer-links-animated a:before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--yellow), var(--green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.footer-links-animated a:hover {
    padding-left: 15px;
    background: rgba(255, 255, 255, 0.05);
}

.footer-links-animated a:hover:before {
    transform: scaleX(1);
}

.footer-links-animated a span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links-animated a i {
    color: var(--yellow);
    font-size: 16px;
}

/* Glass Buttons */
.partner-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-glass {
    position: relative;
    padding: 12px;
    display: flex;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-glass:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.btn-glass:hover:before {
    left: 100%;
}

.btn-glass:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.15);
}

.btn-glass-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 500;
    z-index: 2;
}

.btn-glass i {
    color: var(--yellow);
    font-size: 18px;
}

/* Contact Section */
.footer-contact {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.contact-item i {
    color: var(--yellow);
    font-size: 20px;
    margin-top: 3px;
}

.contact-item p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
}

/* Pulsing Effect */
.pulse {
    animation: pulse 2s infinite;
}

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

/* ECO Badge */
.eco-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(107, 137, 73, 0.1);
    border-radius: 10px;
    padding: 12px;
    margin-top: 20px;
}

.eco-badge img {
    height: 25px;
    margin-bottom: 8px;
}

.eco-badge span {
    font-size: 0.8rem;
    color: #ccc;
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    padding: 20px 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.copyright {
    margin: 0;
    font-size: 0.9rem;
}

.text-gradient {
    background: linear-gradient(90deg, #FFD700, #FFC107); /* Dégradé de jaune */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    z-index: 1;
}

/* Neon Buttons */
.btn-neon {
    position: relative;
    display: inline-block;
    padding: 8px 16px;
    color: #fff;
    letter-spacing: 1px;
    text-decoration: none;
    font-size: 0.8rem;
    overflow: hidden;
    transition: 0.2s;
    border: none;
    background: transparent;
    border-radius: 5px;
    margin-left: 10px;
}

.btn-neon:hover {
    background: var(--green);
    color: #fff;
    box-shadow: 0 0 5px var(--green),
                0 0 25px var(--green);
    transition-delay: 1s;
}

.btn-neon span {
    position: absolute;
    display: block;
}

.btn-neon span:nth-child(1) {
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--green));
}

.btn-neon:hover span:nth-child(1) {
    left: 100%;
    transition: 1s;
}

.btn-neon span:nth-child(2) {
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--green));
}

.btn-neon:hover span:nth-child(2) {
    top: 100%;
    transition: 1s;
    transition-delay: 0.25s;
}

.btn-neon span:nth-child(3) {
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent, var(--green));
}

.btn-neon:hover span:nth-child(3) {
    right: 100%;
    transition: 1s;
    transition-delay: 0.5s;
}

.btn-neon span:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg, transparent, var(--green));
}

.btn-neon:hover span:nth-child(4) {
    bottom: 100%;
    transition: 1s;
    transition-delay: 0.75s;
}

/* Glow Text */
.glow-text {
    text-shadow: 0 0 5px rgba(247, 200, 20, 0.3);
    animation: textGlow 4s ease-in-out infinite;
    position: relative;
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 5px rgba(247, 200, 20, 0.3); }
    50% { text-shadow: 0 0 15px rgba(247, 200, 20, 0.5); }
}

/* Particles */
.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.footer-particles span {
    position: absolute;
    display: block;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 15s linear infinite;
}

.footer-particles span:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    opacity: 0.3;
}

.footer-particles span:nth-child(2) {
    left: 25%;
    top: 10%;
    animation-delay: 2s;
    width: 3px;
    height: 3px;
    opacity: 0.5;
}

.footer-particles span:nth-child(3) {
    left: 45%;
    top: 30%;
    animation-delay: 4s;
    width: 1px;
    height: 1px;
    opacity: 0.2;
}

.footer-particles span:nth-child(4) {
    left: 65%;
    top: 15%;
    animation-delay: 6s;
}

.footer-particles span:nth-child(5) {
    left: 80%;
    top: 40%;
    animation-delay: 8s;
    width: 4px;
    height: 4px;
    opacity: 0.4;
}

.footer-particles span:nth-child(6) {
    left: 5%;
    top: 60%;
    animation-delay: 10s;
}

.footer-particles span:nth-child(7) {
    left: 20%;
    top: 80%;
    animation-delay: 12s;
    width: 3px;
    height: 3px;
    opacity: 0.6;
}

.footer-particles span:nth-child(8) {
    left: 50%;
    top: 70%;
    animation-delay: 14s;
}

.footer-particles span:nth-child(9) {
    left: 75%;
    top: 85%;
    animation-delay: 16s;
}

.footer-particles span:nth-child(10) {
    left: 90%;
    top: 5%;
    animation-delay: 18s;
    width: 2px;
    height: 2px;
    opacity: 0.3;
}

@keyframes float {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    70% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-150px);
        opacity: 0;
    }
}

/* Animation au scroll */
.reveal-bottom {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal-bottom.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Footer */
@media (max-width: 991.98px) {
    .footer {
        margin-top: 70px;
    }
    
    .footer-content {
        padding: 60px 0 30px;
    }
    
    .footer-card {
        margin-bottom: 20px;
    }
    
    .social-icons-3d {
        justify-content: center;
    }
    
    .footer-brand {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .copyright {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .btn-neon {
        margin: 5px;
        padding: 6px 12px;
    }
}

@media (max-width: 767.98px) {
    .footer-bottom .text-end {
        text-align: center !important;
        margin-top: 10px;
    }
    
    .btn-neon {
        margin: 5px;
    }
}

/* Styles spécifiques pour l'animation de texte Typed.js */
.dynamic-text-container {
    display: inline-block;
}

.typed-text {
    color: var(--yellow);
    font-weight: 600;
    display: inline-block !important;
    min-height: 1.5em;
    position: relative;
    vertical-align: bottom;
}

.typed-cursor {
    display: inline-block;
    color: var(--yellow);
    font-size: 1.2em;
    line-height: 1;
    opacity: 1;
    animation: blink 0.7s infinite;
    -webkit-animation: blink 0.7s infinite;
    vertical-align: bottom;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@-webkit-keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Assurer la visibilité de l'animation */
#typed-words {
    min-width: 10px;
    min-height: 1em;
    display: inline-block;
}

/* Styles optimisés pour l'animation typed.js */
.typed-container {
    display: inline-block;
}

#typed-element {
    color: var(--yellow);
    font-weight: 600;
}

/* Styles épurés pour le curseur typed */
.typed-cursor {
    font-size: 1.2em;
    color: var(--yellow);
    opacity: 1;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Style spécial pour le texte typed très simplifié */
#typed-text {
    color: var(--yellow);
    font-weight: 600;
}

/* Style pour le curseur clignotant */
.typed-cursor {
    color: var(--yellow);
    opacity: 1;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ==== DARK MODE STYLES ==== */
.dark-mode {
    --yellow: #FFD54F;
    --beige: #3E2723;
    --green: #8BC34A;
    --brown: #FF8A65;
    background-color: #121212;
    color: #f5f5f5;
}

.dark-mode .navbar {
    background: rgba(25, 25, 25, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.dark-mode .navbar-brand img {
    filter: brightness(1.2);
}

.dark-mode .nav-link {
    color: #f5f5f5;
}

.dark-mode .section-title h2,
.dark-mode h1, 
.dark-mode h2, 
.dark-mode h3, 
.dark-mode h4, 
.dark-mode h5, 
.dark-mode h6 {
    color: #f5f5f5;
}

.dark-mode .card,
.dark-mode .emission-card,
.dark-mode .student-card,
.dark-mode .calculator-form,
.dark-mode .result-card,
.dark-mode .team-member,
.dark-mode .partner-project {
    background-color: #1f1f1f;
    color: #f5f5f5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dark-mode .bg-light {
    background-color: #181818 !important;
}

.dark-mode .footer {
    background: #0a0a0a;
}

.dark-mode .eco-gauge canvas {
    filter: invert(0.9) hue-rotate(180deg);
}

.dark-mode .track-list-table {
    background: #1f1f1f;
    color: #f5f5f5;
}

.dark-mode .track-list-table thead th {
    background: linear-gradient(45deg, var(--green), #5D4037);
}

.dark-mode .accordion-item {
    background-color: #1f1f1f;
    color: #f5f5f5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dark-mode .accordion-button {
    background-color: #252525;
    color: var(--yellow);
}

.dark-mode .accordion-button:not(.collapsed) {
    background-color: #303030;
    color: var(--yellow);
}

.dark-mode .accordion-body {
    background-color: #1f1f1f;
}

.dark-mode .form-control,
.dark-mode .form-select {
    background-color: #252525;
    border-color: #333;
    color: #f5f5f5;
}

.dark-mode .form-control:focus,
.dark-mode .form-select:focus {
    background-color: #303030;
    border-color: var(--green);
    color: #f5f5f5;
}

.dark-mode .footer-links.custom-list a,
.dark-mode .copyright,
.dark-mode .contact-item p {
    color: #aaa;
}

/* Correction des styles pour typed.js */
#typed-text {
    display: inline-block !important;
    min-height: 1.4em !important;
}

/* Fix pour les médias queries */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 70vh;
        padding: 100px 0;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .footer-links, 
    .footer-legal {
        text-align: center;
    }
    
    .student-photo,
    .member-photo {
        width: 150px;
        height: 150px;
    }
}

/* Fix pour flexbox */
.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-0.5 * var(--bs-gutter-x));
    margin-left: calc(-0.5 * var(--bs-gutter-x));
}

/* Correction des espaces blancs */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Styles pour le bouton d'écoute et le mode sombre */

/* Bouton d'écoute dans la navigation */
.btn-green-outline {
    color: var(--green) !important;
    border: 2px solid var(--green);
    border-radius: 30px;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    background: rgba(107, 137, 73, 0.05);
}

.btn-green-outline:hover {
    color: white !important;
    background: var(--green);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(107, 137, 73, 0.3);
}

/* Switch de mode sombre */
.form-check-input[type="checkbox"] {
    appearance: none;
    width: 40px;
    height: 20px;
    background-color: #ddd;
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    margin-right: 0;
}

.form-check-input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}

.form-check-input[type="checkbox"]:checked {
    background-color: var(--green);
}

.form-check-input[type="checkbox"]:checked::before {
    left: 22px;
}

.form-check-label {
    cursor: pointer;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Animation pour le lien actif */
@keyframes pulseLink {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Effet de ripple pour les boutons */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleAnimation 0.6s linear;
    pointer-events: none;
}

@keyframes rippleAnimation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Styles pour la barre audio-wave dans le player */
.audio-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 30px;
}

.audio-wave .bar {
    width: 3px;
    background: linear-gradient(to top, var(--yellow), var(--green));
    border-radius: 3px;
    height: 5px;
    animation: audioWave 1.5s ease-in-out infinite alternate;
}

.audio-wave .bar:nth-child(1) { animation-delay: 0.0s; }
.audio-wave .bar:nth-child(2) { animation-delay: 0.2s; }
.audio-wave .bar:nth-child(3) { animation-delay: 0.4s; }
.audio-wave .bar:nth-child(4) { animation-delay: 0.6s; }
.audio-wave .bar:nth-child(5) { animation-delay: 0.8s; }

@keyframes audioWave {
    from { height: 5px; }
    to { height: 20px; }
}

/* Variables pour le mode sombre */
.dark-mode {
    --dark: #121212;
    --dark-light: #1f1f1f;
    --dark-medium: #252525;
    --dark-accent: #333;
}

/* Application du mode sombre */
.dark-mode .navbar {
    background: rgba(18, 18, 18, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.dark-mode .navbar-toggler-icon {
    filter: invert(1);
}

.dark-mode .nav-link {
    color: #f5f5f5;
}

.dark-mode .form-check-label {
    color: #f5f5f5;
}

.dark-mode .mini-player {
    background-color: var(--dark);
}

.dark-mode .calculator-form {
    background-color: var(--dark-light);
}

.dark-mode .bg-light {
    background-color: var(--dark) !important;
}

.dark-mode .newsletter-box {
    background: linear-gradient(45deg, #394A2A, var(--green));
}

/* Styles spécifiques pour les boutons Mixcloud - Solution au problème de visibilité */
.btn-play-episode {
    background-color: #4fa1c0 !important; /* Bleu Mixcloud au lieu de vert */
    color: white !important;
    border: none !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    transition: all 0.3s ease !important;
}

.btn-play-episode:hover {
    background-color: var(--yellow) !important;
    color: #333 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1) !important;
}

.btn-play-episode .fab.fa-mixcloud {
    color: white !important; /* Assure que l'icône est toujours blanche */
}

/* Style pour le lien Mixcloud dans le footer */
.social-3d.mixcloud .front,
.social-3d.mixcloud .back {
    background-color: #4fa1c0 !important; /* Bleu Mixcloud */
    color: white !important;
}

/* Styles pour les liens et boutons Mixcloud */
a[href*="mixcloud.com"] {
    color: #4fa1c0 !important; /* Couleur officielle Mixcloud */
}

a[href*="mixcloud.com"].btn {
    background-color: #4fa1c0 !important;
    color: white !important;
}

a[href*="mixcloud.com"].btn:hover {
    background-color: #52b9df !important;
    transform: translateY(-2px) !important;
}

/* ==== CONTENU DE animations.css ==== */

/* Animations avancées pour Energie Libre - Nouvelle version 2025 */

/* ==== TYPED.JS FIX DÉFINITIF ==== */
#typed-text, 
.typed-text, 
.typed-cursor {
    display: inline-block !important;
    vertical-align: baseline !important;
    line-height: normal !important;
    position: relative !important;
}

#typed-text,
.typed-text {
    min-height: 1.5em !important;
    min-width: 1px !important;
    font-weight: 700 !important;
    color: var(--yellow) !important;
}

.typed-cursor {
    font-weight: 400 !important;
    margin-left: 2px !important;
    opacity: 1 !important;
    font-size: 105% !important;
    position: relative !important;
    animation: smoothBlink 1.2s infinite !important;
    animation-fill-mode: both !important;
}

@keyframes smoothBlink {
    0%, 40% { opacity: 1; }
    50%, 90% { opacity: 0; }
    100% { opacity: 1; }
}

/* ==== ANIMATIONS FLUIDES ET MODERNES ==== */

/* Animations d'entrée avec séquencement */
.fade-in {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

.fade-in-up {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.fade-in-right {
    animation: fadeInRight 1s ease forwards;
    opacity: 0;
    transform: translateX(-30px);
}

.fade-in-left {
    animation: fadeInLeft 1s ease forwards;
    opacity: 0;
    transform: translateX(30px);
}

/* Délais d'animation séquentiels */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-700 { animation-delay: 0.7s; }
.delay-900 { animation-delay: 0.9s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation de scroll révélation - pour éléments apparaissant pendant le défilement */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animations des cartes et éléments interactifs */
.hover-rise {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease, 
                filter 0.4s ease;
}

.hover-rise:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    filter: brightness(1.03);
}

.hover-grow {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-grow:hover {
    transform: scale(1.05);
}

/* ==== ANIMATIONS VISUELLES MODERNES ==== */

/* Animation des particules hero améliorée */
.eco-particle {
    position: absolute;
    background: linear-gradient(45deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    backdrop-filter: blur(1px);
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
    animation: floatParticle 15s infinite ease-in-out;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);
}

@keyframes floatParticle {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(20px, -20px) rotate(5deg) scale(0.98);
    }
    50% {
        transform: translate(0, 20px) rotate(0deg) scale(1.02);
    }
    75% {
        transform: translate(-20px, -10px) rotate(-5deg) scale(0.99);
    }
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

/* Animation du gradient de fond - plus subtile et élégante */
.gradient-bg {
    background: linear-gradient(-45deg, #6B8949, #88A96B, #F7C814, #EAE3BF);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animation de pulsation pour attirer l'attention */
.pulse {
    animation: pulseEffect 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulseEffect {
    0% {
        box-shadow: 0 0 0 0 rgba(107, 137, 73, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(107, 137, 73, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(107, 137, 73, 0);
    }
}

/* Animation d'ondes pour le visualiseur audio */
.audio-wave {
    display: flex;
    align-items: center;
    height: 30px;
    gap: 2px;
    justify-content: center;
}

.audio-wave .bar {
    width: 3px;
    background: linear-gradient(to top, var(--green), var(--yellow));
    border-radius: 3px;
    will-change: height;
    animation: audioWave 2.5s ease-in-out infinite;
}

.audio-wave .bar:nth-child(1) { animation-delay: 0.0s; }
.audio-wave .bar:nth-child(2) { animation-delay: 0.5s; }
.audio-wave .bar:nth-child(3) { animation-delay: 1.0s; }
.audio-wave .bar:nth-child(4) { animation-delay: 1.5s; }
.audio-wave .bar:nth-child(5) { animation-delay: 0.7s; }

@keyframes audioWave {
    0%, 100% { height: 4px; }
    50% { height: 20px; }
}

/* Animation des boutons avec effet de ripple */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

.btn-ripple:active::after {
    transform: scale(0, 0);
    opacity: .3;
    transition: 0s;
}

/* Animation de bordure en rotation */
.rotating-border {
    position: relative;
    padding: 10px;
}

.rotating-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    background: linear-gradient(45deg, var(--green), var(--yellow), var(--beige), var(--green));
    background-size: 400% 400%;
    border-radius: inherit;
    animation: borderRotate 3s ease infinite;
}

@keyframes borderRotate {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

/* Animation de soulignement fluide */
.underline-animation {
    position: relative;
    display: inline-block;
}

.underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--green);
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}

.underline-animation:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Animations des réseaux sociaux dans le footer */
.social-links a:hover {
    transform: translateY(-5px) rotate(8deg);
}

/* Animation infobulle élégante */
.tooltip-custom {
    position: relative;
    cursor: pointer;
}

.tooltip-custom::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px) scale(0.95);
    padding: 7px 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 1000;
}

.tooltip-custom:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px) scale(1);
}

/* Animation fadeIn pour les éléments animés */
.animate-title {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

/* @keyframes fadeInUp est déjà défini plus haut */

/* ---- Hero Particles Animation ---- */
/* .eco-particle est déjà défini plus haut */
/* @keyframes floatParticle est déjà défini plus haut */

.eco-particle:nth-child(1) {
    width: 180px;
    height: 180px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.eco-particle:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.eco-particle:nth-child(3) {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.eco-particle:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 30%;
    animation-delay: 1s;
}

.eco-particle:nth-child(5) {
    width: 150px;
    height: 150px;
    bottom: 10%;
    right: 10%;
    animation-delay: 3s;
}

/* ---- Button Pulse Animation ---- */
.pulse-btn {
    position: relative;
    overflow: hidden;
}

.pulse-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(107, 137, 73, 0.7);
    animation: pulseEffect 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

/* @keyframes pulseEffect est déjà défini plus haut */

/* ---- Audio Player Wave Animation (Fixed) ---- */
.player-wave {
    display: flex;
    align-items: center;
    height: 30px;
    gap: 2px;
}

.player-wave .bar {
    width: 3px;
    background-color: var(--green);
    border-radius: 3px;
    height: 5px;
    margin: 0 1px;
    transform-origin: bottom;
    will-change: height;
    animation: audioWaveFixed 2.5s ease-in-out infinite;
    opacity: 0.7;
}

.player-wave .bar:nth-child(1) { animation-delay: 0.0s; }
.player-wave .bar:nth-child(2) { animation-delay: 0.5s; }
.player-wave .bar:nth-child(3) { animation-delay: 1.0s; }
.player-wave .bar:nth-child(4) { animation-delay: 1.5s; }
.player-wave .bar:nth-child(5) { animation-delay: 2.0s; }

@keyframes audioWaveFixed {
    0%, 100% {
        height: 5px;
    }
    50% {
        height: 15px;
    }
}

/* ---- Text Gradient Animation ---- */
.text-gradient {
    background: linear-gradient(45deg, var(--green), var(--yellow));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--green); /* Fallback */
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---- Hover Animations ---- */
.social-links a, .btn, .nav-link {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-links a:hover,
.btn:hover {
    transform: translateY(-3px);
}

/* ---- Card Hover Animations ---- */
.emission-card,
.team-member,
.format-card,
.partner-project,
.student-card {
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
}

.emission-card:hover,
.team-member:hover,
.format-card:hover,
.partner-project:hover,
.student-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* ---- Logo Animation ---- */
.navbar-brand img {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

/* ---- Scroll Reveal Animation ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Loading Animation ---- */
.loading {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.loading div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--green);
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loading div:nth-child(1) {
    left: 8px;
    animation: loading1 0.6s infinite;
}

.loading div:nth-child(2) {
    left: 8px;
    animation: loading2 0.6s infinite;
}

.loading div:nth-child(3) {
    left: 32px;
    animation: loading2 0.6s infinite;
}

.loading div:nth-child(4) {
    left: 56px;
    animation: loading3 0.6s infinite;
}

@keyframes loading1 {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes loading2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(24px, 0); }
}

@keyframes loading3 {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
}

/* Assure la bonne animation du texte défilant sur tous les navigateurs */
.typed-element,
.typed-cursor {
    display: inline;
    vertical-align: baseline;
}

/* Fix pour les animations qui pourraient être cassées sur iOS */
@supports (-webkit-touch-callout: none) {
    .fade-in, 
    .fade-in-up, 
    .fade-in-right, 
    .fade-in-left {
        will-change: opacity, transform;
    }
    
    .reveal-on-scroll {
        will-change: opacity, transform;
    }
    
    .btn-ripple::after {
        will-change: transform, opacity;
    }
}

/* Fix pour les problèmes d'animation avec Safari */
@media not all and (min-resolution:.001dpcm) { 
    @supports (-webkit-appearance:none) {
        .player-wave .bar {
            animation: none; /* Désactiver l'animation problématique sur Safari */
        }
        
        .audio-wave .bar {
            animation: none; /* Désactiver l'animation problématique sur Safari */
        }
    }
}

/* Assurer la compatibilité avec les anciens navigateurs */
@supports not (backdrop-filter: blur(10px)) {
    .navbar, 
    .playlist-info, 
    .footer-card {
        background-color: rgba(255, 255, 255, 0.97) !important;
    }
    
    .dark-mode .navbar {
        background-color: rgba(25, 25, 25, 0.97) !important;
    }
}

/* ===== HEADER AMÉLIORÉ ===== */
.main-header {
    position: relative;
    z-index: 1000;
}

/* Navbar moderne */
.navbar {
    padding: 12px 0;
    transition: all 0.4s ease;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dark-mode .navbar {
    background-color: rgba(33, 37, 41, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

/* Animation au scroll */
.navbar.scrolled {
    padding: 8px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.98);
}

.dark-mode .navbar.scrolled {
    background-color: rgba(33, 37, 41, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

/* Logo animation */
.navbar-brand img {
    height: 40px;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 35px;
}

/* Liens de navigation */
.navbar .nav-link {
    position: relative;
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: var(--primary-dark);
    transition: all 0.3s ease;
    border-radius: 6px;
}

.dark-mode .navbar .nav-link {
    color: #f5f5f5;
}

.navbar .nav-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.navbar .nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar .nav-link.active:hover::after {
    width: 60%;
}

/* Bouton mixcloud dans le header */
.btn-mixcloud {
    background-color: #52aad8;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(82, 170, 216, 0.3);
}

.btn-mixcloud:hover {
    background-color: #4798c2;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 15px rgba(82, 170, 216, 0.4);
}

/* Bouton toggle mode sombre */
.dark-mode-toggle-wrapper {
    position: relative;
    z-index: 2;
}

.form-check-input {
    cursor: pointer;
    width: 45px;
    height: 22px;
    background-image: linear-gradient(to right, #f5f5f5, #e0e0e0);
    border: none;
}

.dark-mode .form-check-input {
    background-image: linear-gradient(to right, #1f2937, #111827);
}

.form-check-input:checked {
    background-color: #6a894a;
    background-image: linear-gradient(to right, #6a894a, #4a6a2a);
}

.form-check-label {
    cursor: pointer;
    color: #555;
    transition: color 0.3s ease;
}

.dark-mode .form-check-label {
    color: #ccc;
}

.form-check-label i {
    font-size: 1.1rem;
}

/* Barre de progression de défilement */
.scroll-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(0, 0, 0, 0.05);
    z-index: 1001;
    overflow: hidden;
}

.dark-mode .scroll-progress-container {
    background-color: rgba(255, 255, 255, 0.1);
}

.scroll-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, var(--primary-light), var(--primary), var(--primary-dark));
    transition: width 0.1s ease;
}

/* Animation pour le lien actif dans la navigation */
@keyframes pulseLink {
    0% {
        box-shadow: 0 0 0 0 rgba(106, 137, 74, 0.2);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(106, 137, 74, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(106, 137, 74, 0);
    }
}

/* Adaptation mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .dark-mode .navbar-collapse {
        background-color: rgba(33, 37, 41, 0.98);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    
    .navbar .nav-link.active::after {
        width: 20px;
        left: 1rem;
        transform: translateX(0);
    }
    
    .navbar .nav-item {
        margin-bottom: 0.5rem;
    }
}

/* ===== STYLES EXISTANTS ===== */

/* ===== STYLES DU CALCULATEUR D'EMPREINTE CARBONE AMÉLIORÉ ===== */
.eco-calculator {
    background: linear-gradient(135deg, rgba(246, 249, 242, 0.9), rgba(236, 245, 236, 0.8));
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.dark-mode .eco-calculator {
    background: linear-gradient(135deg, rgba(28, 38, 23, 0.9), rgba(32, 43, 30, 0.8));
}

/* Effets de particules pour le fond */
.eco-calculator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(106, 137, 74, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(106, 137, 74, 0.1) 0%, transparent 40%);
    z-index: 0;
}

.calculator-form {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

.dark-mode .calculator-form {
    background: rgba(33, 37, 41, 0.9);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calculator-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.dark-mode .calculator-form:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.calculator-form h4 {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(106, 137, 74, 0.2);
}

.dark-mode .calculator-form h4 {
    border-bottom-color: rgba(106, 137, 74, 0.4);
}

.calculator-form h4 i {
    background: var(--primary-light);
    color: var(--primary-dark);
    height: 36px;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.calculator-form label {
    font-weight: 500;
    color: #444;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.dark-mode .calculator-form label {
    color: #ddd;
}

/* Style pour les selects et inputs */
.calculator-form .form-select,
.calculator-form .form-control {
    border: 1px solid rgba(106, 137, 74, 0.3);
    border-radius: 10px;
    padding: 12px;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.dark-mode .calculator-form .form-select,
.dark-mode .calculator-form .form-control {
    background-color: rgba(33, 37, 41, 0.7);
    border-color: rgba(106, 137, 74, 0.4);
    color: #eee;
}

.calculator-form .form-select:focus,
.calculator-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(106, 137, 74, 0.25);
}

/* Sliders personnalisés */
.calculator-form .form-range {
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 4px;
    background: linear-gradient(to right, #ddd, #ddd);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dark-mode .calculator-form .form-range {
    background: linear-gradient(to right, #444, #444);
}

.calculator-form .form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.calculator-form .form-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    border: none;
}

.calculator-form .form-range::-webkit-slider-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.calculator-form .form-range::-moz-range-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* Valeur des sliders */
.calculator-form .range-value {
    font-weight: 600;
    color: var(--primary-dark);
    background: var(--primary-light);
    padding: 2px 10px;
    border-radius: 20px;
    display: inline-block;
    min-width: 60px;
    text-align: center;
}

.dark-mode .calculator-form .range-value {
    background: rgba(106, 137, 74, 0.4);
}

/* Bouton de calcul */
#calculate-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 30px;
    padding: 14px 36px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px rgba(106, 137, 74, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(106, 137, 74, 0.4);
}

#calculate-btn:active {
    transform: translateY(1px);
    box-shadow: 0 5px 15px rgba(106, 137, 74, 0.3);
}

#calculate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

#calculate-btn:hover::before {
    left: 100%;
}

/* Carte de résultats */
.result-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: translateY(20px);
    opacity: 0.7;
    overflow: hidden;
    height: 100%;
    position: relative;
    z-index: 1;
}

.dark-mode .result-card {
    background: rgba(33, 37, 41, 0.9);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-card.show-result {
    transform: translateY(0);
    opacity: 1;
}

.result-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.result-header h3 {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.05);
}

.dark-mode .result-header h3 {
    color: var(--primary-light);
}

.result-header::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Jauge & score */
.eco-gauge {
    position: relative;
    margin: 0 auto 30px;
    max-width: 300px;
}

.score-display {
    position: absolute;
    bottom: 45%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
}

.score-display #carbon-score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: block;
    line-height: 1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

.dark-mode .score-display #carbon-score {
    color: var(--primary-light);
}

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

.score-display small {
    font-size: 0.9rem;
    color: #666;
    display: block;
    margin-top: 5px;
}

.dark-mode .score-display small {
    color: #aaa;
}

/* Répartition */
.result-breakdown {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dark-mode .result-breakdown {
    background: rgba(255, 255, 255, 0.05);
}

.result-breakdown h4 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    text-align: center;
}

.dark-mode .result-breakdown h4 {
    color: var(--primary-light);
}

.breakdown-chart {
    height: 250px;
    position: relative;
}

/* Section de comparaison */
.comparison {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.dark-mode .comparison {
    background: rgba(255, 255, 255, 0.05);
}

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

.comparison p {
    margin-bottom: 8px;
}

.comparison strong {
    color: var(--primary-dark);
}

.dark-mode .comparison strong {
    color: var(--primary-light);
}

/* Conseils et recommandations */
.result-tips {
    margin-top: 2rem;
}

.result-tips h4 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.dark-mode .result-tips h4 {
    color: var(--primary-light);
}

.accordion-item {
    border: 1px solid rgba(106, 137, 74, 0.2);
    border-radius: 10px !important;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.dark-mode .accordion-item {
    border-color: rgba(106, 137, 74, 0.4);
    background-color: rgba(33, 37, 41, 0.6);
}

.accordion-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.accordion-button {
    background: rgba(255, 255, 255, 0.8) !important;
    color: var(--primary-dark) !important;
    font-weight: 600;
    padding: 15px 20px;
}

.dark-mode .accordion-button {
    background: rgba(33, 37, 41, 0.8) !important;
    color: var(--primary-light) !important;
}

.accordion-button:not(.collapsed) {
    background: rgba(106, 137, 74, 0.1) !important;
    color: var(--primary) !important;
}

.dark-mode .accordion-button:not(.collapsed) {
    background: rgba(106, 137, 74, 0.2) !important;
}

.accordion-button i {
    margin-right: 10px;
    color: var(--primary);
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(106, 137, 74, 0.25);
}

.accordion-body {
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
}

.dark-mode .accordion-body {
    background: rgba(33, 37, 41, 0.5);
}

/* Style des conseils */
.eco-tips {
    list-style: none;
    padding: 0;
    margin: 0;
}

.eco-tips li {
    margin-bottom: 12px;
    padding: 10px 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 35px;
}

.dark-mode .eco-tips li {
    background: rgba(255, 255, 255, 0.05);
}

.eco-tips li:hover {
    transform: translateX(5px);
    background: rgba(106, 137, 74, 0.1);
}

.eco-tips li i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 0.9rem;
    position: absolute;
    left: 12px;
    top: 13px;
}

.eco-tips li:last-child {
    margin-bottom: 0;
}

/* Animations pour le calculateur */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calculator-form, .result-card {
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Badges de certification pour les sources */
#carbon-sources {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    padding: 15px;
    margin-top: 30px;
    font-size: 0.85rem;
}

.dark-mode #carbon-sources {
    background: rgba(255, 255, 255, 0.05);
}

#carbon-sources h5 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.dark-mode #carbon-sources h5 {
    color: var(--primary-light);
}

#carbon-sources ul {
    padding-left: 20px;
    margin-bottom: 0;
}

#carbon-sources a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

#carbon-sources a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Progress bar animée pour les étapes */
.carbon-progress {
    height: 6px;
    width: 100%;
    background: #e9ecef;
    border-radius: 3px;
    margin: 30px 0;
    overflow: hidden;
    position: relative;
}

.carbon-progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary-light), var(--primary), var(--primary-dark));
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    position: relative;
    overflow: hidden;
}

.carbon-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%
    );
    animation: progress-shine 2s infinite linear;
}

@keyframes progress-shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Responsive */
@media (max-width: 991.98px) {
    .eco-calculator {
        padding: 3rem 0;
    }
    
    .score-display #carbon-score {
        font-size: 2.5rem;
    }
    
    .calculator-form, .result-card {
        margin-bottom: 2rem;
    }
    
    .result-card {
        height: auto;
    }
}

/* Styles spécifiques pour le bouton de calcul d'empreinte carbone */
#calculate-btn {
    background-color: var(--green) !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    border-radius: 30px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(107, 137, 73, 0.3) !important;
}

#calculate-btn:hover {
    background-color: #7a9954 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 15px rgba(107, 137, 73, 0.4) !important;
}

.dark-mode #calculate-btn {
    background-color: #5d8a3d !important;
    box-shadow: 0 4px 10px rgba(93, 138, 61, 0.4) !important;
}

.dark-mode #calculate-btn:hover {
    background-color: #6a9a47 !important;
    box-shadow: 0 6px 15px rgba(93, 138, 61, 0.5) !important;
}

/* Styles pour les statistiques écologiques */
.eco-stats {
    position: relative;
    overflow: hidden;
}

.eco-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(107, 137, 73, 0.1), rgba(247, 200, 20, 0.1));
    z-index: 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(107, 137, 73, 0.1);
}

.dark-mode .stat-card {
    background: rgba(25, 25, 25, 0.9);
    border-color: rgba(107, 137, 73, 0.2);
}

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

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--green);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
    color: var(--yellow);
}

.stat-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--green), var(--yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: countUp 2s ease-out;
}

.stat-content p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.dark-mode .stat-content p {
    color: #aaa;
}

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

/* Animation des particules pour la section stats */
.eco-stats .eco-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--green);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle 15s infinite linear;
}

.eco-stats .eco-particle:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.eco-stats .eco-particle:nth-child(2) { top: 20%; left: 80%; animation-delay: -2s; }
.eco-stats .eco-particle:nth-child(3) { top: 80%; left: 20%; animation-delay: -4s; }
.eco-stats .eco-particle:nth-child(4) { top: 70%; left: 70%; animation-delay: -6s; }

