/* 🎨 EFFETS SUPPLÉMENTAIRES ET THÈMES */

/* 🌟 VARIABLES CSS POUR LES COULEURS */
:root {
    --primary-color: #6B705C;
    --secondary-color: #8D6E63;
    --accent-color: #A5B68D;
    --light-color: #C9D1C8;
    --text-color: #333;
    --bg-color: #f9f9f9;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* 🌙 THÈME SOMBRE */
.dark-theme {
    --primary-color: #4a5040;
    --secondary-color: #6b5b73;
    --accent-color: #7a8a6d;
    --light-color: #5a6358;
    --text-color: #e0e0e0;
    --bg-color: #1a1a1a;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* 🎊 EFFETS DE GRADIENTS */
.gradient-bg {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* 🌊 EFFETS DE GLASSMORPHISME */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin: 10px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* 🎯 EFFETS DE NÉON */
.neon-text {
    color: var(--primary-color);
    text-shadow: 
        0 0 5px var(--primary-color),
        0 0 10px var(--primary-color),
        0 0 15px var(--primary-color),
        0 0 20px var(--primary-color);
    animation: neon-flicker 2s infinite alternate;
}

@keyframes neon-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* 🌈 EFFETS DE MORPHING */
.morphing-shape {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morphing 8s ease-in-out infinite;
}

@keyframes morphing {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { border-radius: 40% 60% 60% 40% / 60% 40% 60% 20%; }
    75% { border-radius: 60% 40% 40% 60% / 40% 50% 60% 50%; }
}

/* 🎪 EFFETS DE ROTATION 3D */
.rotate-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

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

/* 🌟 EFFETS DE PARTICULES CSS */
.particles-container {
    position: relative;
    overflow: hidden;
}

.particles-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 60px 120px, rgba(255,255,255,0.2), transparent);
    background-size: 120px 120px;
    animation: particles-move 10s linear infinite;
    pointer-events: none;
}

@keyframes particles-move {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-120px); }
}

/* 🎨 EFFETS DE BRUSH STROKE */
.brush-stroke {
    position: relative;
    display: inline-block;
}

.brush-stroke::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.brush-stroke:hover::after {
    transform: scaleX(1);
}

/* 🌊 EFFETS DE VAGUE */
.wave-animation {
    position: relative;
    overflow: hidden;
}

.wave-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: wave-move 3s ease infinite;
}

@keyframes wave-move {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 🎯 EFFETS DE FOCUS AMÉLIORÉS */
.focus-ring {
    outline: none;
    position: relative;
}

.focus-ring::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--primary-color);
    border-radius: inherit;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.focus-ring:focus::after {
    opacity: 1;
    transform: scale(1);
}

/* 🌟 EFFETS DE LOADING AVANCÉS */
.loading-dots {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

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

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

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

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

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

@keyframes loading-dots1 {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

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

@keyframes loading-dots3 {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
}

/* 🎪 EFFETS DE SLIDE RÉVÉLATION */
.slide-reveal {
    position: relative;
    overflow: hidden;
}

.slide-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.slide-reveal:hover::before {
    transform: translateX(100%);
}

/* 🌈 EFFETS DE COULEUR CYCLIQUE */
.color-cycle {
    animation: color-cycle 4s ease-in-out infinite;
}

@keyframes color-cycle {
    0%, 100% { color: var(--primary-color); }
    25% { color: var(--secondary-color); }
    50% { color: var(--accent-color); }
    75% { color: var(--light-color); }
}

/* 🎨 EFFETS DE MAGNETISME */
.magnetic-effect {
    transition: transform 0.3s ease;
}

.magnetic-effect:hover {
    transform: scale(1.1) rotate(2deg);
}

/* 🌟 EFFETS DE SCINTILLEMENT */
.sparkle {
    position: relative;
    overflow: hidden;
}

.sparkle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: sparkle-move 3s linear infinite;
}

@keyframes sparkle-move {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 🎯 EFFETS DE ZOOM PROGRESSIF */
.progressive-zoom {
    transition: transform 0.3s ease;
}

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

.progressive-zoom:active {
    transform: scale(0.95);
}

/* 🌊 EFFETS DE DISTORSION */
.distort-effect {
    transition: all 0.3s ease;
}

.distort-effect:hover {
    transform: skew(-2deg, 1deg);
}

/* 🎪 EFFETS DE BALANCEMENT */
.swing-animation {
    animation: swing 2s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes swing {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-10deg); }
    60% { transform: rotate(5deg); }
    80% { transform: rotate(-5deg); }
}

/* 🌟 EFFETS DE RESPIRATION */
.breathe-animation {
    animation: breathe 3s ease-in-out infinite;
}

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

/* 🎨 EFFETS DE GRADIENTS ANIMÉS */
.animated-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 400% 400%;
    animation: gradient-shift 4s ease infinite;
}

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

/* 🌈 EFFETS DE HALO */
.halo-effect {
    position: relative;
}

.halo-effect::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(107,112,92,0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.halo-effect:hover::before {
    opacity: 1;
}

/* 🎯 RESPONSIVITÉ POUR LES EFFETS */
@media (max-width: 768px) {
    .glass-effect, .glass-card {
        backdrop-filter: blur(5px);
    }
    
    .neon-text {
        text-shadow: 
            0 0 2px var(--primary-color),
            0 0 4px var(--primary-color);
    }
    
    .morphing-shape {
        animation-duration: 4s;
    }
    
    .particles-container::before {
        display: none;
    }
}

/* 🎨 EFFETS DE DÉGRADÉ POUR LES BOUTONS */
.gradient-button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gradient-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gradient-button:hover::before {
    opacity: 1;
}

.gradient-button span {
    position: relative;
    z-index: 1;
}

/* 🌟 EFFETS DE TOAST NOTIFICATIONS */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    z-index: 10000;
    animation: toast-slide-in 0.5s ease-out;
}

.toast-success {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.toast-error {
    background: linear-gradient(45deg, #dc3545, #fd7e14);
}

.toast-warning {
    background: linear-gradient(45deg, #ffc107, #fd7e14);
}

@keyframes toast-slide-in {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 🎪 EFFETS DE ROTATION INFINIE */
.infinite-rotate {
    animation: infinite-rotate 10s linear infinite;
}

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

/* 🌊 EFFETS DE VAGUE POUR LES BORDURES */
.wave-border {
    position: relative;
}

.wave-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    animation: wave-border 2s ease-in-out infinite;
}

@keyframes wave-border {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(1.2); }
}

/* 🎨 WIDGET D'EFFETS SPÉCIAUX */
.effects-widget {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin: 10px auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 300px;
}

.effects-widget button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    margin: 0 3px;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.effects-widget button:hover {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.2);
}

.effects-widget button:active {
    transform: scale(0.9);
}

.effects-widget button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.effects-widget button:hover::before {
    width: 40px;
    height: 40px;
}

.effects-widget span {
    font-size: 12px;
    color: #ccc;
    margin-right: 10px;
    font-weight: bold;
}

/* Animation pour le widget d'effets */
.effects-widget {
    animation: widget-glow 3s ease-in-out infinite;
}

@keyframes widget-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(107, 112, 92, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(107, 112, 92, 0.6);
    }
}

/* Style pour les messages d'aide */
.effects-widget button[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    animation: tooltip-appear 0.3s ease-out;
}

@keyframes tooltip-appear {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Effet de rotation pour les boutons d'effets */
.effects-widget button:nth-child(2) { animation-delay: 0.1s; }
.effects-widget button:nth-child(3) { animation-delay: 0.2s; }
.effects-widget button:nth-child(4) { animation-delay: 0.3s; }
.effects-widget button:nth-child(5) { animation-delay: 0.4s; }
.effects-widget button:nth-child(6) { animation-delay: 0.5s; }
.effects-widget button:nth-child(7) { animation-delay: 0.6s; }

/* Responsive pour le widget */
@media (max-width: 768px) {
    .effects-widget {
        max-width: 280px;
        padding: 8px;
    }
    
    .effects-widget button {
        font-size: 16px;
        margin: 0 2px;
    }
}