/*
Theme Name: DemWash Modern
Description: Thème moderne pour DemWash avec nouvelles fonctionnalités Staff et Suivi
Version: 1.0
Author: DemWash Team
Template: twentytwentyfour
*/

/* ==========================================================================
   RESET ET VARIABLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0088cc;
    --primary-orange: #eb6f06;
    --dark-blue: #005a87;
    --light-blue: #e3f2fd;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e9ecef;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-heavy: 0 10px 30px rgba(0,0,0,0.1);
    --transition-fast: all 0.2s ease;
    --transition-medium: all 0.3s ease;
    --transition-slow: all 0.6s ease;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--dark-blue);
}

/* ==========================================================================
   HEADER ET NAVIGATION
   ========================================================================== */

.header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
}

.header.scrolled {
    background: linear-gradient(135deg, rgba(0,136,204,0.95), rgba(0,90,135,0.95));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: var(--white);
    padding: 5px;
    transition: var(--transition-medium);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-medium);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    position: relative;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: var(--transition-fast);
}

.mobile-menu-btn:hover {
    background: rgba(255,255,255,0.1);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    background: linear-gradient(135deg, var(--light-blue), var(--white));
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://demwash.net/wp-content/uploads/2025/06/facade.png') no-repeat center;
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(255,255,255,0.3) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    color: var(--text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ==========================================================================
   BOUTONS
   ========================================================================== */

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-medium);
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-width: 200px;
    justify-content: center;
}

.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: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange), #d65400);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(235, 111, 6, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(235, 111, 6, 0.4);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.2);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.3);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

.services {
    padding: 4rem 0;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-title p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-heavy);
    transition: var(--transition-medium);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-orange));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-card img {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 15px;
    object-fit: cover;
    transition: var(--transition-medium);
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-section {
    background: linear-gradient(135deg, var(--light-gray), var(--white));
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.contact-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-heavy);
    text-align: center;
    transition: var(--transition-medium);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.contact-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.contact-info {
    list-style: none;
    text-align: left;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}

.contact-info i {
    color: var(--primary-orange);
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.map-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.map-link:hover {
    text-decoration: underline;
    color: var(--dark-blue);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: linear-gradient(135deg, var(--text-dark), #222);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-fast);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary-orange);
    transform: translateY(-2px);
}

/* ==========================================================================
   BADGES ET NOUVEAUTÉS
   ========================================================================== */

.new-badge {
    position: relative;
}

.new-badge::after {
    content: 'NOUVEAU';
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-orange);
    color: var(--white);
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ==========================================================================
   BOUTONS D'ACCÈS RAPIDE FLOTTANTS
   ========================================================================== */

.quick-access {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-access-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-medium);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.quick-access-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.quick-access-btn:hover::before {
    transform: scale(1);
}

.quick-access-btn.staff {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
}

.quick-access-btn.track {
    background: linear-gradient(135deg, var(--primary-orange), #d65400);
}

.quick-access-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: var(--white);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease-out;
}

.service-card:nth-child(1) { animation-delay: 0s; }
.service-card:nth-child(2) { animation-delay: 0.1s; }
.service-card:nth-child(3) { animation-delay: 0.2s; }
.service-card:nth-child(4) { animation-delay: 0.3s; }
.service-card:nth-child(5) { animation-delay: 0.4s; }
.service-card:nth-child(6) { animation-delay: 0.5s; }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Tablettes */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content {
        padding: 0 1.5rem;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-blue);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-medium);
        border-radius: 0 0 10px 10px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        border-radius: 10px;
        margin-bottom: 0.5rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 3rem 0;
        min-height: 60vh;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .services {
        padding: 3rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .contact-section {
        padding: 3rem 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .quick-access {
        bottom: 15px;
        right: 15px;
    }
    
    .quick-access-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo img {
        width: 40px;
        height: 40px;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 1.2rem;
    }

    .service-card img {
        width: 60px;
        height: 60px;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .quick-access {
        bottom: 10px;
        right: 10px;
    }
    
    .quick-access-btn {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   UTILITAIRES
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.hidden { display: none; }
.visible { display: block; }

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .header,
    .quick-access,
    .cta-buttons {
        display: none;
    }
    
    .hero {
        padding: 1rem 0;
        background: none;
    }
    
    .service-card,
    .contact-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}

/* ==========================================================================
   DARK MODE SUPPORT (Optionnel)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #e0e0e0;
        --text-light: #b0b0b0;
        --white: #1a1a1a;
        --light-gray: #2a2a2a;
        --border-color: #333;
    }
    
    .service-card,
    .contact-card {
        background: #2a2a2a;
        border-color: #333;
    }
    
    .hero {
        background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    }
}
/* ==========================================================================
   CORRECTION - FORCER MODE CLAIR SUR TOUS LES APPAREILS
   ========================================================================== */

/* Supprimer/commenter cette section qui cause le problème */
/*
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #e0e0e0;
        --text-light: #b0b0b0;
        --white: #1a1a1a;
        --light-gray: #2a2a2a;
        --border-color: #333;
    }
    
    .service-card,
    .contact-card {
        background: #2a2a2a;
        border-color: #333;
    }
    
    .hero {
        background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    }
}
*/

/* ==========================================================================
   FORCER LES COULEURS CLAIRES SUR TOUS LES APPAREILS
   ========================================================================== */

/* Variables forcées en mode clair */
:root {
    --primary-blue: #0088cc !important;
    --primary-orange: #eb6f06 !important;
    --dark-blue: #005a87 !important;
    --light-blue: #e3f2fd !important;
    --white: #ffffff !important;
    --light-gray: #f8f9fa !important;
    --text-dark: #333333 !important;
    --text-light: #666666 !important;
    --border-color: #e9ecef !important;
}

/* Forcer le fond blanc sur tous les éléments */
body {
    background-color: #ffffff !important;
    color: #333333 !important;
}

.service-card,
.contact-card {
    background: #ffffff !important;
    color: #333333 !important;
    border-color: #e9ecef !important;
}

.hero {
    background: linear-gradient(135deg, #e3f2fd, #ffffff) !important;
    color: #333333 !important;
}

.services {
    background: #ffffff !important;
}

.contact-section {
    background: linear-gradient(135deg, #f8f9fa, #ffffff) !important;
}

/* Forcer les textes en mode clair */
.service-card h3 {
    color: #0088cc !important;
}

.service-card p {
    color: #666666 !important;
}

.contact-card h3 {
    color: #0088cc !important;
}

.contact-info li {
    color: #333333 !important;
}

.section-title h2 {
    color: #0088cc !important;
}

.section-title p {
    color: #666666 !important;
}

.hero h1 {
    color: #0088cc !important;
}

.hero p {
    color: #666666 !important;
}

/* ==========================================================================
   MOBILE SPECIFIQUE - FORCER MODE CLAIR
   ========================================================================== */

@media (max-width: 768px) {
    body {
        background-color: #ffffff !important;
        color: #333333 !important;
    }
    
    .header {
        background: linear-gradient(135deg, #0088cc, #005a87) !important;
        color: #ffffff !important;
    }
    
    .service-card {
        background: #ffffff !important;
        color: #333333 !important;
        border: 1px solid #e9ecef !important;
    }
    
    .contact-card {
        background: #ffffff !important;
        color: #333333 !important;
    }
    
    .hero {
        background: linear-gradient(135deg, #e3f2fd, #ffffff) !important;
    }
    
    .services {
        background: #ffffff !important;
    }
    
    .contact-section {
        background: linear-gradient(135deg, #f8f9fa, #ffffff) !important;
    }
}

/* ==========================================================================
   ANNULER COMPLÈTEMENT LE DARK MODE
   ========================================================================== */

/* Désactiver la détection du dark mode système */
@media (prefers-color-scheme: dark) {
    /* Rien - on ignore complètement les préférences dark mode */
}

/* Forcer le mode clair même si l'utilisateur a activé le dark mode */
html[data-theme="dark"],
body[data-theme="dark"],
.dark-mode {
    background-color: #ffffff !important;
    color: #333333 !important;
}

/* Assurer que tous les containers ont le bon fond */
.container,
.nav-container,
.hero-content {
    background-color: transparent !important;
}