:root {
    --noir: #000000;
    --noir-80: #333333;
    --noir-60: #666666;
    --noir-40: #999999;
    --noir-20: #CCCCCC;
    --noir-10: #E5E5E5;
    --noir-5: #F5F5F5;
    --blanc: #FFFFFF;
    --primary: #000000;
    --secondary: #1a1a1a;
    --accent: #333333;
    --light: #ffffff;
    --dark: #000000;
    --text: #000000;
    --text-light: #666666;
    --border: #e5e5e5;
    --radius: 12px;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--noir);
    background: var(--blanc);
    font-weight: 400;
    padding-top: 90px; /* Pour le header fixe */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HERO FORMULAIRE */
.contact-hero {
    background: linear-gradient(135deg, var(--noir) 0%, var(--noir-80) 100%);
    color: white;
    padding: 160px 0 80px;
    text-align: center;
}

.contact-hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.contact-hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* CONTENU PRINCIPAL CONTACT */
.contact-content {
    padding: 80px 0;
    background: var(--noir-5);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    color: var(--noir);
}

.contact-info > p {
    color: var(--noir-60);
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 25px;
    background: var(--blanc);
    border: 1px solid var(--noir-10);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--noir-20);
    transform: translateY(-2px);
}

.contact-item i {
    font-size: 20px;
    background: var(--noir-5);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--noir-10);
    min-width: 45px;
    text-align: center;
}

.contact-item div h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--noir);
}

.contact-item div p {
    color: var(--noir-60);
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}

/* FORMULAIRE */
.contact-form {
    background: var(--blanc);
    padding: 40px;
    border: 1px solid var(--noir-10);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-form h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--noir);
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--noir);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--noir-20);
    background: var(--blanc);
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
    border-radius: 8px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--noir);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn {
    background: var(--noir);
    color: var(--blanc);
    border: none;
    padding: 16px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    width: 100%;
    border-radius: 8px;
    text-transform: uppercase;
}

.btn:hover {
    background: var(--noir-80);
    transform: translateY(-2px);
}

/* FOOTER - IDENTIQUE À L'ACCUEIL */
.footer {
    background: var(--noir);
    color: var(--blanc);
    padding: 60px 0 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--noir-40), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.footer-brand p {
    color: var(--noir-40);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--noir-40);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--noir-40);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--blanc);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--blanc);
    padding-left: 8px;
}

.footer-links a:hover::before {
    width: 100%;
}

.footer-bottom {
    border-top: 1px solid var(--noir-80);
    padding-top: 30px;
    text-align: center;
    color: var(--noir-40);
    font-size: 0.8125rem;
}

/* RESPONSIVE */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-hero {
        padding: 140px 0 60px;
    }
    
    .contact-content {
        padding: 60px 0;
    }
    
    .contact-form {
        padding: 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 120px 0 40px;
    }
    
    .contact-hero h1 {
        font-size: 36px;
    }
    
    .contact-hero p {
        font-size: 16px;
    }
    
    .contact-item {
        padding: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .contact-form {
        padding: 25px 20px;
    }
    
    .contact-hero h1 {
        font-size: 28px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .contact-item i {
        align-self: center;
    }
    
    body {
        padding-top: 100px;
    }
}

/* FOCUS VISIBLE POUR L'ACCESSIBILITÉ */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--noir);
    outline-offset: 2px;
}











/* ===== HEADER - STYLE IDENTIQUE À INDEX ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--primary);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}



.logo img {
    height: 170px;
    transition: var(--transition);
    filter: contrast(1.2);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--noir-60);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav a:hover,
.nav a.active {
    color: var(--noir);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--noir);
    transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

/* ===== BURGER MENU MOBILE ===== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    cursor: pointer;
    z-index: 1000;
    background: transparent;
    border: none;
    padding: 0;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--noir);
    border-radius: 1px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Overlay menu mobile */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--blanc);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Contenu du menu mobile */
.mobile-nav-content {
    padding: 80px 30px 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav a {
    padding: 18px 20px;
    color: var(--noir);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--noir-10);
    transition: var(--transition);
    position: relative;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a:hover {
    background: var(--noir-5);
    padding-left: 25px;
}

.mobile-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--noir);
    transition: height 0.3s ease;
}

.mobile-nav a:hover::before {
    height: 20px;
}

/* Bouton fermeture mobile */
.mobile-nav-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-close::before,
.mobile-nav-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--noir);
    border-radius: 1px;
}

.mobile-nav-close::before {
    transform: rotate(45deg);
}

.mobile-nav-close::after {
    transform: rotate(-45deg);
}

/* ===== RESPONSIVE HEADER ===== */
@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .logo img {
        height: 140px;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .mobile-nav-content {
        padding: 70px 20px 30px;
    }
    
    .mobile-nav a {
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .mobile-nav-close {
        top: 20px;
        right: 20px;
        width: 35px;
        height: 35px;
    }
    
    .logo img {
        height: 120px;
    }
}






/* Ajustement de l'espacement de la navigation */
.desktop-nav {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-left: auto; /* ← Pousse la nav vers la gauche */
 
}




/* ===== NAVIGATION DESKTOP ===== */
.desktop-nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--noir-60);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--noir);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--noir);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}




/* Option alternative : réduire le top du header scrolled */
.header.scrolled {
    padding: 10px 0;
}

/* Ou augmenter le padding-top du hero */
.hero {
    padding: 160px 0 50px; /* ← Augmenté de 150px à 160px */
}


/* FORCER LE SIDEBAR À GAUCHE */
.container .content-layout {
    margin-left: -5% !important; /* Compense le width: 90% */
    padding-left: 0 !important;
    width: 105% !important; /* Étend au-delà du container */
}
















/* Curseur avec label */
.theme-toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

.theme-toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
}

.theme-toggle-slider-labeled {
    position: relative;
    width: 60px;
    height: 30px;
    background: #111827;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle-slider-labeled::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 4px;
    left: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dark-theme .theme-toggle-slider-labeled {
    background: #ffffff;
}

.dark-theme .theme-toggle-slider-labeled::before {
    transform: translateX(30px);
    background: #111827;
}













/* Submit Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #000000; /* Noir fixe au lieu de var(--dark) */
    color: white;
    width: 100%;
}

/* Animation au clic */
.btn-primary:active {
    animation: buttonClick 0.3s ease;
}

@keyframes buttonClick {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

.btn-primary:hover:not(:disabled) {
    background: #333333; /* Gris foncé au hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Animation de chargement */
.btn-loading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn-loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Effet de vague au clic (optionnel) */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn:active::after {
    width: 100px;
    height: 100px;
}






































/* Alert Messages */
.alert {
    padding: 1rem 0;
    border-radius: 8px;
    margin: 1rem 0;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert ul {
    margin: 0;
    padding-left: 1rem;
}

/* Contact Content */
.contact-content {
    padding: 80px 0;
    background-color: var(--background-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

/* Contact Info */
.contact-info h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.contact-description {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
}



.contact-text a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.contact-text a:hover {
    color: var(--primary-color);
}



/* Animation de chargement */
.btn-loading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.btn-primary:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 108, 247, 0.3);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn-loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Effet de vague au clic */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn:active::after {
    width: 100px;
    height: 100px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-form-container {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 60px 0 40px;
    }
    
    .contact-hero h1 {
        font-size: 2.2rem;
    }
    
    .contact-content {
        padding: 60px 0;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-icon {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-hero p {
        font-size: 1.1rem;
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .contact-form-container {
    background: var(--card-bg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    background: var(--input-bg);
    border-color: var(--border-color);
}



















/* CSS THEME PROFESSIONNEL  theme-toggle  */

.theme-toggle-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 24px;
}

.theme-toggle-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
    user-select: none;
    letter-spacing: 0.5px;
}

.theme-toggle-label:hover {
    color: var(--text-primary);
}

.theme-toggle-slider-labeled {
    position: relative;
    width: 56px;
    height: 28px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.8),
        inset 0 -1px 2px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
    overflow: hidden;
}

.theme-toggle-slider-labeled::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.15),
        0 1px 2px rgba(255, 255, 255, 0.8) inset;
    z-index: 2;
}

/* Icône soleil minimaliste */
.theme-toggle-slider-labeled::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #f59e0b;
    border-radius: 50%;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    transition: all 0.4s ease;
    box-shadow: 
        0 0 0 1px rgba(245, 158, 11, 0.2),
        0 0 0 2px rgba(245, 158, 11, 0.1);
}

/* Rayons du soleil */
.theme-toggle-slider-labeled .sun-rays {
    position: absolute;
    width: 12px;
    height: 12px;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    transition: all 0.4s ease;
    opacity: 0.6;
}

.theme-toggle-slider-labeled .sun-rays::before,
.theme-toggle-slider-labeled .sun-rays::after {
    content: '';
    position: absolute;
    background: #f59e0b;
    border-radius: 1px;
}

.theme-toggle-slider-labeled .sun-rays::before {
    width: 2px;
    height: 12px;
    top: 0;
    left: 5px;
}

.theme-toggle-slider-labeled .sun-rays::after {
    width: 12px;
    height: 2px;
    top: 5px;
    left: 0;
}

/* Icône lune minimaliste */
.theme-toggle-slider-labeled .moon-crescent {
    position: absolute;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    border-radius: 50%;
    top: 50%;
    left: 8px;
    transform: translateY(-50%) scale(0);
    transition: all 0.4s ease;
    box-shadow: 
        inset -2px -2px 2px rgba(0, 0, 0, 0.1),
        inset 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Thème sombre */
.dark-theme .theme-toggle-slider-labeled {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        inset 0 -1px 2px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-theme .theme-toggle-slider-labeled::before {
    transform: translateX(28px);
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.25),
        0 1px 2px rgba(255, 255, 255, 0.3) inset;
}

.dark-theme .theme-toggle-slider-labeled::after {
    opacity: 0;
    transform: translateY(-50%) scale(0.5);
}

.dark-theme .theme-toggle-slider-labeled .sun-rays {
    opacity: 0;
    transform: translateY(-50%) scale(0.5);
}

.dark-theme .theme-toggle-slider-labeled .moon-crescent {
    transform: translateY(-50%) scale(1);
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    box-shadow: 
        inset -2px -2px 2px rgba(0, 0, 0, 0.2),
        inset 1px 1px 2px rgba(255, 255, 255, 0.4);
}

/* États interactifs */
.theme-toggle-slider-labeled:hover {
    transform: scale(1.02);
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.8),
        inset 0 -1px 2px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.12);
}

.dark-theme .theme-toggle-slider-labeled:hover {
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.15),
        inset 0 -1px 2px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.25);
}

.theme-toggle-slider-labeled:active {
    transform: scale(0.98);
}

/* Animation de transition */
.theme-toggle-slider-labeled.changing {
    animation: elegant-pulse 0.6s ease;
}

@keyframes elegant-pulse {
    0% { transform: scale(1); }
    25% { transform: scale(1.03); }
    50% { transform: scale(0.97); }
    75% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

/* Accessibilité */
.theme-toggle-slider-labeled:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Version mobile */
@media (max-width: 768px) {
    .theme-toggle-container {
        margin-left: 16px;
        gap: 12px;
    }
    
    .theme-toggle-slider-labeled {
        width: 52px;
        height: 26px;
    }
    
    .theme-toggle-slider-labeled::before {
        width: 20px;
        height: 20px;
    }
    
    .dark-theme .theme-toggle-slider-labeled::before {
        transform: translateX(26px);
    }
}

